Re: step must contain only a signature

James Garriss <james@garriss.org> writes:

> Well, no doubt you've been laughing in your boots at me.  But I am

I'm not laughing. Is there something we could do that would have made
things clearer?

> and their names all confused.  Here's what this is supposed to look
> like:
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main">
>     <p:input port="source" primary="true">
>         <p:document href="BookStore.xml"/>
>     </p:input>
>     <p:output port="result"/>
>     <p:delete match="/BookStore/Book/Title"/>
> </p:declare-step>
>
> And this works as expected.

That is the recommended formulation, but if you wanted to use p:option,
you could have done it this way:

        <p:delete>
            <p:option name="match" select="'BookStore/Book/Title'"/>
        </p:delete>

Note the XSLT-style double-quoting of the string.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | We ought not to heap reproaches on old
http://nwalsh.com/            | age, seeing that we all hope to reach
                              | it.-- Bion

Received on Thursday, 18 September 2008 19:12:21 UTC