This could be one of the most common questions you can think of when dealing with xsl, but still I am unable to get past. Here's the scenario...
I have an xml attribute
caption with value attribute that will be used as a value of "value" attribute of the
JSF's command button. So, this caption element may contain something like "&" for &.
Ideally, on my
JSP the button should be displayed as "Save & Exit", but it doesn't, rather it is displayed as "Save & Exit"
So the caption attribute's value in the xml is "Save & Exit".
Now, what I want is while xsl transformation is going on, this attribute value be changed to "Save & Exit" and corresponding JSF command button be generated as...
But, somehow, it still generates
I tried to use this template-
And the above template gets called from here
Any idea what's wrong here ? I am using XSL version 1.0, BTW. I can't also use escape attribute of JSF command button since the version we are working on doesn't support escape attribute.
Thanks.