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

RE: HTML to XML via XSL ?

Subject: RE: HTML to XML via XSL ?
From: cknell@xxxxxxxxxx
Date: Thu, 10 Oct 2002 10:15:39 -0400
concatenate html
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@xxxxxxxxxx - email



-----Original Message-----
From:     "Mac Martine" <pub@xxxxxxxxxxxxxxxx>
Sent:     Wed, 9 Oct 2002 20:18:04 -0700
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   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


Current Thread

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
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.