W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2003

suggestion: variables in schema

From: by way of <acowley@accelrys.com>
Date: Wed, 30 Jul 2003 16:56:32 -0600
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

I cannot find this in schema 1.0, but I'm a novice so apoligies if it's there.

I'd like the simple ability to base a restriction on user data.

Ie something like:

<xs:element name="measurements">
     <xs:attribute name="threshold" type="positiveInteger">
       <xs:element name="length">
           <xs:restriction base="xs:integer">
             <xs:minExclusive value="0"/>
             <xs:maxInclusive value="$threshold"/>
close tags etc..

This way the length data has to conform to the threshold restriction.

Thanks in advance,

Received on Wednesday, 30 July 2003 18:57:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:00 UTC