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]

RE: Dynamically selecting Attributes


> I'm trying to select an attribute dynamically based on 
> another attributes'
> value.  For example, given:
> 
>   <find target="name" />
> 
>   <record id="100" name="something" location="somewhere" />
> 
<xsl:template match="find">
<xsl:value-of select="//record/@*[name()=current()/@target]"/>
</xsl:template>

But take care if using namespaces.

Mike Kay 


 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]