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

Re: XLink transformations

  • From: tpassin@h...
  • To: xml-dev@x...
  • Date: Tue, 18 Jul 2000 09:21:47 -0400

Re: XLink transformations
Michael Kraus wrote -
> Ben,
> I think the problem is deeper than you described. For example:
<example removed/>
> Now the question is: Is there any chance for the browser, given the
> linkbase from above, to know that there should be a link between books
> B1 and B3? And if, which elements should be used as source and target
> of the link? the <p> element or the <b> element? In my opinion,
> there's no general solution to this problem if the complexity of
> XPointer and XSLT is considered.
This is a good example.  I think the approach to take is to create a new XML
file, based on the xlink file and the source file(s), then to do any
transformations on it afterwards.

The harder part is when you use an XPointer expressions in an XLink, then
change the document that is pointed to.  Chances are, the XPointer
expressions won't point to the right place any more.  This problem is
similar to that of constructing a primary key for a relational database
table.  If the  key is compound (like (lastname,firstname,company)), and one
part changes (John Smith changes his employer), what happens everywhere
there is a pointer to this instsance of the key?

For databases, the best solution is to give the instance its own identity,
i.e., the primary key should be a unique ID number.  That could be made to
work for many XLink cases, too.  But ranges could still be a problem.

Tom Passin


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.
First Name
Last Name
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.