This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Breadth First Traversal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]