<xsl:copy-of select="$field[(_at_)flg=$drvr/@*[.=name()]]"/>
.=name() is true if the value of the node is the same as its name, so
something like id="id" would test true.
so
$drvr/@*[.=name()]
selects all attributes of the elements in $drvr that have the same name
as their value.
so
@flg=$drvr/@*[.=name()]
is true if there is a flg attribute on the current element that has the
same value as the attribute in $drvr that has the same name as its
value.
It seems like you want something like
<xsl:template match="row">
<Field flg="{name(@*[.=1])}"/>
</xsl:template>
David
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--