[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: grouping problem

Subject: Re: grouping problem
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 17 Feb 2011 11:10:35 +0100
Re:  grouping problem
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) Csterreich ist ein Bundesstaat.</abatz>
     <abatz typ="jur_start">(2) Der Bundesstaat wird gebildet aus den selbstC$ndigen LC$ndern:</abatz>
     <absatz typ="erltext" ct="text" halign="j">Burgenland, KC$rnten, NiederC6sterreich, OberC6sterreich,</absatz>
     <abatz typ="jur_start">(3) Cnderungen 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.