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"

Hi,

  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

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT