Exactly. Which means that any attributes in an xhtml document that are not
explicitly prefixed with "xhtml" (or whatever) are not namespaced. Eg:

Example 1:
<xhtml:html xmlns:xhtml="http://www.w3.org/...";>
<xhtml:body style="mystyle">
</xhtml:body>
</xhtml:html>

Example 2:
<xhtml:html xmlns:xhtml="http://www.w3.org/...";>
<xhtml:body xhtml:style="mystyle">
</xhtml:body>
</xhtml:html>

In Example 1, the 'style' attribute is non-namespaced. In Example 2, it is
namespace to the XHTML namespace. However, I don't believe that Example 2 is
valid XHTML, since the spec does not explicitly declare style attribute in
the namespace - only a 'style' attribute attached to the body element (and
other elements, of course). Two different things, to my understanding.

David

----- Original Message -----
From: "James Strachan" <[EMAIL PROTECTED]>
To: "David Peterson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 6:48 PM
Subject: Re: [Jaxen] Default namespaces: alternatives?


> From: "David Peterson" <[EMAIL PROTECTED]>
> > Also, attributes shouldn't be prefixed, unless they are of a different
> > namespace than the element they are attached to.
>
> I thought that attributes without prefixes are always in no namespace
> (irrespective of whether there is a default namespace defined via
xmlns="").
> Though I remember some confusion on this matter in the early XML schema
> specs.
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to