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

RE: Constructing a tree from leaf nodes (knowing the t

Subject: RE: Constructing a tree from leaf nodes (knowing the tree structure)?
From: "Trevor Nicholls" <trevor@xxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Apr 2007 17:50:35 +1200
RE:  Constructing a tree from leaf nodes (knowing the t
As I understand it (sorry if this duplicates other posts submitted
meantime):

There is a structure tree and a data tree.
The structure tree is fixed and complete.
The data tree is variable and may contain any element which corresponds to a
descendant-less node (leaf node) in the structure tree (at most one of each
element).

The required output is a merge of the structure tree and the data tree,
where:
 a) for any specific descendant-less (leaf) node in the structure tree:
   - if the data tree contains a matching node with @result true
     then @complete=true and @result=true
   - if the data tree contains a matching node with @result false
     then @complete=true and @result=false
   - if the data tree does not contain a matching node
     then @complete=false and @result=false

 b) for every other node in the structure tree:
   - if the data tree contains every descendant leaf node with @result true
     then @complete=true and @result=true
   - if the data tree contains every descendant leaf node but not all
results are true
     then @complete=true and @result=false
   - if the data tree does not contain every descendant leaf node
     then @complete=false and @result=false

Cheers
T

-----Original Message-----
From: Simon Shutter [mailto:simon@xxxxxxxxxxx] 
Sent: Friday, 20 April 2007 5:15 p.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Constructing a tree from leaf nodes (knowing the tree
structure)?

Dimitre,

I've done my best.  Perhaps someone who does understand the problem as I've
stated it and who also understands what you need to correctly and
unambiguously define the problem can help bridge the gap here.

Simon

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.