Re: Input Fields in XML

Subject: Re: Input Fields in XML
From: Aneel Nazareth <anazaret@xxxxxxxxxxxx>
Date: Fri, 04 Dec 1998 15:03:11 -0500
To clarify a bit here, the sample does the following:

XML + XSL => HTML with input fields => XML

The first => is an XSL processor.
The second => is a CGI program that simply concatenates the input fields.

If you look at the HTML source, you'll notice a lot of HIDDEN INPUT tags.
These have all of the XML tags encoded in them. For example, when you submit
this piece of the form:

<P> Artist: <INPUT VALUE="&lt;ARTIST&gt;" TYPE="HIDDEN" NAME="xml"/>
<INPUT SIZE="60" VALUE=" Peter Gabriel " TYPE="TEXT" NAME="xml"/>
<INPUT VALUE="&lt;/ARTIST&gt;
" TYPE="HIDDEN" NAME="xml"/>
</P>

The output in the CGI parameter with NAME="xml" (I should have chosen a
different name for clarity's sake) is:
<ARTIST> Peter Gabriel </ARTIST>

So the HTML form returns the original XML document, with whatever values the
user changed.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread