For the XSLT / XPath 1.0 data model, the XPath 1.0 specification at http://www.w3.org/TR/xpath/#namespace-nodes says the following about namespace nodes:
Each element has an associated set of namespace nodes, one for each individual namespace prefix that has the element (including the xml prefix, which is implicitly declared by the XML Namespaces Recommendation [XML Names]) and one default namespace, if available for element.
XML, http://www.w3.org/TR/xml-names/#scoping :
, , NSAttName. , - .
, .
http://www.w3.org/TR/xml-names/#defaulting (.. xmlns="http://example.com/ns1):
, end-tag, . .
,
<root xmlns="http://example.com/n1" xmlns:pf2="http://example.com/ns2">
<foo>
<bar xmlns="http://example.com/ns3">whatever</bar>
</foo>
</root>
http://example.com/n1 root foo, bar, , . xmlns:pf2="http://example.com/ns2", , .