xsl-list
[Top] [All Lists]

Joining children attributes with parent

2004-12-03 15:48:08
I'm not too sure if this is even possible in XSLT or if it may be too
slow when implemented (since a parent node may need to be revisited
multiple times), but this is what I'm trying to do:  I'm trying to
join a set of parent's attributes with its children's attributes and
their children's attributes for an arbitrary number of descendants
(this will be displayed in CSV format).  Would be nice if there is a
way to do this bottom up.

input:

parent1
  child1
  child2
parent2
  child3
  child4
    grandchild1
    grandchild2

output (assuming each element is a set of attributes for the element above):

parent1,child1
parent1,child2
parent2,child3
parent2,child4,grandchild1
parent2,child4,grandchild2

Cheers!

-- Ross

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>