This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Reference to other node
- From: "alexandre bord" <alexandre dot bord at steria dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 18 Jun 2002 10:26:46 +0200
- Subject: [xsl] Reference to other node
- Reply-to: xsl-list at lists dot mulberrytech dot com
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