[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: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 23 Dec 2009 16:30:45 +0100
Re:  using xsl:output-character to render characters in
Tom T wrote:
I think I do need to do it. I cannot serve html as this would break my
company's accessibility guidelines (eg unclosed img tags), I must use
the XHTML output method. Using this method I have provided 2 examples
of what I need to achieve:

1. I need to create a '<![CDATA[]]>' section in the output
(http://javascript.about.com/library/blxhtml.htm explains why)

Have you considered to create an external script document and use that with e.g. <script src="file.js" type="text/javascript"></script>?
That way you don't face any problems with inline script code and all those hacks to escape it for both the HTML and the XML parser.


XSLT 2.0 can generate more than one result document with xsl:result-document and it can generate text result documents so it is certainly possible to create a file with Javascript code.

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.