You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by da...@us.ibm.com on 2003/05/19 15:23:31 UTC

Re: how to select another rowset with an id based on an id in the current rowset

>so I have the following transform fragment: 
>  <xsl:for-each select="/document/rowset2/object2"> 
>    <!-- in current object2 context --> 
>    <xsl:value-of select="/x/y/z[id=child::id]/value"/> 
>  </xsl:for-each> 
>but it doesn't seem to work.

Looks like a job for the current() function. (That's an XSLT function
specifically designed to deal with the for-each dilemma above.)
.................David Marston