Subject: [xsl] local-name Problem From: "Partho Paul" <uk4u@xxxxxxxxxxxxxxxxxxx> Date: Mon, 19 Mar 2001 22:14:26 +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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] passing parameters to jav, David Carlisle | Thread | [xsl] local-name Problem, Partho Paul |
Re: [xsl] How to determine the 'fir, Chris Gow | Date | Re: [xsl] How to modify xsl:param w, Davut Karabay |
Month |