It worked. Thanks. Perhaps you could add a note in the CSS doc about parameters to @property-value having to be different from valid CSS property names.
Best wishes, Mariusz ----- Original Message ----- From: "Hussein Shafie" <[email protected]> To: "Mariusz Idzikowski" <m.idzikowski at lexicode.pl> Cc: <xmleditor-support at xmlmind.com> Sent: Friday, January 15, 2010 11:59 AM Subject: Re: [XXE] Possible bug: text() inside @property-value > 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 > > >

