RE: id(..) to retrieve an attribute value

Subject: RE: id(..) to retrieve an attribute value
From: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Fri, 12 Feb 1999 08:46:14 -0800
IE5b2 doesn't support {} or id(). 

> -----Original Message-----
> From:	Gurgone [SMTP:gurgone@xxxxxx]
> Sent:	Friday, February 12, 1999 6:59 AM
> To:	xsl-list@xxxxxxxxxxxxxxxx
> Subject:	id(..) to retrieve an attribute value
> 
> hi all,
> I'm a newcomer
> I've a little problem:
> 
> I've this kind of .xml.....
> 
> <wall color"wall-color"/>
> <attribute id="wall-color" value="brown"/>
> ......
> 
> and I'd like to obtain.....
> 
> <body bgcolor="brown">
> .....
> </body>
> 
> I thought to do something like this...
> 
> <xsl:template match="wall">
>   <body bgcolor="{id(@color)/@value}">
>   .....
>   </body>
> </xsl:template>
> 
> but this is wrong.......how can I do it properly ??
> 
> thanx, Fabio
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread