Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Using COUNT to create unique anchors


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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords