Subject: RE: Dynamically selecting Attributes From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 13 Oct 2000 17:30:22 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Dynamically selecting Attribute, Jeff Saylor | Thread | RE: Dynamically selecting Attribute, Oliver Becker |
Dynamic stilesheet assignement, massimo cravero | Date | Re: Dynamic stilesheet assignement, Steve Muench |
Month |