You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by matt rainer <ma...@email.com> on 2000/12/02 17:18:31 UTC

help xalan write file

Please can you guide me, I keep getting the following error:

Error found handling the request.

java.lang.NoClassDefFoundError: com/ibm/bsf/BSFException
at
org.apache.xalan.xslt.StylesheetHandler.startElement(StylesheetHandler.java:606)
at org.apache.xalan.xpath.xml.TreeWalker.startNode(TreeWalker.java:195)
at org.apache.xalan.xpath.xml.TreeWalker.traverse(TreeWalker.java:98)
at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:723)
at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:572)
at
org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.java:101)
at
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:110)
at org.apache.cocoon.Engine.handle(Engine.java:359)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:484)
Please can you tell me what I am doing wrong:

Hereis my xml:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xalan-split.xsl"?>
<?cocoon-process type="xslt"?>
<FORM>
<TITLE>FORM1</TITLE>
<HEADING>TEST FORM</HEADING>
<TEXT>This is some text</TEXT>
</FORM>

Here is my XSL:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="org.apache.xalan.xslt.extensions.redirect"
extension-element-prefixes="xalan" version="1.0">

<xsl:template match="FORM">
<form>
<xsl:copy-of select="TITLE"/>
<xsl:copy-of select="HEADING"/>
<xsl:apply-templates select="TEXT"/>
</form>
</xsl:template>

<xsl:template match="TEXT">
<xsl:variable name="file" select="hello.xml"/>
<hello href="$file"/>
<xalan:write select="$file">
<xsl:copy-of select="."/>
</xalan:write>
</xsl:template>
</xsl:stylesheet>


-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com



Re: help xalan write file

Posted by Gary L Peskin <ga...@firstech.com>.
matt rainer wrote:
> 
> Please can you guide me, I keep getting the following error:
> 
> Error found handling the request.
> 
> java.lang.NoClassDefFoundError: com/ibm/bsf/BSFException

Also, i believe the namespace declaration for the your xalan namespace
should be

  xmlns:xalan="org.apache.xalan.xslt.extensions.Redirect"

with a capital "R".  Sorry for not including this in the previous
message.

Gary

Re: help xalan write file

Posted by Gary L Peskin <ga...@firstech.com>.
matt rainer wrote:
> 
> Please can you guide me, I keep getting the following error:
> 
> Error found handling the request.
> 
> java.lang.NoClassDefFoundError: com/ibm/bsf/BSFException

Matt --

Be sure you have bsf.jar in your classpath.  It comes with the Xalan
distribution.

Gary