Subject:Need help with FO:Table-row Author:Jerry Janofsky Date:12 Oct 2007 06:17 PM
I am trying to do something with a fo:table that I think should be straight forward, but I am having difficulty. Below I will give a simplified example of what I am trying to do.
Subject:Need help with FO:Table-row Author:Jerry Janofsky Date:12 Oct 2007 06:40 PM
Please excuse the previous two postings, they posted accidently.
I am trying to do something with a fo:table that I think should be straight forward, but I am having difficulty. Below I will give a simplified example of what I am trying to do.
I want to make a table that has 3 columns of names. The first column has the first person's name, the second column has the second person's name, the third the third person's name. The fourth person would start a new row. The above XML example should have generate a two table row like this
Joe Jason Jimmy
Julie Jane
I am having trouble with this. I tried doing something with a for-each as shown below. My syntax here might be a little off, but I think you can get the picture. I didn't include fo:table but assume the parent table elements are present. My attempt below doesn't work at all because I get "unexpected characters in element end tag (expected "fo:table-row"). I don't really understand why? There is probably a much simpler way to do this. Your help will be appreciated.
<xsl:for-each select="$PersonsGroup">
<xsl:if test="(position() mod 3) = 0">
<fo:table-row>
</xsl:if>
Subject:Need help with FO:Table-row Author:Jerry Janofsky Date:13 Oct 2007 11:54 AM
I figured out my problem. What I have below works. I was getting invalid XML from the XML parser. I had to CDATA the fo:table-row elements. Thanks all who attempted to help.
<xsl:for-each select="$PersonsGroup">
<xsl:if test="(position() mod 1) = 0">
<![CDATA[<fo:table-row>]></xsl:if>