[xsl] local-name Problem

Subject: [xsl] local-name Problem
From: "Partho Paul" <uk4u@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2001 08:16:15 +0100
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


Current Thread