Erik Bruchez
Thank You, I'll look at this soon.
Peter
Peter Hale
Researcher Associate AMRC Faculty of Computing, Engineering & Mathematical Sciences University of the West of England, Bristol Web - http://www.cems.uwe.ac.uk/~phale/ Part of SEEDS research web site - http://www.cems.uwe.ac.uk/amrc/seeds/ Tel: 0117-32-83821 (International Calls +44-117-32-83821) Fax: 0117-32-83636 This email has been independently scanned for viruses and any virus software has been removed using McAfee anti-virus software -- 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 |
Check
out Tax Code Software's open source tax software project at www.taxcodesoftware.org. The
software is being written entirely in XML and the code will run on OPS.
Any interested developers contact me. This application coverts government
PDF forms into a document consisting of XForms, XHTML, and other XML markups ,
which run in OPS.
Hopefully tyhis project will serve as a reference implementation for OPS
and the power of XML technologies.
-- 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
|
Richard,
Thanks for the news! Keeps us posted on the progress of the project. -Erik Richard Braman wrote: > Check out Tax Code Software's open source tax software project at > www.taxcodesoftware.org <http://www.taxcodesoftware.org>. The software > is being written entirely in XML and the code will run on OPS. Any > interested developers contact me. This application coverts government > PDF forms into a document consisting of XForms, XHTML, and other XML > markups , which run in OPS. > Hopefully tyhis project will serve as a reference implementation for OPS > and the power of XML technologies. -- 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 peter2.hale
Is thi syntax supported in3.0? Where would this code go, in the view? <!--The actual XForms instance comes from the database --> <!--This syntax has yet to be supported by the server-side XForms processor --> <xforms:instance id="main-instance"src="input:instance"/> <!--Calculations --> <xforms:bind nodeset="/form/this/is/a/calculated/value1" calculate="sum(/form/some/repeated/values)"/> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" calculate="if (/form/some/value gt 1000)then 100.0 else 200.0"/> ... </xforms:model> -- 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
|
That goes under your /xhtml:html/xhtml:head in your page view, yes.
-Erik Richard Braman wrote: > Is thi syntax supported in3.0? Where would this code go, in the view? > > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > > <!--The actual XForms instance comes from the database --> > > <!--This syntax has yet to be supported by the server-side XForms > processor --> > > <xforms:instance id="main-instance"src="input:instance"/> > > <!--Calculations --> > > <xforms:bind nodeset="/form/this/is/a/calculated/value1" > calculate="sum(/form/some/repeated/values)"/> > > <xforms:bind nodeset="/form/this/is/a/calculated/@value2" calculate="if > (/form/some/value gt 1000)then 100.0 else 200.0"/> ... > > </xforms:model> -- 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 |
What is src="input:instance" ?
I thought my src instance is specified in the page flow.... Is this instance passed into the instance in the view? -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 8:45 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model That goes under your /xhtml:html/xhtml:head in your page view, yes. -Erik Richard Braman wrote: > Is thi syntax supported in3.0? Where would this code go, in the > view? > > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > > <!--The actual XForms instance comes from the database --> > > <!--This syntax has yet to be supported by the server-side XForms > processor --> > > <xforms:instance id="main-instance"src="input:instance"/> > > <!--Calculations --> > > <xforms:bind nodeset="/form/this/is/a/calculated/value1" > calculate="sum(/form/some/repeated/values)"/> > > <xforms:bind nodeset="/form/this/is/a/calculated/@value2" > calculate="if > (/form/some/value gt 1000)then 100.0 else 200.0"/> ... > > </xforms:model> -- 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 |
Richard,
If your using the classic engine then the instance will be defined in the page-flow, but if your using the NG engine, which it looks like your trying to! Then the instance is defined within the page. Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 13:46 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >What is src="input:instance" ? >I thought my src instance is specified in the page flow.... >Is this instance passed into the instance in the view? > >-----Original Message----- >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez >Sent: Wednesday, February 08, 2006 8:45 AM >To: [hidden email] >Subject: Re: [ops-users] x:forms:bind and xforms:model > > >That goes under your /xhtml:html/xhtml:head in your page view, yes. > >-Erik > >Richard Braman wrote: >> Is thi syntax supported in3.0? Where would this code go, in the >> view? >> >> >> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >> >> <!--The actual XForms instance comes from the database --> >> >> <!--This syntax has yet to be supported by the server-side XForms >> processor --> >> >> <xforms:instance id="main-instance"src="input:instance"/> >> >> <!--Calculations --> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >> calculate="sum(/form/some/repeated/values)"/> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >> calculate="if >> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >> >> </xforms:model> > > > -- 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 |
I am trying to get my empty instance
-----Original Message----- From: Ryan Puddephatt [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 9:04 AM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model Richard, If your using the classic engine then the instance will be defined in the page-flow, but if your using the NG engine, which it looks like your trying to! Then the instance is defined within the page. Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 Any ideas on What is src="input:instance" >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 13:46 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >What is src="input:instance" ? >I thought my src instance is specified in the page flow.... >Is this instance passed into the instance in the view? > >-----Original Message----- >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >Bruchez >Sent: Wednesday, February 08, 2006 8:45 AM >To: [hidden email] >Subject: Re: [ops-users] x:forms:bind and xforms:model > > >That goes under your /xhtml:html/xhtml:head in your page view, yes. > >-Erik > >Richard Braman wrote: >> Is thi syntax supported in3.0? Where would this code go, in the >> view? >> >> >> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >> >> <!--The actual XForms instance comes from the database --> >> >> <!--This syntax has yet to be supported by the server-side XForms >> processor --> >> >> <xforms:instance id="main-instance"src="input:instance"/> >> >> <!--Calculations --> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >> calculate="sum(/form/some/repeated/values)"/> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >> calculate="if >> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >> >> </xforms:model> > > > -- 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 |
Placing
<xforms:instance> <form/> </xforms:instance> Will create and empty instance Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 14:28 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >I am trying to get my empty instance > >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: Wednesday, February 08, 2006 9:04 AM >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > > >Richard, > If your using the classic engine then the instance will be >defined in the page-flow, but if your using the NG engine, which it >looks like your trying to! Then the instance is defined within the page. > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 >Any ideas on What is src="input:instance" > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 08 February 2006 13:46 >>To: [hidden email] >>Subject: RE: [ops-users] x:forms:bind and xforms:model >> >>What is src="input:instance" ? >>I thought my src instance is specified in the page flow.... >>Is this instance passed into the instance in the view? >> >>-----Original Message----- >>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >>Bruchez >>Sent: Wednesday, February 08, 2006 8:45 AM >>To: [hidden email] >>Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >>That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >>-Erik >> >>Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> >> > > > > -- 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 Richard Braman
I have reproduced snippets from my code. This code throws a response
cannot be null error in xForms-epilogue.xpl line 81. I don't really understand the syntax, because if it was the way understand it, it would work :) Here is my view: <html> <head> <title>Form 1040 EZ 2005</title> <xforms:model> <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> </xforms:model> </head> <body bgcolor="#FFFFFF" text="#000000"> <xforms:input xhtml:type="text" bind="f1-1" xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> </body> </html> ********************************** Here is my input instance in file /xforms/f1040ez.xml <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance> <form> <f1040ez> <f1-1>first name</f1-1> </f1040ez> </form> </xforms:instance> <xforms:submission method="post"/> </xforms:model> -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 9:28 AM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model I am trying to get my empty instance -----Original Message----- From: Ryan Puddephatt [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 9:04 AM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model Richard, If your using the classic engine then the instance will be defined in the page-flow, but if your using the NG engine, which it looks like your trying to! Then the instance is defined within the page. Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 Any ideas on What is src="input:instance" >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 13:46 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >What is src="input:instance" ? >I thought my src instance is specified in the page flow.... >Is this instance passed into the instance in the view? > >-----Original Message----- >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >Bruchez >Sent: Wednesday, February 08, 2006 8:45 AM >To: [hidden email] >Subject: Re: [ops-users] x:forms:bind and xforms:model > > >That goes under your /xhtml:html/xhtml:head in your page view, yes. > >-Erik > >Richard Braman wrote: >> Is thi syntax supported in3.0? Where would this code go, in the >> view? >> >> >> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >> >> <!--The actual XForms instance comes from the database --> >> >> <!--This syntax has yet to be supported by the server-side XForms >> processor --> >> >> <xforms:instance id="main-instance"src="input:instance"/> >> >> <!--Calculations --> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >> calculate="sum(/form/some/repeated/values)"/> >> >> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >> calculate="if >> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >> >> </xforms:model> > > > -- 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
|
Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now
resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote: > I have reproduced snippets from my code. This code throws a response > cannot be null error in xForms-epilogue.xpl line 81. I don't really > understand the syntax, because if it was the way understand it, it would > work :) > > Here is my view: > > <html> > <head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> > </xforms:model> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> > </html> > > ********************************** > Here is my input instance in file /xforms/f1040ez.xml > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> > </xforms:model> > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:28 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > I am trying to get my empty instance > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:04 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > Richard, > If your using the classic engine then the instance will be > defined in the page-flow, but if your using the NG engine, which it > looks like your trying to! Then the instance is defined within the page. > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > Any ideas on What is src="input:instance" > >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: 08 February 2006 13:46 >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> What is src="input:instance" ? >> I thought my src instance is specified in the page flow.... >> Is this instance passed into the instance in the view? >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >> Bruchez >> Sent: Wednesday, February 08, 2006 8:45 AM >> To: [hidden email] >> Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >> That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >> -Erik >> >> Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> > > > > > > > > > ------------------------------------------------------------------------ > > > -- > 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 -- 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 Richard Braman
What is the structure of the src file f1040ez.xml? has it got a root node
<form> or <f1040ex>? Try the following <html> <head> <title>Form 1040 EZ 2005</title> <xforms:model> <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> </xforms:model> </head> <body bgcolor="#FFFFFF" text="#000000"> <xforms:input xhtml:type="text" ref="/form/f1040/f1-1" xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> </body> </html> Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 15:07 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >I have reproduced snippets from my code. This code throws a response >cannot be null error in xForms-epilogue.xpl line 81. I don't really >understand the syntax, because if it was the way understand it, it would >work :) > >Here is my view: > ><html> ><head> > <title>Form 1040 EZ 2005</title> ><xforms:model> ><xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> ><xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> ></xforms:model> ></head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" >xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> ></html> > >********************************** >Here is my input instance in file /xforms/f1040ez.xml > ><xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> ></xforms:model> > > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Wednesday, February 08, 2006 9:28 AM >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > > >I am trying to get my empty instance > >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: Wednesday, February 08, 2006 9:04 AM >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > > >Richard, > If your using the classic engine then the instance will be >defined in the page-flow, but if your using the NG engine, which it >looks like your trying to! Then the instance is defined within the page. > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 >Any ideas on What is src="input:instance" > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 08 February 2006 13:46 >>To: [hidden email] >>Subject: RE: [ops-users] x:forms:bind and xforms:model >> >>What is src="input:instance" ? >>I thought my src instance is specified in the page flow.... >>Is this instance passed into the instance in the view? >> >>-----Original Message----- >>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >>Bruchez >>Sent: Wednesday, February 08, 2006 8:45 AM >>To: [hidden email] >>Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >>That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >>-Erik >> >>Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> >> > > > > > > -- 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 |
Sorry just seen the instance, that should work!
Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: 08 February 2006 15:24 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >What is the structure of the src file f1040ez.xml? has it got a root node ><form> or <f1040ex>? > >Try the following > ><html> ><head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > </xforms:model> ></head> > <body bgcolor="#FFFFFF" text="#000000"> > <xforms:input xhtml:type="text" ref="/form/f1040/f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font- >size:16px"/> > </body> ></html> > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 > > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 08 February 2006 15:07 >>To: [hidden email] >>Subject: RE: [ops-users] x:forms:bind and xforms:model >> >>I have reproduced snippets from my code. This code throws a response >>cannot be null error in xForms-epilogue.xpl line 81. I don't really >>understand the syntax, because if it was the way understand it, it would >>work :) >> >>Here is my view: >> >><html> >><head> >> <title>Form 1040 EZ 2005</title> >><xforms:model> >><xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> >><xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> >></xforms:model> >></head> >> <body bgcolor="#FFFFFF" text="#000000"> >> >> >> <xforms:input xhtml:type="text" bind="f1-1" >>xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> >> >> </body> >></html> >> >>********************************** >>Here is my input instance in file /xforms/f1040ez.xml >> >><xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xforms:instance> >> <form> >> <f1040ez> >> <f1-1>first name</f1-1> >> </f1040ez> >> </form> >> </xforms:instance> >> <xforms:submission method="post"/> >></xforms:model> >> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Wednesday, February 08, 2006 9:28 AM >>To: [hidden email] >>Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> >>I am trying to get my empty instance >> >>-----Original Message----- >>From: Ryan Puddephatt [mailto:[hidden email]] >>Sent: Wednesday, February 08, 2006 9:04 AM >>To: [hidden email] >>Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> >>Richard, >> If your using the classic engine then the instance will be >>defined in the page-flow, but if your using the NG engine, which it >>looks like your trying to! Then the instance is defined within the page. >> >>Ryan Puddephatt >>Software Engineer >>TFX Group - IT UK >>1 Michaelson Square >>Livingston >>West Lothian >>Scotand >>EH54 7DP >> >>* [hidden email] >>( 01506 407 110 >>7 01506 407 108 >>Any ideas on What is src="input:instance" >> >>>-----Original Message----- >>>From: Richard Braman [mailto:[hidden email]] >>>Sent: 08 February 2006 13:46 >>>To: [hidden email] >>>Subject: RE: [ops-users] x:forms:bind and xforms:model >>> >>>What is src="input:instance" ? >>>I thought my src instance is specified in the page flow.... >>>Is this instance passed into the instance in the view? >>> >>>-----Original Message----- >>>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >>>Bruchez >>>Sent: Wednesday, February 08, 2006 8:45 AM >>>To: [hidden email] >>>Subject: Re: [ops-users] x:forms:bind and xforms:model >>> >>> >>>That goes under your /xhtml:html/xhtml:head in your page view, yes. >>> >>>-Erik >>> >>>Richard Braman wrote: >>>> Is thi syntax supported in3.0? Where would this code go, in the >>>> view? >>>> >>>> >>>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>>> >>>> <!--The actual XForms instance comes from the database --> >>>> >>>> <!--This syntax has yet to be supported by the server-side XForms >>>> processor --> >>>> >>>> <xforms:instance id="main-instance"src="input:instance"/> >>>> >>>> <!--Calculations --> >>>> >>>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>>> calculate="sum(/form/some/repeated/values)"/> >>>> >>>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>>> calculate="if >>>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>>> >>>> </xforms:model> >>> >>> >>> >> >> >> >> >> >> > > -- 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
|
In reply to this post by Richard Braman
Richard Braman wrote:
> What is src="input:instance" ? > I thought my src instance is specified in the page flow.... Not with the XForms NG engine. Check out this part of the doc: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-instance-initialization -Erik -- 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 Erik Bruchez
oxf:/xforms/f1040ez.xml returns
Cannot load "/xforms/f1040ez.xml" with webapp loader. I don't think that url will serve http://24.75.221.234:8080/taxcode/1040ez The file is located in a xforms directory under ops/examples/1040ez/ -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 10:24 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote: > I have reproduced snippets from my code. This code throws a response > cannot be null error in xForms-epilogue.xpl line 81. I don't really > understand the syntax, because if it was the way understand it, it > would work :) > > Here is my view: > > <html> > <head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> > </xforms:model> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> > </html> > > ********************************** > Here is my input instance in file /xforms/f1040ez.xml > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> > </xforms:model> > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:28 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > I am trying to get my empty instance > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:04 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > Richard, > If your using the classic engine then the instance will be > the page-flow, but if your using the NG engine, which it looks like > your trying to! Then the instance is defined within the page. > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > Any ideas on What is src="input:instance" > >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: 08 February 2006 13:46 >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> What is src="input:instance" ? >> I thought my src instance is specified in the page flow.... Is this >> instance passed into the instance in the view? >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >> Bruchez >> Sent: Wednesday, February 08, 2006 8:45 AM >> To: [hidden email] >> Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >> That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >> -Erik >> >> Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> > > > > > > > > > ---------------------------------------------------------------------- > -- > > > -- > 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: -- 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 |
Richard,
Try oxf:/ops/examples/1040ez/f1040ez.xml Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 08 February 2006 18:49 >To: [hidden email] >Subject: RE: [ops-users] x:forms:bind and xforms:model > >oxf:/xforms/f1040ez.xml returns >Cannot load "/xforms/f1040ez.xml" with webapp loader. > >I don't think that url will serve >http://24.75.221.234:8080/taxcode/1040ez >The file is located in a xforms directory under ops/examples/1040ez/ > > >-----Original Message----- >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez >Sent: Wednesday, February 08, 2006 10:24 AM >To: [hidden email] >Subject: Re: [ops-users] x:forms:bind and xforms:model > > >Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now >resolved relative to the external request URL, i.e. the HTTP URL. > >-Erik > >Richard Braman wrote: >> I have reproduced snippets from my code. This code throws a response >> cannot be null error in xForms-epilogue.xpl line 81. I don't really >> understand the syntax, because if it was the way understand it, it >> would work :) >> >> Here is my view: >> >> <html> >> <head> >> <title>Form 1040 EZ 2005</title> >> <xforms:model> >> <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> >> <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> >> </xforms:model> >> </head> >> <body bgcolor="#FFFFFF" text="#000000"> >> >> >> <xforms:input xhtml:type="text" bind="f1-1" >> xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> >> >> </body> >> </html> >> >> ********************************** >> Here is my input instance in file /xforms/f1040ez.xml >> >> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xforms:instance> >> <form> >> <f1040ez> >> <f1-1>first name</f1-1> >> </f1040ez> >> </form> >> </xforms:instance> >> <xforms:submission method="post"/> >> </xforms:model> >> >> >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: Wednesday, February 08, 2006 9:28 AM >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> >> I am trying to get my empty instance >> >> -----Original Message----- >> From: Ryan Puddephatt [mailto:[hidden email]] >> Sent: Wednesday, February 08, 2006 9:04 AM >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> >> Richard, >> If your using the classic engine then the instance will be >defined in >> the page-flow, but if your using the NG engine, which it looks like >> your trying to! Then the instance is defined within the page. >> >> Ryan Puddephatt >> Software Engineer >> TFX Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotand >> EH54 7DP >> >> * [hidden email] >> ( 01506 407 110 >> 7 01506 407 108 >> Any ideas on What is src="input:instance" >> >>> -----Original Message----- >>> From: Richard Braman [mailto:[hidden email]] >>> Sent: 08 February 2006 13:46 >>> To: [hidden email] >>> Subject: RE: [ops-users] x:forms:bind and xforms:model >>> >>> What is src="input:instance" ? >>> I thought my src instance is specified in the page flow.... Is this >>> instance passed into the instance in the view? >>> >>> -----Original Message----- >>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >>> Bruchez >>> Sent: Wednesday, February 08, 2006 8:45 AM >>> To: [hidden email] >>> Subject: Re: [ops-users] x:forms:bind and xforms:model >>> >>> >>> That goes under your /xhtml:html/xhtml:head in your page view, yes. >>> >>> -Erik >>> >>> Richard Braman wrote: >>>> Is thi syntax supported in3.0? Where would this code go, in the >>>> view? >>>> >>>> >>>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>>> >>>> <!--The actual XForms instance comes from the database --> >>>> >>>> <!--This syntax has yet to be supported by the server-side XForms >>>> processor --> >>>> >>>> <xforms:instance id="main-instance"src="input:instance"/> >>>> >>>> <!--Calculations --> >>>> >>>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>>> calculate="sum(/form/some/repeated/values)"/> >>>> >>>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>>> calculate="if >>>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>>> >>>> </xforms:model> >>> >>> >> >> >> >> >> >> >> >> >> ---------------------------------------------------------------------- >> -- >> >> >> -- >> 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 > > > -- 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 Richard Braman
make sure, that the file that contains the instance does not include the xforms:instance tag, otherwise this will be part of the data and you would get an xforms:instance inside an xforms:instance. As Ryan already stated, the document in the file should have the form tag as the root. :oliver ----------------------- oliver charlet software development 11-041 Olsztyn, Poland [hidden email] ----------------------- Richard Braman schrieb: oxf:/xforms/f1040ez.xml returns Cannot load "/xforms/f1040ez.xml" with webapp loader. I don't think that url will serve http://24.75.221.234:8080/taxcode/1040ez The file is located in a xforms directory under ops/examples/1040ez/ -----Original Message----- From: Erik Bruchez [[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 10:24 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote:I have reproduced snippets from my code. This code throws a response cannot be null error in xForms-epilogue.xpl line 81. I don't really understand the syntax, because if it was the way understand it, it would work :) Here is my view: <html> <head> <title>Form 1040 EZ 2005</title> <xforms:model> <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> </xforms:model> </head> <body bgcolor="#FFFFFF" text="#000000"> <xforms:input xhtml:type="text" bind="f1-1" xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> </body> </html> ********************************** Here is my input instance in file /xforms/f1040ez.xml <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance> <form> <f1040ez> <f1-1>first name</f1-1> </f1040ez> </form> </xforms:instance> <xforms:submission method="post"/> </xforms:model> -----Original Message----- From: Richard Braman [[hidden email]] Sent: Wednesday, February 08, 2006 9:28 AM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model I am trying to get my empty instance -----Original Message----- From: Ryan Puddephatt [[hidden email]] Sent: Wednesday, February 08, 2006 9:04 AM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model Richard, If your using the classic engine then the instance will bedefined inthe page-flow, but if your using the NG engine, which it looks like your trying to! Then the instance is defined within the page. Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 Any ideas on What is src="input:instance"-----Original Message----- From: Richard Braman [[hidden email]] Sent: 08 February 2006 13:46 To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model What is src="input:instance" ? I thought my src instance is specified in the page flow.... Is this instance passed into the instance in the view? -----Original Message----- From: Erik Bruchez [[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 8:45 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model That goes under your /xhtml:html/xhtml:head in your page view, yes. -Erik Richard Braman wrote:Is thi syntax supported in3.0? Where would this code go, in the view? <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <!--The actual XForms instance comes from the database --> <!--This syntax has yet to be supported by the server-side XForms processor --> <xforms:instance id="main-instance"src="input:instance"/> <!--Calculations --> <xforms:bind nodeset="/form/this/is/a/calculated/value1" calculate="sum(/form/some/repeated/values)"/> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" calculate="if (/form/some/value gt 1000)then 100.0 else 200.0"/> ... </xforms:model>---------------------------------------------------------------------- -- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page:http://www.objectweb.org/wws -- 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 Richard Braman
OK I got it to work with xform:bind
http://24.75.221.234:8080/taxcode/1040ez The only problem is that it looks like Xforms bind is doing client side recalculations. It my architecture these things are supposed to happen on the server. It is also chainging the style of the form from what it was with ref, and ingnoring the styles that I have set up. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 1:49 PM To: '[hidden email]' Subject: RE: [ops-users] x:forms:bind and xforms:model oxf:/xforms/f1040ez.xml returns Cannot load "/xforms/f1040ez.xml" with webapp loader. I don't think that url will serve http://24.75.221.234:8080/taxcode/1040ez The file is located in a xforms directory under ops/examples/1040ez/ -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 10:24 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote: > I have reproduced snippets from my code. This code throws a response > cannot be null error in xForms-epilogue.xpl line 81. I don't really > understand the syntax, because if it was the way understand it, it > would work :) > > Here is my view: > > <html> > <head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> > </xforms:model> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> > </html> > > ********************************** > Here is my input instance in file /xforms/f1040ez.xml > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> > </xforms:model> > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:28 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > I am trying to get my empty instance > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:04 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > Richard, > If your using the classic engine then the instance will be > the page-flow, but if your using the NG engine, which it looks like > your trying to! Then the instance is defined within the page. > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > Any ideas on What is src="input:instance" > >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: 08 February 2006 13:46 >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> What is src="input:instance" ? >> I thought my src instance is specified in the page flow.... Is this >> instance passed into the instance in the view? >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >> Bruchez >> Sent: Wednesday, February 08, 2006 8:45 AM >> To: [hidden email] >> Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >> That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >> -Erik >> >> Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> > > > > > > > > > ---------------------------------------------------------------------- > -- > > > -- > 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: -- 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 |
It is also rendering check boxes as text.
-----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Thursday, February 09, 2006 12:54 PM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model OK I got it to work with xform:bind http://24.75.221.234:8080/taxcode/1040ez The only problem is that it looks like Xforms bind is doing client side recalculations. It my architecture these things are supposed to happen on the server. It is also chainging the style of the form from what it was with ref, and ingnoring the styles that I have set up. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 1:49 PM To: '[hidden email]' Subject: RE: [ops-users] x:forms:bind and xforms:model oxf:/xforms/f1040ez.xml returns Cannot load "/xforms/f1040ez.xml" with webapp loader. I don't think that url will serve http://24.75.221.234:8080/taxcode/1040ez The file is located in a xforms directory under ops/examples/1040ez/ -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 10:24 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote: > I have reproduced snippets from my code. This code throws a response > cannot be null error in xForms-epilogue.xpl line 81. I don't really > understand the syntax, because if it was the way understand it, it > would work :) > > Here is my view: > > <html> > <head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> > </xforms:model> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> > </html> > > ********************************** > Here is my input instance in file /xforms/f1040ez.xml > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> > </xforms:model> > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:28 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > I am trying to get my empty instance > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:04 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > Richard, > If your using the classic engine then the instance will be > the page-flow, but if your using the NG engine, which it looks like > your trying to! Then the instance is defined within the page. > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > Any ideas on What is src="input:instance" > >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: 08 February 2006 13:46 >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> What is src="input:instance" ? >> I thought my src instance is specified in the page flow.... Is this >> instance passed into the instance in the view? >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >> Bruchez >> Sent: Wednesday, February 08, 2006 8:45 AM >> To: [hidden email] >> Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >> That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >> -Erik >> >> Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> > > > > > > > > > ---------------------------------------------------------------------- > -- > > > -- > 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: -- 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 |
After some more looking around I noticed that your code created span
tags around all of my xforms inputs once they are rendered to HTML. Span cannot control an input, which is why my style tags are being ignored. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Thursday, February 09, 2006 1:28 PM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model It is also rendering check boxes as text. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Thursday, February 09, 2006 12:54 PM To: [hidden email] Subject: RE: [ops-users] x:forms:bind and xforms:model OK I got it to work with xform:bind http://24.75.221.234:8080/taxcode/1040ez The only problem is that it looks like Xforms bind is doing client side recalculations. It my architecture these things are supposed to happen on the server. It is also chainging the style of the form from what it was with ref, and ingnoring the styles that I have set up. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Wednesday, February 08, 2006 1:49 PM To: '[hidden email]' Subject: RE: [ops-users] x:forms:bind and xforms:model oxf:/xforms/f1040ez.xml returns Cannot load "/xforms/f1040ez.xml" with webapp loader. I don't think that url will serve http://24.75.221.234:8080/taxcode/1040ez The file is located in a xforms directory under ops/examples/1040ez/ -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, February 08, 2006 10:24 AM To: [hidden email] Subject: Re: [ops-users] x:forms:bind and xforms:model Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now resolved relative to the external request URL, i.e. the HTTP URL. -Erik Richard Braman wrote: > I have reproduced snippets from my code. This code throws a response > cannot be null error in xForms-epilogue.xpl line 81. I don't really > understand the syntax, because if it was the way understand it, it > would work :) > > Here is my view: > > <html> > <head> > <title>Form 1040 EZ 2005</title> > <xforms:model> > <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/> > <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind> > </xforms:model> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > > > <xforms:input xhtml:type="text" bind="f1-1" > xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/> > > </body> > </html> > > ********************************** > Here is my input instance in file /xforms/f1040ez.xml > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <form> > <f1040ez> > <f1-1>first name</f1-1> > </f1040ez> > </form> > </xforms:instance> > <xforms:submission method="post"/> > </xforms:model> > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:28 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > I am trying to get my empty instance > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: Wednesday, February 08, 2006 9:04 AM > To: [hidden email] > Subject: RE: [ops-users] x:forms:bind and xforms:model > > > Richard, > If your using the classic engine then the instance will be > the page-flow, but if your using the NG engine, which it looks like > your trying to! Then the instance is defined within the page. > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > Any ideas on What is src="input:instance" > >> -----Original Message----- >> From: Richard Braman [mailto:[hidden email]] >> Sent: 08 February 2006 13:46 >> To: [hidden email] >> Subject: RE: [ops-users] x:forms:bind and xforms:model >> >> What is src="input:instance" ? >> I thought my src instance is specified in the page flow.... Is this >> instance passed into the instance in the view? >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik >> Bruchez >> Sent: Wednesday, February 08, 2006 8:45 AM >> To: [hidden email] >> Subject: Re: [ops-users] x:forms:bind and xforms:model >> >> >> That goes under your /xhtml:html/xhtml:head in your page view, yes. >> >> -Erik >> >> Richard Braman wrote: >>> Is thi syntax supported in3.0? Where would this code go, in the >>> view? >>> >>> >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> >>> >>> <!--The actual XForms instance comes from the database --> >>> >>> <!--This syntax has yet to be supported by the server-side XForms >>> processor --> >>> >>> <xforms:instance id="main-instance"src="input:instance"/> >>> >>> <!--Calculations --> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/value1" >>> calculate="sum(/form/some/repeated/values)"/> >>> >>> <xforms:bind nodeset="/form/this/is/a/calculated/@value2" >>> calculate="if >>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ... >>> >>> </xforms:model> >> >> > > > > > > > > > ---------------------------------------------------------------------- > -- > > > -- > 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: -- 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 |