Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: cdata attribute value normalization in schema?

From: ht@---.--.--.-- (----- -. --------)
To: Bryan Rasmussen <brs@----.-->
Date: 5/23/2005 11:43:00 AM
Bryan Rasmussen writes:

> How do I represent an Attribute of being type CDATA so that the further
> normalization represented here 
> "=F8=E5=D8=E5If the attribute type is not CDATA, then the XML processor M=
UST further
> process the normalized attribute value by discarding any leading and
> trailing space (#x20) characters, and by replacing sequences of space (#x=
20)
> characters by a single space (#x20) character.
> " is not done? Should I use whiteSpace facet replace since that correspon=
ds
> to the rest of the algorithm?
> If so, how is this okay by the xml spec as the spec says that this
> normalization must be done prior to being passed to validation? 

See the documentation of whitespace processing [1] -- you can choose
whatever you like for your simple type definitions as long as they're
derived from xs:string.

W3C XML Schema's whitespace normalization is independent of XML's and
happens logically after it.

ht

[1] http://www.w3.org/TR/xmlschema-1/#d0e1654
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@i...
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged sp=
am]

From noah_mendelsohn@u... Mon May 23 12:47:35 2005
Received: from b


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent