Hi
I want to include xforms:instance and thier corresponding bind statements in each view. for that i tried using xi:include statement. for using xi:include we should have a root tag for including the file which will cause error in the instance. Piece of code to be included:(include.xml) <xforms:instance id="user"> <user> <user-name/> <password/> <conf-password/> <language/> <basic-group/> <status/> </user> </xforms:instance> <xforms:bind nodeset="instance(user'/userName" constraint="string-length(.)>=1"/> i tried using <xi:include href="include.xml"/> This is the error which i get: "Fatal error: The markup in the document following the root element must be well-formed." hope somebody will help me out. Thanks Vineeth _________________________________________________________________ How good are you in a Formula One car? Play now http://server1.msn.co.in/sp05/tataracing/onlinegame.asp -- 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 |
Vineeth,
If these are the only instances and binds you could make the root xforms:model and include the whole model, otherwise split them into two files and do two xi:includes Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: vineeth joyson [mailto:[hidden email]] >Sent: 27 July 2006 14:02 >To: [hidden email] >Subject: [ops-users] including xforms instance & thier bind >code into xforms model > >Hi > >I want to include xforms:instance and thier corresponding bind >statements in each view. for that i tried using xi:include >statement. for using xi:include we should have a root tag for >including the file which will cause error in the instance. > >Piece of code to be included:(include.xml) > > <xforms:instance id="user"> > <user> > <user-name/> > <password/> > <conf-password/> > <language/> > <basic-group/> > <status/> > </user> > </xforms:instance> ><xforms:bind nodeset="instance(user'/userName" >constraint="string-length(.)>=1"/> > >i tried using <xi:include href="include.xml"/> > >This is the error which i get: "Fatal error: The markup in the >document following the root element must be well-formed." > >hope somebody will help me out. > >Thanks > >Vineeth > >_________________________________________________________________ >How good are you in a Formula One car? Play now >http://server1.msn.co.in/sp05/tataracing/onlinegame.asp > > > -- 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 |
Ryan
i have page specific xforms instances too. so i cant put a root tag xforms:model. And i have more bind statements. is there any other way otherthan xi:include to solve this problem. I have another problem. Setting maxlenth of an input control. <xforms:input ref="//FirstName" maxlength="10"/> this is not working. but its working for xforms:secret. hope u will look into this also. Thanks Vineeth >From: Ryan Puddephatt <[hidden email]> >Reply-To: [hidden email] >To: [hidden email] >Subject: RE: [ops-users] including xforms instance & thier bind code into >xforms model >Date: Thu, 27 Jul 2006 19:12:40 +0100 > >Vineeth, > If these are the only instances and binds you could make the root >xforms:model and include the whole model, otherwise split them into two >files and do two xi:includes > >Ryan > >Ryan Puddephatt >Software Engineer > >Teleflex Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotland >EH54 7DP > >e> [hidden email] >t> +44(0)1506 407 110 >f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: vineeth joyson [mailto:[hidden email]] > >Sent: 27 July 2006 14:02 > >To: [hidden email] > >Subject: [ops-users] including xforms instance & thier bind > >code into xforms model > > > >Hi > > > >I want to include xforms:instance and thier corresponding bind > >statements in each view. for that i tried using xi:include > >statement. for using xi:include we should have a root tag for > >including the file which will cause error in the instance. > > > >Piece of code to be included:(include.xml) > > > > <xforms:instance id="user"> > > <user> > > <user-name/> > > <password/> > > <conf-password/> > > <language/> > > <basic-group/> > > <status/> > > </user> > > </xforms:instance> > ><xforms:bind nodeset="instance(user'/userName" > >constraint="string-length(.)>=1"/> > > > >i tried using <xi:include href="include.xml"/> > > > >This is the error which i get: "Fatal error: The markup in the > >document following the root element must be well-formed." > > > >hope somebody will help me out. > > > >Thanks > > > >Vineeth > > > >_________________________________________________________________ > >How good are you in a Formula One car? Play now > >http://server1.msn.co.in/sp05/tataracing/onlinegame.asp > > > > > > > > > >-- >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 _________________________________________________________________ Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search http://server1.msn.co.in/profile/shahrukh.asp -- 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 |
Vineeth,
You could xi:include more than one file, or (decrease the performance slightly) and use xslt. To do this you'll need to create the file with an xforms:model root tag, then use <xsl:copy-of select="doc('location-to-file.xml')/xforms:model/*"/> This will include them in the file I've not used xforms:secret, or maxlength I'm afraid. You could use an xforms:bind/@constraint (see my example in a another recent post) to constrain the length. What is the problem with xforms:secret? Also your using a //FirstName, if there are two FirstName elements this could cause problems, and decrease performance Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: vineeth joyson [mailto:[hidden email]] >Sent: 28 July 2006 06:49 >To: [hidden email] >Subject: RE: [ops-users] including xforms instance & thier >bind code into xforms model > >Ryan > >i have page specific xforms instances too. so i cant put a >root tag xforms:model. And i have more bind statements. is >there any other way otherthan xi:include to solve this problem. > > >I have another problem. Setting maxlenth of an input control. > ><xforms:input ref="//FirstName" maxlength="10"/> this is not working. > >but its working for xforms:secret. hope u will look into this also. > >Thanks > >Vineeth > > >>From: Ryan Puddephatt <[hidden email]> >>Reply-To: [hidden email] >>To: [hidden email] >>Subject: RE: [ops-users] including xforms instance & thier bind code >>into xforms model >>Date: Thu, 27 Jul 2006 19:12:40 +0100 >> >>Vineeth, >> If these are the only instances and binds you could >make the root >>xforms:model and include the whole model, otherwise split >them into two >>files and do two xi:includes >> >>Ryan >> >>Ryan Puddephatt >>Software Engineer >> >>Teleflex Group - IT UK >>1 Michaelson Square >>Livingston >>West Lothian >>Scotland >>EH54 7DP >> >>e> [hidden email] >>t> +44(0)1506 407 110 >>f> +44(0)1506 407 108 >> >> >> >> >-----Original Message----- >> >From: vineeth joyson [mailto:[hidden email]] >> >Sent: 27 July 2006 14:02 >> >To: [hidden email] >> >Subject: [ops-users] including xforms instance & thier bind >code into >> >xforms model >> > >> >Hi >> > >> >I want to include xforms:instance and thier corresponding bind >> >statements in each view. for that i tried using xi:include >statement. >> >for using xi:include we should have a root tag for >including the file >> >which will cause error in the instance. >> > >> >Piece of code to be included:(include.xml) >> > >> > <xforms:instance id="user"> >> > <user> >> > <user-name/> >> > <password/> >> > <conf-password/> >> > <language/> >> > <basic-group/> >> > <status/> >> > </user> >> > </xforms:instance> >> ><xforms:bind nodeset="instance(user'/userName" >> >constraint="string-length(.)>=1"/> >> > >> >i tried using <xi:include href="include.xml"/> >> > >> >This is the error which i get: "Fatal error: The markup in the >> >document following the root element must be well-formed." >> > >> >hope somebody will help me out. >> > >> >Thanks >> > >> >Vineeth >> > >> >_________________________________________________________________ >> >How good are you in a Formula One car? Play now >> >http://server1.msn.co.in/sp05/tataracing/onlinegame.asp >> > >> > >> > >> >> > > >> >>-- >>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 > >_________________________________________________________________ >Shah Rukh fan? Know all about the Baadshah of Bollywood. On >MSN Search http://server1.msn.co.in/profile/shahrukh.asp > > > -- 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 |
Ryan
Using xsl:copy solved my problem. thanks. And about max length: Using bind you can only show error when user enters more. I refer to restricting user from entering more using 'maxlength' property of html. maxlength is working for xforms:secret. so i got a feeling that it will work for xforms:input control also if some changes are done. Thanks Vineeth >From: Ryan Puddephatt <[hidden email]> >Reply-To: [hidden email] >To: [hidden email] >Subject: RE: [ops-users] including xforms instance & thier bind code into >xforms model >Date: Sat, 29 Jul 2006 00:51:14 +0100 > >Vineeth, > You could xi:include more than one file, or (decrease the >performance slightly) and use xslt. To do this you'll need to create the >file with an xforms:model root tag, then use > ><xsl:copy-of select="doc('location-to-file.xml')/xforms:model/*"/> > >This will include them in the file > >I've not used xforms:secret, or maxlength I'm afraid. You could use an >xforms:bind/@constraint (see my example in a another recent post) to >constrain the length. What is the problem with xforms:secret? > >Also your using a //FirstName, if there are two FirstName elements this >could cause problems, and decrease performance > >Ryan > >Ryan Puddephatt >Software Engineer > >Teleflex Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotland >EH54 7DP > >e> [hidden email] >t> +44(0)1506 407 110 >f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: vineeth joyson [mailto:[hidden email]] > >Sent: 28 July 2006 06:49 > >To: [hidden email] > >Subject: RE: [ops-users] including xforms instance & thier > >bind code into xforms model > > > >Ryan > > > >i have page specific xforms instances too. so i cant put a > >root tag xforms:model. And i have more bind statements. is > >there any other way otherthan xi:include to solve this problem. > > > > > >I have another problem. Setting maxlenth of an input control. > > > ><xforms:input ref="//FirstName" maxlength="10"/> this is not working. > > > >but its working for xforms:secret. hope u will look into this also. > > > >Thanks > > > >Vineeth > > > > > >>From: Ryan Puddephatt <[hidden email]> > >>Reply-To: [hidden email] > >>To: [hidden email] > >>Subject: RE: [ops-users] including xforms instance & thier bind code > >>into xforms model > >>Date: Thu, 27 Jul 2006 19:12:40 +0100 > >> > >>Vineeth, > >> If these are the only instances and binds you could > >make the root > >>xforms:model and include the whole model, otherwise split > >them into two > >>files and do two xi:includes > >> > >>Ryan > >> > >>Ryan Puddephatt > >>Software Engineer > >> > >>Teleflex Group - IT UK > >>1 Michaelson Square > >>Livingston > >>West Lothian > >>Scotland > >>EH54 7DP > >> > >>e> [hidden email] > >>t> +44(0)1506 407 110 > >>f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: vineeth joyson [mailto:[hidden email]] > >> >Sent: 27 July 2006 14:02 > >> >To: [hidden email] > >> >Subject: [ops-users] including xforms instance & thier bind > >code into > >> >xforms model > >> > > >> >Hi > >> > > >> >I want to include xforms:instance and thier corresponding bind > >> >statements in each view. for that i tried using xi:include > >statement. > >> >for using xi:include we should have a root tag for > >including the file > >> >which will cause error in the instance. > >> > > >> >Piece of code to be included:(include.xml) > >> > > >> > <xforms:instance id="user"> > >> > <user> > >> > <user-name/> > >> > <password/> > >> > <conf-password/> > >> > <language/> > >> > <basic-group/> > >> > <status/> > >> > </user> > >> > </xforms:instance> > >> ><xforms:bind nodeset="instance(user'/userName" > >> >constraint="string-length(.)>=1"/> > >> > > >> >i tried using <xi:include href="include.xml"/> > >> > > >> >This is the error which i get: "Fatal error: The markup in the > >> >document following the root element must be well-formed." > >> > > >> >hope somebody will help me out. > >> > > >> >Thanks > >> > > >> >Vineeth > >> > > >> >_________________________________________________________________ > >> >How good are you in a Formula One car? Play now > >> >http://server1.msn.co.in/sp05/tataracing/onlinegame.asp > >> > > >> > > >> > > >> > >> > > > > > >> > >>-- > >>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 > > > >_________________________________________________________________ > >Shah Rukh fan? Know all about the Baadshah of Bollywood. On > >MSN Search http://server1.msn.co.in/profile/shahrukh.asp > > > > > > > > > >-- >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 _________________________________________________________________ Best IT jobs on naukri.com http://www.naukri.com/tieups/tieups.php?othersrcp=3246 -- 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 |
Vineeth,
Did you try with xxforms:maxlength="5"? This works in my forms. Jordi -----Mensaje original----- De: vineeth joyson [mailto:[hidden email]] Enviado el: lunes, 31 de julio de 2006 8:28 Para: [hidden email] Asunto: RE: [ops-users] including xforms instance & thier bind code into xforms model Ryan Using xsl:copy solved my problem. thanks. And about max length: Using bind you can only show error when user enters more. I refer to restricting user from entering more using 'maxlength' property of html. maxlength is working for xforms:secret. so i got a feeling that it will work for xforms:input control also if some changes are done. Thanks Vineeth >From: Ryan Puddephatt <[hidden email]> >Reply-To: [hidden email] >To: [hidden email] >Subject: RE: [ops-users] including xforms instance & thier bind code into >xforms model >Date: Sat, 29 Jul 2006 00:51:14 +0100 > >Vineeth, > You could xi:include more than one file, or (decrease the >performance slightly) and use xslt. To do this you'll need to create the >file with an xforms:model root tag, then use > ><xsl:copy-of select="doc('location-to-file.xml')/xforms:model/*"/> > >This will include them in the file > >I've not used xforms:secret, or maxlength I'm afraid. You could use an >xforms:bind/@constraint (see my example in a another recent post) to >constrain the length. What is the problem with xforms:secret? > >Also your using a //FirstName, if there are two FirstName elements this >could cause problems, and decrease performance > >Ryan > >Ryan Puddephatt >Software Engineer > >Teleflex Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotland >EH54 7DP > >e> [hidden email] >t> +44(0)1506 407 110 >f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: vineeth joyson [mailto:[hidden email]] > >Sent: 28 July 2006 06:49 > >To: [hidden email] > >Subject: RE: [ops-users] including xforms instance & thier > >bind code into xforms model > > > >Ryan > > > >i have page specific xforms instances too. so i cant put a > >root tag xforms:model. And i have more bind statements. is > >there any other way otherthan xi:include to solve this problem. > > > > > >I have another problem. Setting maxlenth of an input control. > > > ><xforms:input ref="//FirstName" maxlength="10"/> this is not working. > > > >but its working for xforms:secret. hope u will look into this also. > > > >Thanks > > > >Vineeth > > > > > >>From: Ryan Puddephatt <[hidden email]> > >>Reply-To: [hidden email] > >>To: [hidden email] > >>Subject: RE: [ops-users] including xforms instance & thier bind code > >>into xforms model > >>Date: Thu, 27 Jul 2006 19:12:40 +0100 > >> > >>Vineeth, > >> If these are the only instances and binds you could > >make the root > >>xforms:model and include the whole model, otherwise split > >them into two > >>files and do two xi:includes > >> > >>Ryan > >> > >>Ryan Puddephatt > >>Software Engineer > >> > >>Teleflex Group - IT UK > >>1 Michaelson Square > >>Livingston > >>West Lothian > >>Scotland > >>EH54 7DP > >> > >>e> [hidden email] > >>t> +44(0)1506 407 110 > >>f> +44(0)1506 407 108 > >> > >> > >> > >> >-----Original Message----- > >> >From: vineeth joyson [mailto:[hidden email]] > >> >Sent: 27 July 2006 14:02 > >> >To: [hidden email] > >> >Subject: [ops-users] including xforms instance & thier bind > >code into > >> >xforms model > >> > > >> >Hi > >> > > >> >I want to include xforms:instance and thier corresponding bind > >> >statements in each view. for that i tried using xi:include > >statement. > >> >for using xi:include we should have a root tag for > >including the file > >> >which will cause error in the instance. > >> > > >> >Piece of code to be included:(include.xml) > >> > > >> > <xforms:instance id="user"> > >> > <user> > >> > <user-name/> > >> > <password/> > >> > <conf-password/> > >> > <language/> > >> > <basic-group/> > >> > <status/> > >> > </user> > >> > </xforms:instance> > >> ><xforms:bind nodeset="instance(user'/userName" > >> >constraint="string-length(.)>=1"/> > >> > > >> >i tried using <xi:include href="include.xml"/> > >> > > >> >This is the error which i get: "Fatal error: The markup in the > >> >document following the root element must be well-formed." > >> > > >> >hope somebody will help me out. > >> > > >> >Thanks > >> > > >> >Vineeth > >> > > >> >_________________________________________________________________ > >> >How good are you in a Formula One car? Play now > >> >http://server1.msn.co.in/sp05/tataracing/onlinegame.asp > >> > > >> > > >> > > >> > >> > > > > > >> > >>-- > >>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 > > > >_________________________________________________________________ > >Shah Rukh fan? Know all about the Baadshah of Bollywood. On > >MSN Search http://server1.msn.co.in/profile/shahrukh.asp > > > > > > > > > >-- >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 _________________________________________________________________ Best IT jobs on naukri.com http://www.naukri.com/tieups/tieups.php?othersrcp=3246 -- 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 vineeth joyson
Alex, Thanks, its working in the latest version. Regards Vineeth Hi Vineeth, It looks like this works in more recent builds. I ran your code here and got 2 lines displayed when clicking on the "reload" button, with no JavaScript error. You might want to try this out by downloading a nightly build from: http://forge.objectweb.org/nightlybuilds/ops/ops/ Alex On 8/16/06, vineeth joyson <vineeth_joyson@xxxxxxxxxxx> wrote: Hi I have attached the sample application i have used. when browsing the page first there will be 4 rows. if we select 4th row. And reload the page using the reload button a script error occurs. The replaced xml have only 2 rows. Hope u can help me now Regards Vineeth Re: [ops-users]Scrpt error when replacing an instance. Erik Bruchez From: Erik Bruchez <ebruchez@xxxxxxxxxx> To: ops-users@xxxxxxxxxxxxx Subject: Re: [ops-users]Scrpt error when replacing an instance. Date: Sun, 13 Aug 2006 21:03:51 -0700 Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=H4CLuQbewcROsRhCLvnn0RT2DcsX4XxQJEA98v2OIQPA7X7l5qUXJpq09pC67fjCQicGMEXwppHQVk/VrxokiaN0LZvR3EUeKn8ZpXcSfnF3IiZSGVo9WiRPiE2MqiQwoGWlIPEfCAzhHJpUq7klb0GJn1YErtQIVnukMEk0n50= Organization: Orbeon, Inc. References: <BAY13-F106E902E4DFD9EFEF81A3CF3480@xxxxxxx> User-agent: Thunderbird 1.5.0.5 (Windows/20060719) Vineeth, We can help you send a reproducible case, preferably one that will run in the XForms sandbox. -Erik vineeth joyson wrote: hi Xforms:repeat is used to display the values in an instance which have repeated nodes(for eg: three repeated nodes) if we select a third row and then replace that instance by using xforms:submission with a xml which has 1 node ie only one row to display . then a script occurs so that we cant continue with that page. I think its a bug. can u please help me. Thanks Vineeth _________________________________________________________________ NRIs: Send Money FREE! Go ahead and register now! http://ads.mediaturf.net/event.ng/Type=click&FlightID=20273&AdID=65989&TargetID=11172&Targets=11172&Values=202,414,1093,1264,3122&Redirect=http:%2F%2Fwww.icicinri.net%2Fmoney2india%2F%3Fm2i%3DBAC-MSN%26att%3DMSNTLM2I18CHAR%26rfr%3DMSNTLM2I18CHAR -- You receive this message as a subscriber of the ops-users@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:ops-users-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ _________________________________________________________________ Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN Search http://server1.msn.co.in/Profile/bipashabasu.asp -- 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 |