OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]