Quote:
quote:Originally posted by mhkay
Please don't think in terms of "closing the tag". You're writing a tree of nodes, not a sequence of start and end tags.
|
OK, I'll do my best.
Quote:
quote:Originally posted by mhkay
The reason that there's a text node after the <Order> element is that you wrote it when you did
<Order>
<xsl:copy-of select="OrderNum"/>
<xsl:copy-of select="OrderData1"/>
<xsl:copy-of select="OrderData2"/>
<xsl:copy-of select="OrderData3"/>
</Order>
<xsl:apply-templates/>
If you don't want it, why are you doing the apply-templates?
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
|
But if I am not doing "apply-templates", I lost the next elements in tree.
For example if I remove "apply-templates" in "Orders", I'll have no elements "Line".