[xsl] template in template? (references)

Subject: [xsl] template in template? (references)
From: Daniel Bauke <bonkey@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jun 2001 15:57:19 +0200
yep, i'm still asking stup..erm, simple questions :-)
well, i'm wondering if it's possible to use sth like following:

<xsl:template match="ref">
   <link href="@id"> go to ref </link>

<xsl:template match="link">
   <a href="@href"><xsl:apply-templates/></link>

and btw. is there any simple cross-referencing solution in xsl?
i tried sth with id(), but i can't make it work.

Daniel `bonkey' Bauke; http://www.oho.pl/~bonkey/; {happiness=bike&&unix;}

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

Current Thread