This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: following-sibling or grouping maybe
- From: Matts Isuls <matts dot isuls at AGROLINK dot FI>
- To: "'xsl-list at lists dot mulberrytech dot com '" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 8 May 2002 16:27:55 +0300
- Subject: RE: [xsl] following-sibling or grouping maybe
- Reply-to: xsl-list at lists dot mulberrytech dot com
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
Vast.ott: xsl-list@lists.mulberrytech.com
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
><comment>
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
to
test for "no content" when white space isn't significant. Otherwise,
white
space is significant without stylesheet commands to prune the source
tree.
I hope this helps.
................ Ken
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list