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

Re: How to propagate links in hierachy

Subject: Re: How to propagate links in hierachy
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Tue, 26 Jun 2001 10:12:27 -0400
otherpage.com
In addition to other suggestions that were posted, I'd suggest changing the
language design somewhat.  It looks too centered on display, rather than on
the data.  In your example, just make the value of the link an attribute of
the table. Then they will be intimately connected, the way it seems that you
intend:

<table link='www.otherpage.com'>

In the stylesheet, just write a template that matches each <text> element,
or whatever, and wrap it in an anchor element.

Also, you could move further away from a layout-dominated design like this:

<table link='www.otherpage.com'>
    <row>
        <image ..../>
        <text>....</text>
         ...
    </row>
</table>

Make your language so it describes the logical relationship between the
pieces of information. Leave the display formatting to the stylesheet.  Your
stylesheet will be easier to write and understand, too.

Cheers,

Tom P

[Nick Vincent

> I'm developing a markup language for a corporate intranet and have a
problem
> which is caused by HTML, but I was wondering if any of you wizards might
> have a neat solution?
>
> Say I have this markup (actual markup is a bit more complicated)
>
> <link to="www.otherpage.com">
> <table>
> <row>
> <item>
> <image src="prettyicon.gif" />
> </item>
> </row>
> <row>
> <item>
> <text>A label</text>
> </item>
> </row>
> </table>
> </link>
>
> Now when this is processed I'd like everything to become a link, but
> obviously slapping <a> tags round the table doesn't work at all.
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.