Re: unbound option bug in Calabash, I think

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Norman Walsh writes:

> What about this one?
>
>    <p:pipeline xmlns:p="http://www.w3.org/ns/xproc">
>     <p:option name="notBound"/>
>     <p:option name="notUsed" select="$notBound"/>
>     <p:identity/>
>    </p:pipeline>

Hmm.  The spec says [1]

  "The select expression is only evaluated when its actual value is
   needed by an instance of the step type being declared."

That puts a pretty substantial burden on an implementation!  Did we
really mean to say that???!!!!  But given it says that, the answer to
your question is "no, no error, since the 'notUsed' option is never
needed by any instance of the step".

Our gun, our foot, our bullet :-(.

ht

[1] http://www.w3.org/XML/XProc/docs/langspec.html#p.option
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFKDVK0kjnJixAXWBoRAkiXAJ9VWMM+1r4Ht4kBUbYnZWIDumKIFwCfcvPk
RuuVZgk4fvcPnHLvYjouPyI=
=wUWg
-----END PGP SIGNATURE-----

Received on Friday, 15 May 2009 11:32:45 UTC