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

Re: So maybe ID isn't a problem after all.


jim ancona
On 01/11/13 10:48 AM, "Jim Ancona" <scarhill@y...> wrote:

> --- Bob Hutchison <hutch@x...> wrote:
>> To represent these graph structures in a useful way, I've found that a
>> globally unique identifier is needed. This is because, in my experience,
>> some elements begin to appear in more than one document generated by the
>> application. In other words graph structures rarely are, in my experience,
>> confined to a single document. Something can be an ID and not satisfy the
>> practical requirements for graph representation.
> 
> A URI+fragment identifier IS a globally unique identifier (assuming that the
> fragment identifier points to an element named by an ID, as XPointer says). So
> cross-document graphs may be represented with a URI Reference interpreted as
> an
> XPointer Bare Name.
> 
> <snip/>
> 
>> So, I don't believe IDs are sufficient for the practical requirements of
>> graph structures, and XML doesn't support any kind of application
>> independent means of representing graph structures anyway.
> 
> What about XPointer?

XPointer still works through attributes, right? So you get things like
<replaceMe ref="..."/>. How does an application know, from XML syntax alone
that, the element should be replaced by what it is referring to? (I could be
more precise here I suppose: how is the application supposed to know that
the <replaceMe> element is identical to what it is referring to -- is that
English?) I thing that describing something as 'application independent'
(here) requires the existence of XML syntax that equates <replaceMe> with
what it is referring to.

Now, given that the application knows about graphing then using a URI to
specify the reference is certainly workable in many cases, I would imagine.
But this is getting pretty close to assuming a URL. In the project I was
referring to, a URL wouldn't work because the object wasn't locatable that
way. It was nameable (gosh) and so a URN would work. Do XPointers work with
URNs? 

Cheers,
Bob

> 
> Jim
> 
> =====
> Jim Ancona
> jim@a...                     jancona@x...
> 
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com


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.