Page 1 of 1
<xsl:apply-templates> result?
Posted: Wed Mar 30, 2005 9:06 pm
by satish
In Internet Explorer and other XSLT processors, the result of apply-templates is to move to the next node from the current node without printing the text content of the node. While in Oxygen the behavior is to print the text and then move to the next node, isn't that is what happens as part of the built in rule?
Help
Posted: Fri Apr 01, 2005 10:39 am
by george
Yes, I guess it is a default template that generates that text, see
http://www.w3.org/TR/xslt#built-in-rule
***
<xsl:template match="text()|@*">
<xsl:value-of select="."/>
</xsl:template>
***
If you do not want that then add a noop template matching the text and attribute nodes to your stylesheet, like below:
<xsl:template match="text()|@*"/>
Best Regards,
George