RE: RE: [xsl] HTML Table

Subject: RE: RE: [xsl] HTML Table
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 4 Sep 2003 09:35:24 +0300

You want something in the lines of

  <xsl:template match="root">
        <xsl:for-each select="box">
            <xsl:value-of select="@boxref" />
      <xsl:for-each select="box">
        <xsl:sort select="count(tin)" data-type="number" order="descending"/>
        <xsl:if test="position() = 1">
          <xsl:for-each select="tin">
            <xsl:variable name="position" select="position()"/>
              <xsl:for-each select="../../box">
                  <xsl:value-of select="tin[$position]/@tinid"/>

I.e. first process the head, then get the max number of tin children in a box so you know how many rows you need to create, and then loop through the box elements using the tin that is of the "corresponding index".


Jarno - Bruderschaft: Forever (remix by Feindflug feat. Aeroflot)

 XSL-List info and archive:

Current Thread