xsl-list
[Top] [All Lists]

[xsl] grouping-problem i guess

2008-11-20 08:18:58
Hi, 
 
I use XSLT 2.0 and Saxon 9.
 
extract from my xml (a little simplified):

///////////////////////////////////////////////////////// 
<liste>
        <ziffernliste>
                <listelem><symbol >1.</symbol>text</listelem>
                <listelem><symbol >2.</symbol>text</listelem>
        </ziffernliste>
        <schluss>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</schluss>
        <schluss>YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY</schluss>
</liste>
//////////////////////////////////////////////////////////

should be transformed into:

//////////////////////////////////////////////////////////
<nummerierte-liste>
            <listnum>1.</listnum>
            <punkt>
               <absatz>text</absatz>
            </punkt>
            <listnum>2.</listnum>
            <punkt>
               <absatz>text</absatz>
               <absatz>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</absatz>
                   <absatz>YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY</absatz>
            </punkt>
         </nummerierte-liste>
////////////////////////////////////////////////////////////// 

My xsl already produces what i want ecept for 1 thing:

I just can´t figure out how to put the "schluss" elements at their place O_o.
The Problem is that i can´t just use following-sibling::schluss because in 
<list> can be other lists with other "schluss" elements following.

Any idea ?!

cheers   

Patrick Szabo
EPD / XSLT Konvertierung
Tel.: +43-1-534 52-1573
Fax.: +43-1-534 52-1573
patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
www.lexisnexis.at <http://www.lexisnexis.at/> 

 <file://C:\Dokumente und 
Einstellungen\szaboP\Anwendungsdaten\Microsoft\Signatures\LN Vienna 
signature-Dateien\image001.jpg> 




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