This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Correlation between two xml trees
- From: John Sands <WonkoWatson at Yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 6 Jun 2002 07:50:53 -0400
- Subject: Re: [xsl] Correlation between two xml trees
- References: <5660214250.20020605233508@Yahoo.com> <3CFEEC34.7010302@gmx.de>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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