Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2010, 09:42 AM
Registered User
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nested Loop Numbering

Hi ,

I have an XML in which i have four nested containers.
I want read all container with numbering like 1, 2,3 ,4.....................,nth

XML:

<Content>
<subHyperLink>Overview</subHyperLink>
<innerContent>
<text>werfwer</text>
<graphic/>
</innerContent>
<subContentA>
<coordinate>
<x1>1</x1><y1>1</y1><x2>1</x2><y2>1</y2>
</coordinate>
<subHyperLink>AAAAAAAAAA</subHyperLink>
<innerContent>
<text>wertwet</text>
<graphic/>
</innerContent>
</subContentA>
<subContentA>
<coordinate>
<x1>1</x1><y1>1</y1><x2>2</x2><y2>2</y2>
</coordinate>
<subHyperLink>BBBBBBBBBBB</subHyperLink>
<innerContent>
<text>34r52345</text>
<graphic/>
</innerContent>
<subContentB>
<subHyperLink>CCCCCCCCCCCCCCC</subHyperLink>
<innerContent>
<text>drtgert</text>
<graphic/>
</innerContent>
<subContentC>
<subHyperLink>DDDDDDDDDDDDDDD</subHyperLink>
<innerContent>
<text>wertwertwert</text>
<graphic>
</graphic>
</innerContent>
</subContentC>
</subContentB>
</subContentA>
</Content>
 
Old December 27th, 2010, 06:24 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Thumbs up

Please post the output required from the xml you have posted.
__________________
Rummy





Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with nested do while loop hddavie Classic ASP Basics 3 November 12th, 2009 05:00 PM
Nested For-Each Loop In XSLT dghosh XSLT 10 July 2nd, 2008 04:34 AM
QueryTables nested loop Sherman McCoy Excel VBA 0 June 4th, 2008 02:37 PM
nested loop adnan2 Java Basics 1 July 13th, 2007 04:21 PM
Nested Do Until Loop goels Access VBA 2 September 30th, 2004 08:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.