xsl-list
[Top] [All Lists]

Re: [xsl] grouping problem

2011-02-17 04:10:50
Szabo, Patrick (LNG-VIE) wrote:

I'm using XSLT 2.0 and Saxon 9

I got the following input:

<einzelvorschrift>
     <zaehlung normiert="Art. 2" nr="--TODO--" ordnungszeichen="--TODO--">Art. 
2</zaehlung>
     <abatz typ="jur_start"><gldsym>Artikel 2.</gldsym>  (1) Österreich ist ein 
Bundesstaat.</abatz>
     <abatz typ="jur_start">(2) Der Bundesstaat wird gebildet aus den selbständigen 
Ländern:</abatz>
     <absatz typ="erltext" ct="text" halign="j">Burgenland, Kärnten, Niederösterreich, 
Oberösterreich,</absatz>
     <abatz typ="jur_start">(3) Änderungen im Bestand der</abatz>
</einzelvorschrift>

Well at least with the above sample input you have the problem that there are typos in several element names e.g. you have "abatz" instead of "absatz" and that way your XSLT code


                <xsl:for-each-group select="* except zaehlung" 
group-starting-with="absatz[@typ='jur_start']">

doesn't do what you want (as here you have starting-with="absatz[...]").

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

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