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

Some real-world linking examples

  • To: Norman Walsh <ndw@n...>
  • Subject: Some real-world linking examples
  • From: Jeni Tennison <jeni@j...>
  • Date: Thu, 3 Oct 2002 13:07:08 +0100
  • Cc: xml-dev@l...
  • Organization: Jeni Tennison Consulting Ltd
  • Reply-to: Jeni Tennison <jeni@j...>

linking examples

> | I agree. Currently you have to do this by importing a stylesheet with
> | the templates matching individual list types and do
> | <xsl:apply-imports>. I've done this recently in order to add a linking
> | semantic to (practically) all the elements in a document, and it's
> What markup did you...no, that's another thread. Nevermind :-)

It's not my design, but out-of-line XLink, basically of the form:

    <from xlink:href="..." />
    <to xlink:href="..." />
    <go />

The <go> is an arc-type element. I think that for these out-of-line
links, XLink was a reasonable choice, even if it does require the
messiness of <go>. Though of course the links are just being processed
by XSLT at the moment so really it could have been:

  <link from="..." to="...">...</link>

and it would have satisfied all the requirements and been simpler in
the instance document and in the DTD.

Another language I've been working with recently has linking elements
that has different attributes for different kinds of links: 'skip' for
on-site links that get opened up in the same window or 'jump' for
off-site links that get opened up in a new window. I guess that it
could have used xlink:href for the link and then toggled the behaviour
through the xlink:show attribute, but that's an extra attribute, an
extra namespace and it's supposed to be a small, *fun* language! Plus
it's only going to get transformed into HTML or XSL-FO or something
similar, and it's not like XMetaL gives any special XLink support, so
there didn't seem much point in using XLink there.


Jeni Tennison


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.