cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Cordes <mcord...@maine.edu>
Subject Re: How to do this in xsl
Date Tue, 11 Apr 2000 18:23:04 GMT
I don't think you need the ./ 's, thus it could be 

	<xsl:template name="node">
		<a href="http://www.myhost.com/cgi-bin?file={link}"><xsl:value-of
		select="name"/></a>
	</xsl:template>

-matt

On Tue, Apr 11, 2000 at 08:30:56PM +0300, Taras Shumeyko wrote:
> >      I would appreciate if someone could point me as to how to do this:
> > data.xml
> >
> > <node>
> >    <data>name</data>
> >    <link>name.xml</link>
> > </node>
> >
> >     I have lots of these nodes in the data.xml file, and I want to
> > create
> > the html file like this:
> > <A HREF="http://www.myhost.com/cgi-bin?file=name.xml">name</A>
> 
>   <xsl:template name="node">
>     <a href="http://www.myhost.com/cgi-bin?file={./link}"><xsl:value-of
> select="./name"/></a>
>   </xsl:template>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message