Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XForms to XHTML using XSLT

From: "G. Ken Holman" <gkholman@----------------.--->
To: xml-dev@-----.---.---
Date: 10/10/2008 1:42:00 PM
At 2008-10-10 11:19 +0200, COUTHURES Alain wrote:
>I just saw old threads about XForms to XHTML conversion using XSLT 
>and I think this could still be a good idea for client-side XForms 
>or for PHP only server-side XForms

For many years I've been doing XML->PHP for all of the forms on 
Crane's web site.  One investment in writing the XSLT to get the 
necessary server-side PHP to run the form and then I forgot all the 
PHP I learned because every form I need I just express in XML.

Here is an example form, and you wouldn't know that I wrote it in XML:

   http://www.CraneSoftwrights.com/forms/interest.php

All field validation and retrying of the form is done in PHP.  And 
when bots started filling out my forms I only had to add the 
"staleness" and challenge question to my XSLT and instantly all of my 
forms were updated with the need for someone to think about one of 
the values to validate the form wasn't being filled out by a bot.

>and there are today opensource solutions which are performing this 
>conversion in Java.
>
>What would the main problems rewriting a conversion tool with XSLT ? 
>Effective full XSLT 1.0 support by browsers ? XForms specific CSS 
>rules to translate ?

For server-side PHP implementation of XForms, I don't think those 
questions matter ... although many years ago I used XSLT 1, if I had 
to do it today I would use XSLT 2 and the end result is just a PHP 
form that runs independent of the browser used to access the server.

I hope this helps.

. . . . . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent