[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Hyperlinks [newbie Q]

Subject: [xsl] Hyperlinks [newbie Q]
From: Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>
Date: Wed, 26 Jan 2005 11:58:16 +0000


I would like the text 'XML Hyperlink' to be a link on the rendered html

I want it so that if you need to change the url, you change it in the
xml rather than in the xsl.

How do I get the xsl to make this a hyper link?


	<text>This is some welcome text</text>
	<link url="http://www.somthing.co.uk">XML Hyperlink</link>

XSL so far:

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
<xsl:output method="html" indent="no" encoding="UTF-8"/>

<xsl:template match="/">

	<xsl:for-each select="welcome/text">
	<p><xsl:value-of select="."/></p>

	<xsl:for-each select="welcome/link">
	<p<xsl:value-of select="."/></p>


Does any one have any pointers to tutorials? Any help would be
appreciated thank you.


This email has been independently scanned for viruses and any virus software
has been removed using McAfee anti-virus software

Current Thread