[Home] [By Thread] [By Date] [Recent Entries]


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>

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member