[Home] [By Thread] [By Date] [Recent Entries]


 

I have an XML document containing single and double quotes. When I apply my XSL stylesheet then it converts the single quotes to double quotes. Are there any way to preserve the single quotes?

 

I used to use this as my canonical example of a "lexical" feature in XML that no-one would ever expect to be retained through a transformation...

 

XSLT is a transformation of the information set. Any details that aren't part of the infoset are lost. That can be inconvenient when you are hand-editing the XML, but it doesn't lose information; or if it does lose information, then you are misusing XML.

 

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s...


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member