I have a piece of
xml like this:
<root>
<refs> <ref id="r1" title"Banana"/> <ref id="r2" title"Apple"/> </refs> <values> <value refid="r1">1</value> <value refid="r1">34</value> <value refid="r2">234</value> </values> </root>
and a piece of xform like
this:
<xforms:trigger
appearance="minimal">
<xforms:label>remove</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="instance('temp')/paramcounter" value="1"/> <xforms:setvalue ref="instance('temp')/paramgroupid" value="instance('main')/paramgroups/paramgroup[index('groups-repeat')]/@id"/> <xforms:action while="instance('temp')/paramcounter <= count(../../limits/parameter[@paramgroup = instance('temp')/paramgroupid])"> <xforms:setvalue ref="../../limits/parameter[@paramgroup = instance('temp')/paramgroupid][xs:int(instance('temp')/paramcounter)]/@paramgroup" value="''"/> <xforms:setvalue ref="instance('temp')/paramcounter" value=". + 1"/> </xforms:action> <xforms:delete
context=".." nodeset="paramgroup"
at="index('groups-repeat')"/> </xforms:action> </xforms:trigger> When i run it, i get
the following error:
XForms error: repeatChildren
and newNodeset have different sizes.
Anyone know how to
fix this?
Teun
-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
Administrator
|
Teun,
Could you please attach a complete XHTML file that shows the problem in the XForms sandbox? Thanks, -Erik Teun van Eijsden wrote: > I have a piece of xml like this: > <root> > <refs> > <ref id="r1" title"Banana"/> > <ref id="r2" title"Apple"/> > </refs> > <values> > <value refid="r1">1</value> > <value refid="r1">34</value> > <value refid="r2">234</value> > </values> > </root> > > and a piece of xform like this: > > <xforms:trigger appearance="minimal"> > <xforms:label>remove</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:setvalue ref="instance('temp')/paramcounter" value="1"/> > <xforms:setvalue ref="instance('temp')/paramgroupid" > value="instance('main')/paramgroups/paramgroup[index('groups-repeat')]/@id"/> > <xforms:action while="instance('temp')/paramcounter <= > count(../../limits/parameter[@paramgroup = instance('temp')/paramgroupid])"> > <xforms:setvalue ref="../../limits/parameter[@paramgroup = > instance('temp')/paramgroupid][xs:int(instance('temp')/paramcounter)]/@paramgroup" > value="''"/> > <xforms:setvalue ref="instance('temp')/paramcounter" value=". + > 1"/> > </xforms:action> > <xforms:delete context=".." nodeset="paramgroup" > at="index('groups-repeat')"/> > </xforms:action> > </xforms:trigger> > When i run it, i get the following error: > XForms error: repeatChildren and newNodeset have different sizes. > > Anyone know how to fix this? > > Teun > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of the > intended recipient(s). Any unauthorized review, use, disclosure or > distribution is prohibited. Unless explicitly stated otherwise in the > body of this communication or the attachment thereto (if any), the > information is provided on an AS-IS basis without any express or implied > warranties or liabilities. To the extent you are relying on this > information, you are doing so at your own risk. If you are not the > intended recipient, please notify the sender immediately by replying to > this message and destroy all copies of this message and any attachments. > ASML is neither liable for the proper and complete transmission of the > information contained in this communication, nor for any delay in its > receipt. > -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Here they are. I hope this wortks for you. If not, let me know and I'll
try to make a smaller example. Teun -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, November 07, 2007 20:06 To: [hidden email] Subject: Re: [ops-users] XForms error: repeatChildren and newNodeset have different sizes. Teun, Could you please attach a complete XHTML file that shows the problem in the XForms sandbox? Thanks, -Erik Teun van Eijsden wrote: > I have a piece of xml like this: > <root> > <refs> > <ref id="r1" title"Banana"/> > <ref id="r2" title"Apple"/> > </refs> > <values> > <value refid="r1">1</value> > <value refid="r1">34</value> > <value refid="r2">234</value> > </values> > </root> > > and a piece of xform like this: > > <xforms:trigger appearance="minimal"> > <xforms:label>remove</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:setvalue ref="instance('temp')/paramcounter" value="1"/> > <xforms:setvalue ref="instance('temp')/paramgroupid" > > <xforms:action while="instance('temp')/paramcounter <= > count(../../limits/parameter[@paramgroup = instance('temp')/paramgroupid])"> > <xforms:setvalue ref="../../limits/parameter[@paramgroup = > instance('temp')/paramgroupid][xs:int(instance('temp')/paramcounter)]/@p aramgroup" > value="''"/> > <xforms:setvalue ref="instance('temp')/paramcounter" value=". > + 1"/> > </xforms:action> > <xforms:delete context=".." nodeset="paramgroup" > at="index('groups-repeat')"/> > </xforms:action> > </xforms:trigger> > When i run it, i get the following error: > XForms error: repeatChildren and newNodeset have different sizes. > > Anyone know how to fix this? > > Teun > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of the > intended recipient(s). Any unauthorized review, use, disclosure or > distribution is prohibited. Unless explicitly stated otherwise in the > body of this communication or the attachment thereto (if any), the > information is provided on an AS-IS basis without any express or > implied warranties or liabilities. To the extent you are relying on > this information, you are doing so at your own risk. If you are not > the intended recipient, please notify the sender immediately by > replying to this message and destroy all copies of this message and > ASML is neither liable for the proper and complete transmission of the > information contained in this communication, nor for any delay in its > receipt. > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
Administrator
|
Teun,
Your example seems to work fine with a recent build. What version or Orbeon Forms are you using? Can you try with a recent build? -Erik Teun van Eijsden wrote: > Here they are. I hope this wortks for you. If not, let me know and I'll > try to make a smaller example. > > Teun > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: Wednesday, November 07, 2007 20:06 > To: [hidden email] > Subject: Re: [ops-users] XForms error: repeatChildren and newNodeset > have different sizes. > > Teun, > > Could you please attach a complete XHTML file that shows the problem in > the XForms sandbox? Thanks, > > -Erik > > Teun van Eijsden wrote: >> I have a piece of xml like this: >> <root> >> <refs> >> <ref id="r1" title"Banana"/> >> <ref id="r2" title"Apple"/> >> </refs> >> <values> >> <value refid="r1">1</value> >> <value refid="r1">34</value> >> <value refid="r2">234</value> >> </values> >> </root> >> >> and a piece of xform like this: >> >> <xforms:trigger appearance="minimal"> >> <xforms:label>remove</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:setvalue ref="instance('temp')/paramcounter" value="1"/> >> <xforms:setvalue ref="instance('temp')/paramgroupid" >> > value="instance('main')/paramgroups/paramgroup[index('groups-repeat')]/@ > id"/> >> <xforms:action while="instance('temp')/paramcounter <= >> count(../../limits/parameter[@paramgroup = > instance('temp')/paramgroupid])"> >> <xforms:setvalue ref="../../limits/parameter[@paramgroup = >> > instance('temp')/paramgroupid][xs:int(instance('temp')/paramcounter)]/@p > aramgroup" >> value="''"/> >> <xforms:setvalue ref="instance('temp')/paramcounter" value=". > >> + 1"/> >> </xforms:action> >> <xforms:delete context=".." nodeset="paramgroup" >> at="index('groups-repeat')"/> >> </xforms:action> >> </xforms:trigger> >> When i run it, i get the following error: >> XForms error: repeatChildren and newNodeset have different sizes. >> >> Anyone know how to fix this? >> >> Teun >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- The information contained in this communication and any attachments > >> is confidential and may be privileged, and is for the sole use of the >> intended recipient(s). Any unauthorized review, use, disclosure or >> distribution is prohibited. Unless explicitly stated otherwise in the >> body of this communication or the attachment thereto (if any), the >> information is provided on an AS-IS basis without any express or >> implied warranties or liabilities. To the extent you are relying on >> this information, you are doing so at your own risk. If you are not >> the intended recipient, please notify the sender immediately by >> replying to this message and destroy all copies of this message and > any attachments. >> ASML is neither liable for the proper and complete transmission of the > >> information contained in this communication, nor for any delay in its >> receipt. >> > > -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Ok I'll try updating. The error only happens when you press one of the
red delete buttons on the left side. Teun -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Thursday, November 08, 2007 19:45 To: [hidden email] Subject: Re: [ops-users] XForms error: repeatChildren and newNodeset have different sizes. Teun, Your example seems to work fine with a recent build. What version or Orbeon Forms are you using? Can you try with a recent build? -Erik Teun van Eijsden wrote: > Here they are. I hope this wortks for you. If not, let me know and > I'll try to make a smaller example. > > Teun > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: Wednesday, November 07, 2007 20:06 > To: [hidden email] > Subject: Re: [ops-users] XForms error: repeatChildren and newNodeset > have different sizes. > > Teun, > > Could you please attach a complete XHTML file that shows the problem > in the XForms sandbox? Thanks, > > -Erik > > Teun van Eijsden wrote: >> I have a piece of xml like this: >> <root> >> <refs> >> <ref id="r1" title"Banana"/> >> <ref id="r2" title"Apple"/> >> </refs> >> <values> >> <value refid="r1">1</value> >> <value refid="r1">34</value> >> <value refid="r2">234</value> >> </values> >> </root> >> >> and a piece of xform like this: >> >> <xforms:trigger appearance="minimal"> >> <xforms:label>remove</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:setvalue ref="instance('temp')/paramcounter" >> <xforms:setvalue ref="instance('temp')/paramgroupid" >> > value="instance('main')/paramgroups/paramgroup[index('groups-repeat')] > /@ > id"/> >> <xforms:action while="instance('temp')/paramcounter <= >> count(../../limits/parameter[@paramgroup = > instance('temp')/paramgroupid])"> >> <xforms:setvalue ref="../../limits/parameter[@paramgroup = >> > instance('temp')/paramgroupid][xs:int(instance('temp')/paramcounter)]/ > @p > aramgroup" >> value="''"/> >> <xforms:setvalue ref="instance('temp')/paramcounter" > >> + 1"/> >> </xforms:action> >> <xforms:delete context=".." nodeset="paramgroup" >> at="index('groups-repeat')"/> >> </xforms:action> >> </xforms:trigger> >> When i run it, i get the following error: >> XForms error: repeatChildren and newNodeset have different sizes. >> >> Anyone know how to fix this? >> >> Teun >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- The information contained in this communication and any >> attachments > >> is confidential and may be privileged, and is for the sole use of the >> intended recipient(s). Any unauthorized review, use, disclosure or >> distribution is prohibited. Unless explicitly stated otherwise in the >> body of this communication or the attachment thereto (if any), the >> information is provided on an AS-IS basis without any express or >> implied warranties or liabilities. To the extent you are relying on >> this information, you are doing so at your own risk. If you are not >> the intended recipient, please notify the sender immediately by >> replying to this message and destroy all copies of this message and > any attachments. >> ASML is neither liable for the proper and complete transmission of >> the > >> information contained in this communication, nor for any delay in its >> receipt. >> > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
Free forum by Nabble | Edit this page |