This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to propagate links in hierachy


> <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]