Re: [xsl] Can an element have 2 namespaces?

Subject: Re: [xsl] Can an element have 2 namespaces?
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Mon, 09 Nov 2009 21:59:58 -0500
cert21 wrote:
> My question was, what is the namespace of this root element: is it
> 
> http://www.w3.org/1999/02/22-rdf-syntax-ns# because the
> root element has an rdf prefix
> 
> or is it  http://purl.org/rss/1.0/

The element is not in a namespace, nor does it have a namespace.

The *name* of the element has two parts: a namespace and a local part.

The *name* of the element has the namespace part
bhttp://www.w3.org/1999/02/22-rdf-syntax-ns#b and the local part bRDF.b

There are many namespace declarations in scope for this element.  Its
literal name, brdf:RDF,b is interpreted with respect to the in-scope
declarations.

(I submit that this is arguably on-topic for this mailing list, as much
XSLT confusion arises from interpretation of namespaces. (-: )

~Chris
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
bThe State is that great fiction by which everyone tries to live at
 the expense of everyone else.b b FrC)dC)ric Bastiat, bLbC	tatb
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

Current Thread