RE: [xsl] Using a URL in a XSL doc

Subject: RE: [xsl] Using a URL in a XSL doc
From: Duncan Lock <duncan.lock@xxxxxxxxxxxxxxxx>
Date: Tue, 10 Apr 2001 13:53:48 +0100
	Try these. Modified versions of the ones you posted.

start .XML file:

<?xml version="1.0"?>
<?xml:stylesheet rel="stylesheet" type="text/xsl" href="test.xslt" ?>

		<title>The Life and Adventures of Nicholas Nickleby</title>
		<channel>Sky One</channel>

end .XML file:

start .XSLT file (wide, may get wrapped, I suggest you unwrap it):

<xsl:stylesheet xmlns:xsl="";
	<xsl:template match="/">
			<table height="280" cellSpacing="0" cellPadding="0"
width="612" border="0">
						 <td rowSpan="8"><spacer
width="7" height="285" type="block"/></td>
						 <td align="left"
colSpan="4"><spacer width="23" height="5" type="block"/></td>

							<td><img alt=""
src="1_files/mustwatch_leftarrow.gif" border="0"/></td>
							<td align="left"
colSpan="2"><font color="#400328" size="5">unmissable </font></td>
align="right"><font color="#280219" size="4">page 1 of 3</font></td>



	<xsl:template match="program">
			<td><spacer width="23" height="1"
				<td colspan="3" height="23">
name="href"><xsl:value-of select="article_url"/></xsl:attribute>
end .XLST file.

Hope this helps. I works OK in ie5.5 + msxml3.0 and ought to be okay
generally. I'm not sure if the <xsl:attrbute> stuff
I've put in is 100% standards compliant or not but this (or something like
it) would be the way to do it.


> -----Original Message-----
> From: Phillip Vamplew [mailto:Phillip@xxxxxxxxxxx]
> Sent: 10 April 2001 2:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Using a URL in a XSL doc
> I am a new xsl developer, I wander if anyone out there can 
> help with my
> simple problem.

 XSL-List info and archive:

Current Thread