When using XSL what is the difference between
<xsl:apply-templates select="./*"/>
and
<xsl:apply-templates />
The former does not appear to bring in any text after a child element.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct.
"*"or"./*"selects the child elements of the context node. But"node()"or"./node()"selects all the children including elements, text nodes, comments, and processing instructions. The default for xsl:apply-templates is select=”node()”.