Re: Implementing Change bars
Hi Stephan, I wanted to know if this feature was checked in. Thanks, David -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38717.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Implementing Change bars
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-colorblack/xsl:attribute xsl:attribute name=border-after-colorwhite/xsl:attribute xsl:attribute name=border-before-colorwhite/xsl:attribute xsl:attribute name=border-end-stylesolid/xsl:attribute xsl:attribute name=font-family select=$default-font/ xsl:attribute name=padding-end13pt/xsl:attribute xsl:attribute name=border-end-width2pt/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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Implementing Change bars
Thanks for the quick response. what element are these attributes getting set on? I have nested fo:blocks that have margins, and I need the change bar to always be in the same location in the page margin (right or left side depending on even or odd page) Date: Tue, 18 Jun 2013 05:48:44 -0700 From: ml-node+s1065347n38718...@n5.nabble.com To: drev...@hotmail.com Subject: Re: Implementing Change bars 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-colorblack/xsl:attribute xsl:attribute name=border-after-colorwhite/xsl:attribute xsl:attribute name=border-before-colorwhite/xsl:attribute xsl:attribute name=border-end-stylesolid/xsl:attribute xsl:attribute name=font-family select=$default-font/ xsl:attribute name=padding-end13pt/xsl:attribute xsl:attribute name=border-end-width2pt/xsl:attribute /xsl:if /xsl:template If you reply to this email, your message will be added to the discussion below: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38718.html To unsubscribe from Implementing Change bars, click here. NAML -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38719.html Sent from the FOP - Users mailing list archive at Nabble.com.
RE: Implementing Change bars
the outer most fo:block... If should work with alternating page margins. My odd pages have a 1 inch margin on the left and my even has a 1in margin on the right and it works. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38720.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org