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

> XProc 1.0 defines all options (and parameters) as string values.

Boooo, Hissss, Thrruppp!

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?


Regards

Philip Fennell


-----Original Message-----
From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On
Behalf Of Norman Walsh
Sent: 22 June 2009 23:36
To: XProc Dev
Subject: Re: A quick query about the 'value' of a p:with-option's select
expression.

Philip Fennell <Philip.Fennell@bbc.co.uk> writes:
>
> Is there an explanation for this behaviour?

Yes. XProc 1.0 defines all options (and parameters) as string values. So
the option passed to your step is the XPath 2.0 string value of the
sequence.
You can't pass the sequence :-(

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@nwalsh.com> | Man's sensitivity to little things and
http://nwalsh.com/            | insensitivity to the greatest are the
                              | signs of a strange disorder.-- Pascal

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					

Received on Tuesday, 23 June 2009 09:58:47 UTC