xsl-list
[Top] [All Lists]

RE: [xsl] Preserve CDATA for all elements

2006-05-14 12:16:40
As a matter of interest, *why* do you want to preserve the CDATA 
sections in the input document?

Because my client application, which actually uses the 
transformed xml is designed such that It just strips of the 
string "<![CDATA[" and "]]>" and prints the actually value to 
the user.

I would strongly recommend that any client application that expects to get
XML input should handle the XML by putting it through an XML parser.
Otherwise you've got an application that can handle some subsets of XML and
not others, and the whole point of XML is to prevent that kind of problem.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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