W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2009

Re: A quick query about the 'value' of a p:with-option's select expression.

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 23 Jun 2009 08:49:08 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2my7zqfnf.fsf@nwalsh.com>
Philip Fennell <Philip.Fennell@bbc.co.uk> writes:
>> XProc 1.0 defines all options (and parameters) as string values.
>
> Boooo, Hissss, Thrruppp!

Yeah, I hear you. 

> Would there be the possibility in future revisions of XProc to include
> an 'as' attribute like XSLT 2.0 has? Then I could say declare:
>
> <p:with-option name="collection" select="('foo', 'bar')"
> as="xs:string*"/>
>
> Or would that be treading too much on XSLT's toes?

Yes, I think that's a possibility. Only time will tell.

I was surprised when consensus in the WG formed around string values
only, especially for parameters which both XSLT and XQuery allow to
have node values.

Courtesty of a long train ride home last night, I've actually
implemented an extension in XProc which allows any XDM value as the
value of an option, parameter, or variable.

I'm not sure this is a good idea, but I thought it would be an
interesting exercise.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | It is so comic to hear oneself called
http://nwalsh.com/            | old, even at ninety I suppose.--Alice
                              | James

Received on Tuesday, 23 June 2009 12:49:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 June 2009 12:49:53 GMT