W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2009

Re: Select expression in input declaration

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 04 Feb 2009 08:52:50 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2tz7a48ct.fsf@nwalsh.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 February 2009 13:58:19 GMT