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

Re: Value of variable not appearing in the <xsl:other

Subject: Re: Value of variable not appearing in the <xsl:otherwise> of xml:choose
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Sep 2021 18:28:43 -0000
Re:  Value of variable not appearing in the  <xsl:other
On Wed, Sep 22, 2021 at 05:46:12PM -0000, Michael Kay mike@xxxxxxxxxxxx
scripsit:
> > Especially if you find Wendell's observation above covers your use
> > cases, it won't apply this time, but in general, I find that if I'm
> > struggling with xsl:for-each-group, I should -- and sometimes I even
> > do!  -- remember that xsl:for-each-group is not fully general. There
> > comes a time to write one's own recursive grouping function for this
> > particular case.
> 
> I've found very few use cases that it doesn't cover, 

I have only really found one; flattening block container elements which
allow mixed content directly in the block container and where the child
blocks may or may not be grouped with each other depending on which
child block it is and what siblings it has.

As I need to deal with this case fairly often, it gets more mental
prominence than perhaps it should.

> though XQuery windowing offers a lot of options that
> xsl:for-each-group doesn't, and perhaps they're useful to someone...
> Such as starting a new group whenever @x on the current item is less
> than @x on the previous item. Sometimes you can handle these by
> binding a variable to the items that match the condition, and then
> using this variable in your group-starting pattern.

Permit me to be thankful that I haven't had to deal with that one!

-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

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.