and When using XSL, what is the difference between

The difference between <xsl: apply-templates select = "./*" / "> and <xsl: apply-templates /">

When using XSL, what is the difference between

<xsl:apply-templates select="./*"/>

and

<xsl:apply-templates />

The first does not appear in any text after the child.

+7
source share
1 answer

Correctly. "*" or "./*" selects the children of the node context. But "node()" or "./node()" selects all children, including elements, text nodes, comments, and processing instructions. By default, xsl: apply-templates selects = "node ()".

+12
source

All Articles