[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Extracting link information from xml document and disp

Subject: Extracting link information from xml document and displaying it in browser as hyperlink
From: bmcleere@xxxxxxxxxx
Date: Tue, 10 Jun 2003 11:27:56 +0100
extracting information from xml
Hi,

I have an xml document with a <location> tag amongst others e.g.

 <location> http://someserver.ie</location>. 
 
 I want to retrieve the URL information and display it as a 
 hyperlink in the browser.
 
 Currently, I can view the URL information but it is not a hyperlink. 
 
 I thought of using the following:-
 <xsl:template match="technical/location">
 <a href="http://{@link}"><xsl:value-of select="."/></a>
 </xsl:template>
 
 I will be searching different documents so hardwiring in the 
 URL where it says "@link" would not provide a solution for 
 me. I think that if I could declare a variable in xsl to 
 store the retrieved data and then get at the contents of this 
 variable within the <a href...> tag - this would provide a solution.
 
 How to do it is another question:-)
 Any help with this matter would be very much appreciated.
 
 Kindest regards,
 
 Brenda Cleere




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.