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 Vast.ott: 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 ><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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] following-sibling or grou, Steve Rosenberry | Thread | RE: [xsl] Output XML doc with XSL d, TSchutzerWeissmann |
Re: [xsl] question about javascript, Oleg Tkachenko | Date | Re: [xsl] Transformation in NetScap, Oleg Tkachenko |
Month |