<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><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: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;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><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 <oxygen-user-bounces@oxygenxml.com> <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> oxygen-user@oxygenxml.com<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">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"><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">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">oXygen-user@oxygenxml.com</a><o:p></o:p></pre><pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">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">oXygen-user@oxygenxml.com</a><o:p></o:p></pre><pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre></blockquote><pre><o:p> </o:p></pre></div></body></html>