xsl-list
[Top] [All Lists]

Re: [xsl] xsl:value-of issue

2010-09-07 11:39:58
Etheridge, Stephen wrote:

The relevant bit of XSLT is:

<xsl:template name="process-list">
        <xsl:variable name="tempname" select="local-name()" />
        <xsl:choose>
                <xsl:when test="contains($tempname, 'ListLocalVal')">
                </xsl:when>
                <xsl:otherwise>
                        <xsl:element name="{$tempname}">
                        <xsl:variable
name="local-element-val"><xsl:value-of
select="$tempname"/><xsl:text>LocalVal</xsl:text><xsl:variable>
                        <xsl:value-of
select="../[local-name()=$local-element-val" />

That should give a syntax error I think, you rather need
  select="../*[local-name()=$local-element-val]"




--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>