cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pogi...@netscape.net
Subject Re: I am also having problems with logicsheets
Date Wed, 15 Oct 2003 12:58:11 GMT
I'm running Cocoon 2.1.1 with Tomcat 4.1.27 on W2K Server. I've stripped the files down to
bare bones.

home.xsp:
<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:ts="http://ts.org">
  <document>
    <header>
      <title>Test</title>
    </header>
    <body>SOME TEXT</body>
  </document>
</xsp:page>

logicsheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp="http://apache.org/xsp"
xmlns:ts="http://ts.org">
  <xsl:template match="@*|node()">
    <xsl:copy><xsl:apply-templates select="@*\node()"/></xsl:copy>
  </xsl:template>
  <xsl:template match="text()">
    <xsl:value-of select="."/>
  </xsl:template>
</xsl:stylesheet>

sitemap entry:
<map:match pattern="home.xsp">
  <map:generate type="serverpages" src="docs/home.xsp"/>
  <map:serialize type="xml"/>
</map:match>

The only related log entry is in core.log:
INFO (2003-10-15) 08:21.05:046  [core.program-generator] (/Cocoon/ts/home.xsp) Thread-28/ProgramGeneratorImpl:
The serverpage [file:/Tomcat/jakarta-tomcat-4.1.27/webapps/Cocoon/ts/docs/home.xsp] could
not be preloaded, will be re-created (org.apache.cocoon.components.language.LanguageException:Unable
to preload program org\apach\cocoon\wwwts\docs\home_xsp: org.apache.cocoon.components.language.LanguageException:
Could not load class for program 'org\apache\cocoon\www\ts\docs\home_xsp' due to a java.lang.ClassNotFoundException:
org.apache.cocoon.www.ts.docs.home_xsp)

If I remove the xmlns:ts="http://ts.org" declaration from home.xsp, Cocoon returns "SOME TEXT";
with it in I get the error.

Pogie


Christopher Painter-Wakefield <paint007@mc.duke.edu> wrote:

>
>
>
>
>Interesting.  I created a test logicsheet with these same templates and
>namespace, had no problems (using C2.0.4).  Have you looked in your logs to
>see if there are any errors in transformation?  Could you provide a full
>sample of a non-working XSP page and your logicsheet?
>
>-Christopher
>
>
>
>
>|---------+---------------------------->
>|         |           pogietb@netscape.|
>|         |           net              |
>|         |                            |
>|         |           10/14/2003 01:17 |
>|         |           PM               |
>|         |           Please respond to|
>|         |           users            |
>|         |                            |
>|---------+---------------------------->
>  >--------------------------------------------------------------------------------------------------------------|
>  |                                                      
                                                       |
>  |       To:       users@cocoon.apache.org                        
                                             |
>  |       cc:                                              
                                                     |
>  |       Subject:  Re: I am also having problems with logicsheets          
                                    |
>  >--------------------------------------------------------------------------------------------------------------|
>
>
>
>
>The original logicsheet did in fact do something:
><xsl:template match="xsp:page">some database esql calls here</xsl:template>
><xsl:template match="@*|node()">
>  <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
></xsl:template>
><xsl:template match="text()">
>  <xsl:value-of select="."/>
></xsl:template>
>
>But when I ran into problems I changed it to:
>
><xsl:template match="/">
>  <xsl:copy-of select="node()"/>
></xsl:template>
>
>Changing it to:
>
><xsl:template match="@*|node()">
>  <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
></xsl:template>
><xsl:template match="text()">
>  <xsl:value-of select="."/>
></xsl:template>
>
>has no impact. Still doesn't work.
>
>Pogie
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>

__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message