W3C home > Mailing lists > Public > www-forms@w3.org > September 2000

Re: Using XSL-T to convert XForm to HTML: Impossible?

From: Jerome Marc <marcjero@hotmail.com>
Date: Mon, 25 Sep 2000 15:52:25 GMT
To: schulze@dresden-informatik.de, www-forms@w3.org
Message-ID: <F1070rmTIVvLVKi3s1w00002c49@hotmail.com>
I agree with you XSLT can do the transformation. I made a stylesheet that 
generates IE4 and Netscape 4.0 compatible DHTML. It'not so heavy because I 
wrote a Javascript runtime in a .js file. The runtime is about 40K and is 
shared (downloaded once) between XForms generated pages.


>From: "Schulze, Matthias" <schulze@dresden-informatik.de>
>To: "'www-forms@w3.org'" <www-forms@w3.org>
>Subject: Re: Using XSL-T to convert XForm to HTML: Impossible?
>Date: Mon, 25 Sep 2000 17:19:46 +0200
>
> > I've just been studying the XForm data model with a view to writing a
>general
> > XSL-T transform to convert an XForm for delivery on legacy HTML devices,
>and
> > I come to the conclusion that the separation of model and instance data
>makes
> > this impossible. I cannot, in a single transformation, create a
>pre-populated
> > HTML form from an XForm document.
>
>I've also spent some thoughts about XForms -> HTML transformation. Basicly
>I believe that the mere transformation _can_ be done by XSLT. But if you
>want
>the resulting HTML to validate the user-input against the model (e.g. the
>min/max constraints), you'll have to use scripts and event handlers to do
>so.
>This requires quite heavy XSLT and sooner or later you'll end up with a
>XForms client implementation!
>
>However, I don't think that a complete transformation will generally be
>possible
>by means of HTML 4 plus Javascript 1.2.
>E.g. if you consider requirements like 3.7 (expandable form control groups)
>or
>3.9 (saving and resuming), you'll have to rely on DOM support like in IE 
>and
>
>special server-side facilities.
>
>M.
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.
Received on Monday, 25 September 2000 11:52:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:48 GMT