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

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
special href
Thanks for the feedback Richard.

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

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>
	</xsl:template>
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
karal@xxxxxxxxxxxxxx
http://www.apptechsys.com
CCM Technology Demo:
http://www.apptechsys.com/ccm
---------------------------------------


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

 Kara,

How about the following:

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

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

Good luck,

 Richard.

Richard Lander
relander at uwaterloo.ca
http://pdbeam.uwaterloo.ca/~rlander/

Professional XML Authoring
http://www.on-line-learning.com/


 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.