XPL handling of PIs

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

XPL handling of PIs

ddossot
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
Reply | Threaded
Open this post in threaded view
|

Re: XPL handling of PIs

Alessandro  Vernet
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
Reply | Threaded
Open this post in threaded view
|

Re: XPL handling of PIs

Alessandro  Vernet
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
Reply | Threaded
Open this post in threaded view
|

Re: XPL handling of PIs

ddossot
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


  • From: "Alessandro Vernet" <avernet@xxxxxxxxxx>
  • To: ops-users@xxxxxxxxxxxxx
  • Subject: Re: [ops-users] XPL handling of PIs
  • Date: Thu, 9 Nov 2006 10:40:05 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fcBln6Mws7Q7gq+QMZ3zzW/i0d5OkIntwIbRrP45f5zn5lQzPW/TtnqF/XSywEjmLF5HZWcBBKqNoAVDmIFzVXtXekq0jE90gpjwf76VLRNJytM7MsMSRQrBTY9JJdbB9CwcHOUuEk2NDvIpAMGNjU6Emx1jrHY/xnBhJklXxp0=
  • References: <sympa.1162991821.9207.268@...>


  • 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



    --
    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: XPL handling of PIs

    ddossot
    In reply to this post by ddossot
    Thanks a lot for the plug ;-)

    David


  • From: "Alessandro Vernet" <avernet@xxxxxxxxxx>
  • To: ops-users@xxxxxxxxxxxxx
  • Subject: Re: [ops-users] XPL handling of PIs
  • Date: Thu, 9 Nov 2006 10:47:59 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=K0sWPExw5jC44OOTSN0n/Na3QWxIZ1U2TIMQTCvcnPpCUl5nHkAviHtPHbIE2n0+KIkbGM5uFEYI7oGY8gPkYEwUlCUw/BRsAwRV32wR7alVEcPeQiPp5XpjQHBK3LQUBzvBwByLu+nNZLPGb5xE3LI++uRw51BT7sWyimvd30k=
  • References: <sympa.1162991821.9207.268@...>


  • 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



    --
    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: XPL handling of PIs

    ddossot
    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,

    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


  • From: "Alessandro Vernet" <avernet@xxxxxxxxxx>
  • To: ops-users@xxxxxxxxxxxxx
  • Subject: Re: [ops-users] XPL handling of PIs
  • Date: Thu, 9 Nov 2006 10:40:05 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=<a href="http://gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fcBln6Mws7Q7gq+QMZ3zzW/i0d5OkIntwIbRrP45f5zn5lQzPW/TtnqF/XSywEjmLF5HZWcBBKqNoAVDmIFzVXtXekq0jE90gpjwf76VLRNJytM7MsMSRQrBTY9JJdbB9CwcHOUuEk2NDvIpAMGNjU6Emx1jrHY/xnBhJklXxp0=
  • References: <<a href="http://www.objectweb.org/wws/arc/ops-users/2006-11/msg00130.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sympa.1162991821.9207.268@... >


  • 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.

    <a href="http://forge.objectweb.org/tracker/index.php?func=detail&amp;aid=306380&amp;group_id=168&amp;atid=350207" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://forge.objectweb.org/tracker/index.php?func=detail&aid=306380&group_id=168&atid=350207

    Alex




    --
    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