Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Put A Hyperlink In A Stylesheet?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the code. The code works well.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic