Form data instance namespace handling

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

Form data instance namespace handling

ddossot
Hi Guys,

Here is the top of my form data instance :

<xforms:instance id="form-data">
<form-data xmlns="">
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:applicationV3:-myXSD-2005-05-20T06-57-42" href="manifest.xsf" solutionVersion="1.0.0.13" productVersion=" 11.0.6357" PIVersion="1.0.0.0" ?>
<?mso-application progid="InfoPath.Document"?>
<my:applicationDataV2 xmlns:my=" http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-05-20T06:57:42" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">
                       
When testing this form in OPS XForms Sandbox (using ops-SNAPSHOT-20061116), the form submission returns this instance:

<?xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:applicationV3:-myXSD-2005-05-20T06-57-42" href=" manifest.xsf" solutionVersion="1.0.0.13" productVersion="11.0.6357" PIVersion="1.0.0.0" ?>
<?mso-application progid="InfoPath.Document"?>
<my:applicationDataV2 xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-05-20T06:57:42 ">
                    
As you can see, the xsi namespace declaration is gone which makes the XML instance invalid.

Should the pipeline that receives the submission be customized to handle this namespace? Or is it an issue in OPS?

Thanks for your feedback,
Kind regards,
David (still struggling with http://jinform.org ;-)






--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Form data instance namespace handling

Erik Bruchez
Administrator
David,

> Here is the top of my form data instance :
>
> <xforms:instance id="form-data">
> <form-data xmlns="">
> <?mso-infoPathSolution
> name="urn:schemas-microsoft-com:office:infopath:applicationV3:-myXSD-2005-05-20T06-57-42"
> href="manifest.xsf" solutionVersion="1.0.0.13 <http://1.0.0.13>"
> productVersion=" 11.0.6357" PIVersion="1.0.0.0 <http://1.0.0.0>" ?>
> <?mso-application progid="InfoPath.Document"?>
> <my:applicationDataV2 xmlns:my="
> http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-05-20T06:57:42"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
> <http://www.w3.org/2001/XMLSchema-instance>">
>                        
> When testing this form in OPS XForms Sandbox (using
> ops-SNAPSHOT-20061116), the form submission returns this instance:
>
> <?xml version="1.0" encoding="utf-8"?>
> <?mso-infoPathSolution
> name="urn:schemas-microsoft-com:office:infopath:applicationV3:-myXSD-2005-05-20T06-57-42"
> href=" manifest.xsf" solutionVersion="1.0.0.13 <http://1.0.0.13>"
> productVersion="11.0.6357" PIVersion="1.0.0.0 <http://1.0.0.0>" ?>
> <?mso-application progid="InfoPath.Document"?>
> <my:applicationDataV2
> xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-05-20T06:57:42 
> <http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-05-20T06:57:42>">
>                    
> As you can see, the xsi namespace declaration is gone which makes the
> XML instance invalid.
>
> Should the pipeline that receives the submission be customized to handle
> this namespace? Or is it an issue in OPS?
I am not sure I understand exactly what you mean by "the form submission
returns this instance"? Can you attach a simple repro case we can run in
the sandbox locally?

-Erik

--
Orbeon Forms - XForms Everywhere
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Form data instance namespace handling

ddossot
In reply to this post by ddossot
Hi Erik,

> I am not sure I understand exactly what you mean by "the form submission  returns this instance"?
> Can you attach a simple repro case we can run in  the sandbox locally?

Sure: a sample is allways much better than a long blah!

Just use the sandbox to fill a few values on the attached XForms and click "Save Data": you will see that the xsi namespace has been lost in space which makes the instance invalid.

Thanks + regards,
David



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

applicationV3.xhtml (15K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Form data instance namespace handling

Alessandro  Vernet
Administrator
David,

The example you sent makes a request to /jinform/saveData, which we
don't have. So it doesn't look like we can reproduce the issue you
mention here. If this needs multiple files, you could maybe send us an
"app" (directory with its own page flow which we can drop in the apps
directory).

Alex

On 11/26/06, David Dossot <[hidden email]> wrote:

> Hi Erik,
>
> > I am not sure I understand exactly what you mean by "the form submission
> returns this instance"?
> > Can you attach a simple repro case we can run in  the sandbox locally?
>
> Sure: a sample is allways much better than a long blah!
>
> Just use the sandbox to fill a few values on the attached XForms and click
> "Save Data": you will see that the xsi namespace has been lost in space
> which makes the instance invalid.
>
> Thanks + regards,
> David
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Form data instance namespace handling

ddossot
> The example you sent makes a request to /jinform/saveData, which we
> don't have. So it doesn't look like we can reproduce the issue you
> mention here. If this needs multiple files, you could maybe send us an
> "app" (directory with its own page flow which we can drop in the apps
> directory).

My page flow is of no importance in this matter.

Let me revert your question: what submission should I set to use the default handler of the sandbox (the one that displays the submitted form data instance)?

Thanks!
David



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Form data instance namespace handling

Erik Bruchez
Administrator
[hidden email] wrote:
>> The example you sent makes a request to /jinform/saveData, which we
>> don't have. So it doesn't look like we can reproduce the issue you
>> mention here. If this needs multiple files, you could maybe send us an
>> "app" (directory with its own page flow which we can drop in the apps
>> directory).
>
> My page flow is of no importance in this matter.

Alex was not talking about "your" page flow in particular, just trying
to help you provide enough files for us to reproduce the problem. If
your form performs a submission to a particular URL, and that this
submission is part of the steps you ask us to go through to reproduce
the issue, then it is important that we have something that responds to
that URL.

With recent builds of OPS, all applications are under resources/apps. It
is easy to create a simple application by creating a directory under
apps with a page flow and all the files that are needed to run the
application, and then to zip up that directory, therefore allowing other
people to run the application. Doing so would be an alternative to
providing a single XForms document to run in the sandbox.

> Let me revert your question: what submission should I set to use the default handler of the sandbox (the one that displays the submitted form data instance)?

I don't think there is such a thing in the sandbox! Can you precise your
thought?

-Erik



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Form data instance namespace handling

ddossot
I think I misunderstood one thing: I thought that the fact the form data XML instance was displayed after testing a random XForm in the sandbox was some sort of a testing feature.

I thought some sort of a default pipeline would take care of XForm submissions in the sandbox and I was trying to use this mechanism to quickly test my form and try to solve my disappearing namespace problem.

But thanks to your support I now understand this is not feasible. I will keep on investigating the issue but in a different manner.

Best regards,
David



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Form data instance namespace handling

Erik Bruchez
Administrator
David,

At the moment we do not have such a testing feature. But we would like
to add web-based monitoring / debugging facilities in the future to
make it much easier to debug forms. In the meanwhile, you can look at
this doc entry if you haven't yet:

   http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-debugging

-Erik

 > I think I misunderstood one thing: I thought that the fact the form
 > data XML instance was displayed after testing a random XForm in the
 > sandbox was some sort of a testing feature.
 >
 > I thought some sort of a default pipeline would take care of XForm
 > submissions in the sandbox and I was trying to use this mechanism to
 > quickly test my form and try to solve my disappearing namespace
 > problem.
 >
 > But thanks to your support I now understand this is not feasible. I
 > will keep on investigating the issue but in a different manner.
 >
 > Best regards,
 > David

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws