Subject: RE: Expected token 'eof' encountered '['
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 9 Jul 2003 19:23:21 +0100
|
> 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
|