/topLevel/ents/ent[(_at_)name eq current()/@name]/value
Note that's an XPath2 expression. Use = not eq if you are using XSLT 1.
Also current() is an xslt-only function, you asked about xpath. If you
are using xslt you may be able to spead things up considerably by using
a key.
<xsl:key name="ent" match="ent" use="@name"/>
then
...<xsl:value-of select="key('ent',@name)"/>...
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>
--~--