Did you copy and paste from your files?  I did notice one strange thing in your logicsheet:
<xsl:apply-templates select="@*\node()"/>
where you probably meant:
<xsl:apply-templates select="@*|node()"/>

Otherwise, this is a mystery to me.  Unfortunately I am out sick today, and I can't easily try your code out to see if I can reproduce your problem.  I hope it just the typo above, but if not, I'll try to look at it tomorrow (assuming I am in the office).

-Christopher



[EMAIL PROTECTED]

10/15/2003 08:58 AM
Please respond to users

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: I am also having problems with logicsheets



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="">  <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 <[EMAIL PROTECTED]> 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
>
>
>
>
>|---------+---------------------------->
>|         |           [EMAIL PROTECTED]|
>|         |           net              |
>|         |                            |
>|         |           10/14/2003 01:17 |
>|         |           PM               |
>|         |           Please respond to|
>|         |           users            |
>|         |                            |
>|---------+---------------------------->
>  >--------------------------------------------------------------------------------------------------------------|
>  |                                                                                                              |

>  |       To:       [EMAIL PROTECTED]                                                                      |
>  |       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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

__________________________________________________________________
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to