xsl-list
[Top] [All Lists]

RE: Expected token 'eof' encountered '['

2003-07-09 11:23:21
I'm using XSL and I swear that this same code 
      <xsl:when test=".[genre='Romance']">
though not correct was running/rendering on IE many(all) 
times (a year or two ago).

This syntax was widely used in WD-xsl but is not legal in XSLT. I think
there were early versions of MSXML that (incorrectly) permitted it.

It was probably disallowed in XSLT 1.0 by mistake, rather than as a
deliberate design decision, I haven't been able to get to the bottom of
the history. It is allowed in XSLT 2.0, though of course it's pointless
in this example, you can just write test="genre='Romance'".

Michael Kay

 


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



<Prev in Thread] Current Thread [Next in Thread>