IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: jinoinfo
About
User Name: jinoinfo
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, June 23, 2009
Last Visit: Friday, June 26, 2009 4:08:50 AM
Number of Posts: 2
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: How to use xslt variables inside the expression like select , test, count etc
Posted: Thursday, June 25, 2009 3:17:09 AM
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..
Topic: How to use xslt variables inside the expression like select , test, count etc
Posted: Wednesday, June 24, 2009 9:19:51 AM
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;amp;typeofproduct=offprod&amp;amp;prodSymId=610" sym_id="610">
<Product name="Product" rel_status="2" sym_id="24119" url="AmatcpProdSelectionAction.cp?display=product&amp;amp;typeofproduct=offprod&amp;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

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.