Here is what I have so far. What I need is a have a two column table based on a list of category elements. So in a list <Cat1,Cat2,Cat3,Cat4> I want a table like.

Cat1 ----- Cat2
Cat3 ----- Cat4

The logic seems right to me but I get the following error.

javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The element type "fo:table-row" must be terminated by the matching end-tag "</fo:table-row>".


<fo:table-body>
        <xsl:for-each select="category">

            <xsl:if test="(position() mod 2) = 1">
                <fo:table-row>
            </xsl:if>

              <fo:table-cell>
                <fo:block>

                    Poisition <xsl:value-of select="position()"/>
                    Last <xsl:value-of select="last()"/>
                  <xsl:apply-templates select="."/>
                </fo:block>
              </fo:table-cell>

<xsl:if test="((position() mod 2) = 0) or (position() = last())">
                </fo:table-row>
             </xsl:if>

        </xsl:for-each>
      </fo:table-body>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to