id(..) to retrieve an attribute value

Subject: id(..) to retrieve an attribute value
From: Gurgone <gurgone@xxxxxx>
Date: Fri, 12 Feb 1999 15:59:19 +0100
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


Current Thread