RE: [xsl] How to propagate links in hierachy

Subject: RE: [xsl] How to propagate links in hierachy
From: Andreas Waechter <A.Waechter@xxxxxxxxx>
Date: Tue, 26 Jun 2001 12:48:13 +0200
> <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


Current Thread