|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








