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

Re: XForms to XHTML using XSLT

  • From: COUTHURES Alain <alain.couthures@a...>
  • To: "G. Ken Holman" <gkholman@C...>
  • Date: Thu, 30 Oct 2008 12:28:52 +0100

Re:  XForms to XHTML using XSLT
Hello,

Thank you for your answer.

After studying AJAXForms, I have been able to integrate its main Java 
parts inside a unique XSLT 1.0 stylesheet. I have already tested it 
successfully, on client-side transformation, with Internet Explorer, 
FireFox and Safari (there is some nasty bug in Opera XSLT engine about 
embedded apply-template with select attribute within call-template...) 
and loading time is good !

AJAXForms performs a conversion of every XPath expression to Javascript 
objects using Jaxen capabilities so I had to analyze XPath expressions 
with XSLT 1.0 only (some named templates with a stack mecanism based on 
strings manipulations...).

It is now an only pre-alpha version at 
http://sourceforge.net/projects/xsltforms/ (axis not supported,- unary 
operator not well supported, ..., different bugs in Javascript parts,...).

Alain COUTHURES
<agenceXML>
http://www.agencexml.com
Bordeaux, France

G. Ken Holman a écrit :
> 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
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2007 All Rights Reserved.