[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Fun with regular expressions
To work around buggy WXS processors, there would probably be no harm in doing both maxInclusive of INF minInclusive of -INF <shrug/> The question is whether that is clearer than some regex hack. :-) .micah -----Original Message----- From: Jeff Rafter [mailto:lists@j...] Sent: Wednesday, February 04, 2004 10:21 AM To: xml-dev@l... Subject: Re: Fun with regular expressions > Haven't tried xerces or MSV yet... MSV and MSV with the -xerces option handles the schema correctly. Where <element name="foo"> <simpleType> <restriction base="double"> <maxInclusive value="INF" /> </restriction> </simpleType> </element> <foo xmlns="http://www.example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.com test.xsd">NaN</foo> raises a validity error as expected. Cheers, Jeff Rafter ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription manager: <http://lists.xml.org/ob/adm.pl>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|