RE: XML Schema wildcard question

No, sorry, that will not work.
XML Schema has wildcards for anyElement and anyAttribute.  
You are asking for a wildcard for anyValue which is not supported. 

Another feature, which you are not asking for, is a value wildcard
specified with a pattern.  This is also not supported but worth 
thinking about.


All the best, Ashok 
===========================================================


-----Original Message-----
From: by way of "C. M. Sperberg-McQueen" <cmsmcq@acm.org>
[mailto:Maureen.Harig@apcc.com] 
Sent: Thursday, March 14, 2002 4:14 PM
To: W3C XML Schema Comments list
Subject: XML Schema wildcard question

Is it possible to add a wildcard in the following XML schema enumeration
example?

<xsd:element name="DeviceDataType">
     <xsd:simpleType>
       <xsd:restriction base="xsd:string">
         <xsd:enumeration value="b"/>
         <xsd:enumeration value="f"/>
         <xsd:enumeration value="flag"/>
         <xsd:enumeration value="h"/>
         <xsd:enumeration value="i"/>
         <xsd:enumeration value="s"/>
                           <xsd:enumeration value="*"/>
       </xsd:restriction>
     </xsd:simpleType>
   </xsd:element>


Will the enumeration line that contains:  value="*" match any value that
wasn't equal to
b, f, flag, h, i, or s?  Does a wildcard feature exist in XML Schemas?

Thank you for your help,

Maureen C. Harig

http://www.apc.com 

Received on Thursday, 14 March 2002 19:23:28 UTC