Mariusz Idzikowski wrote:
>
> I noticed that the text() CSS content object seems to ignore format
> arguments passed via a @property-value. For example:
>
> XML:
> ====
>
> <a>
> <b/>
> <c/>
> </a>
>
> CSS:
> ====
>
> b {
> content: text("BBB", color, red); /* this works */
> }
>
> @property-value calculate(title, color)
> text(title, color, color);
>
> c {
> content: calculate("CCC", red); /* this doesn't */
> }
>
> The above XML document is displayed in XXE as:
>
> BBBCCC
>
> but only the BBB letters are shown in red.
>
> Is this a bug or am I doing something wrong?
>
Please try:
---
@property-value calculate(titleParam, colorParam)
text(titleParam, color, colorParam);
---
If this does not work, then you have found a bug. In such case, please
be kind enough to send us another email so we can remember to fix the
bug in next release.
---
References:
* http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/text.html
* http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/prop-value.html