W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > August 2008

Re: Names for p:* steps

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 22 Aug 2008 09:45:29 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2ej4hrwna.fsf@nwalsh.com>
"Innovimax SARL" <innovimax@gmail.com> writes:

> Well, may I ask you to elaborate on this ?

Sure.

Imagine that library.xpl contains:

  <p:library ...>
    <p:declare-step name="xinclude-and-xslt">...</p:declare-step>
  </p:library>

Consider the following imaginary command line syntax:

$ calabash -isource=- -oresult=- -s xinclude-and-xslt library.xpl

This tells the processor to load "library.xpl" and run the step named
"xinclude-and-xslt". All straightforward.

Now suppose I want to just run the "add-attribute" step. I could wrap
it in a pipeline, put it in a library, give it a name, and run it. But
since the library for the XProc builtin steps is always loaded (at
least conceptually), why do I have to do that? Why can't I just say:

$ calabash -isource=- -oresult=- -s add-attribute \
          match=div attribute-name=foo attribute-value=bar

I can't because the standard p:add-attribute step doesn't have a name.

I was wondering if we couldn't do something about that. But I don't
think we can.

However, I think I'll work around the problem by saying that if you
don't load a pipeline or a library and if you specify a step name then
the xml:id values of the standard steps are considered for the purpose
of matching the specified name.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Whatever else we are intended to do, we
http://nwalsh.com/            | are not intended to succeed: failure is
                              | the fate allotted.--Robert Louis
                              | Stevenson

Received on Friday, 22 August 2008 13:46:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 August 2008 13:46:31 GMT