RE: Linking to other queries.

Subject: RE: Linking to other queries.
From: "Kara Lee" <karal@xxxxxxxxxxxxxx>
Date: Tue, 27 Jul 1999 14:44:01 -0700
Thanks for the feedback Richard.

<xsl:template match='Author'>
<A class="special" href="placetogo.html">Author: <xsl:apply-templates/></A>

That is pretty much the code I have right now.  But I'm trying to find a way
to read the href from my XML file as well.
Maybe like this in my XSL:
	<xsl:template match='Author'>
	<A class="special" href="value-of @HREF"> Author: <xsl:applytemplates/></A>
Having my XML look like this:  (with a special URL encoding scheme)
	<Author HREF=" placetogo.html ">Smith J</Author>

But that doesn't work.

I want to create the link in my XSL, without telling my ahead of time what
the link should be.
Any suggestions.
Thanks in advance.
Kara Lee
Applied Technical Systems
CCM Technology Demo:

-----Original Message-----
From:	Richard Lander [mailto:rlander@xxxxxxxxxxxxxxxxxxx]
Sent:	Tuesday, July 27, 1999 1:36 PM
To:	xsl-list@xxxxxxxxxxxxxxxx
Subject:	Re: Linking to other queries.


How about the following:

<xsl:template match='Author'>
<A class="special" href="placetogo.html">Author: <xsl:apply-templates/></A>

In your CSS, include:

A.special {text-decoration:none;color:black}
A.special:hover {text-decoration:underline;color:blue}

If you want a non-fixed href attribute, you'll have to provide further
processing. That CSS and XSL should do much of what you want. If you are not
currently using CSS, you'll have to add a STYLE element inside your HEAD

Good luck,


Richard Lander
relander at

Professional XML Authoring

 XSL-List info and archive:

Current Thread