- From: DuCharme, Bob (LNG-CHO) <bob.ducharme@lexisnexis.com>
- Date: Thu, 23 Oct 2003 08:56:38 -0400
- To: "'Klotz, Leigh'" <Leigh.Klotz@pahv.xerox.com>, "'www-forms@w3.org'" <www-forms@w3.org>
That worked great with eg-01.xml too, after I fixed the Xforms URI. Thanks! Bob -----Original Message----- From: Klotz, Leigh [mailto:Leigh.Klotz@pahv.xerox.com] Sent: Wednesday, October 22, 2003 6:40 PM To: 'DuCharme, Bob (LNG-CHO)'; 'www-forms@w3.org' Subject: RE: using the bookmarks demo? For XForms testing feel free to POST to http://xformstest.org/cgi-bin/showinstance.sh which is reproduced below: $ cat showinstance.sh #!/bin/sh echo "Content-Type: text/html" echo echo "<html><head><title>Results from showinstance</title><body>" echo "<h1>Instance Data</h1>" echo "<pre>" xmllint --format - | cat | sed -e 's/</\</g' | sed -e 's/>/\>/g' echo "</pre>" echo "</body></html>" -----Original Message----- From: DuCharme, Bob (LNG-CHO) [mailto:bob.ducharme@lexisnexis.com] Sent: Tuesday, October 21, 2003 2:27 PM To: 'www-forms@w3.org' Subject: using the bookmarks demo? Here's what I'm trying to do: bring up a simple XForms form on my computer, fill some of it out, click the button that submits it to the server, and then see the XML that got submitted. If submission/@action points to a CGI that converts all the & to & and the < to < and then puts the result between the <pre></pre> tags of a generated HTML page, that would be fine. I saved http://www.w3.org/MarkUp/Forms/2002/Examples/spec-examples/eg-00.xml to disk. XSmiles 0.82 gives me an error because it couldn't find payschema.xsd, which isn't listed on http://www.w3.org/MarkUp/Forms/2002/Examples/spec-examples/. So I saved http://www.w3.org/MarkUp/Forms/2002/Examples/spec-examples/eg-01.xml to disk. It looks for bookmarks.xml, which for some reason was renamed "eg-01-instance.xml" (yes, there's a comment in it saying "This is the bookmarks.xml file," but there's no excuse for not either actually naming it bookmarks.xml or else having eg-01.xml actually look for a file named eg-01-instance.xml) so I downloaded that as bookmarks.xml. I don't expect XSmiles 0.82 to be able to do anything with it with a submission/@action value of "http://examples.com", so I changed that to http://www.snee.com/bob/temp/xftest.cgi and put an xftest.cgi file in bob/temp that hopefully does what I described above to show the XML that was submitted to it. XSmiles displays eg-01.xml pretty nicely. I click "Insert bookmark," enter "flag1" and "flag2" in the two yellow fields that appear under "Bookmark name URL," and then click "Save." XSmiles tells me "Could not find a submission with id s01." eg-01.xml has a submission element with @id="s01"; is this a problem with XSmiles? Can anyone suggest an XForms client/XForm/CGI script combination that demonstrates the kind of basic level of XForms client/server interaction that I described? I'm not even that interested in the server, I mostly just want to use an XForm form and see the XML that it creates. thanks, Bob
Received on Thursday, 23 October 2003 08:56:51 UTC