submission from XForms to XML Pipeline - null

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

submission from XForms to XML Pipeline - null

Vlad
Hello,
I'm trying to submit some XML data (an instance) from the XHTML interface to a XML pipeline , but it seems like nothing is submitted . I added a debug attribute and this is what I see in my orbeon.log file :

<null xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"></null>

This is my instance inside the model:

                        <xforms:instance id="students-instance">
                                <students>
                                        <student>
                                                <first-name />
                                                <middle-name />
                                                <last-name />
                                        </student>
                                </students>
                        </xforms:instance>


This is the declaration of the submission:

            <xforms:submission id="save-submission-sample" ref="instance('students-instance')"
                        method="post" action="/my-universitary/update-sample-data" serialization="none"
                        replace="none">
                <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving!</xforms:message>
            </xforms:submission>


and this is the pipeline that it's supposed to submit the data to :

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
       
        <p:param type="input" name="instance" />
       
        <p:processor name="oxf:xml-converter">
            <p:input name="config">
                <config>
                    <encoding>utf-8</encoding>
                </config>
            </p:input>
            <p:input name="data" href="#instance" debug="result"/>
            <p:output name="data" id="converted"/>
        </p:processor>

        <p:processor name="oxf:file-serializer">
                <p:input name="config">
                        <config>
                                <file>students.xml</file>
                                <directory>C:/temp</directory>
                            <content-type>text/xml</content-type>
                <make-directories>false</make-directories>
                <append>true</append>
                        </config>
                </p:input>
                <p:input name="data" href="#converted"/>
        </p:processor>
</p:config>



Which could be the problem ?
There are no errors and the file writing(to students.xml) works fine (just a null tag is written , of course :) )

Thanks you,
   Vlad
Reply | Threaded
Open this post in threaded view
|

Re: submission from XForms to XML Pipeline - null

Vlad
Can anybody help me on this ?
I guess the problem's not very complex , it could be a small detail that's messing it up ; but I didn't find it so I'm stuck with it right now.
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Re: submission from XForms to XML Pipeline - null

Erik Bruchez
Administrator
Where is your original message? I don't see it.

http://orbeon-forms-ops-users.24843.n4.nabble.com/submission-from-XForms-to-XML-Pipeline-null-tc4622206.html#a4632893

-Erik

On Mon, May 14, 2012 at 12:21 PM, Vlad <[hidden email]> wrote:

> Can anybody help me on this ?
> I guess the problem's not very complex , it could be a small detail that's
> messing it up ; but I didn't find it so I'm stuck with it right now.
> Thanks.
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/submission-from-XForms-to-XML-Pipeline-null-tp4622206p4632893.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
Reply | Threaded
Open this post in threaded view
|

Re: Re: submission from XForms to XML Pipeline - null

Erik Bruchez
Administrator
It seems the original message was not accepted by the mailing-list.

Anyway, serialization="none"  is your problem. Just remove that attribute.

-Erik

On Mon, May 14, 2012 at 9:10 PM, Erik Bruchez <[hidden email]> wrote:

> Where is your original message? I don't see it.
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/submission-from-XForms-to-XML-Pipeline-null-tc4622206.html#a4632893
>
> -Erik
>
> On Mon, May 14, 2012 at 12:21 PM, Vlad <[hidden email]> wrote:
>> Can anybody help me on this ?
>> I guess the problem's not very complex , it could be a small detail that's
>> messing it up ; but I didn't find it so I'm stuck with it right now.
>> Thanks.
>>
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/submission-from-XForms-to-XML-Pipeline-null-tp4622206p4632893.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
Reply | Threaded
Open this post in threaded view
|

Re: Re: submission from XForms to XML Pipeline - null

Vlad
Thank you !
However , I already had the problem solved just before you answered (maybe I unsubscribed from the mailing list my mistake)
I noticed that serialization="none" was the problem :)

Vlad