XProc to access XML data from FTP (with authentication)

Hi everyone,

Hoping those of you with more experience might be able to help with an issue my co-worker has encountered and I'm attempting to help with.

He posted a very well written question on StackOverflow with details here: https://stackoverflow.com/questions/32660559/xproc-to-access-xml-data-from-ftp-with-authentication

The issue in short is this:

Calling an xproc that looks like this against an FTP server that does not require authentication works great:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
    <p:input port="source">
    <p:document href="ftp://ftp.hq.nasa.gov/index.html"/>
    </p:input>
    <p:output port="result"/>
    <p:identity/>
</p:declare-step>


Calling an xproc that looks like this against an FTP server requiring authentication does not work:


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"

xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">

    <p:input port="source">

        <p:document href="ftp://user:passwordd@ftp.example.org/example.xml"/>

    </p:input>

    <p:output port="result"/>

    <p:identity/>

 </p:declare-step>

Is there a different (correct) way for us to work with FTP servers that require authentication?

Would love any tips or feedback you can provide.

Thank you in advance for your help,

Zach






















The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this email. Thank you.
[IP_US_DISC]

msk dccc60c6d2c3a6438f0cf467d9a4938

Received on Thursday, 24 September 2015 16:22:26 UTC