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

RE: including a javascript less-than symbol in a xsl w

Subject: RE: including a javascript less-than symbol in a xsl with 'xml' output method
From: "Mauricio Grimberg" <mgrimber@xxxxxxxxx>
Date: Thu, 25 Jan 2001 03:52:42 -0300
less than symbol
Hi Rubén: I split the script on before and after the "<" and in the middle I
put <xsl:value-of select="'&lt;'" disable-output-escaping="yes"/>
It works.

Mauricio "X" Grimberg
Grupo de Usuarios Microsoft - Secretario

-----Mensaje original-----
De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Rubén
Enviado el: Miércoles, 17 de Enero de 2001 04:56 p.m.
Para: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Asunto:  including a javascript less-than symbol in a xsl with 'xml'
output method


Hi, how could I include a javascript code like this: "for( var i = 0; i <
n; i++ ) {...}" in a xsl template?

I know:

-If I embed this inside a CDATA section I get '&lt;' instead of '<'
-If I don't use CDATA I can't put '<' and if I put '&lt;' I get '&#60'
-If I used 'text' output method I would have to escape all tags in the xsl
-I think that to replace all the '<' with '<xsl:value-of select="&lt;">' is
not very smart

Do you know a clever way?

Thanks and sorry my awfull english.



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


 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.