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

Generating IDs for each element

Subject: Generating IDs for each element
From: Malcolm Locke <malcolm.locke@xxxxxxxxxxxx>
Date: Mon, 4 Sep 2000 17:37:58 +0100
for each element
OK, my appologies first off if this has been done before, but here goes..

I want to be able to generate a unique ID for each element that I will then
be able to access in another parse invocation.  For example, translate the
following

<sect>
	<para>Para one</para>
	<para>Para two</para>
</sect>
<sect>
	<para>Para three</para>
	<para>Para four</para>
</sect>

into:

....
	<p>Para one</p><a href="edit.xml?element_ID={???}">[edit]</a>
	<p>Para two</p><a href="edit.xml?element_ID={???}">[edit]</a>
etc...

This must work across invocations, so I can guarantee the ID will be the same
next time I call it.  I want to be able to do this for any element. Is there a 
way to get the position of the current element in the context of the _whole_ 
document?

Mal


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2013 All Rights Reserved.