<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
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:<br>
<br>
elem[firstAttr] {<br>
-oxy-append-content: "firstAttr: " oxy_textfield(edit,
'@firstAttr');<br>
}<br>
<br>
<br>
elem[secondAttr] {<br>
-oxy-append-content: "secondAttr: " oxy_combobox(edit,
'@secondAttr');<br>
}<br>
<br>
................<br>
<br>
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?<br>
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://oxygenxml.com/doc/ug-editor/#topics/dg-oxygen-extension-properties.html">http://oxygenxml.com/doc/ug-editor/#topics/dg-oxygen-extension-properties.html</a><br>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
On 28-Apr-14 4:30 PM, Madlik, Monika (LNG-VIE) wrote:<br>
</div>
<blockquote
cite="mid:AF306E498946994C9E3AA2612A1BA00B1A01D914@LNGVIEEXCP003.legal.regn.net"
type="cite">
<!-- Template generated by Exclaimer Mail Disclaimers on 03:30:50 Montag, 28 April 2014 -->
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">P.053850f9-436d-4f74-b476-de5f3443f0c8 {
        MARGIN: 0cm 0cm 0pt
}
LI.053850f9-436d-4f74-b476-de5f3443f0c8 {
        MARGIN: 0cm 0cm 0pt
}
DIV.053850f9-436d-4f74-b476-de5f3443f0c8 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.053850f9-436d-4f74-b476-de5f3443f0c8Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Nur Text Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.NurTextZchn
        {mso-style-name:"Nur Text Zchn";
        mso-style-priority:99;
        mso-style-link:"Nur Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">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() ">";<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Then I discovered the
really cool oxy_editor()-function!
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">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 …?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Monika<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT"></span> </p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT">.
. . . . . . . . . . . . . . . . . . . . . . . . .</span></p>
<font color="#ff0000"><font color="#ff0000"><font color="#ff0000">
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; ">Ing.
</span><span style="font-family:Calibri;
font-size:x-small; ">Monika</span><font face="Calibri"
size="2"> </font><span style="font-family:Calibri;
font-size:x-small; ">Madlik</span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color:
#000000; ">Developer</span></p>
</font></font></font>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><font
color="#7d7d7d" face="Calibri" size="2">LexisNexis</font></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color: #7D7D7D;
">A-1030 Wien, Marxergasse 25</span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"> </p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color: Black; "><span
style="font-family:Calibri; font-size:x-small; color: Black;
"><a moz-do-not-send="true"
href="mailto:Monika.Madlik@lexisnexis.at" title="Click to
send email to Madlik, Monika (LNG-VIE)" target=""><span
style="font-family:Calibri; font-size:x-small; color:
Black; ">Monika.Madlik@lexisnexis.at</span></a></span></span></p>
<font color="#ff0000">
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color:
#7D7D7D; ">Tel.: +43 1 53452 1568</span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color:
#7D7D7D; ">Fax.: +43 1 534 52 146</span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span
style="font-family:Calibri; font-size:x-small; color:
#7D7D7D; "></span></p>
</font>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT"></span> </p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT"></span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT">.
. . . . . . . . . . . . . . . . . . . . . . . . .</span></p>
<p class="053850f9-436d-4f74-b476-de5f3443f0c8"><span lang="DE-AT"></span> </p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
</body>
</html>