[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Change bars in PDF (using XEP)
> -----Original Message----- > From: Jere.Kapyaho@nokia.com > > RenderX XEP 4.2 has > support for rx:change-bar-begin and rx:change-bar-end > extensions, which > work the same as their namesakes in the XSL 1.1 draft. [...] > What would be the simplest way to bring this kind of functionality to > the FO --> PDF transformation? I was thinking of augmenting my > stylesheet customization layer so that every element with revisionflag > set would be enclosed in an rx:change-bar-begin / end section, but I > couldn't figure out how to do it. Any ideas would be appreciated. I have done some experiments with this. Here is what I have so far (briefly tested with XEP 4.4): <!-- Set to 1 to generate changebars --> <xsl:param name="use.xep.changebars">1</xsl:param> <xsl:template match="*[@revisionflag='changed']"> <xsl:choose> <xsl:when test="$use.xep.changebars != 0 and $xep.extensions != 0"> <xsl:variable name="class" select="generate-id(.)"/> <rx:change-bar-begin change-bar-class="{$class}" change-bar-placement="outside" change-bar-style="solid" change-bar-color="red" xmlns:rx="http://www.renderx.com/XSL/Extensions"/> <xsl:apply-imports/> <rx:change-bar-end change-bar-class="{$class}" xmlns:rx="http://www.renderx.com/XSL/Extensions"/> </xsl:when> <xsl:otherwise> <xsl:apply-imports/> </xsl:otherwise> </xsl:choose> </xsl:template> /MJ
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]