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

RE: for-each over variable problem

Subject: RE: for-each over variable problem
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 4 Feb 2002 18:30:51 -0000
xslt iterate over variable
> I am trying to iterate over a variable using for-each, and I
> am getting
> errors with majority of parsers :-(.
> The only one working is Sablotron (I am using cooktop, to
> test which engine works).

XSLT 1.0 doesn't allow you to use a result-tree-fragment in a path
expression. Most processors provide an xx:node-set() extension function to
get round the problem.
>
> In Michael Kay's book is example like this on p.343, but id
> does not work
> here. Any idea why?

As the preceding text on p 342 explains, this example shows how it is done
with XSLT 1.1, which unfortunately never made it past WD status and
therefore was not widely implemented. The example will work as written with
Saxon if the stylesheet specifies version="1.1".

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx



 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.