[Home] [By Thread] [By Date] [Recent Entries]
Garvin Riensche wrote:
Thanks for your answer. So, if my stylesheet only consists of one template without an apply-templates: The built-in template for the root nodes looks like this <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> see http://www.w3.org/TR/xslt#built-in-rule so it processes all child nodes (which in your sample document is the 'a' element). The a matching template for the 'a' element is used which is your template above where you omitted the template body. If that does <xsl:apply-templates/> respectively <xsl:apply-templates select="node()"/> or <xsl:apply-templates select="*"/> then the 'b' element is processed too. -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



