Have you tried changing the parameter alias name to all lower-case? I had a similar issue, and changing the alias name to all lower-case solved it. I hope it does in your case too :-)
I'm pretty sure that the macro aliases are case sensitive just like property alias'es etc. So you need to specify the exact same name as the alias. THis means that you must change your variable to this:
Because the alias gets passed to the macro as a child element of <macro> it is (as Michael and Kim alludes to) in fact case sensitive (because XML is case sensitive, that is).
Also: When using the XSLT Visualizer, it's very important you need to wrap stuff you want to debug in a textarea because the visualizer messes with the output (lowercasing as it see fit, etc.).
To give some more info about the problem I faced: I had initially created a parameter with capital letters in the name, and I used the same name in my xslt. But for some reason, when rendering the macro in RTE, the parameter name was lower-cased bye default, which meant that my xslt variable, like in Kim's example, did not return anything. Like I mentioned, I solved the problem by putting everything small letter: parameter name, xslt variable filter, etc.
retrieve macro value using Xslt problem
I created macro parameter.
In NewsList.xslt
... I interted that macro in Content Page. i also provide parameters value 5 in content page. ....
But When i try to retrieve macro value, value its empty.
if we look currentPage there is macro value .
You can see:
1) Macro value: is empty
2) Curent page. numberofnewsitems="5"
3) copy of : is empty..
how to solve that problem?
umbraco version 4.7
thanks.
Hi Jeevan,
Have you tried changing the parameter alias name to all lower-case? I had a similar issue, and changing the alias name to all lower-case solved it. I hope it does in your case too :-)
Cheers,
Michael.
Hi Jeevan
I'm pretty sure that the macro aliases are case sensitive just like property alias'es etc. So you need to specify the exact same name as the alias. THis means that you must change your variable to this:
Does this work?
/Kim A
Hi jeevan,
Because the alias gets passed to the macro as a child element of <macro> it is (as Michael and Kim alludes to) in fact case sensitive (because XML is case sensitive, that is).
Also: When using the XSLT Visualizer, it's very important you need to wrap stuff you want to debug in a textarea because the visualizer messes with the output (lowercasing as it see fit, etc.).
/Chriztian
Hi,
To give some more info about the problem I faced: I had initially created a parameter with capital letters in the name, and I used the same name in my xslt. But for some reason, when rendering the macro in RTE, the parameter name was lower-cased bye default, which meant that my xslt variable, like in Kim's example, did not return anything. Like I mentioned, I solved the problem by putting everything small letter: parameter name, xslt variable filter, etc.
Cheers,
Michael.
Thank you so much Michael, chiriztian and Kim.
. it was cas sensitive problem. now its working.
..........
Jivan
Damn.. 1 day too late on this.. I knew the answer.
is working on a reply...