Subject: Re: [xsl] generate an id From: "Ali Choumane" <xml_tech@xxxxxxxxxxx> Date: Mon, 11 Jul 2005 17:13:41 +0200 |
<xsl:template match="str-split2words-func:*"> <xsl:param name="arg1" select="/.."/> <xsl:param name="arg2"/>
<xsl:copy-of select="$arg1/*[1]"/> <xsl:copy-of select="$arg1/sentence[position() != last()]"/>
From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] generate an id Date: Mon, 11 Jul 2005 15:16:16 +0200
Hi,
Generate-id() function bases its id's on the current context node. You can supply an XPath as parameter to select another node to base the id on.
Can you supply a larger snippet of your XSL. At least the xsl-template in which you use the function?
Cheers, Geert
Ali Choumane wrote:
Hi,
I am using the XPath function "generate-id()", obviously to give an xml id to some node in the target document as folowing:
...
<sentence>
<xsl:attribute name="stamp">
<xsl:value-of select="generate-id()"/>
</xsl:attribute>
...
</sentence>
...
But in the result, all the attribut "stamp" generated have the same value !!!
Can you help me?
Tx
Ali,
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Bleiswijk (NL)
http://www.daidalos.nl/ tel:+31-(0)10-850 12 00 fax:+31-(0)10-850 11 99
GPG: 1024D/12DEBB50
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] generate an id, Ali Choumane | Thread | Re: [xsl] generate an id, Geert Josten |
Re: [xsl] Entities and copy-of, David Carlisle | Date | Re: [xsl] Creating Namespace Nodes, Mukul Gandhi |
Month |