oxy_editor combo and attribute with namespace

Questions about XML that are not covered by the other forums should go here.
xephon
Posts: 96
Location: Münster/Germany

oxy_editor combo and attribute with namespace

Sun Dec 07, 2014 7:58 pm

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
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki
Radu
Posts: 5376

Re: oxy_editor combo and attribute with namespace

Mon Dec 08, 2014 9:59 am

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

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests