|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Invalid attribute names
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








