xsl-list
[Top] [All Lists]

Re: generate an id

2005-07-11 06:16:16
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--
Geert(_dot_)Josten(_at_)Daidalos(_dot_)nl
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>