OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Invalid attribute names

[ Lists Home | Date Index | Thread Index ]

At 21:28 31.12.2003, you wrote:
>An attribute name of ":test" implies a blank prefix name, which is
>illegal.

Yes, but couldn't that be treated simply as attribute (or same with element 
name of course)
not belonging to any namespace, what's the danger of treating it that way?
I admit this isn't good practice to use name starting with colon but...

>With an attribute name of "x:test:a", it is unclear which is the
>namespace prefix and which is the local part.

I made typos there meant of course:
<e x:test:a="" xmlns:x="ns"/>
but anyway couldn't this be treated as attribute called test:a
belonging to namespace ns. What's the danger of treating first found colon as
namespace separator and simply ignore the rest?

>Hope that helps.
>
>Kind Regards,
>Joe Chiusano
>Booz | Allen | Hamilton
>Strategy and Technology Consultants to the World
>
>Toni Uusitalo wrote:
> >
> > BTW what was the main motive behind not letting name to start with colon or
> > not to allow multiple colons in
> > xml namespaces specification.
> >
> > i.e. what's the "danger" of the following attribute names for example:
> > <e :test=""/>
> > <e x:test:a xmlns:x="ns"/>
> >
> > with respect,
> > Toni Uusitalo
> >
> > -----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> >
> > The list archives are at http://lists.xml.org/archives/xml-dev/
> >
> > To subscribe or unsubscribe from this list use the subscription
> > manager: <http://lists.xml.org/ob/adm.pl>

with respect,
Toni Uusitalo






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS