Re: [xsl] ext func

Subject: Re: [xsl] ext func
From: "xmlhack ." <xmlhack@xxxxxxxxxxx>
Date: Wed, 18 Jul 2001 15:35:11 -0000
Shruti, I don't know if this will be of much help, or if it's what you're looking for but this is how we used a Java extension ...

At the beginning of the XSL:

<?xml version="1.0"?>
<lxslt:component prefix="testIndent" elements="init" functions="setIndent">
	 <lxslt:script lang="javaclass" src="testExtensions"/>

<!--removed coding-->

<xsl:template match="poetry-line">
<div class="poetry-line">
<xsl:if test="@indent">
<xsl:value-of disable-output-escaping="yes" select="testIndent:setIndent(string(@indent))" />
<xsl:apply-templates /></div>

<!--removed coding-->

Hope this helps.

From: "shruti" <shruti@xxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [xsl] ext func
Date: Mon, 18 Jun 2001 15:56:17 +0530

can somebody help me in using extension functions in xpath expressions.
it would be really helpful if i can get some examples on how to use
extension functions like tokenize, distinct  in xpath expressions...

thanx.. shruti

XSL-List info and archive:

_________________________________________________________________ Get your FREE download of MSN Explorer at

XSL-List info and archive:

Current Thread