W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

RE: "schemana nil-able decimal"

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Mon, 29 Oct 2001 10:58:53 -0800
Message-ID: <E5B814702B65CB4DA51644580E4853FB010405A3@red-msg-12.redmond.corp.microsoft.com>
To: "KRUMPOLEC Martin" <krumpolec@asset.sk>, <xmlschema-dev@w3.org>
If you use a union of integer and string then <number/> will validate
as the empty string.

All the best, Ashok
Ashok Malhotra              <mailto: ashokma@microsoft.com> 
Microsoft Corporation

-----Original Message-----
From: KRUMPOLEC Martin [mailto:krumpolec@asset.sk] 
Sent: Monday, October 29, 2001 7:59 AM
To: 'xmlschema-dev@w3.org'
Subject: "schemana nil-able decimal"


  I fight with pre-XSD schema and try to "model" it with 
  XML schema (to validate it on the fly with parser ) ...

  I have worked around most of problems so far but I'm stuck
  with this weird requirement; single number (xs:integer)
  can be either _empty_ or can have 10 digits ... and I can't
  use xsi:nil in schema instance of course :-)

    <number/>    or    <number>1234567890</number>

  Any ideas ?

Thank you very much


Martin Krumpolec <krumpo@pobox.sk>
Received on Monday, 29 October 2001 13:59:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:55 UTC