[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

ANN: HTML Form to XML module

  • From: "Matthew Sergeant (EML)" <Matthew.Sergeant@e...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Wed, 13 Jan 1999 10:52:43 +0100

html form to xml
Although this is a perl module, I hope others will see the usefulness of
this, and perhaps it can become a standard.

I've created a module that is a subclass of CGI.pm which takes HTML Form
output and generates XML. The aim of this module is to be able to generate
_arbitrary_ XML, not a standard (read: less useful) DTD. In order to be able
to do this the form element names use a standard naming convention, based
around XSL/XQL.

For example, the following form elements:

<input type="text" name="/table/@width" value="100%">
<input type="text" name="tr/td" value="val1">

will create the following XML:

<table width="100%">
	<tr>
		<td>val1</td>
	</tr>
</table>

The benefit of this naming scheme is it should be possible (this has been
demonstrated) to use an XQL processor to read in XML, and create these form
values directly, this way you can have an XML editor in your browser with
very little work.

The module also has limited (although much more planned) support for
ignoring form elements, using a namespace xmlcgi:ignore, so that you can use
them for things other than generating XML.

I'm very interested in feedback on this module, although I realise that most
people here are not primarily Perl developers.

I also have a much more extensive white paper available on this module, and
more complex documentation is available in the archive should anyone require
that.

Find it temporarily at:
http://www.fastnetltd.ndirect.co.uk/Perl/CGI-ToXML-0.03.tar.gz

Matt.
--
http://come.to/fastnet
Perl on Win32, PerlScript, ASP, Database, XML
GCS(GAT) d+ s:+ a-- C++ UL++>UL+++$ P++++$ E- W+++ N++ w--@$ O- M-- !V 
!PS !PE Y+ PGP- t+ 5 R tv+ X++ b+ DI++ D G-- e++ h--->z+++ R+++


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.