xsl-list
[Top] [All Lists]

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

2009-11-09 22:00:35
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
“http://www.w3.org/1999/02/22-rdf-syntax-ns#”; and the local part “RDF.”

There are many namespace declarations in scope for this element.  Its
literal name, “rdf:RDF,” 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/ >
“The State is that great fiction by which everyone tries to live at
 the expense of everyone else.” — Frédéric Bastiat, “L’État”
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--