xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bonekrusher <djs...@yahoo.com>
Subject Re: Implementing Change bars
Date Tue, 18 Jun 2013 12:48:44 GMT
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message