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

RE: xslt stylesheet for xforms to xhtml

From: Kurt George Gjerde <kurt.gjerde@intermedia.uib.no>
Date: Mon, 2 Sep 2002 11:13:01 +0200 (MET DST)
To: Dan Dennedy <DDennedy@digitalbang.com>
cc: Robert Trybis <rt@cygnets.co.uk>, <www-forms@w3.org>
Message-ID: <Pine.GSO.4.33.0209020927010.26612-100000@hermes.svf.uib.no>

On Fri, 30 Aug 2002, Dan Dennedy wrote:
> I could see how a pure xslt can handle binding to a single inline data
> instance, but it will break down when you have to deal with multiple
> models, with multiple instances, and with externally xlink-ed
> instances.

What is meant by "pure XSLT" here? I can not see how XSLT without
extensions can handle any type of XForms binding.

But all bindings can be done by using extensions.

> > From: Robert Trybis
> > Torsten wrote;
> > > this is not possible without using extensions. (you need to evaluate
> > > xpaths at runtime) it has been tried before ;-)
> >
> > Surely this is not completely correct?
> > Xforms is xml and xhtml is xml so a using xslt to translate
> > between the two should be possible should it not?

You definately need an evaluate() function. For multiple instances you
also need to be able to user define functions for the instance()
function.

> > Xforms exists because xhtml was found lacking for forms
> > processing. So it must follow that there will be some things
> > that can be defined in xforms that cannot easily be done in
> > xhtml. However if I keep my xforms simple and self-contained
> > am I not likely to be able to make a usable translation?

I guess you could make an XSLT 1.0 which just transforms an XForms UI to
an *empty* HTML form. But if you need initial data in the form you need to
bind to a model thus requiring evaluate().


__________
kurt george gjerde <kurt.gjerde@intermedia.uib.no>
intermedia uib, university of bergen

Just say .no
Received on Monday, 2 September 2002 05:15:03 GMT

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