logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: SV: cdata attribute value normalization in schema?: msg#00083

Subject: Re: SV: cdata attribute value normalization in schema?
Bryan Rasmussen writes:

>>W3C XML Schema's whitespace normalization is independent of XML's and
>>happens logically after it.
>
> okay, well this leads me back to my problem then. The xml normalization for
> attributes is dependent on if "the attribute type is not CDATA", if it isn't
> leading/trailing whitespace is discarded, if it is they aren't. How do I via
> xml schema specify that an attribute is CDATA? Is an CDATA attribute type
> just a string? or anything else? 

XML processors are required to treat undeclared attributes as if they
were declared as CDATA, for whitespace normalization purposes, so you
don't have to do anything.

ht
-- 
 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@xxxxxxxxxxxx
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]




<Prev in Thread] Current Thread [Next in Thread>