|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: complex "insert" rules; generalized insert
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








