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

RE: XLINK support in browsers


RE:  XLINK support in browsers
>          How would you define a link within an XML document? 
> No external 
> schemas. No stylesheets. You're an author, who has zero control over 
> presentation, beyond using tags. In much the same way you 
> might use an 
> <emphasis> tag to emphasize a given word, you want something 
> so that you 
> can indicate that -this text here- is linked to -this text in 
> that document 
> over there-. They have an implicit, unidirectional 
> relationship. -This- can 
> take you to -that-.


Firstly, wherever possible, I would not link to "text" but to an object, and
I would refer to that object by user-meaningful identifiers, not by URIs. If
I want to refer to a city, I would write the element as <city name="London"
country="gb"/>. That way, I have abstracted the information content from
presentation issues, and left maximum flexibility for the rendering
processes to decide how to present the information. To use the distinction
that I think someone was making, I would use a relationship rather than a
link. If the rendering process wishes to translate my city reference into a
link into Wikipedia, rendered as an image of the coat of arms of the city in
question, then it's free to do so.

(As you see, I'm not a fan of the idea of using URIs to refer to real-world
objects as distinct from machine-readable resources.)

If I actually want to refer to a document, or to a place within a document,
rather than to a real-world object, then I would try to use tags that
reflect the reason for linking to that document, for example

<defined-at>http://www.w3.org/TR/xslt20#template-rule</defined-at>

Michael Kay 



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.