oxy_editor combo and attribute with namespace

Questions about XML that are not covered by the other forums should go here.
xephon
Posts: 159
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

oxy_editor combo and attribute with namespace

Post 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
stefan-jung.org – Your DITA/DITA-OT XML consultant
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: oxy_editor combo and attribute with namespace

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply