[relaxng-user] Relax NG schema to match entity-reference ints?
Ken Beesley
Ken.Beesley at xrce.xerox.com
Mon Feb 2 14:37:39 ICT 2004
Question: Relax NG schema to match entity-reference ints?
I have existing xml files, originally written for DTD validation,
that contain entity-reference integers as attribute values, e.g.
the value of the 'output' attribute in
<key code="0" output="" />
...
<key code="126" output="" />
In general, the value of the output attribute can be a list of
integers with values ranging from 0x1 to 0x10FFFF inclusive.
So the question is this: Can I write a Relax NG schema that
matches and constrains the value of these 'output' attributes,
written in this hex-entity-reference form?
I tried the following, which didn't work:
<define name="Output">
<attribute name="output">
<list>
<zeroOrMore>
<data type="int">
<param name="minInclusive">1</param>
<param name="maxInclusive">111411</param> <!-- hex 10FFFF -->
</data>
</zeroOrMore>
</list>
</attribute>
</define>
Jing complains 'error: bad value for attribute "output"'
Suggestions and corrections would be welcome.
Ken
**********************************************************************
Kenneth R. Beesley ken.beesley At xrce DoT xerox DoT com
Xerox Research Centre Europe Tel from France: 04 76 61 50 64
6, chemin de Maupertuis Tel from Abroad: +33 4 76 61 50 64
38240 MEYLAN Fax from France: 04 76 61 50 99
France Fax from Abroad: +33 4 76 61 50 99
XRCE page: http://www.xrce.xerox.com
Personal page: http://www.xrce.xerox.com/people/beesley/home.html
**********************************************************************
More information about the relaxng-user
mailing list