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

Switching Between Two Column Mode and One Column Mode

Subject: Switching Between Two Column Mode and One Column Mode - Peek Ahead?
From: "kent" <kent@xxxxxxxxxxxxxxxxx>
Date: Mon, 23 May 2005 14:56:55 +0100
two column to onecolumn
Hi-ya

I am trying to transform a rss feeds.

Often they are circa 250 characters and then sometimes they have loads of
text.

When they are short I would like to format them (in html) into two columns
and when they are long I leave them in one column.

Currently one column mode looks like 

<xsl:for-each select="rss/channel/item">
	table and contents
</xsl:for>


But I can't get my head around the problem of switching columns. 

I have no problem testing the length. 

But let's say I find a short one, well I should also test that the next one
is short, how do I peek ahead? And then say the next one is a short one how
do I get it's value, and skip it during the next iteration?

Any help would be grand, thanks

kent

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.