W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

RE: XML Schema wildcard question

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Thu, 14 Mar 2002 16:23:23 -0800
Message-ID: <E5B814702B65CB4DA51644580E4853FB014886E2@red-msg-12.redmond.corp.microsoft.com>
To: "by way of \"C. M. Sperberg-McQueen\" <cmsmcq@acm.org>" <Maureen.Harig@apcc.com>, "W3C XML Schema Comments list" <www-xml-schema-comments@w3.org>
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>
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

<xsd:element name="DeviceDataType">
       <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="*"/>

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:57 UTC