This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
local-name Problem
- To: "xsl" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] local-name Problem
- From: "Partho Paul" <uk4u at rz dot uni-karlsruhe dot de>
- Date: Tue, 20 Mar 2001 08:16:15 +0100
- References: <200103192214260271.011D433B@mailhost.rz.uni-karlsruhe.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello,
I have for example this short xml structure:
<text> Some text
<customerdata attr="browser">
another text
</text
and now this is the xsl structure:
<xsl:variable name="myarray">
<browser> IE5.5 </browser>
<sometineelse> specificsomething </sometineelse>
</xsl:variable>
<xsl:template match="text">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="customerdata">
<xsl:value-of select="$myarray/*[local-name()=@attr]"/>
</xsl:template>
What's wrong? I want to substitute the value of the 'attr' with another word
which is defined in an array.
Thanx again.
Partho
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list