Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > newbie xslt - retreiving data from a form

Reply
Thread Tools

newbie xslt - retreiving data from a form

 
 
Marty Gagnon
Guest
Posts: n/a
 
      11-30-2004
I've been looking into xml/xslt as a solution for seperating presentation from
data. It looks like what I want but I have one question. Once the form
has been rendered, and the user enters some information into the form, how
do I extract the data from the form back into xml?
I thought when the post happens I could use the namespace of the form's input
fields know how to build the xml, but I think there must be a better way.

This is basically what I want to do:

---- Here is the data -----------
<cd>
<title>Fables of a Reconstruction</title>
<artist>REM</artist>
</cd>
<cd>
<title>WAR</title>
<artist>U2</artist>
</cd>

---------------------------
then using xslt render a form with the title and artist
in <INPUT TYPE="Text" which can be modified,
---------------------------

Title : [Fables of a Reconstruction]
Artist : [REM]

Title : [ Rattle and Hum ]
Artist : [U2]

[SUBMIT BUTTON]

--------------------------
and then when the submit happens
I want to get the new values out of the form and put them
back into xml WITH THE MODIFIED INFORMATION
--------------------------
<cd>
<title>Fables of a Reconstruction</title>
<artist>REM</artist>
</cd>
<cd>
<title>Rattle and Hum </title>
<artist>U2</artist>
</cd>
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      11-30-2004


Marty Gagnon wrote:

> I've been looking into xml/xslt as a solution for seperating presentation from
> data. It looks like what I want but I have one question. Once the form
> has been rendered, and the user enters some information into the form, how
> do I extract the data from the form back into xml?


XSLT doesn't know about HTML forms or HTTP form submission so you need
to employ your favourite server side programming language/technique
(e.g. PHP or ASP or JSP or Perl CGI) to process the submitted form data
and update the XML as needed.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
retreiving data from a hard drive protected with Norton Go-Back sackstrevor@gmail.com Computer Support 3 05-29-2007 05:01 PM
Retreiving values of form elements after being changed by DOM Angel Javascript 4 07-17-2006 05:07 AM
Retreiving Oracle data from a custom user control in asp.net (Security errors) ElCapitan ASP .Net Building Controls 0 03-14-2006 04:18 PM
retreiving data from HD which has been removed Frank Thompson Computer Support 1 08-18-2005 12:20 PM
Retreiving data in datalist from Codebehind kaczmar2@hotmail.com ASP .Net 1 05-23-2005 09:48 PM



Advertisments