Re: complex "insert" rules; generalized insert2004-10-13 13:21:21
Hi Eric,
<xsl:template match="parent">
<xsl:apply-templates select="child_a | child_b"/>
<xsl:apply-templates select="child_c"/>
<xsl:if test="not(child_c)">
<child_c/><xsl:comment>added</xsl:comment>
</xsl:if>
<xsl:apply-templates select="child_d | child_e"/>
</xsl:template>
This in combination with the identity template should give the desired
output
HTH Anton
|
|
||||||||||||||||