Re: Display link text as a hyperlink
I have an xml file that contains this character sequence: 'www.gamefaqs.com' .
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:value-of select= "concat(substring-before($outputString,$target), $replacement)"/>
xsl:value-of creates a text node while you seem to want to create a HTML hypertext element i.e. an '<a href="...">...</a>' element.
So you need to change your code to create such elements.
As your stylesheet has version="2.0" you seem to use XSLT 2.0 so I also wonder why you do not make use of regular expressions to find those strings you want to convert. Do you use XSLT 2.0?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format