FTP from inside XProc in oXygen?

Fellow oXygen connoisseurs, I have attached an FTP site to my Data Source Explorer, which makes me happy, as it is easy to upload results of my XProc Transformation Scenario to my site just by copying from the Project view. What I wonder is whether this operation could not be simplified even further. This process in particular is an XProc pipeline, which generates some results and creates others by moving static resources in the file system. (So p:store and p:zip are involved, it's not just binding pipeline results.) If I could configure either or both the Transformation Scenario or the XProc itself to write to my (authenticated) FTP server, I would be overjoyed. I would welcome any hints or ideas. Thanks! Cheers, Wendell -- Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^

Hello Wendell, You could configure the output of the XProc transformation scenario to point to a remote URL. e.g. result -> ftp://my.ftp.site/path/to/my/file.xml You can use "Browse Data Source Explorer" from the URL field drop-down browse list, to pick it directly from the FTP site you have configured in the "Data Source Explorer". Note that this is specific to XProc transformation scenarios. XSLT and ANT transformation scenarios can only be configured to output locally. Regards, Adrian On 11.12.2015 19:13, Wendell Piez wrote:
Fellow oXygen connoisseurs,
I have attached an FTP site to my Data Source Explorer, which makes me happy, as it is easy to upload results of my XProc Transformation Scenario to my site just by copying from the Project view.
What I wonder is whether this operation could not be simplified even further. This process in particular is an XProc pipeline, which generates some results and creates others by moving static resources in the file system. (So p:store and p:zip are involved, it's not just binding pipeline results.)
If I could configure either or both the Transformation Scenario or the XProc itself to write to my (authenticated) FTP server, I would be overjoyed.
I would welcome any hints or ideas. Thanks!
Cheers, Wendell
-- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.2020 Fax: +40-251-461482 support@oxygenxml.com

On 14/12/2015 8:54 pm, Oxygen XML Editor Support (Adrian Buza) wrote:
Hello Wendell,
You could configure the output of the XProc transformation scenario to point to a remote URL. e.g. result -> ftp://my.ftp.site/path/to/my/file.xml You can use "Browse Data Source Explorer" from the URL field drop-down browse list, to pick it directly from the FTP site you have configured in the "Data Source Explorer".
Note that this is specific to XProc transformation scenarios. XSLT and ANT transformation scenarios can only be configured to output locally.
These limitations on Ant (and any other scripts) can *always* be circumvented. All you need to do is make the thing think it's local. The Windows solution is Samba (and/or LDAP/Active Directory). The posix solutions are NFS, LDAP, VLANs, virtual machines/storage and some clever symbolic links. Often with various types of NAS or SAN kit. The OS X solution is Samba, but renamed/rebranded to something more fitting the Apple mythos (yes, I meant mythos - they certainly see themselves as beyond us mere mortals, but anyway). That's what those Airport Time Capsules are; a wireless connection with a Samba server running in firmware which enables you to see the remote volume as "local" to your system. Regards, Ben -- Ben McGinnes http://www.adversary.org/ Twitter: benmcginnes Writer, Systems Administrator, Trainer, ICT Consultant GPGME Python 3 API Maintainer, GNU Privacy Guard https://www.gnupg.org/ Encrypted email preferred, primary OpenPGP/GPG key: 0x321E4E2373590E5D OpenPGP/GPG key here: http://goo.gl/GVGwT and http://goo.gl/SDs0D OpenPGP/GPG key transition: http://www.adversary.org/keyswitch.txt.asc
participants (3)
-
Ben McGinnes
-
Oxygen XML Editor Support (Adrian Buza)
-
Wendell Piez