Q. Фигурные скобки в атрибутах тега в XSLT
Нужно вывести в атрибут создаваемого тега фигурные скобки. { и } не
помогает. Пока используем такой хак: attr=“…{’{’}…{’}’}”. Можно ли сделать
попроще?
A [Andrei Protasovitski]. Michael Kay в “XSLT Programmer’s Reference” утверждает, что:
“If you want to include the characters ”{“ or ”}“ in an attribute value
with their ordinary meaning (this is sometimes useful when generating
dynamic HTML), they should be doubled as ”{{“ or ”}}“. However, you
should only do this in an attribute that is being interpreted as an
attribute value template. In other attributes, curly braces have no
special meaning.”