RE: [xsl] flatten a hierachy and change positions

Subject: RE: [xsl] flatten a hierachy and change positions
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 24 Sep 2003 17:39:23 +0100
> I looked up the list and books but still don't get a clue 
> which method to choose.  I want to flatten a hierachy and 
> change positions, the way the following example shows:
> 
> I have:
> 
> <g1>
> <u1><s></s></u1>
> <g2>
> <u2></u2>
> </g2>
> 
> I need:
> 
> <u1></u1>
> <s></s>
> <g1></g1>
> <u2></u2>
> <g2></g2>
> 

It's not possible (for me at any rate) to deduce from this input and
output what your transformation rules are. Why exactly does <u1> come
first in your output and <g1> come third? And where is the closing </g1>
tag?

Michael Kay


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


Current Thread