<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>There is an <i>oxy_xpath()</i> [1] function available that can
      execute XPath, but I'm not sure how it would help in this
      scenario. What comes to mind is the <i>onChange</i> property on
      the combo box form control because it's value can be another
      action invoke when the combo commits a value. For example, you can
      invoke an XQuery update script [3] which can inspect the document
      to see what value was committed and can afterwards alter the
      document accordingly.<br>
    </p>
    <p><span
        class="block-level-combo-box-editor__codeblock_trd_dgk_54b-parent">
        <pre class="+ topic/pre pr-d/codeblock pre codeblock language-css" id="combo-box-editor__codeblock_trd_dgk_54b" data-ofbid="combo-box-editor__codeblock_trd_dgk_54b" style="box-shadow: rgb(194, 206, 217) 5px 0px;">comboBox:before {
    <strong class="hl-keyword">content</strong>: <span class="hl-string">"A combo box that edits an attribute value. 
               The possible values are provided from CSS:"</span>
        oxy_combobox(           
            edit, <span class="hl-string">"@attribute"</span>,
            editable, false,
            values, <span class="hl-string">"value1, value2, value3"</span>,
            labels, <span class="hl-string">"Value no1, Value no2, Value no3"</span>,
            onChange, oxy_action(
                name, <span class="hl-string">'Insert'</span>,
                operation, <span class="hl-string">'XQueryUpdateOperation'</span>,
                arg-script, <span class="hl-string">'insert node <product>{xs:string(@attribute)}</product>
                          as last into .'</span>));</pre>
      </span></p>
    <p><br>
    </p>
    <p>[1]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-xpath-function.html">https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-xpath-function.html</a><br>
    </p>
    <p>[2]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/combo-box-editor.html#combo-box-editor__li_rrd_dgk_54b">https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/combo-box-editor.html#combo-box-editor__li_rrd_dgk_54b</a></p>
    <p>[3]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__xqueryupdateoperation">https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__xqueryupdateoperation</a><br>
    </p>
    <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>
    <div class="moz-cite-prefix">On 11/8/2022 2:06 AM, Scott Prentice
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8a8079a1-8e62-69fd-c293-ac549cca0c44@leximation.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font face="Verdana">Just wondering if there's an "eval" custom
          CSS function .. ?</font></p>
      <p><font face="Verdana">I've got an oxy_combobox that lists a
          number of attributes, and would like to be able to test the
          selected value. If a certain attribute was selected, I want to
          set another attribute on the same element.</font></p>
      <p><font face="Verdana">I know I can do this by writing some Java
          code, but wanted to make sure I wasn't missing something
          obvious with the custom CSS functions.</font></p>
      <p><font face="Verdana">Thanks!<br>
          ...scott</font></p>
      <p><br>
      </p>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-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="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
  </body>
</html>