W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2008

Re: Table style templates

From: David Carlisle <davidc@nag.co.uk>
Date: Thu, 13 Nov 2008 09:49:14 GMT
Message-Id: <200811130949.mAD9nE6G005421@edinburgh.nag.co.uk>
To: peger@gmx.net
Cc: www-xsl-fo@w3.org


The model for XSL FO is that (more or less) everything is expanded out
in the FO file, but the program that you use to create that file
(usually XSLT) can of course use the features of that language to
organise the generation.

here for example it looks like you could use a named template, something
like 

<xsl:template name="cell">
  <xsl:param name="body"/>
      <fo:table-cell padding-before="1pt" padding-after="1pt"
padding-start="2pt" padding-end="2pt"
        border-style="solid">
      <fo:block><xsl:value-of select="$body/></fo:block>
    </fo:table-cell>
</xsl:template>

Then

<xsl:call-template>
  <xsl:param name="body" select="format"/>
</xsl:call-template>
<xsl:call-template>
  <xsl:param name="body" select="sector"/>
</xsl:call-template>

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
Received on Thursday, 13 November 2008 09:49:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 November 2008 09:49:58 GMT