|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: output javascript braces not avt
Hi Andrew,
you could use <xsl:attribute/> instead:
<body>
<xsl:attribute name="onLoad">
if (true) {
alert('foo');
alert('bar');
}
</xsl:attribute>
...
</body>
This I prefer, since it allows me much more readable code in xsl, especially
when it mixes xsl, html and javascript.
You must obey the rules for <xsl:attribute/> though. This means, not output
from the beginning of the output tree element <body> to the first occurrence
of <xsl:attribute/> is allowed, otherwise the <xsl:attribute> is not
considered to belong to the body element.
Bye
Carsten
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








