W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

Attribute Fixed and Prohibited

From: Joey <lpjcoyle@ihc.com>
Date: Tue, 26 Mar 2002 15:00:38 -0500 (EST)
Message-Id: <5.1.0.14.2.20020326124600.00a928b8@wheresmymailserver.com>
To: xmlschema-dev@w3.org
I want an attribute to have a fixed value that is available to the schema 
processor, but not allow the attribute in instances.   Is the following 
valid, and does it do what I want.

<xs:attribute name="domain" type="xs:positiveInteger" use="prohibited" 
fixed="123"/>
Received on Wednesday, 27 March 2002 04:23:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT