Subject: [xsl] Using XSL Values as hyperlink names From: Jonathan Marenus <jonathanmarenus@xxxxxxxxx> Date: Thu, 12 May 2005 16:30:40 -0700 (PDT) |
Hello, I seem to be having trouble using XSL values as hyperlink names. Pretty much what I would like to do is use a <xsl:value-of.... or a $variable as the name of the hyperlink. For example, something like the following: <a href=#<xsl:value-of...." or <a href="#$variable". Then I want to use the hyperlink to go to a certain point in the XSL output that is referenced with <a name... in the code. I need to do this dynamically with a for-each loop having a different number of interations for each XML file that it is ran against. Because of this, I can't simply assign a random name to the hyperlink, because then each iteration will generate the same hyperlink name. I need some way to generate a unique hyperlink name per iteration. I assume it would be easier to use the hyperlink's actual value as the name, and that's what I am trying to do. I just need the syntax for using such XSL values in this situation in both the <a href> part and the <a name> part. I understand that this is an XSL forum, and although part of my question is HTML, my problem is regarding XSL's values and how they can be used, so hopefully this won't be a problem. Thanks for your help. Jonathan Marenus Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to select a node with, David Carlisle | Thread | Re: [xsl] Using XSL Values as hyper, Bruce D'Arcus |
Re: [xsl] Grouping with XSL, G. Ken Holman | Date | Re: [xsl] Using XSL Values as hyper, Bruce D'Arcus |
Month |