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

Re: Table breaks AND multi-level sorting (and confusio

Subject: Re: Table breaks AND multi-level sorting (and confusion)
From: Rob Wygand <rob@xxxxxxxxxx>
Date: Wed, 07 Feb 2001 12:01:03 -0800
xml table break
Sorry about the sample, it was late and I just plain lost track of what I was doing...

I guess I will need to use an extension function, as I do not have the luxury of using two stylesheets. I'm using Xalan, which has such a function, but the documentation on it is very, very weak which is why I have been avoiding it thus far.

Thanks for your assistance.
rjw

Michael Kay wrote:

This definitely calls for a two-pass transformation: first sort, then
arrange into columns. Either use the node-set() extension function to turn
the output of the first pass into the input of the second, or use two
separate stylesheets.

Incidentally, it's very confusing to be told that you want the output five
columns wide and then be given sample output that is two columns wide.
Perhaps that's why you chose the subject heading you did.

Mike Kay


Given the following XML:

<response>
   <item type="a" name="abc"/>
   <item type="b" name="yyy"/>
   <item type="a" name="xyz"/>
   <item type="a" name="cde"/>
   <item type="b" name="aaa"/>
   ...
</response>

I need to generate to generate a table in HTML that is 5
columns wide, sorted fiorst by type and second by name such as this:

<table>
   <tr>
     <td>abc</td>
     <td>cde</td>
   </tr>
   <tr>
     <td>xyz</td>
     <td>aaa</td>
   </tr>
   <tr>
     <td>yyy</td>
     <td></td>
   </tr>
   ...
</table>




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.