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

using the bookmarks demo?

From: DuCharme, Bob (LNG-CHO) <bob.ducharme@lexisnexis.com>
Date: Tue, 21 Oct 2003 17:25:26 -0400
Message-ID: <FEF4858E8AB32D4EAC2CF2A7D85386EBE52D86@lnxdayexch06.lexis-nexis.com>
To: "'www-forms@w3.org'" <www-forms@w3.org>

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 Tuesday, 21 October 2003 17:27:11 GMT

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