[xsl] Using a URL in a XSL doc

Subject: [xsl] Using a URL in a XSL doc
From: "Phillip Vamplew" <Phillip@xxxxxxxxxxx>
Date: Tue, 10 Apr 2001 13:18:02 -0000
I am a new xsl developer, I wander if anyone out there can help with my
simple problem.

Extract of xml file:]


		<title>The Life and Adventures of Nicholas Nickleby</title>

		<channel>Sky One</channel>

I want to take the <article_url> element and place this in a <A href> call,
but currently getting an error.
XSL looks like this at the moment.


<!-- Student Style Sheet, Practical Session 4 -->


<xsl:template match="/">
		<TABLE height="280" cellSpacing="0" cellPadding="0" width="612"
				     <TD rowSpan="8"><SPACER width="7" height="285" type="block"/></TD>
				     <TD align="left" colSpan="4"><SPACER width="23" height="5"

				     	<TD><IMG alt="" src="1_files/mustwatch_leftarrow.gif"
     					<TD align="left" colSpan="2"><FONT color="#400328"
size="5">unmissable </FONT></TD>
     					<TD align="right"><FONT color="#280219" size="4">page 1 of

				<xsl:apply-templates select="programs/program"/>


<xsl:template match="program">
		<TD><SPACER width="23" height="1" type="block"/></TD>
	    	<TD colSpan="3" height="23"><FONT size="5">

<A href=   <xsl:apply-templates select="article_url"/>   >

<!--- So I am trying to replace the call above with the article url, it
looks dodgy but can't see what it should read>

<xsl:apply-templates select="title"/></A>< TD>


Sorry, if this seems really obviously!

Many thanks


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

Current Thread