[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using xsl:output-character to render characters in 2 w
I wish to process single quotes in the following way: - when it is retreived from the source XML it should be escaped to ' - when it is embedded within the XSLT stylesheet it should not be escaped and rendered as a '. To acheive this I have set up the following output-characters in a character map: <xsl:output-character character="'" string="&#39;" /> <xsl:output-character character="&single-quote;" string="'" /> This works but it means I have to use the &single-quote; entity every time I want to use a single quote in the xslt (eg for javascript.) Is there a better way to do this in XSLT 2? Thanks
|
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
|