RE: [xsl] following-sibling or grouping maybe

Subject: RE: [xsl] following-sibling or grouping maybe
From: Matts Isuls <matts.isuls@xxxxxxxxxxx>
Date: Wed, 8 May 2002 16:27:55 +0300
Yes, yes it helps. You have solved it! I am very happy. Thank you.

matts isuls

-----Alkuperäinen viesti-----
Lähettäjä: G. Ken Holman xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Lähet.: 8.5.2002 15:59
Aihe: Re: [xsl] following-sibling or grouping maybe

At 2002-05-08 12:53 +0300, Matts Isuls wrote:
>I dont
>want to add any more cells to the HTML rows if the current cell's
<data> and

You were not handling the current cell in your initial attempt.

>or the following cells on the same row are empty.

You were trying here, but you didn't consider white space.

>the XSL below produces this:
>1 aa 2 bb 3 4
>1 aa 2 3 4 dd
>but i would like it this way:
>1 aa 2 bb
>1 aa 2 3 4 dd

You were very close.  All I did from your version was consider the 
normalized value of the sibling and include a test for the current node.

Normalization removes leading and trailing white space and collapses 
consecutive sequences of white space to a single space.  This allows one
test for "no content" when white space isn't significant.  Otherwise,
space is significant without stylesheet commands to prune the source

I hope this helps.

................ Ken

 XSL-List info and archive:

Current Thread