</xsl:choose>
</xsl:variable>
+ <xsl:variable name="block.content">
+ <xsl:choose>
+ <xsl:when test="$shade.verbatim != 0">
+ <fo:block id="{$id}"
+ xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style">
+ <xsl:choose>
+ <xsl:when test="$hyphenate.verbatim != 0 and
+ function-available('exsl:node-set')">
+ <xsl:apply-templates select="exsl:node-set($content)"
+ mode="hyphenate.verbatim"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$content"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:block>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:block id="{$id}"
+ xsl:use-attribute-sets="monospace.verbatim.properties">
+ <xsl:choose>
+ <xsl:when test="$hyphenate.verbatim != 0 and
+ function-available('exsl:node-set')">
+ <xsl:apply-templates select="exsl:node-set($content)"
+ mode="hyphenate.verbatim"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$content"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<xsl:choose>
- <xsl:when test="$shade.verbatim != 0">
- <fo:block id="{$id}"
- xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style">
- <xsl:choose>
- <xsl:when test="$hyphenate.verbatim != 0 and function-available('exsl:node-set')">
- <xsl:apply-templates select="exsl:node-set($content)" mode="hyphenate.verbatim"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$content"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
+ <xsl:when test="@width != ''">
+ <fo:block-container start-indent="0pt" end-indent="0pt">
+ <xsl:attribute name="width">
+ <xsl:value-of select="concat(@width, '*', $monospace.verbatim.font.width)"/>
+ </xsl:attribute>
+ <xsl:copy-of select="$block.content"/>
+ </fo:block-container>
</xsl:when>
<xsl:otherwise>
- <fo:block id="{$id}"
- xsl:use-attribute-sets="monospace.verbatim.properties">
- <xsl:choose>
- <xsl:when test="$hyphenate.verbatim != 0 and function-available('exsl:node-set')">
- <xsl:apply-templates select="exsl:node-set($content)" mode="hyphenate.verbatim"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$content"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
+ <xsl:copy-of select="$block.content"/>
</xsl:otherwise>
</xsl:choose>
+
</xsl:template>
<xsl:template match="literallayout">