Re: External processing.

Subject: Re: External processing.
From: Didier BOLF <didier@xxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Jul 1999 16:53:14 +0200 (MET DST)
> I'm wondering if it is possible in XSL to call external processing. For
> example, in a xsl:if function, I would like to add a self-defined function
> to be evaluated in the test such <xsl:if test="myFooFunction($toto)">. I've
> heard that it was possible in SGML. But the question is to do it in XSL, and
> if possible, what parser would accept this?

You can create Java classes with static methods to be called in your XSL 

This works well with XT (see
This is a small exemple of use:

In Java:
package com.edf.util;

public class C1 {
  public static String f1(String s) {
    return s;

<xsl:stylesheet xmlns:xsl="";
 <xsl:param:variable mame="var1">
 <xsl:if test="ext:f1(string($var1))=''">
Best regards.

 XSL-List info and archive:

Current Thread