>template should only be called if the last child node of the paragraph >element is a text node.
> <xsl:if test="child::node()[position()=last()]=text()"> I think you meant <xsl:if test="child::node()[position()=last()[self::text()]"> i.e., two successive predicates. This is a generic XPath question, so pursue further questions through the generic resources. .................David Marston
