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

Re: Re: determining ID-ness in XML

  • From: Marcus Carr <mrc@a...>
  • To: Elliotte Rusty Harold <elharo@m...>
  • Date: Tue, 06 Nov 2001 10:57:24 +1100

Re:  Re: determining ID-ness in XML

Elliotte Rusty Harold wrote:

> I issue a new request for a standard xml:target attribute. This would
> provide a unique name for XPointers to link to. It would have no
> necessary type. It would have no affect on validity. The documents in
> which it appears may or may not have DTDs, may or may not be valid,
> and may or may not declare this attribute with any particular type.

Leaving aside the mechanism, this free and easy approach seems very
desirable. If I understand correctly, it just provides a means of saying
"within the scope of this document, you can point at any node with an
attribute in this list:..."

> Whether such a document was valid would be determined exactly
> according to the rules of XML 1.0. If xml:target (and everything else
> in the document) were properly declared the document would be valid.
> If xml:target were not properly declared, the document would not be
> valid.

In the DTD, you'd need to define xml:target to cover pretty much every
CDATA attribute then, wouldn't you? Without knowing the context that the
instance will be used in, how can you determine whether a particular
attribute might be useful as a unique identifier? The instance should
scope what is a unique identifier - why get the DTD involved at all?

> No parsers would change. The definition of validity would not
> change. The only necessary change would be to XPointer and other
> client specifications that needed to pay attention to this attribute.
> Everybody else can ignore it.

And everyone who may need to validate downstream from the instance being
regarded as well-formed only will need to change their DTDs or strip out
the invalid attributes? It sounds like a pretty hard sell to me...


--
Regards,

Marcus Carr                      email:  mrc@a...
___________________________________________________________________
Allette Systems (Australia)      www:   http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



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.