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

RE: XSLT extension action - continued

From: Philip Fennell <Philip.Fennell@marklogic.com>
Date: Wed, 15 Sep 2010 07:25:00 -0700
To: Claudius Teodorescu <claud108@yahoo.com>, Nick Van den Bleeken <Nick.Van.den.Bleeken@inventivegroup.com>
CC: "www-forms@w3.org" <www-forms@w3.org>
Message-ID: <D20C296D14127D4EBD176AD949D8A75A442629C0@EXCHG-BE.marklogic.com>
Claudius,

Looks good.

> What do you think about @transformer?

An interesting and useful feature of XForms 1.1 is the 'resource' attribute/element that is used in xf:submission. It allows the form author to either declare 'statically' the URI of a resource (XML document) by using the resource attribute or allow the instance data to dynamically control the URI by using the xf:resource element. This could be applied to the xf:transform action to provide a very powerful and flexible way of controlling instance transformations.

The only other suggestion I'd like to make, as a counter argument to directly identifying the transformation, is that we also consider not using a URI in the action but to use the existing instance data and submission mechanisms to load the 'transform' into the form and then reference that 'instance' of a transform using a ref or bind attribute on the action. That way you get the advantages of the resource attribute/element that is already available in xf:submission, plus you get all the additional xforms-submission event trapping and even the ability to transform or generate transforms with other transforms.

Oh the power !!!


Regards

Philip Fennell 
Consultant
MarkLogic Corporation
Mobile +44 (0) 7824 830 866
email  Philip.Fennell@marklogic.com
web    www.marklogic.com

This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation.




From: www-forms-request@w3.org [www-forms-request@w3.org] On Behalf Of Claudius Teodorescu [claud108@yahoo.com]
Sent: 15 September 2010 08:36
To: Nick Van den Bleeken
Cc: www-forms@w3.org
Subject: Re: XSLT extension action - continued


Hi,

Sorry for delay in answering.

So, to conclude, here is a new syntax for "transform" action:

<xf:transform
    type="xslt | xquery | xproc"
    exkf:processor="exist-client"
    origin="instance('i2')/pac"
    transformer="doc('test.xsl')" 
    ref="instance('i0')/v1"
    param="instance('i2')/parameters"/>.

One can use also 
param child elements which have 'name', 'ref'  and 'value' attributes, as Nick suggested.

What do you think about @transformer? Is this a good name in English? Is is supposed to point to the XSLT stylesheet, XQuery script, or XProc pipeline.

Thank you,


Claudius Teodorescu
http://kuberam.ro
Received on Wednesday, 15 September 2010 14:25:33 GMT

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