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

RE: Re: determining ID-ness in XML

  • From: Don Park <donpark@d...>
  • To: xml-dev@l...
  • Date: Tue, 30 Oct 2001 10:45:23 -0800

xmlbeans xml id
> I like James' proposal.
>
> However I'd suggest that the 80/20 split lies at not allowing
> more than one ID attribute per element. (So I'm disagreeing
> with DavidB and DonP, at my peril, I'm sure! :)

Yeah, I don't like having to parse attribute value so I understand.  Also, I
have been thinking about the namespace issue complicating the mechanism.
While xml:idatt (XML ID Attribute Declaration?) is most likely placed within
a container element belonging to the same namespace as the attribute of type
ID like this:

<foo xmlns:fb="http://foobar.com/ns/1.0" xml:idatt="id">
  <bar id="b1"/>
  <bar id="b2"/>
  <barfight href="#b1"/>
</foo>

the mechanism gets tedious quickly when there isn't a convenient container
to declare ID type attribute for contained elements.  I guess the question
is which side of 80/20 does this case fall under.

For sake of discussion, here is an example of XML Namespace Declaration-like
approach to XML ID Attribute Declaration.

<foo
    xmlns="http://foo.com/ns"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlid:id="http://foo.com/ns"
    xmlid:Id="http://www.w3.org/2000/09/xmldsig#">
  <bar id="abc"/>
  <ds:Signature Id="def">...</ds:Signature>
</foo>

Hmm.  It looks rather ugly.  We could opt to ignore the whole namespace
issue and use the same mechanism to specify target ID-space although I am
not sure if there is a huge demand for multiple ID-space per document.

Don Park


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.