![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Displaying a table column by column [Thread Next] Re: Displaying a table column by columnTo: NULL Date: 2/15/2007 12:59:00 AM On 14 f=E9v, 17:59, Martin Honnen <mahotr...@yahoo.de> wrote: > cedric.lou...@gmail.com wrote: > > I've just found another solution which is a bit different from yours : > > > <table> > > <tbody> > > <xsl:for-each select=3D"col[1]/line"> > > <xsl:variable name=3D"numLine" select=3D"position()"/> > > <tr> > > <xsl:for-each select=3D"../../col"> > > <xsl:variable name=3D"numCol" select=3D"position()"/> > > <td> > > <xsl:value-of select=3D"."/> > > </td> > > </xsl:for-each> > > </tr> > > </xsl:for-each> > > </tbody> > > </table> > > > You use templates (whereas I don't) which makes your solution > > clearer. > > However you use the following-sibling axes and I don't use it (I use > > another xsl:variable instead). > > Somehow what you posted does not look complete. Where do you use the > variables? > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ You're right, I forgot a line. Here is the thorough file: > > <table> > > <tbody> > > <xsl:for-each select=3D"col[1]/line"> > > <xsl:variable name=3D"numLine" select=3D"position()"/> > > <tr> > > <xsl:for-each select=3D"../../col"> > > <xsl:variable name=3D"numCol" select=3D"position()"/> > > <td> > > <xsl:value-of select=3D"/col[$numCol]/*[position()=3D$numLi= ne]"/> > > </td> > > </xsl:for-each> > > </tr> > > </xsl:for-each> > > </tbody> > > </table> | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
