Problem with itemset copy

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

Problem with itemset copy

Andrew S. Townley-2
Hi,

I think there's an issue with the way that OPS 3.0.1 handles itemset
copy.  It appears that it doesn't copy the entire XML element as
indicated in "XForms:  XML Powered Web Forms", Section 3.4.6.
Basically, according to the book (as well as the specification), if you
use itemset in this manner:

     31     <xforms:select1 bind="item" appearance="minimal">
     32       <xforms:label>Item:</xforms:label>
     33       <xforms:itemset nodeset="instance('items')/foo:Item">
     34         <xforms:label ref="."/>
     35         <xforms:copy ref="."/>
     36       </xforms:itemset>
     37     </xforms:select1>

If the item in the instance are defined as:

      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <foo:ItemList xmlns:foo="http://foo.com/namespaces/foo">
      3   <foo:Item attr1="Value1-1" attr2="Value2-1">Item 1</foo:Item>
      4   <foo:Item attr1="Value1-2" attr2="Value2-2">Item 2</foo:Item>
      5   <foo:Item attr1="Value1-3" attr2="Value2-3">Item 3</foo:Item>
      6   <foo:Item attr1="Value1-4" attr2="Value2-4">Item 4</foo:Item>
      7 </foo:ItemList>

then the value of the instance defined as:

     13     <xforms:model>
     14       <xforms:instance id="Value" xmlns="">
     15         <FormData>
     16           <Item/>
     17         </FormData>
     18       </xforms:instance>
     19
     20       <xforms:instance id="items" src="file:///.../foo.xml"/>
     21
     22       <!-- submission -->
     23       <xforms:submission action="http://localhost:8000/receiver" method="post" id="update"/>
     24
     25       <!-- binding information for the personal details -->
     26       <xforms:bind nodeset="/FormData/Item" id="item"/>
     27     </xforms:model>

should include the full item from the remote instance, e.g.:

<foo:Item attr1="Value1-2" attr2="Value2-2">Item 2</foo:Item>

However, when trying this form using OPS, it seems that only the value
of the XML element is replaced in the instance, e.g.:

<Item>Item 3</Item>

Is this a known issue?  I'm trying to prototype a form which will need
to make heavy use of this construct because the complete element in the
remote instance needs to be included in the resulting form submission
instance.  If this isn't possible, then I need to know more detail than
I should in the form using the remote data because I need to include all
of the attributes in the instance data.

I'm doing some rudimentary interoperability checking between Mozilla's
XForms 0.6 and OPS.  Mozilla seems to do this correctly (although there
are separate issues with it needing to download the file first).

If you need the examples (and the simple ruby WEBrick servlet I'm using
to test with), I can post them somewhere.

Thanks in advance,

ast
***************************************************************************************************
The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************




--
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: Problem with itemset copy

Damiano Albani-2
Andrew,

Maybe your problem is related to
<http://mail-archive.objectweb.org/ops-users/2006-07/msg00075.html>...

--
Damiano ALBANI



--
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: Problem with itemset copy

Andrew S. Townley-2
So it would appear...

Thanks for the head's up, Damiano.  This is going to be a big problem
for us, but I'll look into Erik's suggested alternatives.  Regardless if
there's issues in the spec, if it's ratified and other implementations
do it, I'd say that some sort of parity needs to be in OPS.  It wouldn't
be the first time "interesting" things have been parts of W3C
specifications.  There's always XSD in its entirety.

ast

On Sat, 2006-07-22 at 18:11, Damiano Albani wrote:
> Andrew,
>
> Maybe your problem is related to
> <http://mail-archive.objectweb.org/ops-users/2006-07/msg00075.html>...
***************************************************************************************************
The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************




--
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: Problem with itemset copy

Erik Bruchez
Administrator
Andrew,

It is likely that we will implement xforms:copy for the 3.1 release or
shortly thereafter:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305615&group_id=168&atid=350207

-Erik

Andrew S. Townley wrote:

> So it would appear...
>
> Thanks for the head's up, Damiano.  This is going to be a big problem
> for us, but I'll look into Erik's suggested alternatives.  Regardless if
> there's issues in the spec, if it's ratified and other implementations
> do it, I'd say that some sort of parity needs to be in OPS.  It wouldn't
> be the first time "interesting" things have been parts of W3C
> specifications.  There's always XSD in its entirety.
>
> ast
>
> On Sat, 2006-07-22 at 18:11, Damiano Albani wrote:
>> Andrew,
>>
>> Maybe your problem is related to
>> <http://mail-archive.objectweb.org/ops-users/2006-07/msg00075.html>...
> ***************************************************************************************************
> The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
> ***************************************************************************************************
--
Orbeon - 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: Problem with itemset copy

Andrew S. Townley-2
Hi Erik,

Glad to hear it'll be included sometime soon.

Doesn't really do much to help my demo to support my internal marketing
efforts next week though. :)  Not ultra-critical, I suppose, but
would've been nice to show.  Can still show the concept in other ways,
however.

Cheers,

ast

On Sat, 2006-07-22 at 22:58, Erik Bruchez wrote:

> Andrew,
>
> It is likely that we will implement xforms:copy for the 3.1 release or
> shortly thereafter:
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=305615&group_id=168&atid=350207
>
> -Erik
>
> Andrew S. Townley wrote:
> > So it would appear...
> >
> > Thanks for the head's up, Damiano.  This is going to be a big problem
> > for us, but I'll look into Erik's suggested alternatives.  Regardless if
> > there's issues in the spec, if it's ratified and other implementations
> > do it, I'd say that some sort of parity needs to be in OPS.  It wouldn't
> > be the first time "interesting" things have been parts of W3C
> > specifications.  There's always XSD in its entirety.
> >
> > ast
> >
> > On Sat, 2006-07-22 at 18:11, Damiano Albani wrote:
> >> Andrew,
> >>
> >> Maybe your problem is related to
> >> <http://mail-archive.objectweb.org/ops-users/2006-07/msg00075.html>...
> > ***************************************************************************************************
> > The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
> > ***************************************************************************************************
***************************************************************************************************
The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************




--
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: Problem with itemset copy

Damiano Albani-2
In reply to this post by Erik Bruchez
On 7/22/06, Erik Bruchez <[hidden email]> wrote:
> Andrew,
>
> It is likely that we will implement xforms:copy for the 3.1 release or
> shortly thereafter:

The lack of <xforms:copy> is indeed an issue for the dev of my XForms
application. I suppose using extensive <xforms:setvalue> calls might
bring some help but I'd prefer a nicer solution :/

But, as you guys do a fantastic job on OPS, it would be unfair to
complain too much -:)

--
Damiano ALBANI



--
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: Problem with itemset copy

Erik Bruchez
Administrator
Damiano Albani wrote:
> On 7/22/06, Erik Bruchez <[hidden email]> wrote:
>> Andrew,
>>
>> It is likely that we will implement xforms:copy for the 3.1 release or
>> shortly thereafter:
>
> The lack of <xforms:copy> is indeed an issue for the dev of my XForms
> application. I suppose using extensive <xforms:setvalue> calls might
> bring some help but I'd prefer a nicer solution :/

xforms:insert rather than xforms:setvalue would be your friend here ;-)

> But, as you guys do a fantastic job on OPS, it would be unfair to
> complain too much -:)

Thanks! Anyway, support for xforms:copy will come in due time.

-Erik

--
Orbeon - 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: Problem with itemset copy

Damiano Albani-2
On 7/24/06, Erik Bruchez <[hidden email]> wrote:
> Damiano Albani wrote:
> >
> > The lack of <xforms:copy> is indeed an issue for the dev of my XForms
> > application. I suppose using extensive <xforms:setvalue> calls might
> > bring some help but I'd prefer a nicer solution :/
>
> xforms:insert rather than xforms:setvalue would be your friend here ;-)

At first, I couldn't see how <xforms:insert> would help me at all...
and then I remembered of the @origin and @context parameters. Very
useful indeed !
Thanks for the tip Erik, it is a clever "workaround" :)

--
Damiano ALBANI



--
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: Problem with itemset copy

ozenzin
Pls advise were you successfull with "workaround"? I do not see how it can help in case of deselect also. It would be wonderfull if someone who succeeded provide a hint or example - how can I retrieve selected nodes in xpath for insert@nodeset?

Oleg



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