> For the XML fans, below you find a possible DTD
Now I tried to add the XREF feature from my REXX registry
validator to the DTD (see below). That resulted in three
special cases:
zh-cmn We have no extlang cmn at the moment, therefore I
got a missing ID _cmn. Problem disabled by special hack.
zh-hakka Similar, but there will be no _hakka variant,
the "missing" ID _hakka has to be permanently disabled.
The grandfathered zh-cmn and zh-hakka of course exist,
but my parser tries to decompose such tags into IDREFS.
The third problem is apparently a bug in the registry:
missing ID _latn (small L) in yi-latn. For the REXX
validator I never saw that because it internally works
case-insensitive, but with XML ID _latn is not _Latn.
Frank
<?xml version="1.0" encoding="US-ASCII" standalone='yes' ?>
<!DOCTYPE ltru [
<!ELEMENT ltru (language*, extlang*, script*, region*, variant*, grandfathered*, redundant*)>
<!ATTLIST ltru
date NMTOKEN #REQUIRED
>
<!ELEMENT language (suppress?, deprecated?, description+, comment*)>
<!ATTLIST language
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
xml:id ID #REQUIRED
>
<!ELEMENT extlang (prefix, deprecated?, description+, comment*)>
<!ATTLIST extlang
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
xml:id ID #REQUIRED
>
<!ELEMENT script (deprecated?, description+, comment*)>
<!ATTLIST script
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
xml:id ID #REQUIRED
>
<!ELEMENT region (deprecated?, description+, comment*)>
<!ATTLIST region
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
xml:id ID #REQUIRED
>
<!ELEMENT variant (prefix*, deprecated?, description+, comment*)>
<!ATTLIST variant
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
xml:id ID #REQUIRED
>
<!ELEMENT grandfathered (deprecated?, description+, comment*)>
<!ATTLIST grandfathered
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
>
<!ELEMENT redundant (deprecated?, description+, comment*)>
<!ATTLIST redundant
date NMTOKEN #REQUIRED
tag NMTOKEN #REQUIRED
ref IDREFS #REQUIRED
>
<!ELEMENT suppress EMPTY>
<!ATTLIST suppress
tag NMTOKEN #REQUIRED
ref IDREF #REQUIRED
>
<!ELEMENT prefix EMPTY>
<!ATTLIST prefix
tag NMTOKEN #REQUIRED
ref IDREFS #REQUIRED
>
<!ELEMENT deprecated EMPTY>
<!ATTLIST deprecated
date NMTOKEN #REQUIRED
tag NMTOKEN #IMPLIED
ref IDREFS #IMPLIED
>
<!ELEMENT description (#PCDATA)>
<!ELEMENT comment (#PCDATA)>
]>
<ltru date='2006-08-04'>
<language date='2005-10-16' tag='aa' xml:id='_aa'>
<description> Afar </description>
</language>
<!-- etc. -->
<redundant date='2005-04-11' tag='zh-Hant-TW' ref='_zh _Hant _TW'>
<description> Taiwan Chinese in traditional script </description>
</redundant>
</ltru>
_______________________________________________
Ltru mailing list
Ltru at ietf.org
https://www1.ietf.org/mailman/listinfo/ltru
Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.