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

namespaced attributes, was: URIs, concrete

  • To: simonstl@s...
  • Subject: namespaced attributes, was: URIs, concrete
  • From: David Carlisle <davidc@n...>
  • Date: Thu, 1 Aug 2002 10:15:20 +0100
  • Cc: xml-dev@l...
  • In-reply-to: <r01050300-1015-DC16827AA4E111D693BB0003937A08C2@[192.168.124.21]>(simonstl@s...)
  • References: <r01050300-1015-DC16827AA4E111D693BB0003937A08C2@[192.168.124.21]>

html src attribute

> I think that's a weak comparison at best

true:-)

> especially from the
> perspective (which monasticxml.org takes explicitly) that attributes are
> meta-markup, adding extra information about the nature of elements
> rather than being their children in any sense.

They may be used that way but that isn't implied by the XML spec (or
their use in SGML) If you have <img src="foo.gif"/> then the src
attribute isn't really some meta markup with extra information it's more
the other way round, the attribue is the main data carrier and the
element is just a syntaxtic device to carry the attribute and group
it with other attributes (alt etc)/

> In any event, the namespace status of child elements is clearly known,
> at least until W3C XML Schema's unqualified child elements poisons the
> context situation further.

that occured to me as I wrote the example as well, but I thought that
was just too horrible to mention at that time of night...



I think the distinction between attributes in a namespace and attributes
not in a namespace is that unnamespaced attributes are closely tied to
specififc elements.

I can go
<html:img src="foo.gif"/> but I can't go <html:p src="...">..

Conversely because Xlink attributes are in a namespace, I expect (if I'm
using the Xlink namespace at all) to stick them on anything.
If I want to make an html p into some kind of xlink then 
<html:p xlink:href="...">..

If things worked as you say that should have worked then this
distinction would not be available

<html:img src="foo.gif"/>

would be equivalent to

<html:img html:src="foo.gif"/>

which would lead me to expect to be able to put html:src on a p


<html:p html:src="...">...

or even, reversing the equivalence, 

<html:p src="...">...


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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.