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

Re: Help with lots of <'s

Subject: Re: Help with lots of <'s
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Thu, 26 Aug 1999 18:00:03 -0400 (EST)
Re: Help with lots of <'s
At 26 Aug 1999 17:36 +0100, David Carlisle wrote:
 > 
 >  Mike Brown writes
 >    Wrap the characters in <![CDATA[...]]>, like this:
 > 
 >    <xsl:text disable-output-escaping="yes">
 >    <![CDATA[
 > 
 >    <SCRIPT LANGUAGE="JavaScript"><!-- 
 > 	   ... foo & bar ...
 >    --></SCRIPT>
 > 
 >    ]]>
 >    </xsl:text>
 > 
 > 
 > Beware though, that if you do this you are not outputting a SCRIPT
 > element but the characters < S C R I P T  thus this stylesheet only
 > works in a context in which you are linearising the result tree as an
 > XML file, and then re-parsing it as XML (or HTML in this case).
 > It wouldn't (or shouldn't) work in an embedded context where the
 > result tree of the stylesheet is being directly accessed, eg by the
 > layout engine of a browser.

A better sequence would be:

   <SCRIPT><xsl:text><![CDATA[...]]></xsl:text></SCRIPT>

The August working draft says that "The html output method should not
perform escaping for the content of the script and style elements."
With an up-to-date XSLT processor, you wouldn't need the xsl:text, and
<SCRIPT LANGUAGE="JavaScript"><![CDATA[...]]></SCRIPT> would be fine.

Regards,


Tony Graham
======================================================================
Tony Graham                            mailto:tgraham@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9632
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.