Subject: [xsl] creating links to resource files listed in XML file From: Brian Hickey <brian_hickey1@xxxxxxxxx> Date: Thu, 18 Jul 2002 01:51:25 -0700 (PDT) |
Hello I want to create some links to resource files which are referenced in my .xml file. In my .xsl file I have added the following code: <xsl:template match="/"> <xsl:for-each select="//file/@href"> <xsl:variable name="myVar"> <xsl:value-of select="."/> </xsl:variable> <a href='<xsl:value-of select="$myVar"/>'> <xsl:value-of select="$myVar"/> </a> </xsl:for-each> The link creates fine with the proper file name etc. However, the path to the actual file is not correct. It comes out as <xsl:value-of select="$myVar"/>. Is there a way to embed this in the <a href... tag so that I can link to the file properly. Much appreciated. Brian __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Including an external xml, Jarno . Elovirta | Thread | RE: [xsl] creating links to resourc, Michael Kay |
RE: [xsl] Non-well-formed HTML in X, Richard Mitchell | Date | RE: [xsl] creating links to resourc, Jarno . Elovirta |
Month |