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: <xsl:value-of select="/ROW[$row]/@$col"/>


> 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

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