Re: Support of file://

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Support of file://

Ralf Jung
Hi,

> 2. I wrote and XPL to save an xml instance. Is there any way to dynamically
> pass file name to this XPL
>
> Here is the XPL
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>         <p:param name="instance" type="input"/>
>
>         <p:processor name="oxf:xml-converter">
>             <p:input name="config">
>                 <config>
>                     <encoding>utf-8</encoding>
>                 </config>
>             </p:input>
>             <p:input name="data" href="#instance"/>
>             <p:output name="data" id="converted"/>
>         </p:processor>
>
>         <p:processor name="oxf:file-serializer">
>             <p:input name="config">
>                 <config>
>                     <content-type>text/xml</content-type>
>                     <directory>D:\BA-Dev</directory>
>                     <file>test.xml</file>
>                 </config>
>             </p:input>
>             <p:input name="data" href="#converted"/>
>         </p:processor>
>     </p:config>
>
> Is there any way I can pass the <directory> and <file> values dynamically.
Yes, you can send the config XML tree through an XSLT transformation before it
is sent to the file-serializer. See
http://wiki.orbeon.com/forms/doc/developer-guide/xml-pipeline-language-
xpl#TOC-Embedding-transformations-within-in

Kind regards,
Ralf


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Support of file://

Erik Bruchez
Administrator
On #1, the answer is no.

-Erik

On Fri, Apr 29, 2011 at 3:08 PM, SD <[hidden email]> wrote:

> Hi All,
>
> This is a 2 part question
>
> 1.Does Orbeon support <xforms:submission action="file:" />
>
> 2. I wrote and XPL to save an xml instance. Is there any way to dynamically
> pass file name to this XPL
>
> Here is the XPL
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>        xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>        <p:param name="instance" type="input"/>
>
>        <p:processor name="oxf:xml-converter">
>            <p:input name="config">
>                <config>
>                    <encoding>utf-8</encoding>
>                </config>
>            </p:input>
>            <p:input name="data" href="#instance"/>
>            <p:output name="data" id="converted"/>
>        </p:processor>
>
>        <p:processor name="oxf:file-serializer">
>            <p:input name="config">
>                <config>
>                    <content-type>text/xml</content-type>
>                    <directory>D:\BA-Dev</directory>
>                    <file>test.xml</file>
>                </config>
>            </p:input>
>            <p:input name="data" href="#converted"/>
>        </p:processor>
>    </p:config>
>
> Is there any way I can pass the <directory> and <file> values dynamically.
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Support-of-file-tp3484726p3484726.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws