but
random:getRandom($Second) function gives error when I used variable "Second" in this function , I think it is not getting value from "Second" variable. In my xslt file I have to use <xsl:variable name="Second" select="count($currentPage/ancestor-or-self::node/descendant-or-self::node[@nodeTypeAlias = 'test1'] )"/>
this syntax, but its not work
Please help me , I got stuck by this error , It wasted a lot of my time.
Any help should be appreciable , Thanks in advance.
Error comes when access value of count() function in another function in xslt file
I have used two syntax to access the another nodes children in umbraco 4.0.3 on my current page.
Here is the two syntax:-
1st one is:-
<xsl:variable name="First" select="umbraco.library:GetXmlNodeById(1234)" />
2nd one is:-
<xsl:variable name="Second" select="count($currentPage/ancestor-or-self::node/descendant-or-self::node[@nodeTypeAlias = 'test1'] )"/>
And output of these two variables is same:-
<xsl:value-of select="$First "/>
<xsl:value-of select="$Second "/>
In my example output is:
8
8
And then I used these variables value in function getRandom($First ) , getRandom($Second )
<xsl:variable name="randomPositions" select="random:getRandom($First)" />
<xsl:variable name="randomPositions1" select="random:getRandom($Second)" />
random:getRandom($First) function works properly
but random:getRandom($Second) function gives error when I used variable "Second" in this function , I think it is not getting value from "Second" variable. In my xslt file I have to use <xsl:variable name="Second" select="count($currentPage/ancestor-or-self::node/descendant-or-self::node[@nodeTypeAlias = 'test1'] )"/>
this syntax, but its not work
Please help me , I got stuck by this error , It wasted a lot of my time.
Any help should be appreciable , Thanks in advance.
is working on a reply...