cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in XSLT understanding

rasjoshi
Active Contributor
0 Kudos

Hi Team,

Could anybody explain me meaning of below code -

<xsl:apply-templates select= "@*|*|text()"/>

Regards,

Rashmi Joshi

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Rashmi,

@*: All attributes nodes.

|: Union

*: All nodes

Text(): matches any text node

And apply- templates, apply the templates for that nodes

From

XSLT &amp;lt;xsl:apply-templates&amp;gt; Element

xml - What does &amp;quot;@*|node()&amp;quot; in a XSLT apply-template select mean? - Stack Overflow

http://www.w3.org/TR/xslt20/

Regards.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rashmi,

Please check the below information...

The XPath expression @* | node() selects the union of attribute nodes (@*) and all other types of XML nodes (node()).

It is a shorthand for attribute::* | child::node().

http://www.xml.com/pub/a/2001/12/05/whitespace.html

Regards,

Srikanth Mavuri