Re: [docbook-apps] Small paper size

From
Anup Rav <>
Date
2005-07-13T07:50:33+00:00
ID
Thread
Re: [docbook-apps] Small paper size
Hi Jacques,

You can use the xsl:choose element for customizing each and every
param, attribute-sets, variables as per applicability in following
manner:

<xsl:param name="body.margin.bottom">
  <xsl:choose>
    <xsl:when test="$paper.type = "'A4'">0.25in</xsl:when>
    <xsl:when test="$paper.type = 'A5'">0.45in</xsl:when>
    <xsl:otherwise>0.5in</xsl:otherwise>
  </xsl:choose>
</xsl:param>

This would help you to maintain the stylesheets as all customized code
would be in same files (No need to create another set of XSL files).
Also such xsl:choose can  be upgraded to another format that you may
want incorporate in future.

regards,
Anup Rav.