Subject: Re: [xsl] choose an "artificial" root node From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of B. Tommie Usdin) Date: Wed, 14 Feb 2001 13:24:06 -0500 |
I thought it would work.... but the generated id is different each time the document is loaded ! What is an id good for if it changes everytime ?
the id is unique within a run of the stylesheet so it can be used in xslt code to identify a node as in <xsl:if test="generate-id(.)=generate-id($xx)"> or it can be used to generate ids and internal links in teh output so long as you don't mind that they are unstable and change if document regenerated.
To get stable ids either get them from the source or use something like <xsl:number/> to generate a unique id. ie <xsl:attribute name="id">foo<xsl:number level="any" count="foo"/></xslattribute"/>
_____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] sorting problem, bryan . s . schnabel | Thread | Re: [xsl] choose an "artificial" ro, Fr\id\iric SCHWEBEL |
[xsl] sorting problem, Awasthi, Anand | Date | Re: [xsl] does xslt support max(), , Steve Muench |
Month |