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

xs:string range 1 to 999

From: Markus Gamperl <markus.gamperl@gmx.at>
Date: Wed, 09 May 2007 13:08:02 +0200
Message-ID: <20070509110802.160700@gmx.net>
To: xmlschema-dev@w3.org
xs:string range 1 to 999

Dear experts!

Do you have an idea how to define a xs:string with the range from 1 to 999?

I tried the following:
<xs:simpleType name="type1-999">
	<xs:restriction base="xs:string">
		<xs:pattern value="\d{1,3}"/>
	</xs:restriction>
</xs:simpleType>

But in my configuration the value 0 is allowed - but I don't want to allow value 0 - du you have an idea?

Thanks
Markus
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Received on Wednesday, 9 May 2007 11:08:11 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.