[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Specifying an empty string as a simpleType restriction option

From: Glen Mazza <glen.mazza@gmail.com>
Date: Fri, 18 Apr 2008 13:53:33 -0400
Message-ID: <52deb1e0804181053s797c6764rd59b797a694bd69c@mail.gmail.com>
To: xmlschema-dev@w3.org
Specifying an empty string as a simpleType restriction option

Hello,

I think I'm making a mistake below--XMLSpy isn't accepting this simpleType.

For the following simpleType, I'm trying to say that widgetType may
have any of the three possible values:

1.) abc
2.) bcd
3.) ( an empty string )

<xs:simpleType name="widgetType">
    <xs:restriction base="xs:string">
       <xs:pattern value="abc|bcd|" />
    </xs:restriction>
</xs:simpleType>

Apparently, though, the second bar to the ending quote is not an
acceptable way to specify the empty string.  Does anyone know what I'm
missing here--how I can specify an empty string as one of the three
acceptable options?

Thanks,
Glen
Received on Friday, 18 April 2008 21:53:26 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.