Relax NG schema to match entity-reference ints?

Ken Beesley <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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="&#xE719;" />
		...	
<key code="126" output="&#x1E;" />

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
**********************************************************************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.