What does node () mean | @ * means XSLT?

I saw this used in this question:

<xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> 

Can someone explain what "node () | @ *" means?

+6
source share
1 answer

This is called identity transformation . node()|@* matches all child nodes ( node() is all text, element, processing instructions, comments) and attributes ( @* ) of the current context.

+5
source

Source: https://habr.com/ru/post/910255/


All Articles