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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -