[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] more elegant way to process element with default value?


Subject: Re: [xsl] more elegant way to process element with default value?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Jun 2003 21:49:56 +0100

   and my understanding is that
   certain kinds of character data cannot be stored in attribute values,
   since they are CDATA not PCDATA. Am I mistaken about this?)

Yes you are mistaken. All character data that is allowed in element
content is allowed in attributes (although newlines are normalised
differently: to #10 in element content and #20 (usually) in attributes.
What doesn't happen is that the string is _Parsed_ looking for element
start tags, etc. Of course you have to quote " if using " to surround
teh value, but that is the only difference.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread