[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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> </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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Linking to other queries., Richard Lander | Thread | Re: Linking to other queries., Richard Lander |
Re: Linking to other queries., Richard Lander | Date | DocBook XSL Stylesheets V0.08, Norman Walsh |
Month |