This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Put A Hyperlink In A Stylesheet?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XML file structured like this:

and I am writing a stylesheet to provide the hyperlink in the HTML. I know that I have to get <xsl:value-of select="/channel/link"/> in the <A href="#..."></A> tag. I tried several different ways and cannot figure out the proper code to make it work.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi JiaPei,
Use one of the following examples:

Also make sure that the XSLT output method is "html".
Cheers
[ December 15, 2002: Message edited by: Beno�t d'Oncieu ]
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the code. The code works well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic