Page 1 of 1

oxy_editor combo and attribute with namespace

Posted: Sun Dec 07, 2014 7:58 pm
by xephon
Hi,

I try to add an oxy_editor combo to switch values of an attribute that has a namespace.

Code: Select all

langSet:before {
content: "A combo box that edits an attribute value. The possible values are provided from CSS:"
oxy_editor(
type, combo,
edit, "@xml:lang",
editable, true,
values, "value1, value2, value3",
labels, "Value no1, Value no2, Value no3"
);
}
Unfortunately neither @xml:lang nor @xml\:lang work, but @lang does. Any ideas?

Best regards

Re: oxy_editor combo and attribute with namespace

Posted: Mon Dec 08, 2014 9:59 am
by Radu
Hi Stefan,

Using in the CSS the construct:

Code: Select all

*:before {
content: "A combo box that edits an attribute value. The possible values are provided from CSS:"
oxy_editor(
type, combo,
edit, "@xml:lang",
editable, true,
values, "value1, value2, value3",
labels, "Value no1, Value no2, Value no3"
);
}
worked for me but I also needed to declare the namespace mapping for the "xml" prefix at the beginning of the CSS (after the imports section) like:

Code: Select all

@namespace xml "http://www.w3.org/XML/1998/namespace";
Regards,
Radu