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

Re: xsl:script and Xalan ?

Subject: Re: xsl:script and Xalan ?
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Thu, 15 Jun 2000 13:14:02 -0400
Re: xsl:script and Xalan ?
Philippe D'Hont wrote:
> 
> My question is there is something similar to <xsl:script>
> that I can use with Xalan ?

With any XSLT-conforming app, you can just use <xsl:text> and
wrap your script in a <![CDATA[]]> section, which means you
don't manually have to escape everything.

This works for me:

<script type="text/javascript">
<xsl:text><![CDATA[
//<!-- hide javascript from older browsers

function func(num)
{
  for (i=0;i<oSub.length;i++)
  {
    other_func(i);
  }
}
//-->
]]></xsl:text>
</script>

-- 
Warren Hedley


 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.