Subject: [xsl] count cells for each table From: "Braumüller, Hans" <H.Braumueller@xxxxxxxxxxxx> Date: Mon, 24 Mar 2003 11:37:18 +0100 |
Hi friends, excuse my newbie question, but i cannot get it by the exmaples of the FAQ. I am trying to count my elements "col" for each node table: <body> <table name="first"> <row> <col/> <col/> <col/> <col/> </row> </table> <table name="second"> <row> <col/> <col/> <col/> <col/> </row> </table> </body> i am applying the same recursive templates for the two tables and i am trying to output following for each table, counting their corresponding cells. TABLE FIRST col0 col1 col2 TABLE SECOND col0 col1 col2 By <xsl:variable name="col" select="count(preceding::col)"/> in my template rule for col i get. TABLE FIRST col0 col1 col2 TABLE SECOND col3 col4 col5 Thanks, Hans Braumüller -- + -- Mail Art Not War http://crosses.net XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Grouping, Jarno . Elovirta | Thread | RE: [xsl] count cells for each tabl, Jarno . Elovirta |
Re: [xsl] transforming xhtml questi, David Carlisle | Date | RE: [xsl] count cells for each tabl, Jarno . Elovirta |
Month |