[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Can an element have 2 namespaces?

Subject: Re: Can an element have 2 namespaces?
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Mon, 09 Nov 2009 21:59:58 -0500
Re:  Can an element have 2 namespaces?
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.