Code: Select all
<xsl:variable name="contents"><xsl:value-of disable-output-escaping="yes" select="substring-before(substring-after(.,'content="'), '"')"/></xsl:variable>
<xsl:for-each select="exslt:node-set($contents)">
<xsl:apply-templates select="." mode="deleted"/>
</xsl:for-each>
Code: Select all
<xsl:template match="p" mode="deleted" >
<xsl:message>delete::para hit</xsl:message>
<fo:inline color="blue" text-decoration="line-through">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match="text()" mode="deleted" >
<xsl:message>delete::text() hit</xsl:message>
<fo:inline color="red" text-decoration="line-through">
<xsl:value-of select="."/>
</fo:inline>
</xsl:template>
Any tips or suggestions are very appreciated. Thanks.
Brian