comparison software/mpdl-services/mpiwg-mpdl-xml-web/WebContent/index.html @ 19:4a3641ae14d2

Erstellung
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Wed, 09 Nov 2011 15:32:05 +0100
parents
children
comparison
equal deleted inserted replaced
18:dc5e9fcb3fdc 19:4a3641ae14d2
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2 <html><head>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 <title>Max Planck Institute for the History of Science - Mpdl: XML Services</title>
5 </head>
6 <body>
7 <h2>Max Planck Institute for the History of Science - Mpdl: XML Services</h2>
8 <p>Available Services</p>
9
10 <ul>
11 <li><b>Url: /mpiwg-mpdl-xml-web/transform/Transform</b>
12 <ul>
13 <li>Request parameters
14 <ul>
15 <li>srcUrl (required)
16 <ul>
17 <li>url of the Xml source document</li>
18 </ul>
19 </li>
20 <li>xslUrl (required)
21 <ul>
22 <li>url of the Xsl document which does the transformation of the Xml document</li>
23 </ul>
24 </li>
25 <li>parameters (optional)
26 <ul>
27 <li>parameters separated with blanks (e.g. "yourParam1=yourValue1 yourParam2=yourValue2")</li>
28 <li>default: no parameters</li>
29 </ul>
30 </li>
31 <li>outputProperties (optional)
32 <ul>
33 <li>output properties separated with blanks (e.g. "encoding=utf-8 indent=yes")
34 <ul>
35 <li>"method=xhtml"</li>
36 <li>"indent=yes"</li>
37 <li>"media-type=text/html"</li>
38 <li>"encoding=utf-8"</li>
39 <li>default: "method=xml indent=yes media-type=text/xml encoding=utf-8"</li>
40 </ul>
41 </li>
42 </ul>
43 </li>
44 </ul>
45 </li>
46 <li>Response output
47 <ul>
48 <li>transformed Xml document</li>
49 <li>Example: <a href="transform/Transform?srcUrl=http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=/tei/en/Test_1789.xml&xslUrl=http://mpdl-test.mpiwg-berlin.mpg.de:8080/mpiwg-mpdl-xml-web/xsl/generateId.xsl">Generate ids incrementally for sentences in example document</a></li>
50 </ul>
51 </li>
52 </ul>
53 </li>
54
55 <li><b>Url: /mpiwg-mpdl-xml-web/transform/GetFragment</b>
56 <ul>
57 <li>Request parameters
58 <ul>
59 <li>docId (required)
60 <ul>
61 <li>document identifier of the Xml source document (e.g. "/tei/la/Test_1789.xml")</li>
62 </ul>
63 </li>
64 <li>ms1Name (required)
65 <ul>
66 <li>starting milestone element name (e.g. "pb")</li>
67 </ul>
68 </li>
69 <li>ms1Pos (required)
70 <ul>
71 <li>starting milestone position (e.g. "13")</li>
72 </ul>
73 </li>
74 <li>ms2Name (required)
75 <ul>
76 <li>ending milestone element name (e.g. "pb")</li>
77 </ul>
78 </li>
79 <li>ms2Pos (required)
80 <ul>
81 <li>ending milestone position (e.g. "14")</li>
82 </ul>
83 </li>
84 </ul>
85 </li>
86 <li>Response output
87 <ul>
88 <li>fragment between the two milestones in the Xml document</li>
89 <li>Example: <a href="transform/GetFragment?docId=/tei/en/Test_1789.xml&ms1Name=pb&ms1Pos=2&ms2Name=pb&ms2Pos=3">get the fragment between the second and the third page break</a></li>
90 </ul>
91 </li>
92 </ul>
93 </li>
94
95 <li><b>Url: /mpiwg-mpdl-xml-web/xquery/XQuery</b>
96 <ul>
97 <li>Request parameters
98 <ul>
99 <li>inputString or srcUrl (required)
100 <ul>
101 <li>inputString
102 <ul>
103 <li>XML string</li>
104 </ul>
105 </li>
106 <li>srcUrl
107 <ul>
108 <li>source URL of XML document</li>
109 </ul>
110 </li>
111 </ul>
112 </li>
113 <li>xquery (required)
114 <ul>
115 <li>XQuery (or XPath) source code which should be executed</li>
116 </ul>
117 </li>
118 </ul>
119 </li>
120 <li>Response output
121 <ul>
122 <li>XML result of the XQuery</li>
123 <li>Example: <a href="xquery/XQuery?srcUrl=http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=/archimedes/la/achil_propo_087_la_1545.xml&xquery=//s">XPath: all sentences of example document</a></li>
124 </ul>
125 </li>
126 </ul>
127 </li>
128 </ul>
129
130 </body></html>