mwunderlich Posted October 23, 2005 Share Posted October 23, 2005 Dear all, I am trying to retrieve hyperlinks from an XML-document (stored in an element called <link>) and insert them into the transformed HTML doc by using "xsl:value-of". However, the following won't work (and rightly so): <a href="<xsl:value-of select="link"/>" target="_blank"> Is there another possibility? I'd appreciate any help. All the best, M Link to comment Share on other sites More sharing options...
mwunderlich Posted October 23, 2005 Author Share Posted October 23, 2005 Should have been "hyperlink", of course, instead of "hyerling"... Link to comment Share on other sites More sharing options...
Nick Posted October 25, 2005 Share Posted October 25, 2005 You should be able to do something like this: <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute></a> There's also two posts about how to get the <img> tag to work someware in the XML and XSL forums. Those are about roughly the same thing you need here.Hope that helps! Link to comment Share on other sites More sharing options...
fernando Posted November 10, 2005 Share Posted November 10, 2005 <xsl:variable name="LINK" value="link"><a href="{$LINK}" target="blank"><xsl:value-of select="name" /></a> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now