Altova Mailing List Archives


[xsl] Using XSL Values as hyperlink names

From: Jonathan Marenus <jonathanmarenus@--------->
To:
Date: 5/12/2005 11:31:00 PM
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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.