Hi

I'm trying to write a basic logic sheet and I'm seeing some alarming
results. The basic sheet seems to be working (with Saxon) - i.e. I am
getting the expected results on the screen - but in the logs I am getting
all sorts of funny XSLT errors seemingly from the built-in XSP logicsheet. I
get several of these exceptions for every request.

With Xalan the situation is worse I get a fatal error - see below.

Anybody come across these. My xsp and logic sheet are included below

Thanks

Luke

Saxon error:

ERROR   (2001-12-07) 12:33.02:914   [root.xsl] (/webcare/web/test.xsp)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/
cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/xsp/java/xsp.xs
l; Line 22; Column -1; 
; SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/
cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/xsp/java/xsp.xs
l; Line#: 22; Column#: -1
javax.xml.transform.TransformerConfigurationException: Attribute xmlns:xsl
is not allowed on this element
        at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846)
        at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208
)
        at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)
        at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:50
1)
        at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)
        at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.ja
va:176)
        at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70
)
        at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:190)
        at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandle
r(Logicsheet.java:144)

Xalan Error:

DEBUG   (2001-12-07) 12:52.23:453   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=1726160
DEBUG   (2001-12-07) 12:52.23:453   [root.sto] (Unknown-URI)
Unknown-thread/StoreJanitorImpl: getFreememory()=1000000
FATAL_E (2001-12-07) 12:52.23:463   [root.xsl] (/webcare/web/test.xsp)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
org.apache.xpath.XPathException: Can not convert #RTREEFRAG to a NodeList!
org.apache.xpath.XPathException: Can not convert #RTREEFRAG to a NodeList!
        at org.apache.xpath.objects.XObject.error(XObject.java:718)
        at org.apache.xpath.objects.XObject.iter(XObject.java:432)
        at org.apache.xpath.Expression.asIterator(Expression.java:273)
        at
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:156)
        at
org.apache.xpath.axes.WalkingIteratorSorted.reset(WalkingIteratorSorted.java
:292)
        at
org.apache.xpath.axes.LocPathIterator.setRoot(LocPathIterator.java:373)

test.xsp:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
   xmlns:xsp="http://apache.org/xsp";
   xmlns:webcare="http://cerillion.com/cocoon/webcare/1.0";>
   <page section="Services">
      <title>WebCare - Contact Us</title>
      <content>
        <heading>Welcome</heading>

      <para>
        Hello <xsp:expr>new Long(999).toString()</xsp:expr>
      </para>

      <para>
        URL = <webcare:connection-url/>
      </para>
      </content>
   </page>
</xsp:page>

webcare.xsl

<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:webcare="http://cerillion.com/cocoon/webcare/1.0";
  xmlns:xsp="http://apache.org/xsp";
  version="1.0">
  
<xsl:template match="webcare:connection-url">
  <xsp:expr>new Long(51376).toString()</xsp:expr>
</xsl:template>

<xsl:template match="@*|node()" priority="-1">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to