[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

a href problem with XSLT

Subject: a href problem with XSLT
From: Erik Stunkat <erik@xxxxxxxxxx>
Date: Thu, 27 Jul 2006 14:16:59 +0200
xslt a href

I?m using Forrest DirectoryGenerator to browse through pdf files
in different folders.

For output I use the following xslt stylesheet and everything is fine, accept
the <a href /> argument.

Output looks like:

<a href="N109C6">171-Regulatory_Interactions.pdf</a>
<a href="N109CB">181-Leukemic_Inhibition.pdf</a>

I want <a href="171-Regulatory_Interactions.pdf">171-Regulatory_Interactions.pdf</a>
instead of:
<a href="N109C6">171-Regulatory_Interactions.pdf</a>

N109C6 is the directory content generated by Forrest.

<xsl:template match="dir:directory|dir:file"> <li> <xsl:value-of select="@name"/> <xsl:if test="name(.)='dir:directory'"> <!-- creating subdirectories --> <ul><xsl:apply-templates/></ul> </xsl:if> <xsl:for-each select="@name">

<!-- here is something wrong -->

<a href="{generate-id(.)}">
<xsl:value-of select="."/>


<xsl:template match="/dir:directory"> <ul> <xsl:value-of select="@name"/> <!-- creating subdirectories -->



any ideas?

Erik Stunkat

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.