This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to propagate links in hierachy
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How to propagate links in hierachy
- From: Andreas Waechter <A dot Waechter at logics dot de>
- Date: Tue, 26 Jun 2001 12:48:13 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <link to="www.otherpage.com">
> <table>
> <row>
> <item>
> <image src="prettyicon.gif" />
> </item>
> </row>
> <row>
> <item>
> <text>A label</text>
> </item>
> </row>
> </table>
> </link>
in the template managing the image and/or text,
<xsl:value-of select="ancestor::link/@to"/> should give you the URL
so
<a>
<xsl:attribute name="href">
<xsl:value-of select="ancestor::link/@to"/>
</xsl:attribute>
Here whatever (your img tag or your text)
</a>
should do the trick
Andreas
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list