[jdom-interest] Namespace issues, et al.

Malachi de AElfweald malachi at tremerechantry.com
Sun Feb 23 12:53:45 PST 2003

One of the examples on http://www.w3.org/TR/xml-names11/

<?xml version="1.1"?>
<!-- elements are in the HTML namespace, in this case by default -->
<html xmlns='http://www.w3.org/1999/xhtml'>
  <body><p>Moved to <a href='http://frob.com'>here</a>.</p></body>

So, you all are saying the "href" is not in the 
http://www.w3.org/1999/xhtml namespace?


On Sun, 23 Feb 2003 15:40:14 -0500 (EST), bob mcwhirter <bob at werken.com> 

>> Default namespace declarations do not apply directly to attribute names;
> That's you quoting the spec.  Don't know how much clearer it could be.
> <foo xmlns="http://foo.com/" cheese="gouda">
> <bar xmlns="http://bar.com/" cheese="cheeder"/>
> <baz cheese="swiss"/>
> </foo>
> In this case:
> <foo> is in the http://foo.com/ namespace
> <bar> is in the http://bar.com/ namespace
> <baz> is in the http://foo.com/ namespace
> All three @cheese attributes exist in the 'null' namespace, since they
> have no prefix, even though the default prefix meanders between 
> http://foo.com/ and http://bar.com/.
> Heck, check Xerces-C, as I'm sure they're conformant to the spec and
> will exhibit this behaviour also.
> 	-bob
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom- 
> interest/youraddr at yourhost.com


More information about the jdom-interest mailing list