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

Generating Sequential IDs

Subject: Generating Sequential IDs
From: "Lakshmi narayana" <lchintala@xxxxxxxxxxxx>
Date: Tue, 5 Jul 2005 17:02:26 +0500
xml tree sequential
Hi,
I want to generate the sequence ids for all the nodes in the xml tree. For
example
my source xml looks like this..
	<A>
		<B></B>
		<C>
			<D></D>
		</C>
		<E>
			<F>
				<G></G>
			</F>
		</E>
	</A>

I want the output xml like..

	<A id=1>
		<B id=2></B>
		<C id=3>
			<D id=4></D>
		</C>
		<E id=5>
			<F id=6>
				<G id=8></G>
			</F>
		</E>
	</A>

Can any one give me the xslt code for this..

Thanks,
Laxmi Narayana Babu
OSI Technologies.

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.