This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Breadth First Traversal
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Breadth First Traversal
- From: Dan Diebolt <dandiebolt at yahoo dot com>
- Date: Wed, 2 May 2001 17:52:03 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
I need to traverse the attached XML *Breadth* First, at each
a node calling template name="DoSomething". Identified by @id,
the order needed is as follows:
1
1.1 1.2 1.3
1.1.1 1.1.2 1.1.3
1.2.1 1.2.2 1.2.3
1.3.1 1.3.2 1.3.3
1.1.1.1 1.1.1.2 1.1.1.3
1.1.2.1 1.1.2.2 1.1.2.3
1.1.3.1 1.1.3.2 1.1.3.3
1.2.1.1 1.2.1.2 1.2.1.3
1.2.2.1 1.2.2.2 1.2.2.3
1.2.3.1 1.2.3.2 1.2.3.3
1.3.1.1 1.3.1.2 1.3.1.3
1.3.2.1 1.3.2.2 1.3.2.3
1.3.3.1 1.3.3.2 1.3.3.3
Regards,
Dan
-----------------------
<a id="1">
<a id="1.1">
<a id="1.1.1">
<a id="1.1.1.1"/>
<a id="1.1.1.2"/>
<a id="1.1.1.3"/>
</a>
<a id="1.1.2">
<a id="1.1.2.1"/>
<a id="1.1.2.2"/>
<a id="1.1.2.3"/>
</a>
<a id="1.1.3">
<a id="1.1.3.1"/>
<a id="1.1.3.2"/>
<a id="1.1.3.3"/>
</a>
</a>
<a id="1.2">
<a id="1.2.1">
<a id="1.2.1.1"/>
<a id="1.2.1.2"/>
<a id="1.2.1.3"/>
</a>
<a id="1.2.2">
<a id="1.2.2.1"/>
<a id="1.2.2.2"/>
<a id="1.2.2.3"/>
</a>
<a id="1.2.3">
<a id="1.2.3.1"/>
<a id="1.2.3.2"/>
<a id="1.2.3.3"/>
</a>
</a>
<a id="1.3">
<a id="1.3.1">
<a id="1.3.1.1"/>
<a id="1.3.1.2"/>
<a id="1.3.1.3"/>
</a>
<a id="1.3.2">
<a id="1.3.2.1"/>
<a id="1.3.2.2"/>
<a id="1.3.2.3"/>
</a>
<a id="1.3.3">
<a id="1.3.3.1"/>
<a id="1.3.3.2"/>
<a id="1.3.3.3"/>
</a>
</a>
</a>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list