[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to preserve a node's value containing escaped text (
[Quote from earlier response by Mike Brown] "When you copy the text node containing markup characters to the result tree with your stylesheet, and the XSLT processor serializes it with an output method, the XSLT processor will decide how to escape the markup characters for the chosen output method. You do not have any control over this process, nor should you need to, for a case like this. I think the only place where " and ' need to be used in XML and HTML is when ' or " appear in an attribute value that is also delimited by those characters." [My response] Unfortunately, I am using the stylesheet to generate XML that is fed as input to another application. This application (whether right or not) requests that the value of some elements have " and ' represented as " and '. I thought I had figured out what was happening in the background, and appreciate the confirmation. I also understand that this is something I should not normally have to worry about and that it is correct behavior. Unless I can get the application to change, however, I'll need to figure out a way to force output of " and '. Maybe it *would* be better to talk to the application folks. :) Thank you, Brian XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|