Sign In/My Account | View Cart  
advertisement

Article:
 Controlling Whitespace, Part Two
Subject: CDATA
Date: 2002-02-13 14:06:19
From: Bob DuCharme
Response to: CDATA

Making something a CDATA section is a way of saying "don't treat this as a parsable XML, just pass it along as-is," so I avoid it wherever possible. The XSLT Recommendation offers tricks for adding things to the result tree as CDATA, but doesn't say anything that I could find about dealing with CDATA on the source tree. This didn't suprise me, if the reason for having CDATA is to tell a parser to leave it alone. If you want the parser to get the data and hand it to the XSLT processor in a way that you can get it and manipulate it, it's best to not have it be CDATA. Is this an option?


Bob


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: