W3C home > Mailing lists > Public > www-forms@w3.org > October 2003

RE: using the bookmarks demo?

From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
Date: Wed, 22 Oct 2003 15:38:25 -0700
Message-ID: <51B8ABCE456FD111899900805F6FD6EE146D9178@mercury.ADOC.xerox.com>
To: "'DuCharme, Bob (LNG-CHO)'" <bob.ducharme@lexisnexis.com>, "'www-forms@w3.org'" <www-forms@w3.org>

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/</\&lt;/g' | sed -e 's/>/\&gt;/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 &amp; and the < to &lt; 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 Wednesday, 22 October 2003 18:39:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:56 GMT