XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
nicola donnellySubject: how to create hyperlink in xslt
Author: nicola donnelly
Date: 24 Feb 2006 10:24 AM
Hi,

I have an element in an xml document <URL>http://www.....</URL>.

I am trying to create a hyperlink with this value in my xslt.
The output document is an xml document.

I have tried <a href="{URL}">Put link text here</a>
and creating a new element <a>
with the attribute <xsl:attribute name="href">
<xsl:value-of select="URL">
</xsl:attribute>

but both methods keep showing up as text and not a hyperlink.

Does stylus support this method?

Thanks,
Nicola

Postnext
(Deleted User) Subject: how to create hyperlink in xslt
Author: (Deleted User)
Date: 24 Feb 2006 11:01 AM
Hi, Nicola. The methods you provide both work -- provided you are looking at the output as HTML. If you're looking at the output as XML, you will see just the text, as you have observed.

Hope this helps.

David Foster
Stylus Studio Team

Postnext
nicola donnellySubject: how to create hyperlink in xslt
Author: nicola donnelly
Date: 27 Feb 2006 06:52 AM
Is there a way to view the hyperlink in xml?

When I view the output as html (which I don't want to do) the hyperlink is showing as text ...

Posttop
(Deleted User) Subject: how to create hyperlink in xslt
Author: (Deleted User)
Date: 27 Feb 2006 08:52 AM
Hi, Nicola. XML doesn't have the concept of hyperlinks, so they will always appear as text.

Hope this helps.

David Foster
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.