- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 12 Jul 2000 09:59:40 +0100
- To: "Cheah, Sow Peng" <sow.peng.cheah@intel.com>
- Cc: www-xml-schema-comments@w3.org
Cheah, Sow Peng writes:
> I came accross your document at following URL. I'm using Oralce XML Java
> validator to validate the XML document based on XML schema.
>
> http://www.w3.org/TR/xmlschema-1/
> http://www.w3.org/TR/xmlschema-2/
>
> I encountered an issue with the white space appear within the value. How do
> i make the XML schema recognize the whitespace so that the length of the
> white space is calculated too? The white space become an issue when the file
> pass the validator but it failed the loading because the white space and
> value more than the defined field's lenght.
>
> <TAG> value </TAG>
>
> maxlength = 10
Depends on the type of the <TAG> element. If it's a string, then it's
broken -- more than 10 characters. If it's an integer, it's still
broken, but that's because whitespace isn't allowed.
As currently specified, XML Schema does not strip _any_ whitespace.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2001, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
Received on Wednesday, 12 July 2000 04:59:43 UTC