You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Saravanan Bellan <sa...@siteROCK.com> on 2000/10/10 06:10:49 UTC

Tag Library Problem

I'm unable to get my Tag Library to work.

I tried the logicsheet both as a resource:// and as file:// in
cocoon.properties, but no help.

I'm getting a blank page when I request a xsp page which has a custom tag. 

After I remove the JavaXML references from the page, it works fine.

The XSP page and the logic sheet are given below.

Also, I'm unable to see the Debug messages in the Standard output even after
I set the log.level in cocoon.properties to debug.

Actually I got this working on Win98. But when I tried on Solaris I'm having
this problem.

Cocoon ver: 1.8

XSP Page
--------
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page
   xmlns:request="http://www.apache.org/1999/XSP/Request"
   xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
   language="java"
>
<page>
  <head>
    <title>Customer List Page</title>
  </head>
  <menus/>
  <content>
    <title>Customer List</title>
    <request:get-method/>
    <JavaXML:draftTitle/>
  </content>
</page>
</xsp:page>

LogicSheet
----------
<?xml version="1.0"?>
 
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
>
  <xsl:template match="xsp:page">
    <xsp:page>
      <xsl:copy>
        <xsp:apply-templates select="@*"/>
      </xsl:copy>
    </xsp:page>
  </xsl:template>
 
  <xsl:template match="JavaXML:draftTitle">
    This is the Draft Title
  </xsl:template>
 
  <xsl:template match="@*|*|text()|processing-instruction()">
    <xsl:copy>
       <xsl:apply-templates
            select="@*|*|text()|processing-instruction()"/>
    </xsl:copy>
  </xsl:template>
 
</xsl:stylesheet>	

Please Help,

Thanks,
-sarva

Re: Tag Library Problem

Posted by Frederic Alluin <fr...@webmedia.es>.
Hi,
I made my own taglib to gain some time with pages designer, see the files
attached.
I hope it 'll help you a little
Regards
Fred

Saravanan Bellan wrote:

> I'm unable to get my Tag Library to work.
>
> I tried the logicsheet both as a resource:// and as file:// in
> cocoon.properties, but no help.
>
> I'm getting a blank page when I request a xsp page which has a custom tag.
>
> After I remove the JavaXML references from the page, it works fine.
>
> The XSP page and the logic sheet are given below.
>
> Also, I'm unable to see the Debug messages in the Standard output even after
> I set the log.level in cocoon.properties to debug.
>
> Actually I got this working on Win98. But when I tried on Solaris I'm having
> this problem.
>
> Cocoon ver: 1.8
>
> XSP Page
> --------
> <?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
> <xsp:page
>    xmlns:request="http://www.apache.org/1999/XSP/Request"
>    xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
>    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>    language="java"
> >
> <page>
>   <head>
>     <title>Customer List Page</title>
>   </head>
>   <menus/>
>   <content>
>     <title>Customer List</title>
>     <request:get-method/>
>     <JavaXML:draftTitle/>
>   </content>
> </page>
> </xsp:page>
>
> LogicSheet
> ----------
> <?xml version="1.0"?>
>
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>   xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
> >
>   <xsl:template match="xsp:page">
>     <xsp:page>
>       <xsl:copy>
>         <xsp:apply-templates select="@*"/>
>       </xsl:copy>
>     </xsp:page>
>   </xsl:template>
>
>   <xsl:template match="JavaXML:draftTitle">
>     This is the Draft Title
>   </xsl:template>
>
>   <xsl:template match="@*|*|text()|processing-instruction()">
>     <xsl:copy>
>        <xsl:apply-templates
>             select="@*|*|text()|processing-instruction()"/>
>     </xsl:copy>
>   </xsl:template>
>
> </xsl:stylesheet>
>
> Please Help,
>
> Thanks,
> -sarva
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: Tag Library Problem

Posted by Marco Pauck <pa...@wmd.de>.
Saravanan Bellan wrote:
> 
> I'm unable to get my Tag Library to work.
> 
> I tried the logicsheet both as a resource:// and as file:// in
> cocoon.properties, but no help.

Haven't checked your code but did you include "localhost" in your
file path definition?

Use either
	file://localhost/path_to_logicsheet
or
	file:///path_to_logicsheet

> I'm getting a blank page when I request a xsp page which has a custom tag.
> 
> After I remove the JavaXML references from the page, it works fine.
> 
> The XSP page and the logic sheet are given below.
> 
> Also, I'm unable to see the Debug messages in the Standard output even after
> I set the log.level in cocoon.properties to debug.
> 
> Actually I got this working on Win98. But when I tried on Solaris I'm having
> this problem.
> 
> Cocoon ver: 1.8
> 
> XSP Page
> --------
> <?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
> <xsp:page
>    xmlns:request="http://www.apache.org/1999/XSP/Request"
>    xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
>    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>    language="java"
> >
> <page>
>   <head>
>     <title>Customer List Page</title>
>   </head>
>   <menus/>
>   <content>
>     <title>Customer List</title>
>     <request:get-method/>
>     <JavaXML:draftTitle/>
>   </content>
> </page>
> </xsp:page>
> 
> LogicSheet
> ----------
> <?xml version="1.0"?>
> 
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>   xmlns:JavaXML="http://www.siterock.com/2000/XSP/JavaXML"
> >
>   <xsl:template match="xsp:page">
>     <xsp:page>
>       <xsl:copy>
>         <xsp:apply-templates select="@*"/>
>       </xsl:copy>
>     </xsp:page>
>   </xsl:template>
> 
>   <xsl:template match="JavaXML:draftTitle">
>     This is the Draft Title
>   </xsl:template>
> 
>   <xsl:template match="@*|*|text()|processing-instruction()">
>     <xsl:copy>
>        <xsl:apply-templates
>             select="@*|*|text()|processing-instruction()"/>
>     </xsl:copy>
>   </xsl:template>
> 
> </xsl:stylesheet>
> 
> Please Help,
> 
> Thanks,
> -sarva