OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Interactive XSLT [was RE: James Clark: XML versus theWeb]


> What I'm trying to imagine is some kind of way of associating 
> XSLT templates with user interface events so the dialog 
> structure is user-controlled.

Where I've been involved in similar exercises in the past, where XSLT was used to apply transformation to the data model, we connected the events in the view (UI) to actions (XSLT templates) upon the model by using SMIL's declarative event listeners to dispatch events that were listened for by the controller. The controller would package the event up in an XML representation al-la Remote Events in XML (REX) <http://www.w3.org/TR/rex> and invoked a transform that matched specific classes of event with specific template matches. And, yes, XForms can, in effect, do things like this with the proposed xf:transform action but only so far as invoking a transform based upon a specific event rather than processing events with XSLT. I've also worked upon an stand-alone XSLT implementation of a REX processor.

It's also worth underlining the fact that the SMIL Animation module, as used in SVG, provides for simple 'transformations' (changing attribute values) in the view, or for that matter in a data model embedded in the view, and that may be it is an evolution of, for example, svg:set to svg:transform (not in the matrix sense, but as an XSLT transform) that would allow transformation of complex types.

The idea that you'd have a stream of events, represented as XML, that were matched by specific templates is a fascinating one and not just applicable to UIs but has a more general application to messaging and request processing.


Philip Fennell
MarkLogic Corporation

88 Wood Street, London. EC2V 7RS

Mobile: +44 (0) 7824 830 866

email  Philip.Fennell@marklogic.com
web    www.marklogic.com

-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: 02 December, 2010 12:19 AM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Interactive XSLT [was RE: James Clark: XML versus the Web]

On 01/12/2010 23:51, Dimitre Novatchev wrote:
> We just need a standard F&  O function for this.
> See how this was done in the "XSLT calculator" 7 years ago:  :)
> http://fxsl.sourceforge.net/articles/xslCalculator/The%20FXSL%20Calculator.html#6._Putting_it_All_Together_-_the_XSLT_Calculator
> Although this is a desktop app, the same design can be applied towards
> a browser scripting application.
But this looks to me like a conversational user interface where the 
program asks the user a question and waits for a reply. This is very 
different from an event-based user interface where the sequence of 
events is controlled by the user. What I'm trying to imagine is some 
kind of way of associating XSLT templates with user interface events so 
the dialog structure is user-controlled. Of course this raises question 
about how state is maintained; I don't have any well-formulated thoughts 
on this. There must be some relationship with XForms here, but I'm not 
sure what it is.

Michael Kay


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@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
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]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS