Subject: Re: [xsl] Reference to other node From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Tue, 18 Jun 2002 11:14:06 +0200 |
<xsl:variable name="id-found" select="generate-id(//GrilleSimple[local-name()=$name-to-find])"/>
-----Original Message----- From: alexandre bord [mailto:alexandre.bord@xxxxxxxxxx]
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Reference to other node, Andrew Welch | Thread | RE: [xsl] Reference to other node, Andrew Welch |
RE: [xsl] Writing a stylesheet to c, Andrew Welch | Date | [xsl] Format text within a XML tag., Anders Wasen |
Month |