RE: <xsl:value-of select="/ROW[$row]/@$col"/>

Subject: RE: <xsl:value-of select="/ROW[$row]/@$col"/>
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 6 Nov 2000 15:34:12 -0000
> This must come up a lot, but I can't find any references to it :
> 
> A document structured like :
> 
> <LIST>
>    <HEADINGS>
>        <ITEM NAME="ONE"/>
>        <ITEM NAME="TWO"/>
>    </HEADINGS>
>   <ROWS>
>      <ROW ONE="a" TWO="b"/>
>      <ROW ONE="x" TWO="y"/>
>   </ROWS>
> </LIST>
>
It does come up occasionally, but not often, because most people choose not
to mix data and metadata in this way.
 
>     <xsl:value-of select="/LIST/ROWS/ROW[$row]/@$col">

Try <xsl:value-of select="/LIST/ROWS/ROW[$row]/@*[name()=$col]">

Mike Kay


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


Current Thread