Subject: Re: [xsl] Using COUNT to create unique anchors From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 27 Nov 2006 17:06:56 GMT |
Right, but I'm not actually storing a unique ID in each node within the XML itself. Perhaps I should? ;o) the code I posted didn't require that, it generated a unique id using xsl:number. The trick with cross referencing in xslt is to always generate the id on the _referenced_ node, whether you are using count() or xsl:number or generate-id(). If you use teh same code to gerate the id at both ends of the link, then teh same id will be generated and you can make the cross reference. In the code I posted, i suggested you use xsl:number twice, once to gneraate the href="#... link, and again when generating the actual sections to generate the name="... anchor. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Using COUNT to create uni, Austin, Darrel | Thread | RE: [xsl] Using COUNT to create uni, Austin, Darrel |
RE: [xsl] Using COUNT to create uni, Austin, Darrel | Date | Re: [xsl] Using COUNT to create uni, David Carlisle |
Month |