You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Diego Lluna <dl...@ictonline.es> on 2002/07/04 13:04:45 UTC

xsp - problem testing xsp under cocoon workspace

hi,

i'm testing xsp, under cocoon directory (docs/samples), but it does not
work (the explorer doesn't show anything at all)

i don't get any error, either.

i don't know if i have the xsp language definition in the cocoon.xconf, but i'm using
the downloaded one, untouched

anybody has any idea of what is happening?

i'm using cocoon 2.0.1 and tomcat 4.0.3.

Thanks,
Diego

i'm enclosing the files i'm using for reference:

**greeting2.xml
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp">

text without format

<xsp:logic>
  String msg="Hello, world!";
</xsp:logic>

<greeting>
  <xsp:expr> msg </xsp:expr>
</greeting>

</xsp:page>

**greeting2.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="/">
  <html>
    <body>
      <h1>
        <xsl:value-of select="greeting"/>
      </h1>
    </body>
  </html>
</xsl:template>

</xsl:stylesheet>


**a fragment of the cocoon.xconf
...
 <xsp-language name="xsp" logger="core.markup.xsp">
      <parameter name="prefix" value="xsp"/>
      <parameter name="uri" value="http://apache.org/xsp"/>

      <!-- Defines the XSP Core logicsheet for the Java language -->
      <target-language name="java">
        <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
        
	<!-- ================= Demonstration Logicsheets ======================= -->
....

**a fragment of sitemap.xmap
   <map:match pattern="greeting2.html">
    <map:generate src="docs/samples/greeting2.xml"/>
    <map:transform src="stylesheets/page/greeting2.xsl"/>
    <map:serialize type="html"/>
   </map:match>



> -----Mensaje original-----
> De: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Enviado el: miƩrcoles, 03 de julio de 2002 18:02
> Para: cocoon-users@xml.apache.org
> Asunto: RE: xsp - problem using simple.xsp in a different workspace
> 
> 
> > From: Diego Lluna [mailto:dlluna@ictonline.es]
> > 
> > hi,
> > 
> > i've copied, textual, the simple.xsp example file provided
> > in cocoon 2.0.1 into a different workspace, for trial.
> > 
> > this workspace processes requests fine (xml, jsp, js, xsl...)
> 
> (xsp ?)
> 
> 
> > but shows this error when requesting the simple.xsp file:
> > 
> > ""The org.apache.cocoon.www.sitemap_xmap notifies that
> > org.apache.cocoon.ProcessingException says:
> > 
> > markup-languages: ComponentSelector could not access the 
> Component for
> hint:
> > xsp
> 
> Looks like you don't have xsp language definition in the cocoon.xconf.
> ...
> 
> > Besides, when i start apache 4.0.3, i get this error in the command
> line:
> 
> Apache 4.0.3? May be Tomcat 4.0.3? In any case, upgrade to 4.0.4 is
> highly advised.
> 
> Vadim
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 

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

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>