<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>HI Gary,</p>
    <p>Unfortunately we do not have API to allow access to content
      inside the Results view.</p>
    <p>We do have API to allow access to the opened documents in the
      main editor.</p>
    <p>For example if you edit the transformation scenario and in the
      "Output" tab choose to uncheck "Present as a sequence" and choose
      to open the document in the editor, after the resulting document
      is opened in the editor we have APIs to get the contents of the
      opened document.</p>
    <p>But once the result is opened in the editor you can also use the
      main menu File->Save to URL, choose to "Browse Data Source
      Explorer" and save it to the Exist connection.<br>
    </p>
    <p>Regards,</p>
    <p>Radu</p>
    <pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
    <div class="moz-cite-prefix">On 4/14/21 18:34, Gary Kopp wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:001401d73143$a049a5f0$e0dcf1d0$@runbox.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}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">Hello Radu. I�m pleased to see you�re still
          helping out with the Oxygen SDK. We corresponding quite some
          time ago (on a different subject that I ultimately abandoned)
          and you were very helpful.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>�</o:p></p>
        <p class="MsoNormal">I don�t need an API to �control where and
          how a resource is saved.� Since the eXist database is already
          accessible using the XMLRPC interface exposed by an existing
          Oxygen datasource I could theoretically write the results to
          eXist directly in Java code, _<i>if</i>_ I trigger my plugin
          to run after manually executing an XQuery and (and this is the
          key) the results of the XQuery are sitting around in memory
          and can be addressed via an Oxygen SDK API. The results are
          floating around somewhere in memory, since they are already
          displayed in the results window. Am I making any sense?<o:p></o:p></p>
        <p class="MsoNormal"><o:p>�</o:p></p>
        <p class="MsoNormal">--Gary<o:p></o:p></p>
        <p class="MsoNormal"><o:p>�</o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> oXygen-user
              <a class="moz-txt-link-rfc2396E" href="mailto:oxygen-user-bounces@oxygenxml.com"><oxygen-user-bounces@oxygenxml.com></a> <b>On Behalf Of
              </b>Oxygen XML Editor Support (Radu Coravu)<br>
              <b>Sent:</b> Wednesday, April 14, 2021 4:37 AM<br>
              <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a><br>
              <b>Subject:</b> Re: [oXygen-user] Save via WebDAV<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>�</o:p></p>
        <p>Hi Gary,<o:p></o:p></p>
        <p>Adrian asked me to help you further.<o:p></o:p></p>
        <p>I'm afraid using our Java APIs from a plugin we do not have
          control to allow a third party plugin to control where and how
          a resource is saved.<o:p></o:p></p>
        <p>Maybe you can also look at other options Exist has for
          uploading content to their database:<o:p></o:p></p>
        <p><a
            href="http://exist-db.org/exist/apps/doc/uploading-files.xml"
            moz-do-not-send="true">http://exist-db.org/exist/apps/doc/uploading-files.xml</a><o:p></o:p></p>
        <p>like the section about "Uploading files with XQuery". Or ask
          around on the Exist list, maybe there are ways to set this up
          on the server side instead of using Oxygen to drive the
          transformation.<o:p></o:p></p>
        <p>Regards,<o:p></o:p></p>
        <p>Radu<o:p></o:p></p>
        <pre>Radu Coravu<o:p></o:p></pre>
        <pre>Oxygen XML Editor<o:p></o:p></pre>
        <div>
          <p class="MsoNormal">On 4/13/21 19:27, Gary Kopp wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Thanks Adrian. Defining eXist WebDAV as a
            network drive is a great option, and I�m embarrassed that I
            didn�t think of that � it�s pretty obvious. If I want to
            take this to the next step (more automation), do you know if
            transformation output/results are API-accessible using the
            oXygen SDK?<o:p></o:p></p>
          <p class="MsoNormal">�<o:p></o:p></p>
          <p class="MsoNormal">--Gary<o:p></o:p></p>
          <p class="MsoNormal">�<o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b>From:</b> oXygen-user <a
                  href="mailto:oxygen-user-bounces@oxygenxml.com"
                  moz-do-not-send="true"><oxygen-user-bounces@oxygenxml.com></a>
                <b>On Behalf Of </b>Oxygen XML Editor Support (Adrian
                Buza)<br>
                <b>Sent:</b> Tuesday, April 13, 2021 7:36 AM<br>
                <b>To:</b> <a href="mailto:oxygen-user@oxygenxml.com"
                  moz-do-not-send="true">oxygen-user@oxygenxml.com</a><br>
                <b>Subject:</b> Re: [oXygen-user] Save via WebDAV<o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal">�<o:p></o:p></p>
          <p class="MsoNormal">Hi,<br>
            <br>
            Both the results and/or output of an Oxygen transformation
            are designed to be saved locally.<br>
            So, no, there is no way to configure an Oxygen
            transformation scenario to output the result to a remote
            location (this includes an eXist-db database).<br>
            <br>
            One trick you can use, if you have WebDAV enabled on your
            eXist-db server, is to mount the WebDAV repository as a
            network drive (or as a folder for Linux/macOS) and configure
            Oxygen to output to that mounted location (as if it was
            local).<br>
            <br>
            Regards,<br>
            Adrian<br>
            <br>
            <br>
            <o:p></o:p></p>
          <pre>Adrian Buza<o:p></o:p></pre>
          <pre>oXygen XML Editor and Author Support<o:p></o:p></pre>
          <div>
            <p class="MsoNormal">On 12.04.2021 00:01, Gary Kopp wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal">I must be missing something � this is
              too complicated. I�m using oXygen with eXist-db. All I
              want to do is save the results of an XQuery query to the
              eXist database as a new document in a direct a way as
              possible. Saving the results from the results window only
              seems to support the local filesystem. I can jump through
              a few hoops and get the results transferred to an editing
              window where I can �Save to URI� and ultimately get it
              sent out via WebDAV, but the dialogs for that are
              ridiculously convoluted IMO. Am I missing a more direct
              way?<o:p></o:p></p>
            <p class="MsoNormal">�<o:p></o:p></p>
            <p class="MsoNormal">--Gary Kopp<o:p></o:p></p>
            <p class="MsoNormal"><br>
              <br>
              <br>
              <o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>oXygen-user mailing list<o:p></o:p></pre>
            <pre><a href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
            <pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal">�<o:p></o:p></p>
          <p class="MsoNormal"><br>
            <br>
            <o:p></o:p></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>oXygen-user mailing list<o:p></o:p></pre>
          <pre><a href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
          <pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
        </blockquote>
        <pre><o:p>�</o:p></pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>