You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeff Turner <je...@socialchange.net.au> on 2001/02/18 07:21:17 UTC

[C2][PATCH] INSTALL

A minor addition to the C2 "INSTALL" file, which could save C1 migrators
some pain.

--Jeff


Index: INSTALL
===================================================================
RCS file: /home/cvspublic/xml-cocoon/Attic/INSTALL,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 INSTALL
--- INSTALL     2001/02/15 18:19:34     1.1.2.2
+++ INSTALL     2001/02/18 06:17:34
@@ -102,7 +102,13 @@
   classloading problems.
   
 
-  4) I'm still stuck, what do I do?
+  4) I get a java.lang.VerifyError when accessing
'http://localhost/cocoon/'.
+     What's wrong?
+
+  Make sure you have not got a Cocoon 1.x jar in your servlet container
lib/
+  directory.
+
+  5) I'm still stuck, what do I do?
   
   Well, contact the Cocoon Users mail list (cocoon-users@xml.apache.org).
   Please, do not contact developers directly for help since the user list
are
@@ -115,4 +121,4 @@
                                            The Apache XML Project
                                            http://xml.apache.org/
 
-  
\ No newline at end of file
+  



Re: Vexing problem, XSP and Tag Library in [C2]

Posted by zhi liu <li...@yahoo.com>.
---Sorry my last mail has some format error.So I
resend a revised version of that mail again---

Dear Sirs: 

 I think you are both Cocoon-experts and 
 Cocoon-promoters. 
 Here I really need help from you. I tried dozens of
 time to use Tag Library feature with XSP under 
 [C2].
 It just fails.
 All I tested is just the simplest Time-of-Day Tag
Library example  under cocoon-xsp page:
 http://xml.apache.org/cocoon/xsp.html
 but I never work it out ! That means it doesn't
 work.
 I really hope anyone in this maillinglist can help
 me
 out of this essential
 function of XSP under Cocoon.
 Following are some configuration of my [C2] 
 enviorment. 
 In cocoon.xconf  I have added following : 
 ------cut here-------------- 
 <builtin-logicsheet> 
 <parameter name="prefix" value="tod"/> 
 <parameter name="uri" > 
 value="http://localhost:9095/cocoon/xsp/tod" 
 <parameter name="href" >
  value="context://docs/samples/xsp/eins.xsl"
 </builtin-logicsheet> 
 ------ cut here ----------- 
 In sitemap.xmap following are added: 
 ------cut here-------------- 
 <map:match pattern="xsp/tod"> 
 <map:generate type="serverpages" > 
 src="docs/samples/xsp/tod.xsp"
 <map:transform src="docs/samples/xsp/eins.xsl"
 <map:serialize/>
 </map:match> 
 -------------------------------------- 
 
  my tod.xsp which in

~/jakarta-tomcat-4.0-b1/webapps/cocoon/docs/samples/xsp
  is following: 
  ----------------------- 
 <?xml version="1.0" encoding="ISO-8859-1"?> 
 <xsp:page > 
 language="java" 
 xmlns:xsp="http://apache.org/xsp" 
 xmlns:xsp-request="http://apache.org/xsp/request" 
 xmlns:xsp-response="http://apache.org/xsp/response"
 
 xmlns:tod="http://localhost:9095/cocoon/xsp/tod" 
>
 <page> 
 <title>TOD Page</title> 
 <content> 
  <p> 
  To the best of my knowledge, it's now 
 <!-- Substitute time of day here --> 
  <tod:time-of-day format="hh:mm:ss"/> 
  </p> 
  </content>
 </page>
 </xsp:page>
 ------------------------------------------------ 
 The eins.xsl which in the same path as tod.xsp
 efined
 the time-of-day  <tod> tag lib is following: 
  ------------------------------------- 
  <?xml version="1.0"?>
 <xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns:tod="http://localhost:9095/cocoon/xsp/tod" 
 xmlns:xsp-request="http://apache.org/xsp/request"
 xmlns:xsp="http://apache.org/xsp"
 <xsl:template match="xsp:page">
 <xsp:page> 
 <xsl:copy> 
 <xsl:apply-templates select="@*"/>
 </xsl:copy>
 <xsp:structure>
 <xsp:include>java.util.Date</xsp:include> 
 <xsp:include>java.text.SimpleDateFormat</xsp:include>
 </xsp:structure> 
 <xsp:logic>
  /* "TOD" Class Level Logic */ 
 private static String formatDate(Date > date, String
 pattern) 
 { 
    if (pattern == null || pattern.length() > == 0) 
 	{ 
              pattern = "yyyy/MM/dd hh:mm:ss aa"; 
 	} 
 	return (new >
 SimpleDateFormat(pattern)).format(date); 
 } 
 </xsp:logic> 
 <xsl:apply-templates/> 
 </xsp:page> 
 </xsl:template>
 <xsl:template match="tod:time-of-day">
 <xsl:expr>
  formatDate(new Date(), "<xsl:value-of >
 select="@format"/>") 
  </xsl:expr>
 </xsl:template>
 <xsl:template match="@*|node()" priority="-1">
 <xsl:copy><xsl:apply-templates
 select="@*|node()"/></xsl:copy> 
 </xsl:template> 
 </xsl:stylesheet>
 --------------------------------------------------- 
  actually the eins.xsl and tod.xsp are almost the
 same
  as those on the cocoon-xsp page. My question is how
 can I make this tag lib example WORK! Can anyone
 check
 where I 'm wrong ?  All I need is a working
 self-defined taglib example. 
 
 thank you for your attention. 
 
 sincerely yours 
 --Zhi
 
 p.s: other examples in cocoon works but this one.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: Vexing problem, XSP and Tag Library in [C2]

Posted by zhi liu <li...@yahoo.com>.
---Sorry my last mail has some format error.So I
resend a revised version of that mail again---

Dear Sirs: 

 I think you are both Cocoon-experts and 
 Cocoon-promoters. 
 Here I really need help from you. I tried dozens of
 time to use Tag Library feature with XSP under 
 [C2].
 It just fails.
 All I tested is just the simplest Time-of-Day Tag
Library example  under cocoon-xsp page:
 http://xml.apache.org/cocoon/xsp.html
 but I never work it out ! That means it doesn't
 work.
 I really hope anyone in this maillinglist can help
 me
 out of this essential
 function of XSP under Cocoon.
 Following are some configuration of my [C2] 
 enviorment. 
 In cocoon.xconf  I have added following : 
 ------cut here-------------- 
 <builtin-logicsheet> 
 <parameter name="prefix" value="tod"/> 
 <parameter name="uri" > 
 value="http://localhost:9095/cocoon/xsp/tod" 
 <parameter name="href" >
  value="context://docs/samples/xsp/eins.xsl"
 </builtin-logicsheet> 
 ------ cut here ----------- 
 In sitemap.xmap following are added: 
 ------cut here-------------- 
 <map:match pattern="xsp/tod"> 
 <map:generate type="serverpages" > 
 src="docs/samples/xsp/tod.xsp"
 <map:transform src="docs/samples/xsp/eins.xsl"
 <map:serialize/>
 </map:match> 
 -------------------------------------- 
 
  my tod.xsp which in

~/jakarta-tomcat-4.0-b1/webapps/cocoon/docs/samples/xsp
  is following: 
  ----------------------- 
 <?xml version="1.0" encoding="ISO-8859-1"?> 
 <xsp:page > 
 language="java" 
 xmlns:xsp="http://apache.org/xsp" 
 xmlns:xsp-request="http://apache.org/xsp/request" 
 xmlns:xsp-response="http://apache.org/xsp/response"
 
 xmlns:tod="http://localhost:9095/cocoon/xsp/tod" 
>
 <page> 
 <title>TOD Page</title> 
 <content> 
  <p> 
  To the best of my knowledge, it's now 
 <!-- Substitute time of day here --> 
  <tod:time-of-day format="hh:mm:ss"/> 
  </p> 
  </content>
 </page>
 </xsp:page>
 ------------------------------------------------ 
 The eins.xsl which in the same path as tod.xsp
 efined
 the time-of-day  <tod> tag lib is following: 
  ------------------------------------- 
  <?xml version="1.0"?>
 <xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns:tod="http://localhost:9095/cocoon/xsp/tod" 
 xmlns:xsp-request="http://apache.org/xsp/request"
 xmlns:xsp="http://apache.org/xsp"
 <xsl:template match="xsp:page">
 <xsp:page> 
 <xsl:copy> 
 <xsl:apply-templates select="@*"/>
 </xsl:copy>
 <xsp:structure>
 <xsp:include>java.util.Date</xsp:include> 
 <xsp:include>java.text.SimpleDateFormat</xsp:include>
 </xsp:structure> 
 <xsp:logic>
  /* "TOD" Class Level Logic */ 
 private static String formatDate(Date > date, String
 pattern) 
 { 
    if (pattern == null || pattern.length() > == 0) 
 	{ 
              pattern = "yyyy/MM/dd hh:mm:ss aa"; 
 	} 
 	return (new >
 SimpleDateFormat(pattern)).format(date); 
 } 
 </xsp:logic> 
 <xsl:apply-templates/> 
 </xsp:page> 
 </xsl:template>
 <xsl:template match="tod:time-of-day">
 <xsl:expr>
  formatDate(new Date(), "<xsl:value-of >
 select="@format"/>") 
  </xsl:expr>
 </xsl:template>
 <xsl:template match="@*|node()" priority="-1">
 <xsl:copy><xsl:apply-templates
 select="@*|node()"/></xsl:copy> 
 </xsl:template> 
 </xsl:stylesheet>
 --------------------------------------------------- 
  actually the eins.xsl and tod.xsp are almost the
 same
  as those on the cocoon-xsp page. My question is how
 can I make this tag lib example WORK! Can anyone
 check
 where I 'm wrong ?  All I need is a working
 self-defined taglib example. 
 
 thank you for your attention. 
 
 sincerely yours 
 --Zhi
 
 p.s: other examples in cocoon works but this one.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

HELP, XSP and Tag Library in [C2]

Posted by zhi liu <li...@yahoo.com>.
Dear Sirs: 
I think you are both Cocoon-experts and 
Cocoon-promoters. 
Here I really need help from you. I tried dozens of
time to use Tag Library feature with XSP under  [C2].
It just fails.
All I tested is just the simplest Time-of-Day Tag
Library example  under cocoon-xsp page:
http://xml.apache.org/cocoon/xsp.html
but I never work it out ! That means it doesn't work.
I really hope anyone in this maillinglist can help me
out of this essential
function of XSP under Cocoon.
Following are some configuration of my [C2] 
enviorment. 
In cocoon.xconf  I have added following : 
------cut here-------------- 
<builtin-logicsheet> 
<parameter name="prefix" value="tod"/> 
<parameter name="uri" > 
value="<http://localhost:9095/cocoon/xsp/tod>"/> 
<parameter name="href" >
 value="context://docs/samples/xsp/eins.xsl"/>
</builtin-logicsheet> 
------ cut here ----------- 
In sitemap.xmap following are added: 
------cut here-------------- 
<map:match pattern="xsp/tod"> 
<map:generate type="serverpages" > 
src="docs/samples/xsp/tod.xsp"/>
<map:transform src="docs/samples/xsp/eins.xsl"/>
<map:serialize/>
</map:match> 
-------------------------------------- 

 my tod.xsp which in
~/jakarta-tomcat-4.0-b1/webapps/cocoon/docs/samples/xsp
 is following: 
 ----------------------- 
<?xml version="1.0" encoding="ISO-8859-1"?> 
<xsp:page > 
language="java" 
xmlns:xsp="<http://apache.org/xsp>" 
xmlns:xsp-request="<http://apache.org/xsp/request>" 
xmlns:xsp-response="<http://apache.org/xsp/response>" 
xmlns:tod="<http://localhost:9095/cocoon/xsp/tod>" 
<page> 
<title>TOD Page</title> 
<content> 
 <p> 
 To the best of my knowledge, it's now > 
<!-- Substitute time of day here --> 
 <tod:time-of-day format="hh:mm:ss"/> 
 </p> 
 </content>
</page>
</xsp:page>
------------------------------------------------ 
The eins.xsl which in the same path as tod.xsp efined
the time-of-day  <tod> tag lib is following: 
 ------------------------------------- 
 <?xml version="1.0"?>
<xsl:stylesheet > version="1.0" >
xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>" 
xmlns:tod="<http://localhost:9095/cocoon/xsp/tod>" 
xmlns:xsp-request="<http://apache.org/xsp/request>"
xmlns:xsp="<http://apache.org/xsp>"
<xsl:template match="xsp:page">
<xsp:page> 
<xsl:copy> 
<xsl:apply-templates select="@*"/>
</xsl:copy>
<xsp:structure>
<xsp:include>java.util.Date</xsp:include> 
<xsp:include>java.text.SimpleDateFormat</xsp:include>
</xsp:structure> 
<xsp:logic>
 /* "TOD" Class Level Logic */ 
private static String formatDate(Date > date, String
pattern) 
{ 
   if (pattern == null || pattern.length() > == 0) 
	{ 
             pattern = "yyyy/MM/dd hh:mm:ss aa"; 
	} 
	return (new >
SimpleDateFormat(pattern)).format(date); 
} 
</xsp:logic> 
<xsl:apply-templates/> 
</xsp:page> 
</xsl:template>
<xsl:template match="tod:time-of-day">
<xsl:expr>
 formatDate(new Date(), "<xsl:value-of >
select="@format"/>") 
 </xsl:expr>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy><xsl:apply-templates
select="@*|node()"/></xsl:copy> 
</xsl:template> 
</xsl:stylesheet>
--------------------------------------------------- 
 actually the eins.xsl and tod.xsp are almost the same
 as those on the cocoon-xsp page. My question is how
can I make this tag lib example WORK! Can anyone check
where I 'm wrong ?  All I need is a working
self-defined taglib example. 

thank you for your attention. 

sincerely yours 
--Zhi

p.s: other examples in cocoon works but this one.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

HELP, XSP and Tag Library in [C2]

Posted by zhi liu <li...@yahoo.com>.
Dear Sirs: 
I think you are both Cocoon-experts and 
Cocoon-promoters. 
Here I really need help from you. I tried dozens of
time to use Tag Library feature with XSP under  [C2].
It just fails.
All I tested is just the simplest Time-of-Day Tag
Library example  under cocoon-xsp page:
http://xml.apache.org/cocoon/xsp.html
but I never work it out ! That means it doesn't work.
I really hope anyone in this maillinglist can help me
out of this essential
function of XSP under Cocoon.
Following are some configuration of my [C2] 
enviorment. 
In cocoon.xconf  I have added following : 
------cut here-------------- 
<builtin-logicsheet> 
<parameter name="prefix" value="tod"/> 
<parameter name="uri" > 
value="<http://localhost:9095/cocoon/xsp/tod>"/> 
<parameter name="href" >
 value="context://docs/samples/xsp/eins.xsl"/>
</builtin-logicsheet> 
------ cut here ----------- 
In sitemap.xmap following are added: 
------cut here-------------- 
<map:match pattern="xsp/tod"> 
<map:generate type="serverpages" > 
src="docs/samples/xsp/tod.xsp"/>
<map:transform src="docs/samples/xsp/eins.xsl"/>
<map:serialize/>
</map:match> 
-------------------------------------- 

 my tod.xsp which in
~/jakarta-tomcat-4.0-b1/webapps/cocoon/docs/samples/xsp
 is following: 
 ----------------------- 
<?xml version="1.0" encoding="ISO-8859-1"?> 
<xsp:page > 
language="java" 
xmlns:xsp="<http://apache.org/xsp>" 
xmlns:xsp-request="<http://apache.org/xsp/request>" 
xmlns:xsp-response="<http://apache.org/xsp/response>" 
xmlns:tod="<http://localhost:9095/cocoon/xsp/tod>" 
<page> 
<title>TOD Page</title> 
<content> 
 <p> 
 To the best of my knowledge, it's now > 
<!-- Substitute time of day here --> 
 <tod:time-of-day format="hh:mm:ss"/> 
 </p> 
 </content>
</page>
</xsp:page>
------------------------------------------------ 
The eins.xsl which in the same path as tod.xsp efined
the time-of-day  <tod> tag lib is following: 
 ------------------------------------- 
 <?xml version="1.0"?>
<xsl:stylesheet > version="1.0" >
xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>" 
xmlns:tod="<http://localhost:9095/cocoon/xsp/tod>" 
xmlns:xsp-request="<http://apache.org/xsp/request>"
xmlns:xsp="<http://apache.org/xsp>"
<xsl:template match="xsp:page">
<xsp:page> 
<xsl:copy> 
<xsl:apply-templates select="@*"/>
</xsl:copy>
<xsp:structure>
<xsp:include>java.util.Date</xsp:include> 
<xsp:include>java.text.SimpleDateFormat</xsp:include>
</xsp:structure> 
<xsp:logic>
 /* "TOD" Class Level Logic */ 
private static String formatDate(Date > date, String
pattern) 
{ 
   if (pattern == null || pattern.length() > == 0) 
	{ 
             pattern = "yyyy/MM/dd hh:mm:ss aa"; 
	} 
	return (new >
SimpleDateFormat(pattern)).format(date); 
} 
</xsp:logic> 
<xsl:apply-templates/> 
</xsp:page> 
</xsl:template>
<xsl:template match="tod:time-of-day">
<xsl:expr>
 formatDate(new Date(), "<xsl:value-of >
select="@format"/>") 
 </xsl:expr>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy><xsl:apply-templates
select="@*|node()"/></xsl:copy> 
</xsl:template> 
</xsl:stylesheet>
--------------------------------------------------- 
 actually the eins.xsl and tod.xsp are almost the same
 as those on the cocoon-xsp page. My question is how
can I make this tag lib example WORK! Can anyone check
where I 'm wrong ?  All I need is a working
self-defined taglib example. 

thank you for your attention. 

sincerely yours 
--Zhi

p.s: other examples in cocoon works but this one.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: [C2][PATCH] INSTALL

Posted by Stefano Mazzocchi <st...@apache.org>.
Jeff Turner wrote:
> 
> A minor addition to the C2 "INSTALL" file, which could save C1 migrators
> some pain.
> 
> --Jeff
> 
> Index: INSTALL
> ===================================================================
> RCS file: /home/cvspublic/xml-cocoon/Attic/INSTALL,v
> retrieving revision 1.1.2.2
> diff -u -r1.1.2.2 INSTALL
> --- INSTALL     2001/02/15 18:19:34     1.1.2.2
> +++ INSTALL     2001/02/18 06:17:34
> @@ -102,7 +102,13 @@
>    classloading problems.
> 
> 
> -  4) I'm still stuck, what do I do?
> +  4) I get a java.lang.VerifyError when accessing
> 'http://localhost/cocoon/'.
> +     What's wrong?
> +
> +  Make sure you have not got a Cocoon 1.x jar in your servlet container
> lib/
> +  directory.
> +
> +  5) I'm still stuck, what do I do?
> 
>    Well, contact the Cocoon Users mail list (cocoon-users@xml.apache.org).
>    Please, do not contact developers directly for help since the user list
> are
> @@ -115,4 +121,4 @@
>                                             The Apache XML Project
>                                             http://xml.apache.org/
> 
> -
> \ No newline at end of file
> +

many thanks :)

will add right away.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------