I have been able to use the following with XSLT to render change bars with
much success:
<fo:block>
<xsl:call-template name="rev.bar"/>
.....
<xsl:template name="rev.bar">
<xsl:if test="(matches($changetype, 'changed') or
matches($changetype,
'revised') or matches($changetype, 'revised-pending') or
matches($changetype, 'modify')) and not(matches($changetype, 'new'))">
<xsl:attribute
name="border-end-color">black</xsl:attribute>
<xsl:attribute
name="border-after-color">white</xsl:attribute>
<xsl:attribute
name="border-before-color">white</xsl:attribute>
<xsl:attribute
name="border-end-style">solid</xsl:attribute>
<xsl:attribute name="font-family"
select="$default-font"/>
<xsl:attribute name="padding-end">13pt</xsl:attribute>
<xsl:attribute
name="border-end-width">2pt</xsl:attribute>
</xsl:if>
</xsl:template>
--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38718.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]