Hi,
Sorry to bother you folks (posting this message at the risk of asking the wrong group): I'm an OPS newbie and am struggling to see my xforms controls on the XForms sandbox (the samples that come with OPS seem to display fine, but something as simple as the following doesn't show up right - I see the title, but that's about it. I don't get any error either). What could I have missed? <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>My first OPS test</title> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance id="name"> <myform> <first-name>some name</first-name> </myform> </xforms:instance> </xforms:model> </head> <body> <xforms:group> <xforms:output value="test" /> </xforms:group> </body> </html> Any pointer is appreciated. Thanks, Vidya -- 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 think you are in the fefault namespce trap, try adding xmlns="" to
you <nmyform> node in your instance. Also you may want to consider Omitting the default namespace (xmlsns="http://www.w3.org/1999/xhtml") and Defining each xhtml node as xhtml:<nodename> and any other node you might add using namespace:nodename notation. -----Original Message----- From: Vidya Narayanan [mailto:[hidden email]] Sent: Thursday, March 02, 2006 7:48 PM To: [hidden email] Subject: [ops-users] OPS Newbie question Hi, Sorry to bother you folks (posting this message at the risk of asking the wrong group): I'm an OPS newbie and am struggling to see my xforms controls on the XForms sandbox (the samples that come with OPS seem to display fine, but something as simple as the following doesn't show up right - I see the title, but that's about it. I don't get any error either). What could I have missed? <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>My first OPS test</title> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance id="name"> <myform> <first-name>some name</first-name> </myform> </xforms:instance> </xforms:model> </head> <body> <xforms:group> <xforms:output value="test" /> </xforms:group> </body> </html> Any pointer is appreciated. Thanks, Vidya -- 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 Vidya Narayanan-2
Thankyou for the quick response...
I tried several combinations including the following, but still no luck... it displays the title and the 'hello' in the xhtml <p> tag fine, but not the xforms:output control. As though it has some problem with the xforms ns... (Is there a sample helloworld source that I can use to start from... if I cut and paste the view source on the helloworld example, I get a null pointer exception) <x:html xmlns:x="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <x:head> <x:title>Trying hard</x:title> <xforms:model> <xforms:instance id="name"> <myform xmlns=""> <first-name>MyName</first-name> </myform> </xforms:instance> </xforms:model> </x:head> <x:body> <x:p>hello</x:p> <xforms:group> <xforms:output value="Test" /> </xforms:group> </x:body> </x:html> Thanks, vidya -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Thursday, March 02, 2006 4:55 PM To: [hidden email] Subject: RE: [ops-users] OPS Newbie question I think you are in the fefault namespce trap, try adding xmlns="" to you <nmyform> node in your instance. Also you may want to consider Omitting the default namespace (xmlsns="http://www.w3.org/1999/xhtml") and Defining each xhtml node as xhtml:<nodename> and any other node you might add using namespace:nodename notation. -----Original Message----- From: Vidya Narayanan [mailto:[hidden email]] Sent: Thursday, March 02, 2006 7:48 PM To: [hidden email] Subject: [ops-users] OPS Newbie question Hi, Sorry to bother you folks (posting this message at the risk of asking the wrong group): I'm an OPS newbie and am struggling to see my xforms controls on the XForms sandbox (the samples that come with OPS seem to display fine, but something as simple as the following doesn't show up right - I see the title, but that's about it. I don't get any error either). What could I have missed? <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>My first OPS test</title> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance id="name"> <myform> <first-name>some name</first-name> </myform> </xforms:instance> </xforms:model> </head> <body> <xforms:group> <xforms:output value="test" /> </xforms:group> </body> </html> Any pointer is appreciated. Thanks, Vidya -- 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 |
Try changing your xforms:output from value="Test" to ref="first-name"
put "Vidya" in the first-name node fo your instance. Also you may want to add a xforms:label as a child node of the output control. -----Original Message----- From: Vidya Narayanan [mailto:[hidden email]] Sent: Thursday, March 02, 2006 8:39 PM To: [hidden email] Subject: RE: [ops-users] OPS Newbie question Thankyou for the quick response... I tried several combinations including the following, but still no luck... it displays the title and the 'hello' in the xhtml <p> tag fine, but not the xforms:output control. As though it has some problem with the xforms ns... (Is there a sample helloworld source that I can use to start from... if I cut and paste the view source on the helloworld example, I get a null pointer exception) <x:html xmlns:x="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <x:head> <x:title>Trying hard</x:title> <xforms:model> <xforms:instance id="name"> <myform xmlns=""> <first-name>MyName</first-name> </myform> </xforms:instance> </xforms:model> </x:head> <x:body> <x:p>hello</x:p> <xforms:group> <xforms:output value="Test" /> </xforms:group> </x:body> </x:html> Thanks, vidya -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Thursday, March 02, 2006 4:55 PM To: [hidden email] Subject: RE: [ops-users] OPS Newbie question I think you are in the fefault namespce trap, try adding xmlns="" to you <nmyform> node in your instance. Also you may want to consider Omitting the default namespace (xmlsns="http://www.w3.org/1999/xhtml") and Defining each xhtml node as xhtml:<nodename> and any other node you might add using namespace:nodename notation. -----Original Message----- From: Vidya Narayanan [mailto:[hidden email]] Sent: Thursday, March 02, 2006 7:48 PM To: [hidden email] Subject: [ops-users] OPS Newbie question Hi, Sorry to bother you folks (posting this message at the risk of asking the wrong group): I'm an OPS newbie and am struggling to see my xforms controls on the XForms sandbox (the samples that come with OPS seem to display fine, but something as simple as the following doesn't show up right - I see the title, but that's about it. I don't get any error either). What could I have missed? <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>My first OPS test</title> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance id="name"> <myform> <first-name>some name</first-name> </myform> </xforms:instance> </xforms:model> </head> <body> <xforms:group> <xforms:output value="test" /> </xforms:group> </body> </html> Any pointer is appreciated. Thanks, Vidya -- 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 Vidya Narayanan-2
Hi Vidya,
In <xforms:output value="..."/>, in the "value" attribute you have an XPath expression. So you just write Test there, it will display the text value of the element Test. Since there is no such element, nothing will be displayed. If you want to display the string Test, you need to write: <xforms:output value="'Test'"/> (note the single quotes). The modified XHTML + XForms file is attached to this email. Alex On 3/2/06, Vidya Narayanan <[hidden email]> wrote: > Thankyou for the quick response... > > I tried several combinations including the following, but still no > luck... it displays the title and the 'hello' in the xhtml <p> tag fine, > but not the xforms:output control. As though it has some problem with > the xforms ns... > > (Is there a sample helloworld source that I can use to start from... if > I cut and paste the view source on the helloworld example, I get a null > pointer exception) > > > <x:html xmlns:x="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms"> > <x:head> > <x:title>Trying hard</x:title> > <xforms:model> > <xforms:instance id="name"> > <myform xmlns=""> > <first-name>MyName</first-name> > </myform> > </xforms:instance> > </xforms:model> > </x:head> > <x:body> > <x:p>hello</x:p> > <xforms:group> > <xforms:output value="Test" /> > </xforms:group> > </x:body> > </x:html> > > Thanks, > vidya > > > > -----Original Message----- > From: Richard Braman [mailto:[hidden email]] > Sent: Thursday, March 02, 2006 4:55 PM > To: [hidden email] > Subject: RE: [ops-users] OPS Newbie question > > I think you are in the fefault namespce trap, try adding xmlns="" to > you <nmyform> node in your instance. Also you may want to consider > Omitting the default namespace (xmlsns="http://www.w3.org/1999/xhtml") > and Defining each xhtml node as xhtml:<nodename> and any other node you > might add using namespace:nodename notation. > > -----Original Message----- > From: Vidya Narayanan [mailto:[hidden email]] > Sent: Thursday, March 02, 2006 7:48 PM > To: [hidden email] > Subject: [ops-users] OPS Newbie question > > > Hi, > Sorry to bother you folks (posting this message at the risk of asking > the wrong group): I'm an OPS newbie and am struggling to see my xforms > controls on the XForms sandbox (the samples that come with OPS seem to > display fine, but something as simple as the following doesn't show up > right - I see the title, but that's about it. I don't get any error > either). What could I have missed? > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms"> > <head> > <title>My first OPS test</title> > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance id="name"> > <myform> > <first-name>some name</first-name> > </myform> > </xforms:instance> > </xforms:model> > </head> > <body> > <xforms:group> > <xforms:output value="test" /> > </xforms:group> > </body> > </html> > > Any pointer is appreciated. > Thanks, > Vidya > > > > > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws vidya.xhtml (549 bytes) Download Attachment
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |