|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Generating IDs 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








