Hi,
_______________________________________________________________
o people forget to declare border-style, which is "none" by default and
efffectively means no border
__________________________________________________________________
this answer helped and worked. Thank you.
I still have a logical question:
I have thousands of elements with the same name, here "NUMBER". At the
beginning I want to have a table with whatsoever, then a table with 20 rows
of elements "NUMBER". Then again a table with whatsoever, then a table
with 20 rows of elements "NUMBER", bla,bla,bla. A kind of a loop.
My code so far:
....
<xsl:template match="RESULTSET/CDRS">
<xsl:apply-templates/>
</xsl:template>
<!-- After 20 rows another table with XXXX
<xsl:template match="NUMBER[position() mod 20=1]">
<fo:block space-before.optimum="30pt"
space-after.optimum="15pt">
<fo:table width="450pt" border-color="black" border-style="solid"
border-width="0.5pt">
<fo:table-column column-number="1" column-width="225pt"/>
<fo:table-column column-number="2" column-width="225pt"/>
<fo:table-body>
<fo:table-row font-size="8pt">
<fo:table-cell column-number="1">
<fo:block>Wert: XXXX</fo:block>
</fo:table-cell>
<fo:table-cell column-number="2">
<fo:block>Wert: XXXX</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row font-size="8pt">
<fo:table-cell column-number="1">
<fo:block>Wert: XXXX</fo:block>
</fo:table-cell>
<fo:table-cell column-number="2">
<fo:block>Wert: XXXX</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
<fo:table width="450pt">
<fo:table-column column-number="1" column-width="150pt"/>
<fo:table-column column-number="2" column-width="150pt"/>
<fo:table-column column-number="3" column-width="150pt"/>
<fo:table-body>
<fo:table-row font-size="8pt">
<fo:table-cell column-number="1">
<fo:block><xsl:value-of select="@MD_CHAR"/></fo:block>
</fo:table-cell>
<fo:table-cell column-number="2">
<fo:block><xsl:value-of select="@MD_CALL1"/></fo:block>
</fo:table-cell>
<fo:table-cell column-number="3">
<fo:block><xsl:value-of select="@MD_CALL2"/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="NUMBER">
<fo:table width="450pt">
<fo:table-column column-number="1" column-width="150pt"/>
<fo:table-column column-number="2" column-width="150pt"/>
<fo:table-column column-number="3" column-width="150pt"/>
<fo:table-body>
<fo:table-row font-size="8pt">
<fo:table-cell column-number="1">
<fo:block><xsl:value-of select="@MD_CHAR"/></fo:block>
</fo:table-cell>
<fo:table-cell column-number="2">
<fo:block><xsl:value-of select="@MD_CALL1"/></fo:block>
</fo:table-cell>
<fo:table-cell column-number="3">
<fo:block><xsl:value-of select="@MD_CALL2"/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
....
This code works and gives me the wanted output. But it seems awfully
complicated, redundant and "not the way to head".
Could anyone think of a better way.
Thanks
Jonny
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list