[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

local-name Problem

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.