W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

Re: ["Cheah, Sow Peng" <sow.peng.cheah@intel.com>] RE: XML schema - white space within tag name issue

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
Message-ID: <f5bbt03n2pv.fsf@cogsci.ed.ac.uk>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC