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

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 UTC