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 stylesheet. This works well with XT (see http://www.jclark.com/xml/xt.html). This is a small exemple of use: In Java: ------- package com.edf.util; public class C1 { public static String f1(String s) { return s; } } In XSL: ------ <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns:ext="http://www.jclark.com/xt/java/com.edf.util.C1" > ... <xsl:param:variable mame="var1"> ... </xsl:param-variable> ... <xsl:if test="ext:f1(string($var1))=''"> ... </xsl:if> ... Best regards. Didier. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
External processing., zze-minitel2001 balr | Thread | Searching within a text, Christian Suykens |
AW: External processing., Bernhard Keil | Date | Re: Swapping table rows and columns, David Carlisle |
Month |