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

Global attributes (was Mapping XHTML to XLink via Architectural Forms)

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: Jonathan Borden <jborden@m...>,XML-Dev Mailing list <xml-dev@x...>
  • Date: Fri, 27 Oct 2000 14:34:22 -0400

attributes of mapping
At 02:07 PM 10/27/00 -0400, Jonathan Borden wrote:
>We agree. The way I see it, namespaces are the easiest way to prevent this
>from happening, that is for new applications "x:style" is a better option
>than "style" (btw: by 'global attribute' do you mean a non namespace
>prefixed attribute?)

No, they're quite definitely prefixed.

I'm referring to the discussion in Namespaces in XML, Section A.2:
http://www.w3.org/TR/REC-xml-names/#ns-breakdown

Specifically:
>The Global Attribute Partition 
>     This partition contains the names of all attributes which are 
>defined, in this namespace, to be global. The only required 
>characteristic of a global attribute is that its name be unique in 
>the global attribute partition. This specification makes no assertions 
>as to the proper usage of such attributes. The combination of the 
>namespace name and the attribute name uniquely identifies the 
>global attribute. 
>[...]
>In XML documents conforming to this specification, the names of all 
>qualified (prefixed) attributes are assigned to the global attribute 
>partition, and the names of all unqualified attributes are assigned 
>to the appropriate per-element-type partition.

XLink picks up on this in Section 4:
http://www.w3.org/TR/xlink/#att-method

Specifically:
>XLink's namespace provides global attributes for use on elements 
>that are in any arbitrary namespace. The global attributes are 
>type, href, role, arcrole, title, show, actuate, label, from, and 
>to. Document creators use the XLink global attributes to make the 
>elements in their own namespace, or even in a namespace they do 
>not control, recognizable as XLink elements. The type attribute 
>indicates the XLink element type (simple, extended, locator, arc, 
>resource, or title); the element type dictates the XLink-imposed 
>constraints that such an element must follow and the behavior of 
>XLink applications on encountering the element.
>[...]
>Using global attributes always requires the use of namespace 
>prefixes on the individual attributes and the use of the type 
>attribute on the element.

Damnit.  I knew I shouldn't get involved in another discussion of
namespaces.  My head is spinning again.

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
XHTML: Migrating Toward XML
http://www.simonstl.com - XML essays and books

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.