-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapi-output.dtd
58 lines (47 loc) · 1.81 KB
/
api-output.dtd
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!--
Simple XML output format for the 'api' option and the HTTP
interface of LanguageTool. Version 1.0.
Daniel Naber (http://www.danielnaber.de), 2007-01-28
-->
<!ELEMENT matches (error)*>
<!-- A (potential) error. The output is simplified XML to
make parsing easier for those that do not use an XML parser.
This means:
* the error element does not contain line breaks
* each 'error' element starts on a new line
* the attributes always appear in this order: fromy, fromx,
toy, tox, ruleId, msg, replacements, context, contextoffset, errorlength
-->
<!ELEMENT error EMPTY>
<!-- The line in which the error starts: -->
<!ATTLIST error fromy CDATA #REQUIRED>
<!-- The column in which the error starts: -->
<!ATTLIST error fromx CDATA #REQUIRED>
<!-- The line in which the error ends: -->
<!ATTLIST error toy CDATA #REQUIRED>
<!-- The column in which the error ends: -->
<!ATTLIST error tox CDATA #REQUIRED>
<!-- An internal ID that refers to the error rule: -->
<!ATTLIST error ruleId CDATA #REQUIRED>
<!-- The message describing the error that will be displayed to the user. -->
<!ATTLIST error msg CDATA #REQUIRED>
<!--
One or more suggestions to fix the error. If there is more than one
suggestion, the strings are separated by a "#" character:
-->
<!ATTLIST error replacements CDATA #IMPLIED>
<!--
The context or sentence in which the error occurs.
-->
<!ATTLIST error context CDATA #REQUIRED>
<!-- The position of the start of the error in the 'context'
attribute. Counting starts at 0.
-->
<!ATTLIST error contextoffset CDATA #REQUIRED>
<!-- The length in characters of the error in the 'context'
attribute, starting at 'contextoffset'.
-->
<!ATTLIST error errorlength CDATA #REQUIRED>
<!-- Note that the XML output may contain XML comments with
additional information like timing and debugging information.
These can be ignored. -->