| jinoinfo |
| Newbie |
|
|
|
|
| None Specified |
|
| Tuesday, June 23, 2009 |
| Friday, June 26, 2009 4:08:50 AM |
2 [0.01% of all post / 0.00 posts per day] |
|
Hi All,
It would be greate if somebody can guide me on the above issue of using xslt variable value in the expression like select, count etc..
|
Hi,
I am not able to use the xslt variable in the expression like select or count.
i have the following example,
<xsl:variable name="division" select="child::*/@name"/> // this is assigning the value suppose 'Glass' <xsl:message><xsl:value-of select="$division"/> </xsl:message> // this is also printing Glass
<xsl:variable name="divisions" select="concat($division,'/Product')"/> // con catenating Glass/Product
<xsl:variable name="divisionsSub" select="concat($divisions,'/@value')"/> //concatenating Glass/Product/@value
<xsl:message><xsl:value-of select="$divisions"/> </xsl:message> // this is printing Glass/Product <xsl:message><xsl:value-of select="divisionsSub"/> </xsl:message> //this is printing Glass/Product/@value
{html:'<xsl:value-of select="$divisionsSub"/>', url:'<xsl:value-of select="GLASS/Product/@url"/>', target:'navaction'} ] when is use select="$divisionsSub", this is displaying Glass/Product/@value as it is instead of getting the value of the above.
My xml look like this <Glass name="GLASS" value="GLASS" url="AmatcpProdSelectionAction.cp?display=product&amp;typeofproduct=offprod&amp;prodSymId=610" sym_id="610"> <Product name="Product" rel_status="2" sym_id="24119" url="AmatcpProdSelectionAction.cp?display=product&amp;typeofproduct=offprod&amp;prodSymId=24119" value=" Oasis Clean"> </Product> </Glass>
Please advice me.. on how i can use xsl variable inside the expressions like select and count
Thanks Jino George
|
|