I recently wanted to do the multiple-column thing too. I've temporarily
put what I came up with here:
http://thistle.ca/temp/folderlist.xsl (stylesheet)
http://thistle.ca/temp/folderlist.xml (sample input)
http://thistle.ca/temp/folderlist.html (output from sample input)
This is using 0.42.
-Mark
-----Original Message-----
From: "Schuetz, David" <[EMAIL PROTECTED]>
Sent: Thu, 7 Sep 2000 09:36:34 -0700
To: Sablotron Mailing List <[EMAIL PROTECTED]>
Subject: RE: [Sab] preceding and following sibling axes
[re: generating "1, 2, and 3"]
I've been able to do this with the last() function -- like "if last() then
", and" else ", ", if you can forgive the non-xsl pseudocode.
On the other hand, I've seen a lot of other axis functions that aren't quite
doing what I want -- not sure if that's a Sablotron limitation, or if I'm
just not doing it right. One thing I've been palying with is trying to do
two-column output, and it took me forever to figure out a kludge that would
let me split a stream of nodes into two different table cells. When I tried
to extend it to three columns (to solve the general case), I simply couldn't
write the tests. I *suspect* that some axis function is the right way to do
this, but got bogged down in problems late last night...
How's the charlie 2-column example work? Is there an easy way to split an
xml stream into n-columns, or are you just saying putting half of a peer
group of paragraphs into one cell, and the other half into the following?
(that's what I've done). Problem with that is when you have very long or
short paragraphs on one side (or they have subordinate elements).
david.