bansp | c3cdcb9 | 2022-03-09 03:25:32 +0100 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://ids-mannheim.de/ns/KorAP"> |
| 3 | <!-- $Id$ --> |
| 4 | <start> |
| 5 | <element name="raw_text"> |
| 6 | <attribute name="docid"> |
| 7 | <data type="NCName"/> |
| 8 | </attribute> |
| 9 | <element name="metadata"> |
| 10 | <attribute name="file"> |
| 11 | <data type="anyURI"/> |
| 12 | </attribute> |
| 13 | </element> |
| 14 | <element name="text"> |
| 15 | <optional> |
| 16 | <attribute name="mimeType"> |
| 17 | <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">By default, |
| 18 | we assume "text/plain; charset=UTF-8", but we should be prepared for other |
| 19 | encodings</documentation> |
| 20 | <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">Or maybe |
| 21 | @charset would be enough here?</documentation> |
| 22 | <data type="string"/> |
| 23 | </attribute> |
| 24 | </optional> <text/> |
| 25 | </element> |
| 26 | <zeroOrMore> |
| 27 | <element name="binary"> |
| 28 | <attribute name="mimeType"> |
| 29 | <data type="string"/> |
| 30 | </attribute> |
| 31 | <attribute name="file"> |
| 32 | <data type="anyURI"/> |
| 33 | </attribute> |
| 34 | </element> |
| 35 | </zeroOrMore> |
| 36 | </element> |
| 37 | </start> |
| 38 | </grammar> |