cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spencer" <>
Subject Cocoon, Java Extensions and Xalan
Date Mon, 07 Oct 2002 15:10:23 GMT

I am writing some Java extensions to XSL which are working fine when I run
them off the command line (java org.apache.xalan etc). The Java method is
returned and added to the transformation.

However, when I use Cocoon to run the transformation, there is no Java
output. The rest of the stylesheet works fine though. I am using Cocoon
2.0.3, Java 1.4.1 and Tomcat/4.1.12-LE-jdk14.

Any help would be grateful,

thanks Spencer

<?xml version="1.0" encoding="UTF-8"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="patternmatch.xsl"?>


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:fo="" xmlns:java="java"
<xsl:template match="teststring">
<xsl:value-of select="."/>
<xsl:copy-of select="match:match(.)"/>
Test Test

public static boolean match (String pattern)

boolean b;

b = Pattern.matches ("He\\Wllo", pattern);

return b;

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message