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: Attribute name clashes??????????


hnorris wrote:

> <xsl:template match="Item">
>    <xsl:variable name="metadata" 
> select="$GlobalMetadata/Item[@name='current context node's @name value']/>


Surprisingly "current context node" can be accessible by current() 
function call :)

Try
select="$GlobalMetadata/Item[@name=current()/@name]"

-- 
Oleg Tkachenko
Multiconn International, Israel


 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]