[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Antwort: Re: <fo:table border-xxx won't appear

Subject: Antwort: Re: <fo:table border-xxx won't appear
From: Johannes.Becker@xxxxxx
Date: Tue, 19 Nov 2002 09:52:48 +0100
fo table width
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.