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

RE: another href question

Subject: RE: another href question
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Fri, 23 Mar 2001 16:51:15 -0800
RE:  another href question
<xsl:element name="a"> produces an <a> element, and <xsl:attribute
name="href"> provides it with an href attribute.  So the result of this,
using the HTML output method, is

<a href="ContactUs.xsl">Contact Us</a>

which is what you want, isn't it?

In fact you can write it that way (<a href=...>) instead of the way you
wrote it.  You'd only need to use the xsl:element form if your href
attribute or your text was the result of a template or some other complex
formulation.

PC2

-----Original Message-----
From: Turner, Althea [mailto:Althea.Turner@xxxxxxxxxxxxxx]
Sent: March 23, 2001 16:14
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  another href question


hello all,

I have a fairly (actually very new) newbie question to put to you good
folks.  I have checked the FAQ and archives and haven't found the answer to
my question.  I am trying to make text link from one xsl page to another.  I
can link just fine to an html page.  I have found the following bit of code
and think I am getting close to a solution.  

<!-- test for linking text   -->
         <xsl:element name="a">
         <xsl:attribute 
              name="href">ContactUs.xsl</xsl:attribute>
         <xsl:text>Contact Us</xsl:text>
         </xsl:element>

My question is this:  What should be in place of "a"?  Elsewhere in our
docs, the "name" refers to a java class.  Do I need to have a java class for
href?  What am I not comprehending here?  I'm fairly sure that Xlink is
overkill for making simple text links.  

Please be gentle, I'm new to XSL.  Thanks!

Althea Turner
Summit Information Services
541-758-5888 x 6902

 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.