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

RE: following-sibling or grouping maybe

Subject: RE: following-sibling or grouping maybe
From: Matts Isuls <matts.isuls@xxxxxxxxxxx>
Date: Wed, 8 May 2002 16:27:55 +0300
RE:  following-sibling or grouping maybe
 
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@xxxxxxxxxxxxxxxxxxxxxx
Lähet.: 8.5.2002 15:59
Aihe: Re:  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


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.