This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: including a javascript less-than symbol in a xsl with 'xml' output method
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] including a javascript less-than symbol in a xsl with 'xml' output method
- From: "Mauricio Grimberg" <mgrimber at iname dot com>
- Date: Thu, 25 Jan 2001 03:52:42 -0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Rubén: I split the script on before and after the "<" and in the middle I
put <xsl:value-of select="'<'" disable-output-escaping="yes"/>
It works.
Mauricio "X" Grimberg
Grupo de Usuarios Microsoft - Secretario
-----Mensaje original-----
De: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]En nombre de Rubén
Enviado el: Miércoles, 17 de Enero de 2001 04:56 p.m.
Para: XSL-List@lists.mulberrytech.com
Asunto: [xsl] 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 '<' instead of '<'
-If I don't use CDATA I can't put '<' and if I put '<' I get '<'
-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="<">' 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