|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: HTML to XML via XSL ?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








