Re: calabash: redefining standard step

"James Fuller" <> writes:

> consider the following pipeline
> <p:pipeline name="pipeline"
>             xmlns:p="">
> <!-- should not evaluate this declare-step //-->
> <p:declare-step name="test1" type="p:identity">
>     <p:input port="source" sequence="true"/>
>     <p:output port="result" sequence="true"/>
>     <p:count/>
> </p:declare-step>
> <p:identity/>
> </p:pipeline>
> should this not throw an error ? perhaps err:XS0002 or

It could throw err:XS0002, but I think we need a new error because
an attempt to declare "p:my-new-step" should also fail.

In fact, the spec already forbids it:

  Except as described in Section 2.13, ‚ÄúVersioning Considerations‚ÄĚ,
  the XProc namespace must not be used in the type of steps. Neither
  users nor implementers may define additional steps in the XProc

but through editorial carelessness, I seem to have forgotten to
explicitly make it a static error.

                                        Be seeing you,

Norman Walsh <> | In a universe of electrons and selfish            | genes, blind physical forces and
                              | genetic replication, some people are
                              | going to get hurt, other people are
                              | going to get lucky, and you won't find
                              | any rhyme or reason in it, nor any
                              | justice.--Richard Dawkins

Received on Thursday, 11 December 2008 15:14:56 UTC