Re: Can I apply dynamic XSL to XML in Cocoon 2 ?

2002-01-03 Thread Ling Kok Choon

Hi,

   you may try to use Action in Sitemap to dinamically select diffirent xsl based on 
url or 
requested xml file.

example :


 
  
  
 

 

the path-selector action will select and return the xsl file's path.

hth,

regards,
Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 01/04/02
Time: 10:26:58

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: sql query

2002-01-02 Thread Ling Kok Choon

Hi,

  you may try to use xsp and the esql taglib :



http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
>

tpConnection
 
  SELECT GROUP_ID, LABEL, PATH FROM GROUP_EXT  

  
  
 
   
   int group_id = ;   
  

   String label = ;   
  
  
   String group_path = ;
   
   String result = getSelectedIndex ( group_path );
   if ( uri.equals(result.concat(".xml")) )
   {
//System.out.println("path:" + path );
requestedIndex = group_id;
   }   
  

  
  

  
System.out.println("First: No result");
  






for more information, please visit : 
http://xml.apache.org/cocoon/userdocs/xsp/esql.html

hth,

regards,
Kok Choon.


----------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 01/03/02
Time: 10:22:32

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




&ndash problem with NS4++

2001-11-27 Thread Ling Kok Choon

Hi,

   i found that NS4++ can't support – and ‘ but the website generated by 
cocoon2b1 
will transform the – to – and ‘ to ‘ so is any configuration 
can remain 
the ‘ and ‘ ?

Here are the snip code for xml and sitemap:

xml file:


TableTable
About symbols

About symbols

This is only a test for :
– 
‘
@
#
$
%
^
&
*
?
~
`
+
=



sitemap:




 
   
   
   
   0
   ISO-8859-1
   
   
   
   
-//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml
   

   

----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 11/28/01
Time: 10:26:49

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Upgrade C2b1 to C2rs01

2001-11-26 Thread Ling Kok Choon

Hi,

   I used cocoon2 beta version 1 to develop a website, and now i need to upgrade it to 
cocoon2 
release version 1. I have tried to upgrade, but after the upgrading, the aggregation 
part not 
shown. Any idea ?

Include here with are the sitemap.xmap and 1 action java file.

1) sitemap.xmap
This is the C2b1 sitemap.xmap, what i need to change so it can be used in C2rs1 ?

2) PathSelector.java
Action java class, i use this action to find needed xsl and xml for a request. Is it 
any changes 
on the action part between C2b1 and C2rs1 ?

Thank you.

regards,
Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 11/26/01
Time: 19:52:57

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions




PathSelector.java
Description: PathSelector.java


sitemap.xmap
Description: sitemap.xmap

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


Re: Strange Netscape Behavior

2001-11-15 Thread Ling Kok Choon

Hi,

   This is the encoding problem, try to change the encoding on the sitemap :

the example is :

  
   
   
   

## try to use encoding ISO-8859-1 because netscape not support well encoding UTF-8
   ISO-8859-1
##

   
   
   
   
-//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml
   

hope this help,


regards,
Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 11/16/01
Time: 10:09:29

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Cocoon2 with tomcat in NT Service.

2001-11-14 Thread Ling Kok Choon

Hi,

   I have success to run tomcat ( version 3.2.2 ) in service ( win2000 ) with cocoon2 
web 
application ( website). What i did is :

1) change the parser.jar to zparser.jar ( in the tomcat/lib )
2) change the jaxp.jar to zjaxp.jar ( in the tomcat/lib )
3) copy xerces_x_y_z.jar from cocoon/lib to tomcat/lib
4) edit the wrapper.properties like:

...
wrapper.tomcat_home=C:\jakarta-tomcat-3.2.2
...
wrapper.java_home=C:\jdk1.3.1
...
wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\xerces_1_4_0.jar.jar
# only if you use mysql
wrapper.class_path=$(wrapper.tomcat_home)\lib\mysql.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\zjaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\zparser.jar
...


BUT ! i meet a problem, because i also need to run a web application within the 
tomcat, this web 
application need a lot of memory ( more then 64 mb ) so i will need to set the extra 
option to 
rise the jvm memory like -Xmx .. ect. My question is where should put the option ?


Additional Question :

I also try to make the mysql as a service in win2000, but i got the error :

A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly

Any idea ?


Thank you.


regards,

Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 11/15/01
Time: 14:21:50

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: cocoon + tomcat in window2000 services

2001-10-24 Thread Ling Kok Choon

Hi Lajos Moczar,

   Currently, i use Cocoon2 version beta 2, now i manage to upgrade to version rc1

Thank you.

regards,

Kok Choon

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 10/24/01
Time: 14:59:34

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: cocoon + tomcat in window2000 services

2001-10-21 Thread Ling Kok Choon

Hi,

  I have changed the parser.jar and jaxp.jar to zparser.jar and zjaxp.jar, and follow 
the change 
the setting on the wrapper.properties, the tomcat service is running well , but cocoon 
can't 
executed, the The sitemap handler's sitemap is not available error occur.

Do u have any idea to solve this problem ?

Note: OS=Window 2000, jdk1.3.1, cocoon version 2, tomcat 3.2.2

Thank you.

regards,

Kok Choon

----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 10/22/01
Time: 11:37:24

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




org.apache.cocoon.ProcessingException

2001-10-04 Thread Ling Kok Choon

Hi,

  When i run a xsp, i got the error below : 

org.apache.cocoon.ResourceNotFoundException: Could not access component for hint: 
org\apache\cocoon\www\xml\aa_result_xsp:org.apache.avalon.framework.component.ComponentException:
 Could not access component for hint: org\apache\cocoon\www\xml\aa_result_xsp

May i know how to solve the error ? I tried to modified my xsp, but the error is not 
static, 
after i make some changes in the xsp, it work and i make a backup for it , then i add 
something 
to the xsp again, the error come out, so i restore back the old version of my xsp, but 
the error 
still occur.

may i know what is happening ?

Thank You.


regards,

Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 10/05/01
Time: 08:15:58

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




get parameter from xalan command line

2001-09-20 Thread Ling Kok Choon

Hi,

  I use Xalan command base to translate a XML file to another xml file with a XSL 
file, and i 
pass in 1 parameter to the xsl, the command is like:

  C:\ java -jar xalan.jar -IN Testing.xml -XSL testing.xsl -PARAM testParam testValue 
-OUT 
Testing4.xml

and my problem is how to get parameter testParam and the value ( taht is textValue ) 
from the 
command line ? I tried to use  in my xsl file, but 
error 
occur : variableReference given for variable out of context or without definition.

Thank you.


Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 09/21/01
Time: 14:17:09

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Loading MS Word Documents

2001-09-09 Thread Ling Kok Choon

Hi,

   I think your mime type is wrong : try to use this :

 

  

regards,

Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 09/10/01
Time: 12:53:58

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: AW: XML selector

2001-09-06 Thread Ling Kok Choon

Hi, JOERN_HEID and All

JOERN_HEID is right.
I use the action to select XML based on the request. I am not sure is it can help u or 
not ...


regards,

Kok Choon


>   ...
>   ... 
>   
>
>  
>   
>  
>  
>  
>
>   
>
> 
>
>   
>
>
> 
> 
>  
>   
>   
>   
>   
>
> 
>  
> 
> 
> 
>  
>   
>  
> 
>  
>  
> 
> 
>   
>  
>   
>  
> 
>  
>  
>   
>  
>  
>  
>  
>  
>
>  
> 
>  
>  
>  
>  
> 
>   
>   
> http://www.brel.com/maincontent"/>
> 
> http://www.brel.com/foot_note"/> 
> 
> http://www.brel.com/side_menu"/> 
> 
> ns="http://www.brel.com/links"/> 
>   
>
> 
>
>   
> 
>
>   
>   
>  
>
>
>   
>   
>   
>  
>
>
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>   
>
>  
>   
>   
>   
>  
>  
> 
>   
> 
>       
> 
>
> 
>   
>   
>   
>   
>   
> 
>
> 
>   
>   
>   
> 
>
> 
>   
> 
>
>
>
>
>

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 09/07/01
Time: 09:08:07

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2]Output indent problem - solved

2001-09-06 Thread Ling Kok Choon

Hi Joerg,

   Haha, Thank a lot, it works ! The answer is there, but i didn't go and read it 
carefuly. 
Anyway, Thank you.

:)

All the best.


Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 09/06/01
Time: 20:18:05

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2]Output indent problem.

2001-09-05 Thread Ling Kok Choon

Hi All,

  I use cocoon to build a web site, when the output ( html ) shown, and i view the 
source, the 
html code is in very well form. 

  like:
  













so it make my output ( html ) got a space between this 2 pic, and what i need is this 
2 image 
joined togather, like:






but how to let the output ( html ) like above ? i have try to put  on the xsl, but still can't work. Is anyone can help me ?



Thank you.


Kok Choon.

 

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 09/06/01
Time: 14:30:43

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Internal redirects

2001-08-21 Thread Ling Kok Choon

Hi Michael Homeijer and All,

  I am not sure about the portal page. What is the usage of the portal page, what url 
u use to 
request the portal page ? is it http://context/annotated/portal.xml ? or 
http://context/portal.xml ? Is it the portal page is also a aggregated page ?

Please tell me the detail, and i am very willing to share my opinion.


regards,

Kok Choon.




>I am working an a mechanism to have annotated pages in my web portal (like
>the pages in the pet store).

>The pipeline to get this working looks like this:

>   
>
> 
> 
>
>
>
>   


>This way, when i have a page, say "portal", cocoon loads the portal page and
>it loads the annotation page. 
>The problem I have that all my images in my portal page, now refer to
>annotated/image.gif instead of image.gif.

>For normal images until now I duplicated the pipeline, but I also have
>generated images (svg2jpeg).
>And i'd like to have an internal redirect for this, something like:

>   
>    
>   

>Is this possible?

>TIA,
>Michael Homeijer

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/21/01
Time: 17:52:18

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Sitemap and http request

2001-08-15 Thread Ling Kok Choon

hi Dal Multani,

   According what i understand, u can capture the parameter from the http request by 2 
ways :
1) use Action.
2) Use XSP

1) Use Action
   you can go to cocoon2's website and get information about the Action. If i not 
wrong, in the 
action u can can a request object and retrive all the information from the request.

   the structure is like :

   
   
http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>


   


2) Use XSP
   same way, try go to the cocoon2's XSP web site and u can get some important 
information about 
the XSP. 


Hope this information can help u ..


regards

Kok Choon.
--------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/16/01
Time: 08:34:08

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Sitemap and Action

2001-08-13 Thread Ling Kok Choon

Hi,

  I am developing a WEB Page Content Management System. This system able to create a 
new web 
page within cocoon2 environment. Because user can add new page, delete page, add 
folder with the 
content management system, so I will need a dinamic sitemap to handler all the request.

  I start to find out the solution to dinamically generate a sitemap, but fail. But at 
the time 
i found a very powerfull feature in cocoon2 that is Action. Here is how i use action 
to get a 
dinamic Sitemap:

Sitemap.xmap

 
  ...
  ... 
  
   
 
  
 
 
 
   
  
   

   

  
   
   


 
  
  
  
  
 

 



 
  
 

 
 


  
 
  
 

 
 
  
 
 
 
 
 
   
 

 
 
 
 

  

  http://www.brel.com/maincontent"/>
  
  http://www.brel.com/foot_note"/> 

  http://www.brel.com/side_menu"/> 

  http://www.brel.com/links"/> 

 
  
   


   
  
  
 
   
   
  
  
  
 
   
   
  
  
  
  

  
  
  
  
  
  
   
 
  
  
  
 
 

  

  

   

  
  
  
  
  

   

  
  
  

   

  

   
   
   
   
   


I post this mail is to get your opinions and suggestions, is it the right way to solve 
the 
problem ?


Thank

Kok Choon


------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/14/01
Time: 14:11:03

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




serialized HTML output

2001-08-13 Thread Ling Kok Choon

hi,

 I use cocoon2's to aggregate some xml files, but i found
 found the HTML result or output is in well form, means e.g.

 
 
 will become:

 
 
 
 
 but is it any way to make it original, means the output will still remain the first 
pattern 
above.


Thank you.


Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/13/01
Time: 18:11:01

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




serializer problem!

2001-08-10 Thread Ling Kok Choon

Hi All,

  I try to convert a XML to HTML by a XSL, after convert, i found the HTML result is 
in well 
form, means e.g.



will become:




but is it any way to make it original, i don't want the well formed result.


Thank you.

Kok Choon.




Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/10/01
Time: 15:23:56

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




How to getConnection in Action ?

2001-08-07 Thread Ling Kok Choon

Hi All,

   I try to use Action in the Sitemap to dinamicaly select stylesheet file  base on 
the request 
*.xml file. so in the Action, i need to get a connection from the connection pool to 
connect to 
the database. But How to get the connection ? I have read the Cocoon2 Documentation ( 
section 
Using Databases) but the example code is wrong, i can't find the import classes (e.g. 
org.apache.avalon.ComponentManager, org.apache.avalon.ComponentSelector ) from the 
Avalon's 
package !

   Do you have any idea ? 


Thank you.

Kok Choon.



----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/07/01
Time: 15:42:44

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Get Connection in Action

2001-08-07 Thread Ling Kok Choon

Hi All,

   I face a problem to get database connection in Action, i followed all the step in 
the cocoon2 
documentation ( section Using Databases ), the example is not very complete( included 
below ). 
Do you know how to solve this problem, please tell me 


** Example From Cocoon2 
*

import org.apache.avalon.ComponentManager;
import org.apache.avalon.ComponentSelector;
import org.apache.cocoon.Roles;
import org.apache.cocoon.component.datasource.DataSourceComponent;

import java.sql.Connection;

//  Skip a lot of lines until we are in the method you use
//  to initialize the DataSourceComponent 

private DataSourceComponent datasource;

public void compose(ComponentManager manager) {
ComponentSelector selector = (ComponentSelector) 
manager.lookup(Roles.DB_CONNECTION);
this.datasource = (DataSourceComponent) selector.select("MyConnectionName");
}

//  Skip more lines until we actually need to use the datasource

private void meMethod() {
Connection myConnection = this.datasource.getConnection();

//  perform SQL code here

myConnection.close();
}

** End Example From Cocoon2 



Thank you.

KOk Choon.


----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/07/01
Time: 16:49:32

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Sitemap, How to...

2001-07-23 Thread Ling Kok Choon

hi,

   I am a new user in Cocoon. I have installed the Cocoon2 in my Window 2000 with 
Tomcat 3.2.2, 
and i am try to understand the Cocoon2 as fast as posible. But i meet some problems on 
the 
Sitemap. 

   1) How to config./ write the sitemap, so when i add new directories or new files, i 
not need 
to make any changes on the Sitemap.

   2) I am also trying the aggregation, that's cool, because can aggregate with other 
page. The 
example included with the cocoon2 aggregate 3 page / xml to 1 page ( aggregate from 
top to 
bottom) so how to aggregate the pages/xml in other way, like maybe place the first 
page/xml to 
the left of aggregated page, second page/xml to the top of aggregated page and the 
third 
page/xml to the center of the aggregated page ?


Thank.

form Kok Choon.   


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 07/24/01
Time: 14:46:11

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: C2 - sitemap handler's sitemap not available

2001-07-02 Thread Ling Kok Choon

hi,

   Try to rename the tomcat3.2.2/lib/parser.jar and tomcat3.2.2/lib/xml.jar to 
tomcat3.2.2/lib/zparser.jar and tomcat3.2.2/lib/zxml.jar, if still got the internal 
servlet 
error, just delete both the tomcat3.2.2/lib/parser.jar and tomcat3.2.2/lib/xml.jar 
files.

>From Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 07/03/01
Time: 14:15:53

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2]problems with Javascript & Flash5

2001-06-27 Thread Ling Kok Choon

Hi,

--
First Problem : Javascript, CSS and Flash
--

  I have built a web application with Cocoon2, which include Javascript, CSS and 
Flash. But the 
Javascript, CSS and flash do not run well. I am not sure where is the problem, so i 
have 
included some of the code here, and please me to point out my mistakes.

the sitemap.xmap

.
.


   

  

   

   

   
  

...
...

Q1 : Is it the right way to match the Flash, CSS and Javascript file ?
Q2 : What is the different between  match pattern "pic/**.jpg" and "pic/*.jpg" and 
"pic/*.jpg*"?



XSL file




http://www.w3.org/1999/XSL/Transform";
>






type="text/html"



Home of the Engineer






 

&nbsp;



&nbsp;

 

..
..

   

http://active.macromedia.com/flash2/cabs/swflash.cab#version=2,0,0,0";
ID="biomedical" WIDTH="780" HEIGHT="69">





Q3 : Is it the right way to call the Flash, CSS and Javascript file in a xsl file?



--
Second Problem : Batch Processing with Cocoon2
--

The objective is to pre-compile / pre-generate the html file and save it to the web 
server, the 
purpose is to reduce the responce time.

Q4: How to capture and store the generated html file ?




Thank you.


From, Kok Choon.
----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/28/01
Time: 14:26:11

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Content Management System with Cocoon ?

2001-06-27 Thread Ling Kok Choon

Hi,

  I am developing a web application ( Content Management System ) with Cocoon 2 beta 
version, 
after i install the Cocoon on my Server ( IIS 5.0 , Windows 2000 , Tomcat 3.2.2 ), and 
 try to 
design the system, i meet some question :

1) is it posible to use Cocoon as a backup process. ( mean i will use the JSP as my 
front end )
2) After i install the Cocoon2 on a Directory ( Under dir webapps ), every request to 
the dir 
will be sent to the Cocoon2 to process. but is it posible don't make it happen.( i 
just need 
some request to be sent to the Cocoon2, and the other may just be processed by the 
tomcat or the 
web server.
3) How to save the serialized result ( for example HTML file ). The Content Management 
System 
will use Cocoon2 to generate a HTML file and save it to a dir.


Thank you.

>From Kok Choon.


----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/27/01
Time: 18:28:56

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2]How to get the serialized result ?

2001-06-26 Thread Ling Kok Choon

hi,

   May i know how to get the serialized result from Cocoon2. For example, when i 
request a xsp 
from the cocoon2, the cocoon2 will serialize a HTML response and send back to my 
browser. But 
now, is it posible to store / save the result HTML file to the server, so that other 
person can 
just request for the html file but not the xsp file ?

  The purpose is to reduce the request time, because request for the HTML file is 
faster then 
request for the xsp file.


Thank you.


>From Kok Choon




Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/27/01
Time: 05:22:07

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




how to precompile the xsp ?

2001-06-25 Thread Ling Kok Choon

hi,

   I am developing a web application with Cocoon 2. But the xsp's performance is not 
very good ( 
very slow ), so is it posible to precompile the xsp file ? and may i know how to do it 
?

Thank you.


>From Kok Cho0n.

----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/26/01
Time: 22:32:02

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2] How to connect to mysql server ?

2001-06-24 Thread Ling Kok Choon

hi,

  May i know how to connect my cocoon web application to the mySQL server ?

Thank.


>From Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/25/01
Time: 22:53:03

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




sitemap .xmap

2001-06-21 Thread Ling Kok Choon

hi,

  When i read thought the sitemap.xmap file, i found something that i don't understand 
:
In the sitemap code below, what is the usage of {1}.xsp (line 5 and 7 ). And also line 
7, what 
is the purpose of this line ?

1) 
2)
3)   

4)   
5) 
6) 
7)
8) 
9) 
10)   


Thank you.


From:
   ^^
-00''00- Kok Choon.
----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/21/01
Time: 22:15:06

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Cocoon 1.8.2 will not run with tomcat / windows / jdk1.3

2001-06-21 Thread Ling Kok Choon

hi,

   I am successfully install the cocoon1.8.3 to my PC ( windows 98 ) with Tomcat 3.2.1 
and JDK 
1.3.1, and also successfully install the cocoon2 to my PC ( windows 98 ) with Tomcat 
3.2.2 and 
JDK 1.3.1.

   May i know what error message you get when you install or run the cocoon ?


Regards,

   ^^
-00''00- Kok Choon.
----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/21/01
Time: 20:54:45

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Again ! the sitemap handler's sitemap is not available

2001-06-20 Thread Ling Kok Choon

hi,

   I just successfull install C2 beta version on the Windows 98, Tomcat 3.2.2 , JDK 
1.3.1, I 
meet the Sitemap handler's sitemao is not avaiable problem before, I delete the 
parser.jar from 
the tomcat/lib , then all run well.


regards,
   ^^
-00''00- Kok Choon.
----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/21/01
Time: 03:02:48

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Again ! the sitemap handler's sitemap is not available

2001-06-20 Thread Ling Kok Choon
uot;/cocoon" :DEBUG   15540   [cocoon  ] (Thread-10): Making 
URL from 
file:/D:/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap

2001-06-21 02:19:08 - path="/cocoon" :DEBUG   15540   [cocoon  ] (Thread-30): Making 
URL from 
file:/D:/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap

2001-06-21 02:19:08 - path="/cocoon" :DEBUG   15590   [cocoon  ] (Thread-30): 
UnnamedSelector: 
ComponentSelector could not find the component for hint: 
org\apache\cocoon\www\sitemap_xmap

2001-06-21 02:19:08 - path="/cocoon" :DEBUG   15590   [cocoon  ] (Thread-30): Could 
not access 
component for hint: org\apache\cocoon\www\sitemap_xmap
java.lang.NullPointerException
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.select(GeneratorSelector.java:8
2)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(ProgramGeneratorImpl.
java:269)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.ja
va:146)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:214)
at java.lang.Thread.run(Thread.java:484)

***


Thank you.


>From 

   ^^
-00''00- Kok Choon.



Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/21/01
Time: 02:28:37

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




cocoon2 in Windows 98, Tomcat 3.2.1 ?

2001-06-20 Thread Ling Kok Choon

hi,

  Can cocoon2 be installed in Windows 98 with Tomcat 3.2.1 as a web server and servlet 
container 
?


Thank you.


From
   ^^
-00''00- Kok Choon.
----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/20/01
Time: 21:28:51

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [PATCH] The sitemap handler's sitemap is not available

2001-06-20 Thread Ling Kok Choon

hi,

  I am using windows 98, the "The sitemap handler's sitemap is not available."
error also occur, how i am going to solve it ?


Thank.

from:
   ^^
-00''00- Kok Choon.
--------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/20/01
Time: 06:27:55

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




XSP NoClassDefaultFoundError ?

2001-06-19 Thread Ling Kok Choon

hi,

  I am now trying the XSP, i include the classes that i created ( until the 
webappls/app/classes 
), when i run the XSP, the NoClassDefaultFoundError occur... ? May i know how to slove 
the 
problem ?


Thank.


From
   ^^
-00''00- Kok Choon.

----
Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/20/01
Time: 02:34:15

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>