Empty Sub-Library Address Lines in Forms Leave Empty Space at Form Top
- Article Type: General
- Product: Aleph
- Product Version: 18.01
Description:
If the empty sublibrary address lines are set up to print even when they're empty, the top of your letters may have many extra, empty lines. They can be removed by putting a condition in the sub-library address section that only lets sub-library address lines print if they have content.
Resolution:
This example is from plain-funcs-address.xsl. The same or a similar change can be used in funcs-address.xsl's sublib-address template. Replace the entire sublib-address template with the template below, making appropriate local changes, if necessary.
<xsl:template name="sublib-address">
<xsl:value-of select="//sub-library-address-1-occ1"/>
<xsl:call-template name="new-line"/>
<xsl:if test="sub-library-address-1-occ2!=''">
<xsl:value-of select="//sub-library-address-1-occ2"/>
<xsl:call-template name="new-line"/>
</xsl:if>
<xsl:if test="sub-library-address-1-occ3!=''">
<xsl:value-of select="//sub-library-address-1-occ3"/>
<xsl:call-template name="new-line"/>
</xsl:if>
<xsl:if test="sub-library-address-1-occ4!=''">
<xsl:value-of select="//sub-library-address-1-occ4"/>
<xsl:call-template name="new-line"/>
</xsl:if>
<xsl:if test="sub-library-address-1-occ5!=''">
<xsl:value-of select="//sub-library-address-1-occ5"/>
<xsl:call-template name="new-line"/>
</xsl:if>
<xsl:if test="sub-library-address-1-occ6!=''">
<xsl:value-of select="//sub-library-address-1-occ6"/>
<xsl:call-template name="new-line"/>
</xsl:if>
<xsl:if test="sub-library-address-1-occ7!=''">
<xsl:value-of select="//sub-library-address-1-occ7"/>
<xsl:call-template name="new-line"/>
</xsl:if>
</xsl:template>
- Article last edited: 10/8/2013