Re: XSLT Component

Norm,

On 2/8/07, Norman Walsh <Norman.Walsh@sun.com> wrote:
> I've been using XSLT for years and the fact that no implementation
> I've used allows me to pass anything but strings as parameter values
> From the command line has never been a significant problem for me.

Well experiences differ: I have been using XSLT for years, and the
implementation I am using (Saxon) does allow documents to be passed as
parameters from the command line. But I don't think this is the point.

The question is rather: how do we allow XSLT 2.0 implementation to be
exposed as a component in XProc. And the answer has to include a way
of passing a document as a parameter, as this is required by the XSLT
2.0 specification.

Since XProc parameters work only for strings, we could use XProc
inputs for XSLT parameters that are non-strings. To avoid name clashes
we could say that the port name is prefixed with "param-". So you
would have:

<p:step type="p:xslt">
    <p:input port="param-person" .../>
    <p:input port="source" .../>
    <p:input port="transform" .../>
</p:step>

Any other/better suggestion?

Alex
-- 
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/

Received on Wednesday, 21 February 2007 04:50:09 UTC