<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">Hi Markus,<br>
      <br>
      Unfortunately you can't define custom CSS functions. What if you
      keep the CSS rule as it is and use a StylesFilter only to correct
      these read-only contexts?<br>
      <br>
      if (!styles.isEditable()) {<br>
      &nbsp; // Read-only context. The XPath will not give any values for
      this context.<br>
      &nbsp; StaticContent[] contentProp = (StaticContent[])
      styles.getProperty(Styles.KEY_MIXED_CONTENT);<br>
      &nbsp; EditorContent editorContent = (EditorContent) contentProp[0];<br>
      &nbsp;
      editorContent.getProperties().put(InplaceEditorArgumentKeys.PROPERTY_VALUES,
      getValues());<br>
      }<br>
      <br>
      <pre class="moz-signature" cols="72">Best regards,
Alex
-- 
Alex Jitianu
&lt;oXygen/&gt;  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 8/19/2014 6:02 PM, practice innovation wrote:<br>
    </div>
    <blockquote
      cite="mid:016501cfbbbe$88ad68c0$9a083a40$@practice-innovation.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-MailFormatvorlage20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.hl-string
        {mso-style-name:hl-string;}
span.hl-number
        {mso-style-name:hl-number;}
span.E-MailFormatvorlage23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="MsoNormal"><span style="color:#1F497D" lang="EN-US">Hi
            Alex,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">as
            my :before rule is a little bit more complex StylesFilter is
            not the way I really like. <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Is
            there a way to implement a custom function getMyOwnValues(),
            which I can include like this:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">oxy_editor(<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type, popupSelection,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit, </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#2A00FF;mso-fareast-language:DE"
            lang="EN-US">"@attribute"</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; values, </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#2A00FF;mso-fareast-language:DE"
            lang="EN-US">getMyOwnValues()</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; labels, </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#2A00FF;mso-fareast-language:DE"
            lang="EN-US">getMyOwnValues()</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resultSeparator, </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#2A00FF;mso-fareast-language:DE"
            lang="EN-US">"|"</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; columns, 10,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionMode, </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#2A00FF;mso-fareast-language:DE"
            lang="EN-US">"multiple"</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:windowtext;mso-fareast-language:DE"
            lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fontInherit, true);<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Thanks
            for your support<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Markus<o:p></o:p></span></p>
        <p class="MsoNormal"><b><span
              style="color:#1F497D;mso-fareast-language:DE"><o:p>&nbsp;</o:p></span></b></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:DE"><o:p>&nbsp;</o:p></span></p>
      </div>
      <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>