[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: namespace prefixes within attribute values

  • From: "Eve L. Maler" <elm@e...>
  • To: XML-Dev Mailing list <xml-dev@x...>
  • Date: Thu, 09 Mar 2000 17:26:24 -0500

qname usage
At 11:53 AM 3/9/00 -0500, Simon St.Laurent wrote:
>Both the XML Schemas drafts and the XLink drafts use namespace prefixes
>within attribute values.  As far as I can tell, this usage isn't sanctioned
>by the Namespaces in XML Recommendation.

As Richard Tobin has already noted, the namespace declaration information 
will typically be made available; the higher-level application would only 
be responsible for catching/validating the usage of a prefix in the 
attribute value.  I'm comfortable with that, as far as it goes.  I have a 
different problem.

Back in February, I wrote up a minority opinion on QName usage in XLink 
attribute values (located at 
http://lists.w3.org/Archives/Public/www-xml-linking-comments/2000JanMar/0041 
.html).  This writeup didn't quite describe my biggest concern, but I 
finally figured out a way to explain it:

The Namespaces specification 
(http://www.w3.org/TR/REC-xml-names/#sec-intro) defines an XML namespace as 
a "collection of names ... which are used in documents as element types and 
attribute names."  I can see using QNames attribute values when you're 
manipulating element types and attribute names, as is done in XML Schema 
and XSLT.  However, in XLink, QNames are used -- in the true Namespaces 
specification sense -- for values that have nothing to do with element 
types and attribute names.

A lot of people are hoping that one day they'll be able to point to some 
kind of document (compound or not...whatever) that will serve as the 
definitive source for information about a namespace.  I fear that any 
future work to figure this out will be hampered by legacy cases of names 
that don't fall into the sanctioned categories.  If I've defined 
show="myco:popupFor10Seconds" to have meaning in my XLink application, and 
I want to define the name "popupFor10Seconds" in my namespace definition 
document, have I now precluded the possibility of having a 
<popupFor10Seconds>? an <x myco:popupFor10Seconds="..." />?

         Eve
--
Eve Maler            Sun Microsystems
elm @ east.sun.com    +1 781 442 3190

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.