- From: Edwin de Jong <e.dejong@exxellence.nl>
- Date: Wed, 24 Nov 2010 11:38:49 +0100
- To: Florent Georges <fgeorges@fgeorges.org>
- CC: XProc Dev <xproc-dev@w3.org>
Hi Florent,
On 24-11-2010 11:25, Florent Georges wrote:
> Hi,
>
> The only way I can find from now is to add it to the file
> /etc/configuration.xml. Which means modifying a file in the
> Calabash JAR :-(
>
> I have not found any method, say on XProcConfiguration, to
> register an extension step. Is it possible without modifying
> configuration.xml?
The way I did it is:
XProcConf.implementations.put(
new
QName("http://www.my-first-company.nl/xproc/extension-steps",
"ugi-log-message"),
UGILogMessage.class.getName());
(for an extended logging method). To use this step, you need to import a
library ala:
<library
version="1.0"
xmlns="http://www.w3.org/ns/xproc"
xmlns:xs="http://www.my-first-company.nl/xproc/extension-steps">
<declare-step type="xs:ugi-log-message">
<input port="source" sequence="true"/>
<output port="result" sequence="true"/>
<option name="log-level" required="false"/>
</declare-step>
</library>
Hope this helps you! By the way, how is the caching going?
Greets,
Edwin
Met vriendelijke groet,
Edwin de Jong
Exxellence Group | www.exxellence.nl
Bezoekadres: Welbergweg 80-84 | 7556 PE Hengelo (ov.)
Postadres: Postbus 768 | 7550 AT Hengelo (ov.)
Tel. +31 (74) 25 94 008 | fax. +31 (74) 25 66 424
Received on Wednesday, 24 November 2010 10:40:08 UTC