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

RE: Empty Content Element Declaration Problem

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Wed, 19 Sep 2001 04:58:50 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB01040431@red-msg-12.redmond.corp.microsoft.com>
To: "hsbcbilly" <hsbcbilly@sinaman.com>, <xmlschema-dev@w3.org>
Create a enumeration of string that contains "N/A" and the empty string
Create a union the above datatype with decimal.

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

-----Original Message-----
From: hsbcbilly [mailto:hsbcbilly@sinaman.com] 
Sent: Wednesday, September 19, 2001 2:43 AM
To: xmlschema-dev@w3.org
Subject: Empty Content Element Declaration Problem


One of the elements in my XML document has decimal number values (e.g.
1.234, 56.1, etc.). However, it may also contain the value "N/A" or
value of empty string.

e.g. the possible values of this element are:
1. <VALUE>122.33</VALUE>

I am writing a XML Schema for this XML, and I don't have any idea of how
to write the schema for the element I mentioned above. I've tried many
different kinds of syntax but still failed when I validated my XML using
the schema I wrote (I am using the validator of the XMLSpy 4).

Pls give me some guidances and thank you very much.

新浪免費電子信箱  http://sinamail.sina.com.hk
Received on Wednesday, 19 September 2001 07:59:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC