[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using COUNT to create unique anchors

Subject: RE: Using COUNT to create unique anchors
From: "Austin, Darrel" <Darrel.Austin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Nov 2006 11:04:22 -0600
RE:  Using COUNT to create unique anchors
> Just use generate-id() - it's guaranteed to return the same
> value for the same node for a single transformation run.
>
> So when you pass over your data to create your index, and
> then when you pass over it a second time to do the actual
> transform, as long as its all done as part of a single
> transform you can use generate-id()

Well, the TOC and actual content are created via separate templates, so
it looks like that won't quite work, as each link ends up having a
different ID than the anchor that is generated.

But maybe my logic is wrong. Should I be able to create two sets of HTML
from the same XML file via one single transform?

-Darrel

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.