Hi,
I have the following template snippet:
<xsl:template match="paragraph">
<xsl:apply-templates/>
<xsl:if test="child::node()[position()=last()]=text()">
<xsl:call-template name="br"/>
</xsl:if>
</xsl:template>
The purpose is that the 'br' template should only be called if the last child
node of the paragraph element is a text node.
This wok fine with Microsoft XML Parser 3.0 but not with xalan 2.0.0 (or 2.3.0
fo that matter).
With xalan the test argument is always true (as far as i can tell from my
tests).
Has anyone got a clue how I can get this to work?
Any help is greatly appriciated!
BR,
Anders Samuelson