...

<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

jkd
01-18-2003, 08:42 PM
<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="">

jkd
01-18-2003, 08:58 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum