combining oxy_editor with oxy_attributes()?

Hello, I use Oxygen XML Editor 15.2 and wanted to create an easy to handle Author-View for my Colleagues. Therefore I wanted to output the names of the elements and all used attributes. It was OK with this code: content: "<" local-name() oxy_attributes() ">"; Then I discovered the really cool oxy_editor()-function! Is it possible to combine these two functions, so that I get all attributes of an element and tell them to be a combobox or a textfield or a …? Best regards, Monika . . . . . . . . . . . . . . . . . . . . . . . . . . Ing. Monika Madlik Developer LexisNexis A-1030 Wien, Marxergasse 25 Monika.Madlik@lexisnexis.at<mailto:Monika.Madlik@lexisnexis.at> Tel.: +43 1 53452 1568 Fax.: +43 1 534 52 146 . . . . . . . . . . . . . . . . . . . . . . . . . .

Hello, oxy_attributes() can't be combined directly with oxy_editor() but there are two properties, -oxy-append-content and -oxy-prepend-content [1], that can help reduce the number of CSS rules you have to write: elem[firstAttr] { -oxy-append-content: "firstAttr: " oxy_textfield(edit, '@firstAttr'); } elem[secondAttr] { -oxy-append-content: "secondAttr: " oxy_combobox(edit, '@secondAttr'); } ................ So for each possible attribute you just write such a rule to tell what type of form control should be presented when the attribute is present in the document. Having a fast way to add form controls for all the attributes of an element is an interesting use case. I'll add a feature request to have such a support. By the way, speaking of such a support, how would you prefer Oxygen to decide what form control to use for an attribute? Would you prefer to manually specify it or would you want Oxygen to automatically infer it from the schema? [1] http://oxygenxml.com/doc/ug-editor/#topics/dg-oxygen-extension-properties.ht... Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 28-Apr-14 4:30 PM, Madlik, Monika (LNG-VIE) wrote:
Hello,
I use Oxygen XML Editor 15.2 and wanted to create an easy to handle Author-View for my Colleagues. Therefore I wanted to output the names of the elements and all used attributes. It was OK with this code: content: "<" local-name() oxy_attributes() ">";
Then I discovered the really cool oxy_editor()-function!
Is it possible to combine these two functions, so that I get all attributes of an element and tell them to be a combobox or a textfield or a ...?
Best regards,
Monika
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. MonikaMadlik
Developer
LexisNexis
A-1030 Wien, Marxergasse 25
Monika.Madlik@lexisnexis.at <mailto:Monika.Madlik@lexisnexis.at>
Tel.: +43 1 53452 1568
Fax.: +43 1 534 52 146
. . . . . . . . . . . . . . . . . . . . . . . . . .
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Alex Jitianu
-
Madlik, Monika (LNG-VIE)