hellohelp Posted July 13, 2006 Posted July 13, 2006 I have a field that is a company's website, and I'm trying to figure out how to write XSLT code to turn it into a hyperlink. For example: This shows the web address as text and a URL, but the URL is http://mysite.com/fmi/xsl/browserecord.xsl/www.mylinkedsite.com Of course, I just want the URL to be http://www.mylinkedsite.com, but I can't seem to make it do that.
hellohelp Posted July 13, 2006 Author Posted July 13, 2006 I figured it out, just in case anyone else needs it. I just changed the line to: http:// What truly mattered was the http://
Martin Brändle Posted July 15, 2006 Posted July 15, 2006 The usage of fmxslt:break_encode() is wrong here. This function is used to generate HTML, not an URL. You need fmxslt:url_encode(). An alternative would be linktext
Recommended Posts
This topic is 6705 days old. Please don't post here. Open a new topic instead.
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