|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Linking to other queries.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








