xsl-list
[Top] [All Lists]

Re: count cells for each table

2003-03-24 04:01:33
Hi Jarno,

excuse me, but it is not function with more rows.

in need for each table:

    <row num="1">
      <col/>
      <col/>
      <col/>
      <col/>
    </row>

    <row num="2">
      <col/>
      <col/>
      <col/>
      <col/>
    </row>
etc..
TABLE FIRST
ROW 1
col0
col1
col2
ROW 2
col3
col4
col5
etc...

TABLE SECOND
ROW 1
col0
col1
col2
ROW 2
col3
col4
col5
etc...

Hi,

By <xsl:variable name="col" select="count(preceding::col)"/> 

You want "count(preceding-sibling::col)"

Cheers,

Jarno - Linnunradan käsikirja liftareille: Osa 2

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Thanks,

Hans Braumüller 
-- + -- 
Mail Art Not War
http://crosses.net

 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>