|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








