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

RE: Expected token 'eof' encountered '['

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


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.