XSLT Extension Functions: Difference between revisions

From Commander4j
No edit summary
No edit summary
Line 4: Line 4:


A number of Extension (Java) functions are available to the middleware and these are documented here.
A number of Extension (Java) functions are available to the middleware and these are documented here.
In order to be able to reference these functions in your XSLT you would need to delcare them as shown here.
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:c4j="http://www.commander4j.com"
                xmlns:c4j_XSLT_Ext="http://com.commander4j.Transformation"
                xmlns:saxon="http://saxon.sf.net/"
                exclude-result-prefixes="xs c4j c4j_XSLT_Ext"
                version="2.0">
</syntaxhighlight>

Revision as of 12:41, 9 September 2024

The Middleware Appliction is bundled with the Saxon-HE library

The open-source Saxon-HE product is offered under the [Mozilla Public License version 2.0.]

A number of Extension (Java) functions are available to the middleware and these are documented here.

In order to be able to reference these functions in your XSLT you would need to delcare them as shown here.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:xs="http://www.w3.org/2001/XMLSchema" 
                xmlns:c4j="http://www.commander4j.com" 
                xmlns:c4j_XSLT_Ext="http://com.commander4j.Transformation" 
                xmlns:saxon="http://saxon.sf.net/"
                exclude-result-prefixes="xs c4j c4j_XSLT_Ext" 
                version="2.0">