Quote:
quote:Originally posted by samjudson
Try something like
<xsl:variable name="cond">
<xsl:value-of select="../preceding-sibling::node()[not(@condition='^')][last()]" />
</xsl:variable>
/- Sam Judson : Wrox Technical Editor -/
|
Thanks for prompt reply Sam
but it's not working
I placed it in <fo:block> but it's not returning anything
<xsl:when test="../@refer_condition1='true' and ../@refer_condition2='true'">
<xsl:variable name="cond"/>
<fo:table-cell border-style="thin"
number-columns-spanned="2">
<!--<xsl:for-each select="parent::node()">
<xsl:for-each select="preceding-sibling::node()">
<xsl:if test="not(@condition='^')">
<xsl:variable name="cond" select="@condition"/>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
-->< fo:block start-indent="0pt" font-family="Arial"
language="EN-US" space-before="3pt"
space-before.conditionality="retain" space-after="3pt"
space-after.conditionality="retain" font-size="9pt"
font-style="italic">
<xsl:value-of select="../preceding-sibling::node()[not(@condition='^')][last()]" />
</fo:block>
</fo:table-cell>