|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: xsl:value-of issue
Subject: Re: xsl:value-of issue
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 07 Sep 2010 18:39:43 +0200
|
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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|