[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Switching Between Two Column Mode and One Column Mode - Peek Ahead?


Subject: Re: [xsl] Switching Between Two Column Mode and One Column Mode - Peek Ahead?
From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx>
Date: Mon, 23 May 2005 16:02:58 +0200

Hi Kent,
I am not quite sure what you mean. Is it the total amount of length
for all description elements, that is the base of whether to use one
or two coloumns?

Then it would be something like:
<xsl:variable name="testlength">
  <xsl:for-each select="rss/channel/item/description">
    <xsl:value-of select="text()"/> <!-- Presumed only text, not
links, to test -->
  </xsl:for-each>
</xsl:variable>

Then you should be able to test the length of this variable (this is
not tested).

I hope this helps a little.

Regards,
Ragulf Pickaxe :-)


On 5/23/05, kent <kent@xxxxxxxxxxxxxxxxx> wrote:
> Thanks for your interest, I didn't want to clutter up the mail group with a
> lengthy example, but here it goes (actually a short example):
>
> (note the escaped html, very typical in feeds. I need to fire my column
rule
> on the length of the item/description. I would consider these descriptions
> short and therefore format as two columns)


Current Thread