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

Re: things about grouping

Subject: Re: things about grouping
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sat, 24 Nov 2012 15:23:11 +0000
Re:  things about grouping
>3. If you group-starting-with it's weird to then see things not encompassed by the starting-with expression appear as a group because they precede the first occurrence of the starting-with expression. While this works as specified because for-each-group is a total function over the population it does result in a mismatch between the grammatical semantic and the exhibited behaviour, or to put it another way it does what it says in the spec but doesn't do what it says on the tin.

Finding element and attribute names that enable people to guess the semantics without reading the spec is not always easy. Som programming languages get around this by using operators like ~:< whose semantics you can't even attempt to guess...

The moral is, don't use any construct in any programming language without reading the spec.

Michael Kay
Saxonica

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.