CONTENTS DELETED
The author has deleted this message.
|
Administrator
|
Maalej,
Writing to a file via a submission is not implemented at this time for security reasons (also because in most cases people use a database to store this kind of data). What you could do is: * write a service implemented e.g. in XPL * the service can use the oxf:file-serializer processor to write the data it receives to disk * your submission POSTs or PUTs the XML to that service -Erik On Tue, Sep 20, 2011 at 8:24 AM, maalej <[hidden email]> wrote: > Hi, > > i want to edit an XML-file with a xform. Read of XML is ok, save to a local > file is the Problem. > > Form: > <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <xhtml:head> > <xhtml:title>Create a Purchase Order</xhtml:title> > <xforms:model id="default"> > <xforms:instance src="oxf:/apps/xforms-sandbox/samples/images/po.xml"/> > <xforms:submission action="images/po-out.xml" method="put" id="submit"/> > ...... > Error Output: > org.orbeon.oxf.common.OXFException: submission URL scheme not yet > implemented: oxf > .... > > any solution for the submission problem. > > Thanks, > Maalej > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/XML-submission-to-Local-File-tp3827187p3827187.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 |
CONTENTS DELETED
The author has deleted this message.
|
CONTENTS DELETED
The author has deleted this message.
|
Administrator
|
By "without any result", do you mean that it didn't work?
-Erik On Sun, Sep 25, 2011 at 2:51 PM, maalej <[hidden email]> wrote: > my Example, without any result > <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <xhtml:head> > <xhtml:title>Create a Purchase Order</xhtml:title> > <xforms:model id="default"> > <xforms:instance src="oxf:/apps/xforms-sandbox/samples/images/po.xml" > id="def"/> > <xforms:submission id="submit" method="put" > action="/xforms-sandbox/service/identity" replace="instance('def')"/> > > <xforms:bind nodeset="@orderDate" required="true( )" type="xsd:string"/> > <xforms:bind nodeset="deliveryOption" required="true( )" > type="xsd:string"/> > </xforms:model> > </xhtml:head> > <xhtml:body> > <xhtml:h1>PurchaseOrder</xhtml:h1> > <xhtml:p align="center"> > <xforms:submit submission="submit"> > <xforms:label>Save Document</xforms:label> > </xforms:submit> > </xhtml:p> > <xhtml:table> > <xforms:group> > <xhtml:tr> > <xhtml:td>Order Date:</xhtml:td> > <xhtml:td> > <xforms:input nodeset="@orderDate"/> > </xhtml:td> > </xhtml:tr> > ---------------------------------------------------------------------------- > <?xml version="1.0" encoding="windows-1252"?> > <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>/home/maalej</directory> > <file>test.xml</file> > <make-directories>false</make-directories> > <append>true</append> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:config> > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/XML-submission-to-Local-File-tp3827187p3842190.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 |
Free forum by Nabble | Edit this page |