Subject: Re: < in <xsl:eval> From: Chris Maden <crism@xxxxxxxxxxx> Date: Wed, 16 Dec 1998 11:51:59 -0500 (EST) |
[alan dennis] > How can you test for < in an eval statement, in IE5? For instance > the following works: > > <xsl:eval>var i=0;var sString="";for(i=0;10>i;i++){sString += ".";} > ;sString;</xsl:eval> > > however > > <xsl:eval>var i=0;var sString="";for(i=0;i<10;i++){sString += ".";} > ;sString;</xsl:eval> > > (which is of the more common form) does not. Your XSL stylesheet is an XML document, and subject to all the strictures thereof. You must encode < as <, or else it is not a legal XML document. The XML parser will interpret the entity reference before passing the data to the stylesheet engine, so the comparison should evaluate correctly. -Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
< in <xsl:eval>, alan dennis | Thread | Re: < in <xsl:eval>, Keith Visco |
Re: alternating tags in a list?, Sebastian Rahtz | Date | MSIE: testing attribute values, Chris Maden |
Month |