xpath - what is the significance of "." in xslt -
i new xsl , got stuck @ piece of code. can please me understand below code , "." stand for. here code: <xsl:apply-templates select="."/>
thanks help!
"." in xslt (and xpath) represents "context node" (or in 2.0, "context item"). important concept understand, , should reading because short paragraph can't explain it. essentially, constructs change context: example, when xsl:apply-templates on particular node, in selected template, node context node. when xsl:for-each, each selected node becomes context node in turn. relative path expressions such foo/bar navigate starting context node, , "." selects context node itself.
Comments
Post a Comment