This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: for-each over variable problem


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]