|
Subject: Re: [xsl] Correlation between two xml trees From: John Sands <WonkoWatson@xxxxxxxxx> Date: Thu, 6 Jun 2002 07:50:53 -0400 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Correlation between two x, Joerg Heinicke | Thread | Re: [xsl] Correlation between two x, Antonio Fiol |
| RE: [xsl] string comparison, Andrew Welch | Date | Re: [xsl] Oracle XSLT & TrAX, Steve Muench |
| Month |