W3C home > Mailing lists > Public > www-smil@w3.org > October to December 2000

Re: Namespace prefixes for attributes

From: thierry michel <tmichel@w3.org>
Date: Fri, 17 Nov 2000 10:52:26 +0100
Message-ID: <03b201c0507c$17cde470$228a608a@inria.fr>
To: "Elliotte Rusty Harold" <elharo@metalab.unc.edu>, <www-smil@w3.org>

----- Original Message ----- 
From: "Elliotte Rusty Harold" <elharo@metalab.unc.edu>
To: <www-smil@w3.org>
Sent: Thursday, November 16, 2000 8:23 PM
Subject: [Moderator Action] Namespace prefixes for attributes


> I'm still making my way through the SMIL 2.0 DTDs so I may be a little
> off-base here, but I do think I've noticed something strange.
> 
> If the %SMIL.pfx; entity is defined as a non-empty string, and prefixing
> is turned on, then the attributes have names like smil:transIn and
> smil:transOut. If %SMIL.pfx; is defined as the empty string, then the
> attributes have names like transIn and transOut. (The specific attribute
> used is not important here.) This is what's intended, I think.
> 
> However what I suspect is unintentional is that for attributes, unlike
> for elements, this changes what namespace the attributes are in.
> Unprefixed attributes are never in any namespace, whether the default
> namespace or the namespace of the element they belong to. So adding the
> prefix here moves the attributes from no namespace at all to the
> http://www.w3.org/TR/REC-smil/2000/SMIL20 namespace (or whatever URI has
> been defined). That seems to me to be unexpected and unnecessary
> behavior. 
> 
> Since these attributes are always placed on SMIL elements only, wouldn't
> it be more consistent if they never had any prefixes at all and were
> always in no namespace? 
> 
> -- 
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+ 
> |               Java I/O (O'Reilly & Associates, 1999)               |
> |            http://metalab.unc.edu/javafaq/books/javaio/            |
> |   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ | 
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
> 
Received on Friday, 17 November 2000 04:52:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:23 UTC