Hi Guys,
I am using OPS 3.5.M1 for jinFORM (jinform.org), a little project for filling MS InfoPath forms on the web by transforming XSN files into XForms. When the user asks to save the XML instance build by OPS, I use a basic pipeline that tries to take all the child nodes of the form data instance. These nodes are Processing Instructions that must be preserved and the actual root node of the XML form data. These PIs are not accepted by the transformer in the pipeline. Here are the details: * XPL: <p:processor name="oxf:identity"> <p:input name="data" href="#instance#xpointer(/form-data/child::node())" /> <p:output name="data" ref="data" /> </p:processor> * Top of XML backing form data (namespaces removed): <form-data> <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> <?mso-application progid="InfoPath.Document"?> <mtg:meetingAgenda> (...) * Expected processor result: <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> <?mso-application progid="InfoPath.Document"?> <mtg:meetingAgenda> (...) * Top of error received: Exception Class org.orbeon.oxf.common.ValidationException Message Unsupported type returned by XPath expression: org.dom4j.tree.DefaultProcessingInstruction Resource URL oxf:/jinform/xforms-save.xpl Line 12 Column 78 Thank you for your support, Kind 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 |
Administrator
|
Hi David,
Correct: processing instructions directly returned by XPath expressions in XPointer were not correctly handled. This is now fixed. You'll find the fix in the next build. Let us know how this work for you. http://forge.objectweb.org/tracker/index.php?func=detail&aid=306380&group_id=168&atid=350207 Alex On 11/8/06, [hidden email] <[hidden email]> wrote: > Hi Guys, > > I am using OPS 3.5.M1 for jinFORM (jinform.org), a little project for filling MS InfoPath forms on the web by transforming XSN files into XForms. > > When the user asks to save the XML instance build by OPS, I use a basic pipeline that tries to take all the child nodes of the form data instance. These nodes are Processing Instructions that must be preserved and the actual root node of the XML form data. These PIs are not accepted by the transformer in the pipeline. > > Here are the details: > > > * XPL: > > <p:processor name="oxf:identity"> > <p:input name="data" href="#instance#xpointer(/form-data/child::node())" /> > <p:output name="data" ref="data" /> > </p:processor> > > > > * Top of XML backing form data (namespaces removed): > > <form-data> > <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> > <?mso-application progid="InfoPath.Document"?> > <mtg:meetingAgenda> > (...) > > > * Expected processor result: > > <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> > <?mso-application progid="InfoPath.Document"?> > <mtg:meetingAgenda> > (...) > > > * Top of error received: > > Exception Class org.orbeon.oxf.common.ValidationException > Message Unsupported type returned by XPath expression: org.dom4j.tree.DefaultProcessingInstruction > Resource URL oxf:/jinform/xforms-save.xpl > Line 12 > Column 78 > > > Thank you for your support, > Kind 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 |
Administrator
|
In reply to this post by ddossot
David,
BTW congratulations on the release of jinFORM. For those of you reading this who still have to deal with InfoPath ;), you might want to have a look at jinFORM: http://sourceforge.net/projects/jinform And this is the blog post from David that first caught my attention: http://ddossot.blogspot.com/2006/10/16-months-iteration.html Alex On 11/8/06, [hidden email] <[hidden email]> wrote: > Hi Guys, > > I am using OPS 3.5.M1 for jinFORM (jinform.org), a little project for filling MS InfoPath forms on the web by transforming XSN files into XForms. > > When the user asks to save the XML instance build by OPS, I use a basic pipeline that tries to take all the child nodes of the form data instance. These nodes are Processing Instructions that must be preserved and the actual root node of the XML form data. These PIs are not accepted by the transformer in the pipeline. > > Here are the details: > > > * XPL: > > <p:processor name="oxf:identity"> > <p:input name="data" href="#instance#xpointer(/form-data/child::node())" /> > <p:output name="data" ref="data" /> > </p:processor> > > > > * Top of XML backing form data (namespaces removed): > > <form-data> > <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> > <?mso-application progid="InfoPath.Document"?> > <mtg:meetingAgenda> > (...) > > > * Expected processor result: > > <?mso-infoPathSolution PIVersion="1.0.0.0" name="urn:schemas-microsoft-com:office:infopath:oob:MeetingAgenda:1033" solutionVersion="1.0.0.1" ?> > <?mso-application progid="InfoPath.Document"?> > <mtg:meetingAgenda> > (...) > > > * Top of error received: > > Exception Class org.orbeon.oxf.common.ValidationException > Message Unsupported type returned by XPath expression: org.dom4j.tree.DefaultProcessingInstruction > Resource URL oxf:/jinform/xforms-save.xpl > Line 12 > Column 78 > > > Thank you for your support, > Kind 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 |
In reply to this post by ddossot
Hi Alessandro,
Thank you very much for your feedback. I will test whenever possible (probably not before next week) and report results in this thread. Thanks again, 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 |
In reply to this post by ddossot
Thanks a lot for the plug ;-)
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 |
In reply to this post by ddossot
I am happy to report that it now jolly works! The PIs are kept, which means the XML instance is now valid and can be automatically re-opened from Windows Explorer!
Thank you Alessandro. David
On 11/10/06, David Dossot <[hidden email]> wrote: Hi Alessandro, -- 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 |
Free forum by Nabble | Edit this page |