W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2011

Calabash: register an extension step through the API

From: Florent Georges <fgeorges@fgeorges.org>
Date: Tue, 6 Sep 2011 01:16:54 +0200
Message-ID: <CADyR_r1RxNg-vb_Wk93tn6GuFf13h-Seev_jOk5W2bJTaV-aDA@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  Hi,

  I couldn't find any way in Calabash to add an implementation
programmatically on XProcConfiguration (that is, saying step X is
a extension step implemented by Java class Y).  The only way is
to parse a config file, but there is no way to add it directly.

  Shouldn't a system using Calabash and configuring it from its
API be able to declare such steps directly on the config object?
E.g. using a new method:

    public void registerExtensionStep(QName name, String clazz) {
        implementations.put(name, clazz);
    }

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Received on Monday, 5 September 2011 23:17:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 September 2011 23:17:43 GMT