|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








