xsl-list
[Top] [All Lists]

RE: convert following-sibling to be childs

2005-03-30 13:03:39
Do a search for "XSLT positional grouping". It's a tricky problem in XSLT
1.0 but there are well-known solutions.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: 04083259(_at_)brookes(_dot_)ac(_dot_)uk 
[mailto:04083259(_at_)brookes(_dot_)ac(_dot_)uk] 
Sent: 30 March 2005 19:50
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] convert following-sibling to be childs

hi
in a   big xml database i need  to turn some following 
sibling elements
into childs of that element:

if we have the following database :

<top>
<set1/><x/><y/><y/><x/><y/><set2/><x/><y/><x/><y/><x/><y/><y/><x/><y/>
<set3/><x/><x/><y/><x/><y/>x/><y/><x/><y/><x/><y/>

</top>

i want all the following sibling  <x/>and <y/> of the element 
<set1> until
we reach the <set2/> to be childs of <set1/>
the same with <x/> and <y/> following set2
and the same with <x/> and <y/> following <set3/>


--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>