xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Generating Sequential IDs


Subject: [xsl] Generating Sequential IDs
From: "Lakshmi narayana" <lchintala@xxxxxxxxxxxx>
Date: Tue, 5 Jul 2005 17:02:26 +0500

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor