This works great when the element that needs the change bar is not nested in an element that has a left margin. Any advise on how to implement when my block is nested and the ancestor has set margin example :-------------------------<data> <p rev="1">text with revbar</p> <note> <p>text in a note No revbar</p> <p rev="1">text in a note with revbar</p> </note></data> ....<xsl:template match="note"> <fo:block xsl:use-attribute-sets="atsNote"> <!-- ( atsNote = <xsl:attribute name="margin">2mm 37mm 0mm 37mm</xsl:attribute>) --> <xsl:apply-templates /> </fo:block></xsl:template> <xsl:template match="p"> <fo:block> <xsl:call-template name="rev.bar" /> <xsl:apply-templates /> </fo:block></xsl:template>..... The p that is out of the note works well, however in the note does not. The Note is just one example of an ancestor block that effects the margins there are many others so I dont want to create a template match for "note/p" Thanks,David Date: Tue, 18 Jun 2013 07:33:37 -0700 From: ml-node+s1065347n38720...@n5.nabble.com To: drev...@hotmail.com Subject: 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. 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-tp16058p38720.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-tp16058p38728.html Sent from the FOP - Users mailing list archive at Nabble.com.