[xsl] Reference to other node

Subject: [xsl] Reference to other node
From: "alexandre bord" <alexandre.bord@xxxxxxxxxx>
Date: Tue, 18 Jun 2002 10:26:46 +0200
How could i better do that ? :

<fo:block>
<xsl:variable name="id-found"><xsl:for-each select="//GrilleSimple[@Nom=$name-to-find]">
<xsl:value-of select="generate-id()" /></xsl:for-each></xsl:variable>
This is on page <fo:page-number-citation ref-id="{$id-found}" />
</fo:block>



* name-to-find is a variable * xsl:for-each returns only one node

Thanks a lot.
Alexandre


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread