Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Putting an xslt variable into href link

Posted on 2008-11-05
1
Medium Priority
?
929 Views
Last Modified: 2013-11-18
Is there a way to put the value of an xslt variable into an attribute of the html into which your transforming the xml?

For example,

<xsl:variable name="hrefLink" select="hrefLinkNode"/>
<a href="????">MyLink</a>

Is there something I can put into the ???? to have it take the value of $hrefLink?
0
Comment
Question by:HyperBPP
1 Comment
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 22890161
<a href="{$hrefLink}">MyLink</a>

{} are attribute value templates, specially for that
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question