[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: using xsl:output-character to render characters in

Subject: Re: using xsl:output-character to render characters in 2 ways
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 23 Dec 2009 11:40:55 GMT
Re:  using xsl:output-character to render characters in
> Yes, that works, but I thought it was deprecated. Is there no better
> way in XSLT 2?

Not really, but you should never need to do this anyway.

If you are serving the result as text/html, use the html output method
and then no quoting is necessary (or possible) in HTML script element.

If you are serving as application/xhtml+xml use the xhtml output method
and allow the system to quote using either CDATA section or & lt entity
references, and any browser that understands application/xhtml+xml 
will understand this quoting and pass the correct characters to the
javascript engine.


Current Thread


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.
First Name
Last Name
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.