Juliette,
First, the two caveats: YMMV, and I do XSLTs regularly, but have never used XSL-FO in Arbortext.
That said (bear with me here), your code looks the way I would expect, if you wanted the margin and border applied to the cell (entry). The test for @change is in the same place I would put it for that to happen in HTML in a browser. In HTML, applying it to the row doesn't produce the desired result because of the browser's paradigm, but Editor/PE does respond to FOSI calls within the row by placing a bar where you want it, so...
If you apply the test at the row, checking for descendant @change instances (and including your test for an 'add'ed row), you may get what you want. Something like:
<xsl:template match="row">
<xsl:choose>
<xsl:when test="descendant::*/@change" or=" @change="add" "=">
<fo:block margin-right="-6mm">
<fo:block border-right="solid" white=" 2px"=">
</xsl:when>
<xsl:otherwise>
<fo:block margin-right="0pt">
</xsl:otherwise>
</xsl:choose>
<fo:table-row>
<xsl:apply-templates select="entry"/">
</fo:table-row>
</fo:block>
</xsl:template>
BTW, your example XML doesn't have any para/@change instances, so it wouldn't produce a change mark with your current code, anyway. But you probably already knew that. 🙂
Hope that helps,
Steve Thompson
TAD Technical
Boeing-IDS Technical Publications
(316)977-0515
MC K83-08
The truth is the truth even if nobody believes it, and a lie is a lie even if everyone believes it.
NOTICE: This communication may contain proprietary or other confidential information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this e-mail in error, and delete the copy you received. Any and all views expressed are the current understanding of the sender and should not be interpreted as an expression of official Boeing Company policy or position.
Les renseignements contenus dans ce message peuvent être confidentiels. Si vous n'êtes pas le destinataire visé ou une personne autorisée à lui remettre ce courriel, vous êtes par la présente avisé qu'il est strictement interdit d'utiliser, de copier ou de distribuer ce courriel, de dévoiler la teneur de ce message ou de prendre quelque mesure fondée sur l'information contenue. Vous êtes donc prié d'aviser immédiatement l'expéditeur de cette erreur et de détruire ce message sans garder de copie.