- From: David Carlisle <davidc@nag.co.uk>
- Date: Thu, 13 Nov 2008 09:49:14 GMT
- 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 UTC