RE: [xsl] EXSL <func:result> returning a node set

Subject: RE: [xsl] EXSL <func:result> returning a node set
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 23 Sep 2003 16:18:15 +0100
> If one uses it like this:
>    <xsl:value-of select="pcpfunc:ordered(/el1/el2/date)"/>
> it works correctly, but if you use it like this:
>    <xsl:value-of select="pcpfunc:ordered(/el1/el2/date)[1]"/>

I think the function is returning a single node, the root node of a
tree, and [1] has no effect when applied to a single node. You probably
want pcpfunc:ordered(/el1/el2/date)/*[1] to select the first child of
the root node. But I haven't checked the logic carefully, and it may
depend on which processor you are using.

Michael Kay

 XSL-List info and archive:

Current Thread