Re: Table style templates

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 UTC