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]
Other format: [Raw text]

Re: Correlation between two xml trees


Hi Joerg,

Thank you very much. It works, but I'd like to understand it.

> <xsl:template match="z:row">
>    <data>
>      <xsl:variable name="data" select="."/>
>      <xsl:for-each select="$outputdef/root/column">
>        <xsl:element name="{@tagname}">
>          <xsl:value-of select="$data/@*[name()=current()/@dbcolumn]"/>
>        </xsl:element>
>      </xsl:for-each>
>    </data>
> </xsl:template>

I understand the use of the xsl:variable, but the rest of the expression
is still baffling to me:

    select="$data/@*[name()=current()/@dbcolumn]"

Can you explain what it does, please?

Thanks,
John Sands

-- 
"Any sufficiently advanced technology is indistinguishable from magic"



 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]