Thanks Martin.
Kind regards
Stephen
-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: 07 September 2010 17:40
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: xsl:value-of issue
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/
Please help Logica to respect the environment by not printing this email /
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie
so Logica dabei, die Umwelt zu sch|tzen. / Por favor ajude a Logica a
respeitar o ambiente nao imprimindo este correio electronico.
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
|