This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to preserve a node's value containing escaped text (' an d " in particular)?


[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]