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

Re: Complicated grouping and column question

Subject: Re: Complicated grouping and column question
From: Will McCutchen <mccutchen@xxxxxxxxx>
Date: Wed, 29 Jun 2005 18:00:32 -0500
will mccutchen
> Not directly relevant, but
>
>                     <xsl:apply-templates
> select="/schedule/division[substring(@name,1,1) = $current-letter]">
>
> would be better written
>
> <xsl:apply-templates select="current-group()"/>

David Carlisle pointed that out, and I made the change.

> I suspect your problem is an HTML problem not an XSLT one: as far as I can
> tell you are trying to work out what HTML you want to generate, not what
> XSLT you need to write to generate it. So this may not be the best list to
> help you.

No, my problem had nothing to do with HTML.  My problem was trying to
figure out how to split a fairly complicated piece of output into two
columns.  The problem would have been the same if I were outputting to
plain text.  David Carlisle also provided the solution to that, which
was to generate the whole, sorted list into a variable, and then
select into that variable to break it in half.  That might not be very
clear, though, since I feel like I just butchered it in the
explanation.

Maybe I just did a poor job explaining myself from the get-go, though.
 Thanks for your help (and for Saxon, without which I would be up a
creek sans paddle)!



Will.

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.