-
Notifications
You must be signed in to change notification settings - Fork 3
/
convert.xql
32 lines (30 loc) · 961 Bytes
/
convert.xql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
xquery version "3.0";
declare option exist:serialize "method=html5 media-type=text/html";
<html>
<head>
<title>Text document to TEI conversion</title>
</head>
<body>
<div id="content">
<form enctype="multipart/form-data" method="post" action="convert2.xql">
<fieldset>
<legend>Upload Word (.docx) [or OO (.odt)]:</legend>
<input type="file" name="file" style="width: 90%;"/>
<input type="submit" value="Upload" style="float: right;"/>
<br/>
<label>select XSLT for processing: </label>
<select name="xslt">
<option selected="selected">none</option>
{
for $file in doc('adds.xml')//entry
return
<option value="{$file/@file}">{xs:string($file/@label)}</option>
}
</select>
<br />
<label>Apply base Word → TEI transformation? </label> <input name="base" type="checkbox" />
</fieldset>
</form>
</div>
</body>
</html>