xsl-list
[Top] [All Lists]

RE: EXSL <func:result> returning a node set

2003-09-23 08:18:15

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:  http://www.mulberrytech.com/xsl/xsl-list