OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Preserving single quotes in an XML document when applying

[ Lists Home | Date Index | Thread Index ]

 

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@ntlworld.com
work: Michael.Kay@softwareag.com





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS