This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: <xsl:value-of select="/ROW[$row]/@$col"/>
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: <xsl:value-of select="/ROW[$row]/@$col"/>
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 6 Nov 2000 15:34:12 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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