I have an XSL file and in this file there are statements:
<xsl:apply-templates select=".//text"/>.
Can anyone tell me what does select = ".//" mean?
I know the '.' is current node, but for'//' is?
I have an XSL file and in this file there are statements:
<xsl:apply-templates select=".//text"/>.
Can anyone tell me what does select = ".//" mean?
I know the '.' is current node, but for'//' is?
The expression language in XSLT is XPath and in XPath https://www.w3.org/TR/xpath-31/#abbrev // is an abbreviation for /descendant-or-self::node()/ so .//text is short for ./descendant-or-self::node()/text which means it selects, relative to the context node, all descendant elements with the name text.