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

Re: (In)Validate My Assumptions on Linking.

  • From: "Peter Hunsberger" <peter.hunsberger@g...>
  • To: "Jirka Kosek" <jirka@k...>
  • Date: Thu, 28 Sep 2006 08:37:24 -0500

Re:  (In)Validate My Assumptions on Linking.
On 9/28/06, Jirka Kosek <jirka@k...> wrote:
> Ben Trafford wrote:
>
> >     After much thinking, reading, and reviewing, I've come to these
> > three ideas:
> >
> >     1) Stylesheet languages need some sort of way to display links from
> > generic XML. This is so we can interact with them in user agents. By
> > "stylesheet languages," I am specifically referring to XSL-FO and CSS.
> >
> >     2) Links need to be declared in generic XML,
>
> Given the point 1 which allows you to turn anything into link, why you
> then need to declare it as link on XML level (point 2). I mean if you
> have some generic XML, e.g.:
>
> <hotel moreinfo="http://example.org/dream-hotel">
>    ...
>
> and you are able to say that this element should work as link on a
> stylesheet level, e.g.:
>
> hotel { link-type: simple;
>          link-target: attr(moreinfo);
>        }
>
> what is then point of point 2?

That question can be rephrased as: do you want to describe the
relationships in the CSS or do you want to separate the relationship
discovery from the presentation?

In your example, the relationship is hard coded in the CSS as

    link-target: attr(moreinfo);

that's a pretty limited capability and doesn't easily allow for two
way linking, dynamic linking or many other things that people want to
do.   Instead someone may want something more like:

   <hotel name="Dream"/>

and in a separate document

   <link select="/hotel[@name = 'Dream']"
href="http://example.org/dream-hotel"/>

and in the CSS:

    link { link-type: simple  }

Don't get hung up on my syntax here.  The point is, the concepts of
presentation and relationship building need to be separated.

-- 
Peter Hunsberger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.