[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 (

Subject: RE: How to preserve a node's value containing escaped text (' an d " in particular)?
From: Brian Young <Brian.Young@xxxxxxx>
Date: Tue, 30 May 2000 11:45:03 -0400
preserve escape xslt
[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 &quot; and &apos; 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 &quot; and &apos;.  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 &quot; and &apos;.  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.