Subject: RE: Dynamically selecting Attributes From: Jeff Saylor <JSaylor@xxxxxxxxxxxxxxxxx> Date: Fri, 13 Oct 2000 13:51:32 -0400 |
Mike, Works like a champ - thank you very much! Cheers, Jeff -----Original Message----- From: Kay Michael [mailto:Michael.Kay@xxxxxxx] Sent: Friday, October 13, 2000 12:30 PM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Dynamically selecting Attribute, Oliver Becker | Thread | RE: Dynamically selecting Attribute, suresh talluri |
RE: Printing Null Values with XSLT, Kay Michael | Date | xslt assistance please, Azariah Jeyakumar |
Month |