View Full Version : <xsl:value-of> problem in attributes
zduck
01-18-2003, 08:02 PM
Here is what I'm trying to get to work in an XSL stylesheet.
<element attribute="<xsl:value-of select="whatever">"/>
it doesn't work but its what I need done. any help would be appreciated.
-Joshua David
<element attribute="{whatever}"/>
zduck
01-18-2003, 08:48 PM
thanks i figured it out. here's how I did it if anyone else has this problem.
<element>
<xsl:attribute name="attribute">
<xsl:value-of select=""/>
</xsl:attribute>
</element>
RETURNS:-------------
<element attribute="">
What I showed is a syntactic shortcut for exactly the same thing. Just put the XPath selector in between {} inside the attribute value.
zduck
01-18-2003, 09:01 PM
okay thanks. that is easier
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.