xsl-list
[Top] [All Lists]

RE: HTML to XML via XSL ?

2002-10-10 07:15:39
Since (as far as I know) HTTP will only pass strings(untyped values) to a 
server, you will have to build the XML on the client. This is easily done with 
JavaScript (and probably any other script your browser supports). The simplest 
way is to concatenate strings. I have found it useful to create a JavaScript 
object to represent the form and give it an .xml method which returns a 
well-formed XML document in a string which is sent via the query string to the 
server where you can parse it into a DOM Document and extract the values with 
XPath.

I have done this with IIS and Apache (using mod_PLSQL on the Oracle 9iAS).
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     "Mac Martine" <pub(_at_)magusdesigns(_dot_)com>
Sent:     Wed, 9 Oct 2002 20:18:04 -0700
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject:  [xsl] HTML to XML via XSL ?


Hello-
 I am generating HTML from XML via XSL. The original XML file is not
predictable in content, but my XSL is still smart enough to convert xml
nodes with certain names to specific html form objects. Great, so far.

So, now I want the users' form selections to be written back as xml when
the html form is submitted. Is there a way to do this? So, basically, I
would need to go through all HTML form objects in that page, and write
them as xml nodes along with their selected/user defined values.
Make sense?

Thanks a lot-
Mac


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




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



<Prev in Thread] Current Thread [Next in Thread>