Re: Select expression in input declaration

Toman_Vojtech@emc.com writes:
> Suppose I have the following pipeline (test.xpl):
>
> <p:declare-step type="foo:test" xmlns:foo="...">
>   <p:input port="source" select="//book">
>     <p:inline><books><book/></books></p:inline>
>   </p:input>
>   <p:output port="result"/>
>
>   <p:identity>
> </p:declare-step>
>
> And another pipeline that imports test.xpl and does the following:
>
> <p:pipeline xmlns:foo="...">
>   <p:import href="test.xpl"/>
>
>   <foo:test>
>     <p:input port="source">
>       <p:inline><library><book/></library></p:inline>
>     </p:input>
>   </foo:test>
> </p:pipeline>
>
> What does the invocation of foo:test return? <library><book/></library>,
> or just <book/>?

The WG decided that the right answer here is <library><book/></library>.

Does that mean the select attribute is ignored if I call foo:test
directly from the command line?

$ calabash -isource=/path/to/my.xml foo.xpl

I think the consistent answer is "yes".

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | On the other hand, you have different
http://nwalsh.com/            | fingers.

Received on Wednesday, 4 February 2009 13:58:18 UTC