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

Problem with constructing a tree

Subject: Problem with constructing a tree
From: "Yash" <yashdeep@xxxxxxxxxxx>
Date: Sat, 27 Jul 2002 11:53:12 +0530
constructing a tree
Hi,
I have a problem where I need to construct a tree from an xml file:
The xml file looks like this:
<feeAgreement>
     <feeClauses clauseid="1" rootclause="false">
          <computationUnit name="xxxx">
                  <complexComputationUnit clauseid="2"/>
          </computationUnit>
     </feeClauses>
    <feeClauses clauseid="2" rootclause="false">
          <computationUnit name="yyyy">
                 <complexComputationUnit clauseid="3"/>
          </computationUnit>
     </feeClauses>
    <feeClauses clauseid="3" rootclause="false">
          <computationUnit name="zzzz">
               <complexComputationUnit clauseid="1"/>
          </computationUnit>
     </feeClauses>
</feeAgreement>

Now, I would like to typically use recursion to construct the tree, starting
at the first feeClauses element. When I get to the complexComputationUnit
element's clauseid attribute, I would like to go over and find the clause
with the clauseid specified here.
The problem is, I need to know if the clause is already present, as in the
case of clause 3, which refers to clause 1. Here, I need not get the first
clause.
I cannot seem to think of a way of checking while transforming whether I
have the clause already in the transformed part.
Any help would be greatly appreciated.
Thanks,
Yashdeep Patil.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.