This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: for-each over variable problem
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 4 Feb 2002 18:30:51 -0000
- Subject: RE: [xsl] for-each over variable problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list