I know "class", "width" and "height" are prone to error too - even so, the error is solely a .NET error. You can name your variable "text" alright - you just can't use "text" as the name of the macro parameter, because you'll need to put an attribute with that name on the <umbraco:macro> tag, where it's apparently reserved for use by .NET... a workaround that lets you keep the "text" name in XSLT would be like this:
"and" Operator Issue - Macro Container Umbraco TV tutorial
Hi, Im going through the Umbraco TV tutorials and I have come across an issue with my macro and the "and" operator.
I have created the macro parameters and inserted the macro into the template.
But I am not getting any values back with the and operator. I can get a single value back from one variable when i remove the "and".
I am still learning xslt, so any help would be grateful.
Thanks
Martin
My xslt macro is:
It's not the "and" operator that is causing the issue. I found out that the word "text" as a variable title causes issues.
Ive tried it with a few titles and it only seems to fail when i use the word "text"
Anyone else have issues like this.
Hi Martin,
I know "class", "width" and "height" are prone to error too - even so, the error is solely a .NET error. You can name your variable "text" alright - you just can't use "text" as the name of the macro parameter, because you'll need to put an attribute with that name on the <umbraco:macro> tag, where it's apparently reserved for use by .NET... a workaround that lets you keep the "text" name in XSLT would be like this:
/Chriztian
is working on a reply...