Skip to main content
A Open Source Solution
Home Download Support Configuration Development ImagoX

The Extensions package is a group of standard and contributed Imago XSLT extensions. provides a framework for the development of custom or application specific extensions. Once an extension is incorporated into an system its methods are available from within the XSLT stylesheets. Unless otherwise noted these extensions require the engine to function properly.

The general process for inserting extension content into a document is to create an element that will be transformed by an XSLT. The XSLT transform will execute the extension element. First create an XML document to be transformed. In the example below we create a format element in an imago namespace that we will use to trigger the XSLT template.

<?xml version="1.0"?>
<document xmlns:imago="" >


The XSLT will use the extension org.xenei.imago.extensions.ImagoSystem to get the format the client should received. Note that the imago namespace has the same definition as in the XML document.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=""
    extension-element-prefixes="xsystem "
<xsl:template match="document">
    <xsl:apply-templates />

<xsl:template match="imago:format">
    The desired format is <xsystem:format/>


Creating an XML document that has a <xsystem:format/> element will not cause the extension element to execute.

imago and xsystem are arbitrary namespaces.
All trademarks and copyrights are the property of their respective owners.
Copyright © 2002-2004 by, All Rights Reserved - Open Source Solutions