Re: commandline executes matching pipeline three times

2003-06-04 Thread Upayavira
> Look at the Cocoon Wiki
> (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine):
> 
> 
> In order to follow links and rewrite URLs, Cocoon must generate pages
> multiple times:
> 
>  * once to extract links from the page, using the links view
>  * once to check the mime type for URL rewriting
>  * once for getting page contents
> 

And check out the CLI in 2.1. Much improved, and can be configured to only generate 
pages once.

Regards, Upayavira


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



Re: commandline executes matching pipeline three times

2003-06-04 Thread Steven Noels
On 4/06/2003 15:39 Geert Van Damme wrote:
Hi,

I'm trying to run Cocoon from the command line, but it seems that the
matching pipeline for the requested URI is executed three times instead
of just one.
Did anyone experience the same problem ?
bug == feature ;-)

binnen Cocoon 2.1 wordt er momenteel flink getimmerd aan de CLI, als ik 
me goed herinner loopt men daar maar twéé keer over dezelfde pijplijn.

Groetjes,


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: commandline executes matching pipeline three times

2003-06-04 Thread Andreas Hartmann
Geert Van Damme wrote:

Hi,

I'm trying to run Cocoon from the command line, but it seems that the
matching pipeline for the requested URI is executed three times instead
of just one.
Look at the Cocoon Wiki
(http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine):

In order to follow links and rewrite URLs, Cocoon must generate pages 
multiple times:

* once to extract links from the page, using the links view
* once to check the mime type for URL rewriting
* once for getting page contents


Did anyone experience the same problem ?

I'm running Cocoon2.0.4 using a very simple example which does work
(meaning pipeline processed only once) when running Cocoon as a webapp.
Following match is executed three times in stand alone mode :


  
  
   
I'm running following ant task to run the program :

  





The log contains following output three times (with more log output
inbetween):
   [java] REQUEST: /test

   [java] CONTEXT PATH: null
   [java] SERVLET PATH: /test
   [java] PATH INFO: null
   ...
   ...
   [java] METHOD: get
   [java] CONTENT LENGTH: -1
   [java] PROTOCOL: cli
   [java] SCHEME: cli
   [java] AUTH TYPE: null
   [java] CURRENT ACTIVE REQUESTS: 1
   [java] REQUEST PARAMETERS:
   [java] PARAM: 'accept' VALUES: '[text/html, */*]'
   [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]'
   [java] HEADER PARAMETERS:
   [java] SESSION ATTRIBUTES:

Is there anything I miss here ? Any options I need to set ?

Thanks,
Geert


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


commandline executes matching pipeline three times

2003-06-04 Thread Geert Van Damme

Hi,

I'm trying to run Cocoon from the command line, but it seems that the
matching pipeline for the requested URI is executed three times instead
of just one.
Did anyone experience the same problem ?

I'm running Cocoon2.0.4 using a very simple example which does work
(meaning pipeline processed only once) when running Cocoon as a webapp.

Following match is executed three times in stand alone mode :


  
  
   

I'm running following ant task to run the program :

  






The log contains following output three times (with more log output
inbetween):

   [java] REQUEST: /test

   [java] CONTEXT PATH: null
   [java] SERVLET PATH: /test
   [java] PATH INFO: null
   ...
   ...
   [java] METHOD: get
   [java] CONTENT LENGTH: -1
   [java] PROTOCOL: cli
   [java] SCHEME: cli
   [java] AUTH TYPE: null

   [java] CURRENT ACTIVE REQUESTS: 1
   [java] REQUEST PARAMETERS:

   [java] PARAM: 'accept' VALUES: '[text/html, */*]'
   [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]'
   [java] HEADER PARAMETERS:


   [java] SESSION ATTRIBUTES:


Is there anything I miss here ? Any options I need to set ?

Thanks,
Geert

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



RE: jfor encoding problem (POST encoding problem, indeed)

2003-06-04 Thread Yan, Charlene
Bertrand,

Thank you very much for your help!!!  The html encoding was the problem!!!  You are 
the man!!!  I'm just so happy that it works.

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:25 AM
To: [EMAIL PROTECTED]
Subject: Fwd: jfor encoding problem (POST encoding problem, indeed)


Hi Charlene,

> using the Orderpage example at 
> http://localhost:8080/cocoon/samples/stream/order.  If you add  version="1.0" encoding="ISO-8859-1"?> at the top of the default xml 
> and change Order Id to be Gérer, the next html page will display 
> Gérer  as Order Id

This has nothing to do with jfor - in your scenario, Cocoon's 
StreamGenerator is used to read your XML from an HTML form field.

Your encoding problem is caused by the StreamGenerator using the wrong 
encoding when *reading data* from the form's POST request. To use a 
different encoding, you have to change the HTML code of the form, 
replacing



   with



for example.

The encoding declaration that you used in the XML input field is 
probably handled correctly later on, but it's too late as the 
StreamGenerator has already read the data with the wrong encoding.

Hope this helps,
-Bertrand

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


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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Yury Mikhienko
On Wed, 04 Jun 2003 14:33:37 +0200
Lionel Crine <[EMAIL PROTECTED]> wrote:

> With the tomcat plugin : 2.1
> 
> I think you have setup the windows->preference->tomcat.
> I repeat it :
> 
> 1/choose the version you have. 4.1.x is good.
> 2/choose the tomcat root directory
> 3/choose the server.xml file
> 4/i had my tomcat project to my classpath (i'm not sure it's necessary).
> 5/ If you want to debug Tomcat (check the "execute in debug mode)
> 
> the parameter for the JVM :
> 
> The JRE by default is not working (or something like that)!!!
> So you have to change it the another.
> 
> 
> 6/ Go in window->preferences->java->installed JREs
> 7/add a new standard VM (the one with your sdk). (for example mine is : 
> d:\software\java\sdk1.4)
> 8/notch it.
> 
> 9/Come back to windows->preference->tomcat->JVM parameter
> 10/select the new JVM
> 
> 
> Some optionnal things :
> In window->preferences->java->Classpath Variables
> create a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin 
> uses TOMCAT_HOME
> 
> 
> In the properties of the project :
> 
> 11/java Build Path->source : be sure WEB-INF/classes of your project is here
> 12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.
> Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME
> 
> 13/Tomcat : I notched "is a tomcat project" (check if this is your context) 
> "update automatically server.xml" and "reloadable = true".
> 
> 
> Hope that help a little.
> I may have forgotten some things so tell me.
> 
> PS: With my computer the classpath is not build with eclipse So I had to 
> add all the jars into the libraries (see 12/)
> 
> 
> Lionel
> 
Thank you! Will try.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
Check the $COCOON_SRC_DIR/lib/jars.xml
for following lines:
 
  jndi LDAP API
  Java API for LDAP works
  LDAP Transformer
  optional/jndi.jar
  http://java.sun.com/products/jndi
 

and rebuild the cocoon.

After rebuilding, in the 
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class

> there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> Should I add them? Where can I find them?
> 
> Check the :
> LDAPTransformer.class
> LDAPTransformer$LDAPQuery.class
> in the your cocoon.jar (org/apache/cocoon/transformation)
> 
> > I have them, into the cocoon/web-inf/lib I have these libs :
> > jndi.jar
> > jaas.jar
> > ldap.jar
> > ldapbp.jar
> > ldapsec.jar
> > providerutil.jar
> > 
> > but I doesn't work. Still have the "class not found" error
> > 
> > > When I declare the transformer 
> > >  > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > in the sitemap I get the error "class not found".
> > > Do I need some special libs? 
> > 
> > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > 
> > >I have tomcat 4.1.24 & cocoon 2.0
> > > 
> > > Thanks
> > > 
> > > -Original Message-
> > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > <[EMAIL PROTECTED]> writes:
> > > 
> > > > Hello,
> > > > I would like to get some information about how to use the LDAP
> > > > transformer (first of all, in wich library the classes are),
> > > 
> > > In cocoon-naming-block.jar. 
> > > 
> > 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Lionel Crine
With the tomcat plugin : 2.1

I think you have setup the windows->preference->tomcat.
I repeat it :
1/choose the version you have. 4.1.x is good.
2/choose the tomcat root directory
3/choose the server.xml file
4/i had my tomcat project to my classpath (i'm not sure it's necessary).
5/ If you want to debug Tomcat (check the "execute in debug mode)
the parameter for the JVM :

The JRE by default is not working (or something like that)!!!
So you have to change it the another.
6/ Go in window->preferences->java->installed JREs
7/add a new standard VM (the one with your sdk). (for example mine is : 
d:\software\java\sdk1.4)
8/notch it.

9/Come back to windows->preference->tomcat->JVM parameter
10/select the new JVM
Some optionnal things :
In window->preferences->java->Classpath Variables
create a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin 
uses TOMCAT_HOME

In the properties of the project :

11/java Build Path->source : be sure WEB-INF/classes of your project is here
12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.
Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME
13/Tomcat : I notched "is a tomcat project" (check if this is your context) 
"update automatically server.xml" and "reloadable = true".

Hope that help a little.
I may have forgotten some things so tell me.
PS: With my computer the classpath is not build with eclipse So I had to 
add all the jars into the libraries (see 12/)

Lionel

At 04:11 04/06/2003 -0700, you wrote:
Yes, please! I'll be grateful!

Galia

Lionel Crine <[EMAIL PROTECTED]> wrote:
Sorry I'm lost :
Whould you like me to send the configuration for eclipse to work with
cocoon and tomcat and sdk 1.4 ?
If yes, tell me.


At 10:43 04/06/2003 +0400, you wrote:
>But who can send the solution about the using the eclipse in this
>configuration?
>
> > I use tomcat cocoon and the sdk 1.4
> >
> > All is working fine.
> >
> > Do you have an error message ?
> >
> >
> > At 07:27 03/06/2003 -0700, you wrote:
> > >Hi,
> > >
> > >I would like to debug cocoon with eclipse and tomcat.
> > >I have the blueskytime plugins for eclipse and tomcat but could not
> > >make them debug cocoon.
> > >May be there's something i'm not doing right?
> > >
> > >Galia
> > >
> > >
>
>--
>
>Best regards,
>Yury Mikhienko.
>IT engineer, ZAO "Mobicom-Kavkaz"
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online 
calendar with sync to Outlook(TM).


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


RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
there aren't in the cocoon.jar (org/apache/cocoon/transformation)
Should I add them? Where can I find them?

Thanks!

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


Check the :
LDAPTransformer.class
LDAPTransformer$LDAPQuery.class
in the your cocoon.jar (org/apache/cocoon/transformation)

> I have them, into the cocoon/web-inf/lib I have these libs :
> jndi.jar
> jaas.jar
> ldap.jar
> ldapbp.jar
> ldapsec.jar
> providerutil.jar
> 
> but I doesn't work. Still have the "class not found" error
> 
> > When I declare the transformer 
> >  > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > in the sitemap I get the error "class not found".
> > Do I need some special libs? 
> 
> You must have the jndi.jar or use the J2SDK 1.4.1 family
> 
> >I have tomcat 4.1.24 & cocoon 2.0
> > 
> > Thanks
> > 
> > -Original Message-
> > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 11:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > <[EMAIL PROTECTED]> writes:
> > 
> > > Hello,
> > > I would like to get some information about how to use the LDAP
> > > transformer (first of all, in wich library the classes are),
> > 
> > In cocoon-naming-block.jar. 
> > 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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


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



Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
Check the :
LDAPTransformer.class
LDAPTransformer$LDAPQuery.class
in the your cocoon.jar (org/apache/cocoon/transformation)

> I have them, into the cocoon/web-inf/lib I have these libs :
> jndi.jar
> jaas.jar
> ldap.jar
> ldapbp.jar
> ldapsec.jar
> providerutil.jar
> 
> but I doesn't work. Still have the "class not found" error
> 
> > When I declare the transformer 
> >  > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > in the sitemap I get the error "class not found".
> > Do I need some special libs? 
> 
> You must have the jndi.jar or use the J2SDK 1.4.1 family
> 
> >I have tomcat 4.1.24 & cocoon 2.0
> > 
> > Thanks
> > 
> > -Original Message-
> > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 11:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > <[EMAIL PROTECTED]> writes:
> > 
> > > Hello,
> > > I would like to get some information about how to use the LDAP
> > > transformer (first of all, in wich library the classes are),
> > 
> > In cocoon-naming-block.jar. 
> > 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
I have them, into the cocoon/web-inf/lib I have these libs :
jndi.jar
jaas.jar
ldap.jar
ldapbp.jar
ldapsec.jar
providerutil.jar

but I doesn't work. Still have the "class not found" error

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:13 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


On Wed, 4 Jun 2003 13:47:23 +0200
<[EMAIL PROTECTED]> wrote:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? 

You must have the jndi.jar or use the J2SDK 1.4.1 family

>I have tomcat 4.1.24 & cocoon 2.0
> 
> Thanks
> 
> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> <[EMAIL PROTECTED]> writes:
> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are),
> 
> In cocoon-naming-block.jar. 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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


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



Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
On Wed, 4 Jun 2003 13:47:23 +0200
<[EMAIL PROTECTED]> wrote:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? 

You must have the jndi.jar or use the J2SDK 1.4.1 family

>I have tomcat 4.1.24 & cocoon 2.0
> 
> Thanks
> 
> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> <[EMAIL PROTECTED]> writes:
> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are),
> 
> In cocoon-naming-block.jar. 
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



getting subsitemap path in XSP

2003-06-04 Thread Mato Mira, Fernando
Hello,

  How can one get the absolute path to the current subsitemap in XSP?

Thanks

--
Fernando D. Mato Mira   [EMAIL PROTECTED] 
Thomson Dialog
www.dialog.com

E-MAIL NOTICE:
This message (plus any attachments) is confidential and may be subject
to lawyer-client privilege.  Use without permission is strictly
prohibited.


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



RE: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
When I declare the transformer 

in the sitemap I get the error "class not found".
Do I need some special libs? I have tomcat 4.1.24 & cocoon 2.0

Thanks

-Original Message-
From: Martin Holz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


<[EMAIL PROTECTED]> writes:

> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are),

In cocoon-naming-block.jar. 


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


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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Geoff Howard
Look at build.xml - it's the real build file that uses entities to include the
sub-builds (of which init-build.xml is one).  The sub-build files are xml 
fragments
and not wellformed, and not "build files" in and of themselves.

That said, I had trouble getting the build to execute from within eclipse, 
and just
build from the command line but do everything else in eclipse.  As it's not 
any
trouble at all, haven't bothered to go back and get eclipse configured to 
build
directly.

Geoff

At 06:13 AM 6/4/2003, you wrote:

On Wednesday, Jun 4, 2003, at 10:16 Europe/London, Upayavira wrote:

Haven't done it yet myself, but have you read the Wiki page for Cocoon 2.1?
I've tried that, CVS cocoon and eclipse. Just to let everyone know I 
encountered some permission issues and I still haven't got Cocoon to build 
within eclipse. I'm getting some strange results

Buildfile: /Users/g4/WORK/cocoon-2.1/src/targets/init-build.xml
BUILD FAILED: file:/Users/g4/WORK/cocoon-2.1/src/targets/init-build.xml:3: 
Config file is not of expected XML type
Total time: 577 milliseconds

Which it most certainly is, I've also included (as per the footnote in the 
wiki) the call to

  

  

Also within this file, init-build.xml. So I'm not sure if this is the 
right build file, should it be build.xml? I haven't checked if the above 
is right for my setup yet but I need to get around to this ;)

Other than that it's looking good.

http://wiki.cocoondev.org/Wiki.jsp?page=LoadInEclipse 

Regards, Upayavira

On 4 Jun 2003 at 10:51, Lionel Crine wrote:

Sorry I'm lost :

Whould you like me to send the configuration for eclipse to work with
cocoon and tomcat and sdk 1.4 ? If yes, tell me.


At 10:43 04/06/2003 +0400, you wrote:
But who can send the solution about the using the eclipse in this
configuration?
I use tomcat cocoon and the sdk 1.4

All is working fine.

Do you have an error message ?

At 07:27 03/06/2003 -0700, you wrote:
Hi,

I would like to debug cocoon with eclipse and tomcat.
I have the blueskytime plugins for eclipse and tomcat but could
not make them debug cocoon. May be there's something i'm not
doing right?
Galia

--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
-
To unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]


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


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



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


Re: "No buffer space available"

2003-06-04 Thread Geoff Howard
You can (and should) use one esql:connection for your entire page.

Geoff

At 04:48 AM 6/4/2003, you wrote:
I don't know esql, but is it useful  to open a connection for each row ?

What's happening if you do not open a connection for your second request ?

At 19:28 03/06/2003 +0200, you wrote:
Yeah, buffer is full !

I open one connection for every rows, and another connection in each
one :

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

Extraction catalogue (c)2003 MediaXtend
jdbc:mysql://localhost/my_dblogpass

SELECT
a.cle,a.refcomplete,a.titreindex,a.soustitre,a.resume,a.nsupports,s.supp 
ort,a.cab,lcase(a.ref) AS image,l.label,c.publicTTC,a.motscles FROM
article AS a LEFT JOIN label AS l ON l.cle=a.label LEFT JOIN codeprix
AS c ON c.cle=a.codeprix LEFT JOIN support AS s ON s.cle=a.support
WHERE a.catalogue=7 AND a.dispo=1 AND a.supprime=0 AND a.parution <
'2003-05-31' AND genre=2 AND catalogue=7 ORDER BY a.titreindex,
a.motscles, a.soustitre


 
  
  
  
  
  
  
   
column="support"/>
  
String lbl = ;
lbl = lbl.toLowerCase();
lbl = lbl.replace( ' ' ,'_' );
lbl = lbl.replace( '\'' ,'_' );
  
  
name="href">file:///Scrat/abeille/images/codes-barres/lbl/.eps
:attribute>
  
name="href">file:///Scrat/abeille/images/references/
column="image"/>.tiff

jdbc:mysql://localhost/ 
my_dblogpassSELECT ra.article,r.code FROM recompensearticle AS ra
LEFT JOIN recompense AS r ON r.cle = ra.recompense WHERE ra.article =
 LIMIT
0,8
   
name="href">file:///Scrat/abeille/images/recompenses/couleurs/ 

column="code"/>.eps
  
 








Le mardi, 3 juin 2003, à 16:53 Europe/Paris, Lionel Crine a écrit :

It seems that the buffer is full.

Do you open a connection for every rows ?

At 15:28 03/06/2003 +0200, you wrote:
Hi,

I'm trying to extract rows from my MySQL database and convert it to
an XML file, using Tomcat/Cocoon.
I'm running :
  FreeBSD 5.0R
  Sun JRE 1.3.1 (patchset 8)
  Tomcat 4.1.18
  Cocoon 2.0.4
  MySQL 3.23.54
  MySQL J/Connector 3.0.6
When I start loading my page (a simple XSP/ESQL), I get the normal
XML datas but after a moment download stops and a HTML page is added
at end of file. All of my other pages work but this one that extract
a lot of rows (more than 4,000) doesn't work.
In the html part, I got an error page with this message :
[...]
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
opening connection to dburl: jdbc:mysql://localhost/my_db: Unable to
connect to any hosts due to exception: java.net.SocketException: No
buffer space available
[...]
Any ideas ?

Thanks

Nicolas SANDRI

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


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


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


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



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


Re: empty html tags

2003-06-04 Thread Alexandre Victoor
Thanks for your response
I am using cocoon 2.0.4, I will try with a new version.
Alex

At 21:50 03/06/2003 +0200, you wrote:
Hello Alexandre,

what Cocoon and Xalan version are you using? I have Cocoon 2.0.5-dev (with 
Xalan 2.3.1) and 2.1m3-dev (with Xalan 2.5.1-dev (2003-05-06)).

With both versions  and  are serialized to 
 and .

Joerg

Alexandre Victoor wrote:
Hello
Is there a simple solution to avoid unwanted transformations like 
 -> 
I tried to add cdata-section-elements parameters to the html serializer 
but it doesn't work. I would rather like not to add comments or blank 
spaces inside my tags.
Thanks for your help.
Alex


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


Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Galia Angelova
Yes, please! I'll be grateful!
 
GaliaLionel Crine <[EMAIL PROTECTED]> wrote:
Sorry I'm lost :Whould you like me to send the configuration for eclipse to work with cocoon and tomcat and sdk 1.4 ?If yes, tell me.At 10:43 04/06/2003 +0400, you wrote:>But who can send the solution about the using the eclipse in this >configuration?>> > I use tomcat cocoon and the sdk 1.4> >> > All is working fine.> >> > Do you have an error message ?> >> >> > At 07:27 03/06/2003 -0700, you wrote:> > >Hi,> > >> > >I would like to debug cocoon with eclipse and tomcat.> > >I have the blueskytime plugins for eclipse and tomcat but could not> > >make them debug cocoon.> > >May be there's something i'm not doing right?> > >> > >Galia> > >> > >>>-->>Best regards,>Yury Mikhienko.>IT engineer, ZAO "Mobicom-Kavkaz">>->To unsubscribe, e-mail: [EMAIL PROTECTED]>For additional commands, e-mail: [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: Cocoon problems generating html output

2003-06-04 Thread Jeff Turner
On Wed, Jun 04, 2003 at 10:37:47AM +0200, Joerg Heinicke wrote:
> Hello Rob,
> 
> to make it short:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15316
> 
> Are absolute paths an option for you?

Btw, the 'realpath' input module is useful here, for passing in the
absolute context path into the xsl:fo stylesheet:


  


Then you can concat($ctxbasedir, 'resources/images/', @src) to
generate a FOP-friendly image path.  There's an example of this in
Forrest.


--Jeff

> Joerg
> 
> [EMAIL PROTECTED] wrote:
> >Hi all,
> >
> >I'm a bit of a Cocoon newbie so forgive me if there are any errors in the
> >following...
> >
> >In an attempt to push the use of DocBook for technical documentation within
> >our group I have been trialling its use and using Cocoon 2.0.4 as the
> >publishing framework. I have deployed this under tomcat-4.1.24 on Solaris 8
> >with j2sdk1.4.1_01. We are also using docbook-xsl-1.58.1 for the
> >stylesheets.
> >
> >We are mainly generating this into html and pdf for review and
> >distribution. Now I have replaced Xalan with Saxon the html seems be
> >working a lot better, faster and more reliable. One problem I am having is
> >with graphics in PDF files, if I include an imageobject element in the
> >docbook all works fine for html but with pdf the image fails to be
> >included. The following error occurs in both the error.log and the
> >sitemap.log
> >
> >ERROR   (2003-06-04) 08:51.35:216   [sitemap.serializer.fo2pdf.fop]
> >(/cocoon/mount/users/r_exley/doc/r_exley/rpe006.pdf)
> >Thread-8/ExternalGraphic: Error while creating area : Error with image URL:
> >images/rpe006_1.png (No such file or directory) and no base directory is
> >specified
> >
> >A fragment from the docbook source used in this is as follows:
> >
> >
> >  
> >
> >  
> >
> >
> >After searching through google etc. this seems to be because the somewhere
> >between Apache FOP and docbook-xsl a baseDir configuration parameter is
> >required when operating in a servlet environment. The following is one of
> >the references I found to this.
> >
> >http://forrestbot.cocoondev.org/sites/xml-fop/embedding.html#config-internal
> >
> >How do I approach getting this into my cocoon implementation ?
> >Has anyone had any experience of this ?
> >Is it docbook-xsl, FOP or Cocoon that is deficient in the treatment of
> >images and PDFs via this mechanism ?
> >Am I missing something or doing this incorrectly ?
> >
> >FYI - I am pretty sure using this approach plus FOP all works from the
> >command line.
> >
> >I would appreciate any help/advice on this. Equally if I should be
> >addressing this elsewhere then thats fine as well.
> >
> >thanks in advance
> >
> >---
> >Rob Exley
> >Senior Technical Consultant
> >Equifax Plc
> >
> >e-mail: [EMAIL PROTECTED]
> >tel: 01274 759610

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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-04 Thread Antonio Gallardo
Joerg Heinicke dijo:
> Hello Bruce,
>
> I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
> they should be in the next Cocoon 2.0.x release - I guess the 5 comes
> after the 4 ;-)

Cool! I think we can close the bug related to document() function!

Antonio Gallardo.




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



Re: Cocoon problems generating html output

2003-06-04 Thread Rob Exley
Thanks Joerg,

Unfortunately we are directly publishing the source XML from CVS,
therefore we can guarantee that the images are in the same place
relative to the source document but we cannot guarantee the absolute
path.

Are there any workarounds until this is fixed that you know of..?
---
Rob.


On Wed, 2003-06-04 at 09:37, Joerg Heinicke wrote:
> Hello Rob,
> 
> to make it short:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15316
> 
> Are absolute paths an option for you? Passing a base directory to FOP is 
> not implemented in Cocoon'S FOPSerailizer.
> 
> Joerg
> 
> [EMAIL PROTECTED] wrote:
> > Hi all,
> > 
> > I'm a bit of a Cocoon newbie so forgive me if there are any errors in the
> > following...
> > 
> > In an attempt to push the use of DocBook for technical documentation within
> > our group I have been trialling its use and using Cocoon 2.0.4 as the
> > publishing framework. I have deployed this under tomcat-4.1.24 on Solaris 8
> > with j2sdk1.4.1_01. We are also using docbook-xsl-1.58.1 for the
> > stylesheets.
> > 
> > We are mainly generating this into html and pdf for review and
> > distribution. Now I have replaced Xalan with Saxon the html seems be
> > working a lot better, faster and more reliable. One problem I am having is
> > with graphics in PDF files, if I include an imageobject element in the
> > docbook all works fine for html but with pdf the image fails to be
> > included. The following error occurs in both the error.log and the
> > sitemap.log
> > 
> > ERROR   (2003-06-04) 08:51.35:216   [sitemap.serializer.fo2pdf.fop]
> > (/cocoon/mount/users/r_exley/doc/r_exley/rpe006.pdf)
> > Thread-8/ExternalGraphic: Error while creating area : Error with image URL:
> > images/rpe006_1.png (No such file or directory) and no base directory is
> > specified
> > 
> > A fragment from the docbook source used in this is as follows:
> > 
> > 
> >   
> > 
> >   
> > 
> > 
> > After searching through google etc. this seems to be because the somewhere
> > between Apache FOP and docbook-xsl a baseDir configuration parameter is
> > required when operating in a servlet environment. The following is one of
> > the references I found to this.
> > 
> > http://forrestbot.cocoondev.org/sites/xml-fop/embedding.html#config-internal
> > 
> > How do I approach getting this into my cocoon implementation ?
> > Has anyone had any experience of this ?
> > Is it docbook-xsl, FOP or Cocoon that is deficient in the treatment of
> > images and PDFs via this mechanism ?
> > Am I missing something or doing this incorrectly ?
> > 
> > FYI - I am pretty sure using this approach plus FOP all works from the
> > command line.
> > 
> > I would appreciate any help/advice on this. Equally if I should be
> > addressing this elsewhere then thats fine as well.
> > 
> > thanks in advance
> > 
> > ---
> > Rob Exley
> > Senior Technical Consultant
> > Equifax Plc
> > 
> > e-mail: [EMAIL PROTECTED]
> > tel: 01274 759610
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Rob Exley
Senior Technical Consultant
Equifax Plc

e-mail: [EMAIL PROTECTED]
tel: 01274 759610


signature.asc
Description: This is a digitally signed message part


I've a problem

2003-06-04 Thread Mmutuberria
Hello friends,

I've to implant Cocoon in my enterprise (AUSA) and I need a bit of generic
information about it. I Know the product, I think is a great solution, but I
need some study of implantation with contrasted data in a web site migration
to Cocoon, and the economic advantages in maintenance of the site.

Could you help me?

Really thanks.


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



Re: [Summary] Cocoon Stammtisch, Vienna, Austria

2003-06-04 Thread Gernot Koller
Hi!

Please add me to the list! 25th and Centimeter sounds fine !

thx,

Gernot

On Tue, 3 Jun 2003 22:01:31 +0200, Reinhard Pötz <[EMAIL PROTECTED]> 
wrote:

After counting the mails 11 people are interested in a Cocoon Stammtisch
in Vienna. I added all names to the list below - please let me know if a
name is missing.
24   25   26
- Alexander Schatten xxx
- Andreas Hochsteger xxx
- Berni Huberxxx
- Franz Philipp Moserxxx
- Johann Schweiglxx
- Manfred Weigel xx
- Martin Schimak xxx - Matthew Langham xx
- Michael Gerzabek   xxx
- Reinhard Pötz  xxx
- Werner Gutmann xxx
If I interpret your mails correctly the 25th will fit for all of us. As
a reminder here again the date and the location:
June, 25th, 8pm at Centimeter I (8th district behind the city hall). 
(http://www.tourist-net.co.at/lokale/centimeter/centimeter1.htm)

If any of you wants to come with one or more friends please let me know
until Thursday when I'll reserve the table for us.
Best regards
Reinhard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
DI Gernot Koller
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread g4

On Wednesday, Jun 4, 2003, at 10:16 Europe/London, Upayavira wrote:

Haven't done it yet myself, but have you read the Wiki page for Cocoon 2.1?

I've tried that, CVS cocoon and eclipse. Just to let everyone know I encountered some permission issues and I still haven't got Cocoon to build within eclipse. I'm getting some strange results


Buildfile: /Users/g4/WORK/cocoon-2.1/src/targets/init-build.xml
BUILD FAILED: file:/Users/g4/WORK/cocoon-2.1/src/targets/init-build.xml:3: Config file is not of expected XML type
Total time: 577 milliseconds

Which it most certainly is, I've also included (as per the footnote in the wiki) the call to 

  8080,,"> if=8080,,">> 
	8080,,"> value=8080,,">/> 
  

Also within this file, init-build.xml. So I'm not sure if this is the right build file, should it be build.xml? I haven't checked if the above is right for my setup yet but I need to get around to this ;)

Other than that it's looking good. 
http://wiki.cocoondev.org/Wiki.jsp?page=LoadInEclipse

Regards, Upayavira

On 4 Jun 2003 at 10:51, Lionel Crine wrote:

Sorry I'm lost :

Whould you like me to send the configuration for eclipse to work with
cocoon and tomcat and sdk 1.4 ? If yes, tell me.




At 10:43 04/06/2003 +0400, you wrote:
But who can send the solution about the using the eclipse in this
configuration?

I use tomcat cocoon and the sdk 1.4

All is working fine.

Do you have an error message ?


At 07:27 03/06/2003 -0700, you wrote:
Hi,

I would like to debug cocoon with eclipse and tomcat.
I have the blueskytime plugins for eclipse and tomcat but could
not make them debug cocoon. May be there's something i'm not
doing right?

Galia



--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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


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





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




RE: clear cache problems

2003-06-04 Thread Antonio Gallardo
> cocoon 2.0 and tomcat 4.1.18

Hi:

Try to upgrade to Tomcat 4.1.24. It is better stable than the 4.1.18 I had
many problems related as your with 4.1.18 like yours + others, like blank
pages after a while.

Also java version? We are using 1.4.1_03 and looks pretty stable. Running
since yesterday.

Antonio Gallardo.

>
> -Original Message-
> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]  Sent:
> Wednesday, June 04, 2003 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: RE: clear cache problems
>
>
> What versions are you using?
>
> Antonio Gallardo
>
>> no, because if I take Opera and load any page that I have never
>> requested I get the same error!
>> The problem must be on the server. Do I have to reinstall it? I really
>> tried to delete all cache-files! I don't see any other possibility
>>
>> -Original Message-
>> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]
> Sent:
>> Wednesday, June 04, 2003 11:20 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: clear cache problems
>>
>>
>> Hi:
>>
>> I saw this problem always in Explorer. Sometimes explorer is too smart
>> that prefer to not download the page. Instead it gets it from the
> local
>> disk cache.
>>
>> I recommend you to change options of how IE manages the cache.
>>
>> Best Regards,
>>
>> Antonio Gallardo.
>>
>>> Hello,
>>> I have problems with the cache. Sometimes I change a page (eg the
>>> sitemap) and it's still the old page that is displayed! Even if I
>>> restart the server, the computer, the client, IE's cache!
>>>
>>> How is it possible to take the changes
>>>
>>> -
>> To
>>> unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> -
> To
>> unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> -
> To
>> unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: clear cache problems

2003-06-04 Thread Maxime.Gheysen
cocoon 2.0 and tomcat 4.1.18

-Original Message-
From: Antonio Gallardo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: clear cache problems


What versions are you using?

Antonio Gallardo

> no, because if I take Opera and load any page that I have never
> requested I get the same error!
> The problem must be on the server. Do I have to reinstall it? I really
> tried to delete all cache-files! I don't see any other possibility
>
> -Original Message-
> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]
Sent:
> Wednesday, June 04, 2003 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: clear cache problems
>
>
> Hi:
>
> I saw this problem always in Explorer. Sometimes explorer is too smart
> that prefer to not download the page. Instead it gets it from the
local
> disk cache.
>
> I recommend you to change options of how IE manages the cache.
>
> Best Regards,
>
> Antonio Gallardo.
>
>> Hello,
>> I have problems with the cache. Sometimes I change a page (eg the
>> sitemap) and it's still the old page that is displayed! Even if I
>> restart the server, the computer, the client, IE's cache!
>>
>> How is it possible to take the changes
>>
>> -
> To
>> unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: clear cache problems

2003-06-04 Thread Stavros Kounis

i have a machine that serve several sites through one cocoon instance
(2.0.4)
many times when i update something i get the same problem

the only solution i have found is to clear tomcats working directory


-- stavros

On Wed, 4 Jun 2003 [EMAIL PROTECTED] wrote:

> no, because if I take Opera and load any page that I have never
> requested I get the same error!
> The problem must be on the server. Do I have to reinstall it? I really
> tried to delete all cache-files! I don't see any other possibility
>
> -Original Message-
> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: clear cache problems
>
>
> Hi:
>
> I saw this problem always in Explorer. Sometimes explorer is too smart
> that prefer to not download the page. Instead it gets it from the local
> disk cache.
>
> I recommend you to change options of how IE manages the cache.
>
> Best Regards,
>
> Antonio Gallardo.
>
> > Hello,
> > I have problems with the cache. Sometimes I change a page (eg the
> > sitemap) and it's still the old page that is displayed! Even if I
> > restart the server, the computer, the client, IE's cache!
> >
> > How is it possible to take the changes
> >
> > -
> To
> > unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: [Chaperon-users] help - about cocoon 2 generators

2003-06-04 Thread Stephan Michels


On Tue, 3 Jun 2003, severine wrote:

> Hi,
>
> I'm a engineer student and I want to create a text generator on cocoon 2 for
> transforming TXT documents into XML.
>
> So, I've read on your website that's the chaperon's project contains Text
> Generator for Cocoon 2 Apache.
>
> I've downloaded chaperon-2.1-final-bin.zip and unzipped it.
>
> I have also installed cocoon 2, apache tomcat.
>
> How can I get the text generator and how can I install it on cocoon 2 ?

Try the lastest milestone of Cocoon 'cocoon-2.1m2', see
http://cocoon.apache.org/mirror.cgi

This release includes the Chaperon package and examples.

Stephan.

___
 Stephan Michels   EMail: [EMAIL PROTECTED]
 ICQ: 115535699Tel: +49-030-314-21583
+|+|+|+|+|+|+|-|




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



RE: clear cache problems

2003-06-04 Thread Antonio Gallardo
What versions are you using?

Antonio Gallardo

> no, because if I take Opera and load any page that I have never
> requested I get the same error!
> The problem must be on the server. Do I have to reinstall it? I really
> tried to delete all cache-files! I don't see any other possibility
>
> -Original Message-
> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]  Sent:
> Wednesday, June 04, 2003 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: clear cache problems
>
>
> Hi:
>
> I saw this problem always in Explorer. Sometimes explorer is too smart
> that prefer to not download the page. Instead it gets it from the local
> disk cache.
>
> I recommend you to change options of how IE manages the cache.
>
> Best Regards,
>
> Antonio Gallardo.
>
>> Hello,
>> I have problems with the cache. Sometimes I change a page (eg the
>> sitemap) and it's still the old page that is displayed! Even if I
>> restart the server, the computer, the client, IE's cache!
>>
>> How is it possible to take the changes
>>
>> -
> To
>> unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: clear cache problems

2003-06-04 Thread Antonio Gallardo
Bertrand Delacretaz dijo:
> The best thing if you're not sure about the browser's cache is to test
> without a browser - use wget or telnet to make requests and check the
> results.
>

hi:

Good advise. I use Mozilla instead! ;)

Antonio Gallardo.



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



RE: clear cache problems

2003-06-04 Thread Maxime.Gheysen
no, because if I take Opera and load any page that I have never
requested I get the same error!
The problem must be on the server. Do I have to reinstall it? I really
tried to delete all cache-files! I don't see any other possibility

-Original Message-
From: Antonio Gallardo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Re: clear cache problems


Hi:

I saw this problem always in Explorer. Sometimes explorer is too smart
that prefer to not download the page. Instead it gets it from the local
disk cache.

I recommend you to change options of how IE manages the cache.

Best Regards,

Antonio Gallardo.

> Hello,
> I have problems with the cache. Sometimes I change a page (eg the
> sitemap) and it's still the old page that is displayed! Even if I
> restart the server, the computer, the client, IE's cache!
>
> How is it possible to take the changes
>
> -
To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: clear cache problems

2003-06-04 Thread Bertrand Delacretaz
Le Mercredi, 4 juin 2003, à 11:20 Europe/Zurich, Antonio Gallardo a 
écrit :

...I saw this problem always in Explorer. Sometimes explorer is too 
smart
that prefer to not download the page. Instead it gets it from the local
disk cache
The best thing if you're not sure about the browser's cache is to test 
without a browser - use wget or telnet to make requests and check the 
results.

-Bertrand

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


Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Upayavira
Haven't done it yet myself, but have you read the Wiki page for Cocoon 2.1?

http://wiki.cocoondev.org/Wiki.jsp?page=LoadInEclipse

Regards, Upayavira

On 4 Jun 2003 at 10:51, Lionel Crine wrote:

> Sorry I'm lost :
> 
> Whould you like me to send the configuration for eclipse to work with
> cocoon and tomcat and sdk 1.4 ? If yes, tell me.
> 
> 
> 
> 
> At 10:43 04/06/2003 +0400, you wrote:
> >But who can send the solution about the using the eclipse in this
> >configuration?
> >
> > > I use tomcat cocoon and the sdk 1.4
> > >
> > > All is working fine.
> > >
> > > Do you have an error message ?
> > >
> > >
> > > At 07:27 03/06/2003 -0700, you wrote:
> > > >Hi,
> > > >
> > > >I would like to debug cocoon with eclipse and tomcat.
> > > >I have the blueskytime plugins for eclipse and tomcat but could
> > > >not make them debug cocoon. May be there's something i'm not
> > > >doing right?
> > > >
> > > >Galia
> > > >
> > > >
> >
> >--
> >
> >Best regards,
> >Yury Mikhienko.
> >IT engineer, ZAO "Mobicom-Kavkaz"
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED] For
> >additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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



Re: clear cache problems

2003-06-04 Thread Antonio Gallardo
Hi:

I saw this problem always in Explorer. Sometimes explorer is too smart
that prefer to not download the page. Instead it gets it from the local
disk cache.

I recommend you to change options of how IE manages the cache.

Best Regards,

Antonio Gallardo.

> Hello,
> I have problems with the cache. Sometimes I change a page (eg the
> sitemap) and it's still the old page that is displayed! Even if I
> restart the server, the computer, the client, IE's cache!
>
> How is it possible to take the changes
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: clear cache problems

2003-06-04 Thread Maxime.Gheysen
This is a sample of my problems (I saved this sitemap, restarted both
client and server computers), clear every possible cache and I get
this :

my sitemap :
-

http://apache.org/cocoon/sitemap/1.0";>



the result of a page :
--
message Error in sitemap configuration :
com.wika.cocoon.transformation.LDAPTransformer

description
org.apache.avalon.framework.configuration.ConfigurationException: Error
in sitemap configuration :
com.wika.cocoon.transformation.LDAPTransformer

original exception

Original exception : java.lang.ClassNotFoundException:
com.wika.cocoon.transformation.LDAPTransformer
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
...




>Hello,
>I have problems with the cache. Sometimes I change a page (eg the
>sitemap) and it's still the old page that is displayed! Even if I
>restart the server, the computer, the client, IE's cache!
>
>How is it possible to take the changes
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: cocoon 2.1m2 with resin and IBMJVM 1.4

2003-06-04 Thread zze-MORY Nicolas FTRD/DMI/REN
ok thanks Joerg!!!
i found the solution on wiki for the SUN JVM, but for IBM JVM it doesn't
work at all and the error is diferent, perhaps there some other jar
file to replace, if anyone have an idea ?...

thanks, this is the error with the IBM JVM :

 Initialization Problem
> 
> Message: null
> 
> Description: No details available.
> 
> Sender: org.apache.cocoon.servlet.CocoonServlet
> 
> Source: Cocoon Servlet
> 
> request-uri
> 
> /cocoon2.1/
> 
> cause
> 
> SHA1PRNG SecureRandom not available
> 
> Apache Cocoon 2.1m2

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



Re: XSP & LDAP

2003-06-04 Thread Martin Holz
<[EMAIL PROTECTED]> writes:

> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are),

In cocoon-naming-block.jar. 


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



clear cache problems

2003-06-04 Thread Maxime.Gheysen
Hello,
I have problems with the cache. Sometimes I change a page (eg the
sitemap) and it's still the old page that is displayed! Even if I
restart the server, the computer, the client, IE's cache!

How is it possible to take the changes

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



WG: WG: Problems with umlaut in cocoon2.04

2003-06-04 Thread Przybilla, Frank
Hello Joerg,

that's it! When I remove the encoding specification, so that it defaults
to UTF-8, then it works. Maybe in former versions of coocoon the jsp
generator
was aware of the specified encoding, but now it is confused. 

Beside that it is only necessary to specify the correct encoding schema
for the serializer component.

Thank's a lot for this useful hint!

With best regards 

Frank





-Ursprüngliche Nachricht-
Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Juni 2003 10:32
An: [EMAIL PROTECTED]
Betreff: Re: WG: Problems with umlaut in cocoon2.04


Hello Frank,

creating the xml declaration by hand is always a bad solution. You tell 
the XML parser to read the document in a possible wrong encoding - and 
this is what I guess from your error descriptions. If the JSPGenerator 
encodes the output in UTF-8 and you have ISO-8859-1 in the declaration, 
the parser can't read the document correctly. What you must find out (or 
configure) is the output encoding of your JSP file creating the XML. Try 
to remove the declaration or set it to UTF-8 (the default for the 
parser). Maybe this already works.

Joerg

Przybilla, Frank wrote:
> Hello Joerg,
> 
> Thank you for your reply.
> 
> No, the XML declaration is hard coded in the specified JSP (the one you
can
> see in the pipline definition).
> 
> The interesting thing is that when I display a xml document with a pipline
> like this one
> 
>
>src="/maxess/Xplorer/jsp/Screens/Login_Screen_JAVA.xml"/>
> 
>
> 
> (hence displaying a static xml document) it works fine. But when
generating
> the xml with the jsp generator
> it doesn't work properly. So I think the problem lies in the jsp
generator.
> Any hints for that kind of problem?
> As I observe several other people using cocoon have problems with umlaut
> since version 2.02. But so far I haven't
> found a solution for that problem.
> 
> With best regards 
> 
> Frank
> 
> -Ursprüngliche Nachricht-
> Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 3. Juni 2003 21:15
> An: [EMAIL PROTECTED]
> Betreff: Re: Problems with umlaut in cocoon2.04
> 
> 
> Hello Frank,
> 
> are you generating the XML declaration ( encoding="ISO-8859-1"?>) by hand (so as string) or via some XML methods 
> or tags?
> 
> Joerg
> 
> Przybilla, Frank wrote:
> 
>>Hello Cocoon community,
>>
>>I hope there is somebody out there who can explain me the following:
>>
>>I'm using cocoon 2.0.4 together with tomcat.1.4.24 and jdk1.41 and I have
>>the following szenario, which
>>worked well with cocoon 2.01, tomcat4.0 and jdk1.3.x. 
>>
>>In this szenario I have a jsp which generates an xml document which
> 
> includes
> 
>>characters like ä,Ä,ö,Ö etc. 
>>Therfore I specify .
> 
> Additionally
> 
>>I'm using the folowing pipline
>>definition in the sitemap: 
>>
>>
>>>src="/maxess/Xplorer/jsp/Screens/Login_Screen_JAVA.jsp"/>
>>
>>   
>>
>>So I'm using a jsp generator which dynamically generates the xml. I also
> 
> set
> 
>>the correct ecoding for the xml serializier component (ISO-8859-1).
>>But with cocoon 2.04 the output is not correct, because the umlaut is not
>>correctly encoded and presented . As I mentioned before, everything
>>works fine with cocoon2.01. What must be changed so that the encoding is
>>correct?
>>
>>
>>With best regards
>>
>>Frank


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

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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Lionel Crine
Sorry I'm lost :

Whould you like me to send the configuration for eclipse to work with 
cocoon and tomcat and sdk 1.4 ?
If yes, tell me.



At 10:43 04/06/2003 +0400, you wrote:
But who can send the solution about the using the eclipse in this 
configuration?

> I use tomcat cocoon and the sdk 1.4
>
> All is working fine.
>
> Do you have an error message ?
>
>
> At 07:27 03/06/2003 -0700, you wrote:
> >Hi,
> >
> >I would like to debug cocoon with eclipse and tomcat.
> >I have the blueskytime plugins for eclipse and tomcat but could not
> >make them debug cocoon.
> >May be there's something i'm not doing right?
> >
> >Galia
> >
> >
--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Joerg Heinicke
Hello Peter,

Peter Klotz wrote:
 is a sitemap internal redirect for
reusing pipeline fragments and so you can do first steps of a pipeline on
another place than the resource.
See also .
I hear you saying this but when I try this


  

  

and have a pipeline


  ...
   
   
 
   

It shouldn't be a problem being inside a selector?
No, the selector is not the problem.

In the generation phase
of the pipline I get log records so I can see if the pipeline is really
executed completely.
And thus I can really see that immediately the resource is called and the
generation and transformation is definitely not executed!
Yes, of course ;-) see below.

Could it be that the behaviour changed after Cocoon 2.0.4 that I'm using?
No.

The problem seems to be that the called resource is treated as if the
content is part of the calling pipeline. That means that I cannot use a
generator or read after a transformer.
This is exactly the problem. You can only have one generator or one 
map:read in your pipeline (independent of map:call/map:resource). And 
because map:call/map:resource are only reusable pipeline fragments, 
there is no difference having the stuff from map:resource at the end of 
your pipeline where you have map:call. As I said it's only a sitemap 
internal redirect.

I tried exchanging the above read
with a  and  and got a error that the
generator is already set in the pipeline.
That's correct, the typical error message.

I think this restriction is bad in this case. The transformer does not
create any output (docbook chunked HTML generation into files), therefore
it would not be a problem to have a generator afterwards. And a called
resource should behave like a sub-pipeline which it definitely does not at
the moment. Instead it behaves like a macro.
It's a general restriction of the sitemap, it's part of the /sitemap 
contract/. What you want to do is to chunk your DocBook file ad to 
deliver the index.html of the chunk output? Difficult, I don't see any 
solution for this. We always do the DocBook transformation offline and 
deliver the resulting pages with a reader as you tried it.

Maybe extending the HTMLGenerator is an option for you. It could start 
the transformation and afterwards return the HTML file. Otherwise you 
must rethink the complete work flow.

Joerg

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


Re: "No buffer space available"

2003-06-04 Thread Lionel Crine
I don't know esql, but is it useful  to open a connection for each row ?

What's happening if you do not open a connection for your second request ?

At 19:28 03/06/2003 +0200, you wrote:
Yeah, buffer is full !

I open one connection for every rows, and another connection in each
one :

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

Extraction catalogue (c)2003 MediaXtend
jdbc:mysql://localhost/my_dblogpass

SELECT
a.cle,a.refcomplete,a.titreindex,a.soustitre,a.resume,a.nsupports,s.supp 
ort,a.cab,lcase(a.ref) AS image,l.label,c.publicTTC,a.motscles FROM
article AS a LEFT JOIN label AS l ON l.cle=a.label LEFT JOIN codeprix
AS c ON c.cle=a.codeprix LEFT JOIN support AS s ON s.cle=a.support
WHERE a.catalogue=7 AND a.dispo=1 AND a.supprime=0 AND a.parution <
'2003-05-31' AND genre=2 AND catalogue=7 ORDER BY a.titreindex,
a.motscles, a.soustitre


 
  
  
  
  
  
  
   
column="support"/>
  
String lbl = ;
lbl = lbl.toLowerCase();
lbl = lbl.replace( ' ' ,'_' );
lbl = lbl.replace( '\'' ,'_' );
  
  
name="href">file:///Scrat/abeille/images/codes-barres/lbl/.eps
:attribute>
  
name="href">file:///Scrat/abeille/images/references/
column="image"/>.tiff

jdbc:mysql://localhost/ 
my_dblogpassSELECT ra.article,r.code FROM recompensearticle AS ra
LEFT JOIN recompense AS r ON r.cle = ra.recompense WHERE ra.article =
 LIMIT
0,8
   
name="href">file:///Scrat/abeille/images/recompenses/couleurs/ 

column="code"/>.eps
  
 








Le mardi, 3 juin 2003, à 16:53 Europe/Paris, Lionel Crine a écrit :

It seems that the buffer is full.

Do you open a connection for every rows ?

At 15:28 03/06/2003 +0200, you wrote:
Hi,

I'm trying to extract rows from my MySQL database and convert it to
an XML file, using Tomcat/Cocoon.
I'm running :
  FreeBSD 5.0R
  Sun JRE 1.3.1 (patchset 8)
  Tomcat 4.1.18
  Cocoon 2.0.4
  MySQL 3.23.54
  MySQL J/Connector 3.0.6
When I start loading my page (a simple XSP/ESQL), I get the normal
XML datas but after a moment download stops and a HTML page is added
at end of file. All of my other pages work but this one that extract
a lot of rows (more than 4,000) doesn't work.
In the html part, I got an error page with this message :
[...]
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
opening connection to dburl: jdbc:mysql://localhost/my_db: Unable to
connect to any hosts due to exception: java.net.SocketException: No
buffer space available
[...]
Any ideas ?

Thanks

Nicolas SANDRI

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


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


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


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


Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
On Wed, 4 Jun 2003 10:30:11 +0200
<[EMAIL PROTECTED]> wrote:

> Ok. But what am I suppose to do with the *.patch? And where do I
> "declare" the LDAP Transformer? I saw on a sample that I had to add this
> line into the sitemap -> map:transformers 
> 
>  src="com.wika.cocoon.transformation.LDAPTransformer"/>
> 

The right declaration is:


> 
> > Hello,
> > I would like to get some information about how to use the LDAP
> > transformer (first of all, in wich library the classes are), and how
> to
> > make a simple XSP page with an authentification (from Windows Active
> > Directory)
> > Thanks for any help!
> > 
> 
> Try use new LDAPTransformer 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
> or my latest version (add attribute future addided) in attachment
> 
> some using samples:
> 
> 
> 
>  
>  
> com.sun.jndi.ldap.LdapCtxFactory
>   ldap://ldap.host
>   389
>   OBJECTS_SCOPE
>   cn=Directory Manager
>   xyz
>   ou=people,o=company
>   urls
>   title
>   mobile
>   cn
>   sn
>   zone
>   sleep
>   trace
>   admin
>   true
>   (&(uid=test))
>  
> 


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: Cocoon problems generating html output

2003-06-04 Thread Joerg Heinicke
Hello Rob,

to make it short:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15316

Are absolute paths an option for you? Passing a base directory to FOP is 
not implemented in Cocoon'S FOPSerailizer.

Joerg

[EMAIL PROTECTED] wrote:
Hi all,

I'm a bit of a Cocoon newbie so forgive me if there are any errors in the
following...
In an attempt to push the use of DocBook for technical documentation within
our group I have been trialling its use and using Cocoon 2.0.4 as the
publishing framework. I have deployed this under tomcat-4.1.24 on Solaris 8
with j2sdk1.4.1_01. We are also using docbook-xsl-1.58.1 for the
stylesheets.
We are mainly generating this into html and pdf for review and
distribution. Now I have replaced Xalan with Saxon the html seems be
working a lot better, faster and more reliable. One problem I am having is
with graphics in PDF files, if I include an imageobject element in the
docbook all works fine for html but with pdf the image fails to be
included. The following error occurs in both the error.log and the
sitemap.log
ERROR   (2003-06-04) 08:51.35:216   [sitemap.serializer.fo2pdf.fop]
(/cocoon/mount/users/r_exley/doc/r_exley/rpe006.pdf)
Thread-8/ExternalGraphic: Error while creating area : Error with image URL:
images/rpe006_1.png (No such file or directory) and no base directory is
specified
A fragment from the docbook source used in this is as follows:


  

  

After searching through google etc. this seems to be because the somewhere
between Apache FOP and docbook-xsl a baseDir configuration parameter is
required when operating in a servlet environment. The following is one of
the references I found to this.
http://forrestbot.cocoondev.org/sites/xml-fop/embedding.html#config-internal

How do I approach getting this into my cocoon implementation ?
Has anyone had any experience of this ?
Is it docbook-xsl, FOP or Cocoon that is deficient in the treatment of
images and PDFs via this mechanism ?
Am I missing something or doing this incorrectly ?
FYI - I am pretty sure using this approach plus FOP all works from the
command line.
I would appreciate any help/advice on this. Equally if I should be
addressing this elsewhere then thats fine as well.
thanks in advance

---
Rob Exley
Senior Technical Consultant
Equifax Plc
e-mail: [EMAIL PROTECTED]
tel: 01274 759610


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


Re: WG: Problems with umlaut in cocoon2.04

2003-06-04 Thread Joerg Heinicke
Hello Frank,

creating the xml declaration by hand is always a bad solution. You tell 
the XML parser to read the document in a possible wrong encoding - and 
this is what I guess from your error descriptions. If the JSPGenerator 
encodes the output in UTF-8 and you have ISO-8859-1 in the declaration, 
the parser can't read the document correctly. What you must find out (or 
configure) is the output encoding of your JSP file creating the XML. Try 
to remove the declaration or set it to UTF-8 (the default for the 
parser). Maybe this already works.

Joerg

Przybilla, Frank wrote:
Hello Joerg,

Thank you for your reply.

No, the XML declaration is hard coded in the specified JSP (the one you can
see in the pipline definition).
The interesting thing is that when I display a xml document with a pipline
like this one
   
  
src="/maxess/Xplorer/jsp/Screens/Login_Screen_JAVA.xml"/>

   

(hence displaying a static xml document) it works fine. But when generating
the xml with the jsp generator
it doesn't work properly. So I think the problem lies in the jsp generator.
Any hints for that kind of problem?
As I observe several other people using cocoon have problems with umlaut
since version 2.02. But so far I haven't
found a solution for that problem.
With best regards 

Frank

-Ursprüngliche Nachricht-
Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. Juni 2003 21:15
An: [EMAIL PROTECTED]
Betreff: Re: Problems with umlaut in cocoon2.04
Hello Frank,

are you generating the XML declaration () by hand (so as string) or via some XML methods 
or tags?

Joerg

Przybilla, Frank wrote:

Hello Cocoon community,

I hope there is somebody out there who can explain me the following:

I'm using cocoon 2.0.4 together with tomcat.1.4.24 and jdk1.41 and I have
the following szenario, which
worked well with cocoon 2.01, tomcat4.0 and jdk1.3.x. 

In this szenario I have a jsp which generates an xml document which
includes

characters like ä,Ä,ö,Ö etc. 
Therfore I specify .
Additionally

I'm using the folowing pipline
definition in the sitemap: 


   
   
  
So I'm using a jsp generator which dynamically generates the xml. I also
set

the correct ecoding for the xml serializier component (ISO-8859-1).
But with cocoon 2.04 the output is not correct, because the umlaut is not
correctly encoded and presented . As I mentioned before, everything
works fine with cocoon2.01. What must be changed so that the encoding is
correct?
With best regards

Frank


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


RE: Re: XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
Ok. But what am I suppose to do with the *.patch? And where do I
"declare" the LDAP Transformer? I saw on a sample that I had to add this
line into the sitemap -> map:transformers 



But it returns me an error : 
Original exception : java.lang.ClassNotFoundException:
com.wika.cocoon.transformation.LDAPTransformer

All I want to do is a login page from a portal (wich use an XML file for
identification). I want to change the method from XML authentification
to LDAP (active directory) authentification.



-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 9:52 AM
To: [EMAIL PROTECTED]
Subject: Fw: Re: XSP & LDAP


> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are), and how
to
> make a simple XSP page with an authentification (from Windows Active
> Directory)
> Thanks for any help!
> 

Try use new LDAPTransformer 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
or my latest version (add attribute future addided) in attachment

some using samples:



 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.host
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  xyz
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=test))
 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
Hi Joerg,

>> map:call does not work the same way as map:redirect-to does not work
>> because the steps before are not executed. Both must be the first and
>> only
>> statements in a map:match.
[...]
> fortunately the above is not true ;-)
>
>  is a sitemap internal redirect for
> reusing pipeline fragments and so you can do first steps of a pipeline on
> another place than the resource.
>
> See also .

I hear you saying this but when I try this


  

  


and have a pipeline


  ...
   
   
 
   


It shouldn't be a problem being inside a selector? In the generation phase
of the pipline I get log records so I can see if the pipeline is really
executed completely.
And thus I can really see that immediately the resource is called and the
generation and transformation is definitely not executed!

Could it be that the behaviour changed after Cocoon 2.0.4 that I'm using?
The problem seems to be that the called resource is treated as if the
content is part of the calling pipeline. That means that I cannot use a
generator or read after a transformer. I tried exchanging the above read
with a  and  and got a error that the
generator is already set in the pipeline.

I think this restriction is bad in this case. The transformer does not
create any output (docbook chunked HTML generation into files), therefore
it would not be a problem to have a generator afterwards. And a called
resource should behave like a sub-pipeline which it definitely does not at
the moment. Instead it behaves like a macro.


Peter

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



Re: cocoon 2.1m2 with resin and IBMJVM 1.4

2003-06-04 Thread Joerg Heinicke
Hello Nicolas,

I more or less expected it ;-)

http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem

Joerg

zze-MORY Nicolas FTRD/DMI/REN wrote:
the error message with resin 2.1.9 and Sun SDK 1.4:

500 Servlet Exception

java.lang.IllegalAccessError: class
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator
cannot access its superclass
org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
...

I ever tried to change the Xalan parser with the lastest version and it
changed nothing
the error message with resin and IBM SDK :



Initialization Problem

Message: null

Description: No details available.

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

request-uri

/cocoon2.1/

cause

SHA1PRNG SecureRandom not available

Apache Cocoon 2.1m2

My configuration : Athlon Bi-pro 2000 REd HAT7.1 rsin 2.1.9 IBM JVM 1.4
and JVM Sun 1.4


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


Cocoon problems generating html output

2003-06-04 Thread Rob . Exley
Hi all,

I'm a bit of a Cocoon newbie so forgive me if there are any errors in the
following...

In an attempt to push the use of DocBook for technical documentation within
our group I have been trialling its use and using Cocoon 2.0.4 as the
publishing framework. I have deployed this under tomcat-4.1.24 on Solaris 8
with j2sdk1.4.1_01. We are also using docbook-xsl-1.58.1 for the
stylesheets.

We are mainly generating this into html and pdf for review and
distribution. Now I have replaced Xalan with Saxon the html seems be
working a lot better, faster and more reliable. One problem I am having is
with graphics in PDF files, if I include an imageobject element in the
docbook all works fine for html but with pdf the image fails to be
included. The following error occurs in both the error.log and the
sitemap.log

ERROR   (2003-06-04) 08:51.35:216   [sitemap.serializer.fo2pdf.fop]
(/cocoon/mount/users/r_exley/doc/r_exley/rpe006.pdf)
Thread-8/ExternalGraphic: Error while creating area : Error with image URL:
images/rpe006_1.png (No such file or directory) and no base directory is
specified

A fragment from the docbook source used in this is as follows:


  

  


After searching through google etc. this seems to be because the somewhere
between Apache FOP and docbook-xsl a baseDir configuration parameter is
required when operating in a servlet environment. The following is one of
the references I found to this.

http://forrestbot.cocoondev.org/sites/xml-fop/embedding.html#config-internal

How do I approach getting this into my cocoon implementation ?
Has anyone had any experience of this ?
Is it docbook-xsl, FOP or Cocoon that is deficient in the treatment of
images and PDFs via this mechanism ?
Am I missing something or doing this incorrectly ?

FYI - I am pretty sure using this approach plus FOP all works from the
command line.

I would appreciate any help/advice on this. Equally if I should be
addressing this elsewhere then thats fine as well.

thanks in advance

---
Rob Exley
Senior Technical Consultant
Equifax Plc

e-mail: [EMAIL PROTECTED]
tel: 01274 759610



This message contains information from Equifax, Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e:mail
[EMAIL PROTECTED]



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



Fw: Re: XSP & LDAP

2003-06-04 Thread Yury Mikhienko
> Hello,
> I would like to get some information about how to use the LDAP
> transformer (first of all, in wich library the classes are), and how to
> make a simple XSP page with an authentification (from Windows Active
> Directory)
> Thanks for any help!
> 

Try use new LDAPTransformer 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20033
or my latest version (add attribute future addided) in attachment

some using samples:



 
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.host
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  xyz
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=test))
 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"


LDAPTransformer.patch
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [HELP]Exception in ServerPagesGenerator.generate()

2003-06-04 Thread Antonio Gallardo
Thorsten Bökenkamp dijo:
>
> Description:org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> loading driver: oracle.jdbc.driver.OracleDriver
>
>
>
> Was kann ich tun ???

??? I dont understand, but I guess you are asking, "why?"

Well you need to put your Oracle jar library inside cocoon. Concretly at:

WEB-INF/lib

More info at:
http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseConnectionOverview
http://wiki.cocoondev.org/Wiki.jsp?page=Oracle

Best Regards,

Antonio Gallardo




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



WG: Problems with umlaut in cocoon2.04

2003-06-04 Thread Przybilla, Frank
Hello Joerg,

Thank you for your reply.

No, the XML declaration is hard coded in the specified JSP (the one you can
see in the pipline definition).

The interesting thing is that when I display a xml document with a pipline
like this one

   
  

   

(hence displaying a static xml document) it works fine. But when generating
the xml with the jsp generator
it doesn't work properly. So I think the problem lies in the jsp generator.
Any hints for that kind of problem?
As I observe several other people using cocoon have problems with umlaut
since version 2.02. But so far I haven't
found a solution for that problem.

With best regards 

Frank

-Ursprüngliche Nachricht-
Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. Juni 2003 21:15
An: [EMAIL PROTECTED]
Betreff: Re: Problems with umlaut in cocoon2.04


Hello Frank,

are you generating the XML declaration () by hand (so as string) or via some XML methods 
or tags?

Joerg

Przybilla, Frank wrote:
> Hello Cocoon community,
> 
> I hope there is somebody out there who can explain me the following:
> 
> I'm using cocoon 2.0.4 together with tomcat.1.4.24 and jdk1.41 and I have
> the following szenario, which
> worked well with cocoon 2.01, tomcat4.0 and jdk1.3.x. 
> 
> In this szenario I have a jsp which generates an xml document which
includes
> characters like ä,Ä,ö,Ö etc. 
> Therfore I specify .
Additionally
> I'm using the folowing pipline
> definition in the sitemap: 
> 
> 
>  src="/maxess/Xplorer/jsp/Screens/Login_Screen_JAVA.jsp"/>
> 
>
> 
> So I'm using a jsp generator which dynamically generates the xml. I also
set
> the correct ecoding for the xml serializier component (ISO-8859-1).
> But with cocoon 2.04 the output is not correct, because the umlaut is not
> correctly encoded and presented . As I mentioned before, everything
> works fine with cocoon2.01. What must be changed so that the encoding is
> correct?
> 
> 
> With best regards
> 
> Frank


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

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



RE: cocoon 2.1m2 with resin and IBMJVM 1.4

2003-06-04 Thread zze-MORY Nicolas FTRD/DMI/REN
the error message with resin 2.1.9 and Sun SDK 1.4:


500 Servlet Exception

java.lang.IllegalAccessError: class
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator
cannot access its superclass
org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:2
91)
at
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:1
74)
at
org.apache.xalan.xsltc.trax.TransformerHandlerImpl.startDocument(Transfo
rmerHandlerImpl.java:232)
at
org.apache.cocoon.xml.AbstractXMLPipe.startDocument(AbstractXMLPipe.java
:83)
at
org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318)
at
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337)
at
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:198
)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
40)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:292)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:489)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:150)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:162)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:162)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:325)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:307)
at org.apache.cocoon.Cocoon.process(Cocoon.java:628)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1139)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
va:96)
at
com.caucho.server.http.Invocation.service(Invocation.java:315)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
at
com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:536)



I ever tried to change the Xalan parser with the lastest version and it
changed nothing


the error message with resin and IBM SDK :



Initialization Problem

Message: null

Description: No details available.

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

request-uri

/cocoon2.1/

cause

SHA1PRNG SecureRandom not available

Apache Cocoon 2.1m2

My configuration : Athlon Bi-pro 2000 REd HAT7.1 rsin 2.1.9 IBM JVM 1.4
and JVM Sun 

Fwd: jfor encoding problem (POST encoding problem, indeed)

2003-06-04 Thread Bertrand Delacretaz
Hi Charlene,

using the Orderpage example at 
http://localhost:8080/cocoon/samples/stream/order.  If you add  at the top of the default xml 
and change Order Id to be Gérer, the next html page will display 
Gérer  as Order Id
This has nothing to do with jfor - in your scenario, Cocoon's 
StreamGenerator is used to read your XML from an HTML form field.

Your encoding problem is caused by the StreamGenerator using the wrong 
encoding when *reading data* from the form's POST request. To use a 
different encoding, you have to change the HTML code of the form, 
replacing



  with



for example.

The encoding declaration that you used in the XML input field is 
probably handled correctly later on, but it's too late as the 
StreamGenerator has already read the data with the wrong encoding.

Hope this helps,
-Bertrand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[HELP]Exception in ServerPagesGenerator.generate()

2003-06-04 Thread Thorsten Bökenkamp



 
Description:org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error loading 
driver: oracle.jdbc.driver.OracleDriver
 
 
 
Was kann ich tun ???
 


XSP & LDAP

2003-06-04 Thread Maxime.Gheysen
Hello,
I would like to get some information about how to use the LDAP
transformer (first of all, in wich library the classes are), and how to
make a simple XSP page with an authentification (from Windows Active
Directory)
Thanks for any help!

Maxime

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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Yury Mikhienko
But who can send the solution about the using the eclipse in this configuration?

> I use tomcat cocoon and the sdk 1.4
> 
> All is working fine.
> 
> Do you have an error message ?
> 
> 
> At 07:27 03/06/2003 -0700, you wrote:
> >Hi,
> >
> >I would like to debug cocoon with eclipse and tomcat.
> >I have the blueskytime plugins for eclipse and tomcat but could not
> >make them debug cocoon.
> >May be there's something i'm not doing right?
> >
> >Galia
> >
> >

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Steven Cummings
sure thing, I'll do that first thing in the morning when I get in.

/S

Joerg Heinicke <[EMAIL PROTECTED]> wrote:

>Sorry, I didn't scroll below the start of the exception trace :)
>
>If you don't have a real error in your stylesheets, it will work with 
>Xalan. xsl:include is probably the reason, it had problems with 
>resolving relative paths. But we thought the problem is already solved 
>with the dev version of Xalan/XSLTC used with Cocoon 2.1m2.dev. Can you 
>provide a minimum test case reproducing the error and add it here: 
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20308?
>
>Regards,
>
>Joerg
>
>Steven Cummings wrote:
>> Joerg,
>> 
>> Yes, in the original message I had attached the stylesheet, which
>> 'd another, which 'd a third stylesheet (I
>> attached all three of them). They are viewable here: 
>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105467465417098&w=2
>>  if your mail client didn't show them.
>> 
>> Anyway, I'll give the xalan transformer a shot and see what happens,
>> thanks for the tip!
>> 
>> /S
>> 
>> Joerg Heinicke <[EMAIL PROTECTED]> wrote:
>> 
>> 
>>> Hello Steven,
>>> 
>>> it's XSLTC who does give so exhaustive messages. Try to use Xalan
>>> for this particular transformation, maybe you get a real error
>>> message.
>>> 
>>> Are you refering external resources from the stylesheet
>>> (xsl:import, xsl:include, document())?
>>> 
>>> Joerg
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [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]



Re: Input modules parameters in sitemap. Is it possible?

2003-06-04 Thread Dmitry Lisenko


On Tue, 3 Jun 2003, Christian Haul wrote:

> On 03.Jun.2003 -- 10:02 AM, Dmitry Lisenko wrote:
> >
> >
> > On Tue, 3 Jun 2003, Dmitry Lisenko wrote:
> >
> > > Hello, Cocooners
> > >
> > > Q: Can I set parameters of input modules in sitemap instead
> > > of cocoon.xconf ?
> > >
> > > WBR,
> > >Dmitry.
> >
> > BTW, cocoon v2.1 cvs 05/17/2003 under Jetty.
>
> Currently, it is not supported to configure new modules in a
> sitemap. However, most if not all accept a new configuration passed to
> them at invocation time. But this depends on the component that uses
> the module how you actually do this.
>
> If you want to use them for substitutions in your sitemap like
> {request:serverName} I'm afraid you will have to modify cocoon.xconf
>
>   Chris.
Thanks.

I'm try to use XMLFile input module as substitution in sitemap
for evaluating number of results in xmldb:xindice// query.
And for now I have a problem with cocoon: pseudo-protocol caching
with noncaching pipeline.

WBR,
Dmitry.



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



Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Joerg Heinicke
Sorry, I didn't scroll below the start of the exception trace :)

If you don't have a real error in your stylesheets, it will work with 
Xalan. xsl:include is probably the reason, it had problems with 
resolving relative paths. But we thought the problem is already solved 
with the dev version of Xalan/XSLTC used with Cocoon 2.1m2.dev. Can you 
provide a minimum test case reproducing the error and add it here: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20308?

Regards,

Joerg

Steven Cummings wrote:
Joerg,

Yes, in the original message I had attached the stylesheet, which
'd another, which 'd a third stylesheet (I
attached all three of them). They are viewable here: 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105467465417098&w=2
 if your mail client didn't show them.

Anyway, I'll give the xalan transformer a shot and see what happens,
thanks for the tip!
/S

Joerg Heinicke <[EMAIL PROTECTED]> wrote:


Hello Steven,

it's XSLTC who does give so exhaustive messages. Try to use Xalan
for this particular transformation, maybe you get a real error
message.
Are you refering external resources from the stylesheet
(xsl:import, xsl:include, document())?
Joerg


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


Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Steven Cummings
Joerg

Well, the tip really worked well. I don't quite get it, but the transform works all of 
the sudden. So that leads to the question, is there (and I haven't checked Bugzilla 
for Xalan or XSLTC) a bug in XSLTC related to this (maybe includes)? I'll definitely 
look into it but if someone already smells a problem I would work with someone more 
knowledgeable to build a test-case. Thanks again, Joerg.

/S

[EMAIL PROTECTED] (Steven Cummings) wrote:

>Joerg,
>
>Yes, in the original message I had attached the stylesheet, which 'd 
>another, which 'd a third stylesheet (I attached all three of them). 
>They are viewable here:
>http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105467465417098&w=2
>if your mail client didn't show them.
>
>Anyway, I'll give the xalan transformer a shot and see what happens, thanks for the 
>tip!
>
>/S
>
>Joerg Heinicke <[EMAIL PROTECTED]> wrote:
>
>>Hello Steven,
>>
>>it's XSLTC who does give so exhaustive messages. Try to use Xalan for 
>>this particular transformation, maybe you get a real error message.
>>
>>Are you refering external resources from the stylesheet (xsl:import, 
>>xsl:include, document())?
>>
>>Joerg
>>
>>Steven Cummings wrote:
>>> Hello,
>>> 
>>> Is anybody else getting this sort of an error in 2.1m2 or 2.1cvs
>>> (shown below the main text of this message)? I went through the
>>> Cocoon sources for TraxTransformer, which led me to XSLTProcessorImpl
>>> from Avalon-Excalibur and the piece of code I found (around
>>> XSLTProcessorImpl.java:320) indicated that the Templates instance
>>> obtained from the TemplateHandler is null, which of course propogated
>>> to the message seen below. This leads me to believe that there is a
>>> problem with the stylesheet, but there really isn't. It's just a
>>> modified version of dynamic-page2html.xsl from Cocoon itself, and has
>>> worked for me up until I tried upgrading to m2 or cvs.
>>> 
>>> Here's where the problem (see messages below) gets worse. I have
>>> another webapp, also built on 2.1m2, and when they are running side
>>> by side in the same tomcat container, the other one works and this
>>> one doesn't. They each have some (separate) XSLTs that they use for
>>> rendering. They both have the exact same set of components included
>>> and the same set excluded  (commented-out) from the default
>>> cocoon.xconf. Their logkit.xconf and instrumentation.xconf files are
>>> identical. Their web.xml files are the same except for the
>>> application display-name. Finally, their sets of jar-files in
>>> WEB-INF/lib are identifical. I know most of these details will have
>>> nothing to do with the problem, but I thought I'd include them
>>> anyway.
>>> 
>>> I've also attached the stylesheet that I get the error for, and the
>>> stylesheets that it includes. I don't know if other stylesheets get
>>> the same error and it is not specific to this one because the
>>> remaining pipelines are behind auth-protect actions and I haven't yet
>>> taken the time to move some to un-protected pipelines/matches so that
>>> they could be tested for the problem (and a lot of them depend on
>>> auth-contexts anyway).
>>> 
>>> This seems like such a fundamental type of problem that I must be
>>> missing something. Can anybody with experience with these newer
>>> versions of cocoon see what might be my problem?
>>> 
>>> TIA /S
>>> 
>>> Relevant info: Windows XP Java 1.4.1_02 Tomcat 4.1.24 (LE-jdk14) 
>>> Cocoon 2.1m2 (2.1cvs has been tried as well)
>>> 
>>> Here is the page-output for the error:
>>> 
>>> ->8-
>>>  Message: null Description: No details available. Sender:
>>> org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet
>>> 
>>> Request URI loginpage
>>> 
>>> cause Unable to create templates for stylesheet:
>>> file:/path/to/stylesheets/blah.xsl
>>> 
>>> request-uri /my-app/loginpage 
>>> --8<
>>> 
>>> 
>>> Here are the details from error.log:
>>> 
>>> ->8-
>>>  org.apache.cocoon.ProcessingException: Unable to get transformer
>>> handler for stylesheets/blah.xsl:
>>> org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
>>> creating Transform Handler at
>>> org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>-- 
>Steven Cummings
>Columbia, MO
>Email: [EMAIL PROTECTED]
>AIM:   cummingscs
>ICQ:   3330114
>MSN:   [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?pr

Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Steven Cummings
Joerg,

Yes, in the original message I had attached the stylesheet, which 'd 
another, which 'd a third stylesheet (I attached all three of them). They 
are viewable here:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105467465417098&w=2
if your mail client didn't show them.

Anyway, I'll give the xalan transformer a shot and see what happens, thanks for the 
tip!

/S

Joerg Heinicke <[EMAIL PROTECTED]> wrote:

>Hello Steven,
>
>it's XSLTC who does give so exhaustive messages. Try to use Xalan for 
>this particular transformation, maybe you get a real error message.
>
>Are you refering external resources from the stylesheet (xsl:import, 
>xsl:include, document())?
>
>Joerg
>
>Steven Cummings wrote:
>> Hello,
>> 
>> Is anybody else getting this sort of an error in 2.1m2 or 2.1cvs
>> (shown below the main text of this message)? I went through the
>> Cocoon sources for TraxTransformer, which led me to XSLTProcessorImpl
>> from Avalon-Excalibur and the piece of code I found (around
>> XSLTProcessorImpl.java:320) indicated that the Templates instance
>> obtained from the TemplateHandler is null, which of course propogated
>> to the message seen below. This leads me to believe that there is a
>> problem with the stylesheet, but there really isn't. It's just a
>> modified version of dynamic-page2html.xsl from Cocoon itself, and has
>> worked for me up until I tried upgrading to m2 or cvs.
>> 
>> Here's where the problem (see messages below) gets worse. I have
>> another webapp, also built on 2.1m2, and when they are running side
>> by side in the same tomcat container, the other one works and this
>> one doesn't. They each have some (separate) XSLTs that they use for
>> rendering. They both have the exact same set of components included
>> and the same set excluded  (commented-out) from the default
>> cocoon.xconf. Their logkit.xconf and instrumentation.xconf files are
>> identical. Their web.xml files are the same except for the
>> application display-name. Finally, their sets of jar-files in
>> WEB-INF/lib are identifical. I know most of these details will have
>> nothing to do with the problem, but I thought I'd include them
>> anyway.
>> 
>> I've also attached the stylesheet that I get the error for, and the
>> stylesheets that it includes. I don't know if other stylesheets get
>> the same error and it is not specific to this one because the
>> remaining pipelines are behind auth-protect actions and I haven't yet
>> taken the time to move some to un-protected pipelines/matches so that
>> they could be tested for the problem (and a lot of them depend on
>> auth-contexts anyway).
>> 
>> This seems like such a fundamental type of problem that I must be
>> missing something. Can anybody with experience with these newer
>> versions of cocoon see what might be my problem?
>> 
>> TIA /S
>> 
>> Relevant info: Windows XP Java 1.4.1_02 Tomcat 4.1.24 (LE-jdk14) 
>> Cocoon 2.1m2 (2.1cvs has been tried as well)
>> 
>> Here is the page-output for the error:
>> 
>> ->8-
>>  Message: null Description: No details available. Sender:
>> org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet
>> 
>> Request URI loginpage
>> 
>> cause Unable to create templates for stylesheet:
>> file:/path/to/stylesheets/blah.xsl
>> 
>> request-uri /my-app/loginpage 
>> --8<
>> 
>> 
>> Here are the details from error.log:
>> 
>> ->8-
>>  org.apache.cocoon.ProcessingException: Unable to get transformer
>> handler for stylesheets/blah.xsl:
>> org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
>> creating Transform Handler at
>> org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [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]



RE: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Geoff Howard
Ok, how about sending them a page with a meta refresh tag?

I think an elegant solution exists with flow in 2.1, but 
couldn't help you get there at this stage.

Geoff

> -Original Message-
> From: Alex Romayev [mailto:[EMAIL PROTECTED]
> --- Geoff Howard <[EMAIL PROTECTED]> wrote:
> > At 01:03 PM 6/3/2003, you wrote:
> > > > so you'd do
> > > > ...
> > > > 
> > > > 
> > > > 
> > > > ...
> > 
> > what about cocoon:/ 
> 
> That's exactly my issue.  The idea is to "re-direct"
> to a page, so including a file won't help: there is no
> file, instead there is a pipeline which generates the
> page.
> 


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



Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Joerg Heinicke
Hello Steven,

it's XSLTC who does give so exhaustive messages. Try to use Xalan for 
this particular transformation, maybe you get a real error message.

Are you refering external resources from the stylesheet (xsl:import, 
xsl:include, document())?

Joerg

Steven Cummings wrote:
Hello,

Is anybody else getting this sort of an error in 2.1m2 or 2.1cvs
(shown below the main text of this message)? I went through the
Cocoon sources for TraxTransformer, which led me to XSLTProcessorImpl
from Avalon-Excalibur and the piece of code I found (around
XSLTProcessorImpl.java:320) indicated that the Templates instance
obtained from the TemplateHandler is null, which of course propogated
to the message seen below. This leads me to believe that there is a
problem with the stylesheet, but there really isn't. It's just a
modified version of dynamic-page2html.xsl from Cocoon itself, and has
worked for me up until I tried upgrading to m2 or cvs.
Here's where the problem (see messages below) gets worse. I have
another webapp, also built on 2.1m2, and when they are running side
by side in the same tomcat container, the other one works and this
one doesn't. They each have some (separate) XSLTs that they use for
rendering. They both have the exact same set of components included
and the same set excluded  (commented-out) from the default
cocoon.xconf. Their logkit.xconf and instrumentation.xconf files are
identical. Their web.xml files are the same except for the
application display-name. Finally, their sets of jar-files in
WEB-INF/lib are identifical. I know most of these details will have
nothing to do with the problem, but I thought I'd include them
anyway.
I've also attached the stylesheet that I get the error for, and the
stylesheets that it includes. I don't know if other stylesheets get
the same error and it is not specific to this one because the
remaining pipelines are behind auth-protect actions and I haven't yet
taken the time to move some to un-protected pipelines/matches so that
they could be tested for the problem (and a lot of them depend on
auth-contexts anyway).
This seems like such a fundamental type of problem that I must be
missing something. Can anybody with experience with these newer
versions of cocoon see what might be my problem?
TIA /S

Relevant info: Windows XP Java 1.4.1_02 Tomcat 4.1.24 (LE-jdk14) 
Cocoon 2.1m2 (2.1cvs has been tried as well)

Here is the page-output for the error:

->8-
 Message: null Description: No details available. Sender:
org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet
Request URI loginpage

cause Unable to create templates for stylesheet:
file:/path/to/stylesheets/blah.xsl
request-uri /my-app/loginpage 
--8<

Here are the details from error.log:

->8-
 org.apache.cocoon.ProcessingException: Unable to get transformer
handler for stylesheets/blah.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)


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


RE: cocoon to xml or CSV

2003-06-04 Thread Yan, Charlene
The following links are very helpful.  If you have downloaded Cocoon-2.1m2.  Here is 
the link to see Excel in action:
http://localhost:8080/cocoon/samples/poi/welcome

HTH.

Charlene

Tony Collen wrote:
> On Wed, 21 May 2003, Yan, Charlene wrote:
> 
> Could someone point me to a correct direction please?
> 
> For the Excel stuff goes, you might want to check out the following
> resources:
> 
> http://www.xml.com/pub/a/2003/01/22/cocoon-excel.html
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=ExcelGeneration
> 
> and also http://wiki.cocoondev.org/Wiki.jsp?page=XLSSerializer

Not to forget the official Cocoon documentation:
http://cocoon.apache.org/2.0/userdocs/serializers/xls-serializer.html

Joerg


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


-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: cocoon to xml or CSV


I am new to cocoon and am trying to find a way to create an CSV or excel
file.  I have found a little information on the HSSF Serializer but do
not know how to implement it.  Can anyone help me or show me an example
of how to do this properly.

 

Thanks for the help.

 

Tim Bachta

 

 


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


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



cocoon to xml or CSV

2003-06-04 Thread Tim Bachta
I am new to cocoon and am trying to find a way to create an CSV or excel
file.  I have found a little information on the HSSF Serializer but do
not know how to implement it.  Can anyone help me or show me an example
of how to do this properly.

 

Thanks for the help.

 

Tim Bachta

 

 


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



Unable to get transformer handler for stylesheets/blah.xsl

2003-06-04 Thread Steven Cummings
Hello,

Is anybody else getting this sort of an error in 2.1m2 or 2.1cvs (shown below the main 
text of this message)? I went through the Cocoon sources for TraxTransformer, which 
led me to XSLTProcessorImpl from Avalon-Excalibur and the piece of code I found 
(around XSLTProcessorImpl.java:320) indicated that the Templates instance obtained 
from the TemplateHandler is null, which of course propogated to the message seen 
below. This leads me to believe that there is a problem with the stylesheet, but there 
really isn't. It's just a modified version of dynamic-page2html.xsl from Cocoon 
itself, and has worked for me up until I tried upgrading to m2 or cvs. 

Here's where the problem (see messages below) gets worse. I have another webapp, also 
built on 2.1m2, and when they are running side by side in the same tomcat container, 
the other one works and this one doesn't. They each have some (separate) XSLTs that 
they use for rendering. They both have the exact same set of components included and 
the same set excluded  (commented-out) from the default cocoon.xconf. Their 
logkit.xconf and instrumentation.xconf files are identical. Their web.xml files are 
the same except for the application display-name. Finally, their sets of jar-files in 
WEB-INF/lib are identifical. I know most of these details will have nothing to do with 
the problem, but I thought I'd include them anyway.

I've also attached the stylesheet that I get the error for, and the stylesheets that 
it includes. I don't know if other stylesheets get the same error and it is not 
specific to this one because the remaining pipelines are behind auth-protect actions 
and I haven't yet taken the time to move some to un-protected pipelines/matches so 
that they could be tested for the problem (and a lot of them depend on auth-contexts 
anyway).

This seems like such a fundamental type of problem that I must be missing something. 
Can anybody with experience with these newer versions of cocoon see what might be my 
problem?

TIA
/S

Relevant info:
Windows XP
Java 1.4.1_02
Tomcat 4.1.24 (LE-jdk14)
Cocoon 2.1m2 (2.1cvs has been tried as well)

Here is the page-output for the error:

->8-
Message: null
Description: No details available.
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet

Request URI
loginpage

cause
Unable to create templates for stylesheet: file:/path/to/stylesheets/blah.xsl

request-uri
/my-app/loginpage
--8<

Here are the details from error.log:

->8-
org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
stylesheets/blah.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception 
in creating Transform Handler
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)

(more traceback left out...)

Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating 
Transform Handler
at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:380)
at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:302)
... 45 more
Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Unable to create 
templates for stylesheet: file:/path/to/stylesheets/blah.xsl
at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:320)
... 46 more
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler
at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:380)

(more traceback left out...)

Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Unable to create 
templates for stylesheet: file:/path/to/stylesheets/blah.xsl
at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:320)
... 46 more
--8<

-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [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


http://www.w3.org/1999/XSL/Transform";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
  

  

  

  
:
  

  
Parameter Values for "":


  

  

  

  

  
All Parameter Names:


  
   

Re: cocoon 2.1m2 with resin and IBMJVM 1.4

2003-06-04 Thread Joerg Heinicke
I don't have your configuration, but maybe it's obvious from the error 
messages? What about them?

Joerg

zze-MORY Nicolas FTRD/DMI/REN wrote:
anyone ever installed cocoon 2.1m2 with resin 2.1.9 and IBM JVM 1.4 ?
or resin 2.1.9 with sun JDK 1.4 ??? 
it doesn't run with my configuration...

thanks


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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Alex Romayev

--- Geoff Howard <[EMAIL PROTECTED]> wrote:
> At 01:03 PM 6/3/2003, you wrote:
> 
> > > so you'd do
> > > ...
> > > 
> > > 
> > > 
> > > ...
> >I know both xinclude (and cinclude) as well as
> xsl:document() should work,
> >the problem is that the file to include is a
> relative URL to the
> >Cocoon-context path. Something like
> work/test/index.html.
> >When using document() it expects it to be somehow
> in the same dir as the
> >stylesheet.
> >With xinclude one has to set the xml:base base URL
> otherwise it cannot
> >resolve a relatie URL. The question what is the
> base URL?? /cocoon/app or
> >cocoon://app or context:/ or
> http://hardcodedsvr/cocoon/app?
> >I'd like xinclude much more than document().
> cinclude I don't know very well.
> 
> what about cocoon:/ 

That's exactly my issue.  The idea is to "re-direct"
to a page, so including a file won't help: there is no
file, instead there is a pipeline which generates the
page.

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


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



[Summary] Cocoon Stammtisch, Vienna, Austria

2003-06-04 Thread Reinhard Pötz
After counting the mails 11 people are interested in a Cocoon Stammtisch
in Vienna. I added all names to the list below - please let me know if a
name is missing.

 24   25   26
 - Alexander Schatten xxx
 - Andreas Hochsteger xxx
 - Berni Huberxxx
 - Franz Philipp Moserxxx
 - Johann Schweiglxx
 - Manfred Weigel xx
 - Martin Schimak xxx 
 - Matthew Langham xx
 - Michael Gerzabek   xxx
 - Reinhard Pötz  xxx
 - Werner Gutmannxxx

If I interpret your mails correctly the 25th will fit for all of us. As
a reminder here again the date and the location:

 June, 25th, 8pm 
 at Centimeter I (8th district behind the city hall). 
 (http://www.tourist-net.co.at/lokale/centimeter/centimeter1.htm)

If any of you wants to come with one or more friends please let me know
until Thursday when I'll reserve the table for us.

Best regards
Reinhard


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



Re: empty html tags

2003-06-04 Thread Joerg Heinicke
Hello Alexandre,

what Cocoon and Xalan version are you using? I have Cocoon 2.0.5-dev 
(with Xalan 2.3.1) and 2.1m3-dev (with Xalan 2.5.1-dev (2003-05-06)).

With both versions  and  are serialized to 
 and .

Joerg

Alexandre Victoor wrote:
Hello
Is there a simple solution to avoid unwanted transformations like 
 -> 
I tried to add cdata-section-elements parameters to the html serializer 
but it doesn't work. I would rather like not to add comments or blank 
spaces inside my tags.
Thanks for your help.

Alex


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


Re: Evaluating and working with XPointer in a Transformer

2003-06-04 Thread Bruno Dumon
On Tue, 2003-06-03 at 18:53, Stefan Pietschmann wrote:
> At the moment I'm looking for a good implementation (read: jar) that
> allows me to easily evaluate the XPointer expression, which means i
> can jump there and write the  tag around. Of course I'm thankful
> for every other tip that helps :)

I'm not aware of any. But this doesn't help of course :-)

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Re: Problems with umlaut in cocoon2.04

2003-06-04 Thread Joerg Heinicke
Hello Frank,

are you generating the XML declaration () by hand (so as string) or via some XML methods 
or tags?

Joerg

Przybilla, Frank wrote:
Hello Cocoon community,

I hope there is somebody out there who can explain me the following:

I'm using cocoon 2.0.4 together with tomcat.1.4.24 and jdk1.41 and I have
the following szenario, which
worked well with cocoon 2.01, tomcat4.0 and jdk1.3.x. 

In this szenario I have a jsp which generates an xml document which includes
characters like ä,Ä,ö,Ö etc. 
Therfore I specify . Additionally
I'm using the folowing pipline
definition in the sitemap: 




   
So I'm using a jsp generator which dynamically generates the xml. I also set
the correct ecoding for the xml serializier component (ISO-8859-1).
But with cocoon 2.04 the output is not correct, because the umlaut is not
correctly encoded and presented . As I mentioned before, everything
works fine with cocoon2.01. What must be changed so that the encoding is
correct?
With best regards

Frank


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


Re: "No buffer space available"

2003-06-04 Thread Nykos
Yeah, buffer is full !

I open one connection for every rows, and another connection in each  
one :


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

Extraction catalogue (c)2003 MediaXtend
jdbc:mysql://localhost/my_dblogpass

SELECT  
a.cle,a.refcomplete,a.titreindex,a.soustitre,a.resume,a.nsupports,s.supp 
ort,a.cab,lcase(a.ref) AS image,l.label,c.publicTTC,a.motscles FROM  
article AS a LEFT JOIN label AS l ON l.cle=a.label LEFT JOIN codeprix  
AS c ON c.cle=a.codeprix LEFT JOIN support AS s ON s.cle=a.support  
WHERE a.catalogue=7 AND a.dispo=1 AND a.supprime=0 AND a.parution <  
'2003-05-31' AND genre=2 AND catalogue=7 ORDER BY a.titreindex,  
a.motscles, a.soustitre


 
  
  
  
  
  
  
   
  
String lbl = ;
lbl = lbl.toLowerCase();
lbl = lbl.replace( ' ' ,'_' );
lbl = lbl.replace( '\'' ,'_' );
  
  file:///Scrat/abeille/images/codes-barres/lbl/.eps
:attribute>
  file:///Scrat/abeille/images/references/.tiff
   
jdbc:mysql://localhost/ 
my_dblogpassSELECT ra.article,r.code FROM recompensearticle AS ra  
LEFT JOIN recompense AS r ON r.cle = ra.recompense WHERE ra.article =  
 LIMIT  
0,8
   file:///Scrat/abeille/images/recompenses/couleurs/ 
.eps
  
 








Le mardi, 3 juin 2003, à 16:53 Europe/Paris, Lionel Crine a écrit :

It seems that the buffer is full.

Do you open a connection for every rows ?

At 15:28 03/06/2003 +0200, you wrote:
Hi,

I'm trying to extract rows from my MySQL database and convert it to  
an XML file, using Tomcat/Cocoon.
I'm running :
  FreeBSD 5.0R
  Sun JRE 1.3.1 (patchset 8)
  Tomcat 4.1.18
  Cocoon 2.0.4
  MySQL 3.23.54
  MySQL J/Connector 3.0.6

When I start loading my page (a simple XSP/ESQL), I get the normal  
XML datas but after a moment download stops and a HTML page is added  
at end of file. All of my other pages work but this one that extract  
a lot of rows (more than 4,000) doesn't work.
In the html part, I got an error page with this message :
[...]
org.apache.cocoon.ProcessingException: Exception in  
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error  
opening connection to dburl: jdbc:mysql://localhost/my_db: Unable to  
connect to any hosts due to exception: java.net.SocketException: No  
buffer space available
[...]

Any ideas ?

Thanks

Nicolas SANDRI

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


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



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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Geoff Howard
At 01:03 PM 6/3/2003, you wrote:

> so you'd do
> ...
> 
> 
> 
> ...
I know both xinclude (and cinclude) as well as xsl:document() should work,
the problem is that the file to include is a relative URL to the
Cocoon-context path. Something like work/test/index.html.
When using document() it expects it to be somehow in the same dir as the
stylesheet.
With xinclude one has to set the xml:base base URL otherwise it cannot
resolve a relatie URL. The question what is the base URL?? /cocoon/app or
cocoon://app or context:/ or http://hardcodedsvr/cocoon/app?
I'd like xinclude much more than document(). cinclude I don't know very well.
what about cocoon:/ 

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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Joerg Heinicke
map:call does not work the same way as map:redirect-to does not work
because the steps before are not executed. Both must be the first and only
statements in a map:match.
Hello Peter,

fortunately the above is not true ;-)

 is a sitemap internal redirect for 
reusing pipeline fragments and so you can do first steps of a pipeline on 
another place than the resource.

See also .

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
> map:call transfers to a pipeline fragment defined in
> map:resources, but I don't think it will help you
> specifically now that I see what you are trying to
> do.
map:call does not work the same way as map:redirect-to does not work
because the steps before are not executed. Both must be the first and only
statements in a map:match.

> How about using an xslt transform after the
> SourceWritingTransformer with something that
> completely replaces all nodes with a cinclude?
>
> eg,
> 
> 
> 
>
> so you'd do
> ...
> 
> 
> 
> ...
I know both xinclude (and cinclude) as well as xsl:document() should work,
the problem is that the file to include is a relative URL to the
Cocoon-context path. Something like work/test/index.html.
When using document() it expects it to be somehow in the same dir as the
stylesheet.
With xinclude one has to set the xml:base base URL otherwise it cannot
resolve a relatie URL. The question what is the base URL?? /cocoon/app or
cocoon://app or context:/ or http://hardcodedsvr/cocoon/app?
I'd like xinclude much more than document(). cinclude I don't know very well.


Peter

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



Evaluating and working with XPointer in a Transformer

2003-06-04 Thread Stefan Pietschmann



hi again,
 
as you might remember I'm working on a 
Transformer. One of its goals is to write an anchor around a certain string 
in the document. The string is defined as an XPointer value.
 
So far I the XPointer _expression_ as a variable, 
something like "string-range(ancestor::span[1],'Home')" - so there should be an 
anchor around the word "Home" in the span tag defined before. If anyone of you 
has dealt with that problem or has ideas or links... go forth ;)
 
At the moment I'm looking for a good implementation 
(read: jar) that allows me to easily evaluate the XPointer _expression_, which 
means i can jump there and write the  tag around. Of course I'm 
thankful for every other tip that helps :)
 
thanx for your help
 
Stefan Pietschmann


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Geoff Howard
map:call transfers to a pipeline fragment defined in
map:resources, but I don't think it will help you
specifically now that I see what you are trying to
do.
How about using an xslt transform after the
SourceWritingTransformer with something that
completely replaces all nodes with a cinclude?
eg,



so you'd do
...



...
I don't like that very much and I'd love to hear a
more graceful solution from other users of the SWTransformer.
HTH,
Geoff
At 12:04 PM 6/3/2003, you wrote:

--- Geoff Howard <[EMAIL PROTECTED]> wrote:
> At 10:00 AM 6/3/2003, you wrote:
> ...
> >
> >
> >
>
> map:redirect-to issues a client side redirect.
> under what
> circumstances would you want to do that along with
> an pipeline
> content?  are you looking for something like
> map:call? or
> map:aggregate?
Interesting, what is map:call?  In my example, I need
to do the following:
1. submit a form
2. perform transformations
3. write to a file (SourceWritingTransformer)
4. display a page (other than the page with the
form)with updated content
Can I use map:call for that?

>
> >Also it is not possible to use  or
>  after a
> >transformation.
>
> Right, this is on purpose.  If you need this, you
> should either use
> map:aggregate or xinclude or cinclude.
>
> >I tried also to use a XSL that produces input to
> xinclude but xinclude
> >can't wpork with cocoon:// URLs but needs a
> absolute path in the
> >base-Attribute.
> >So this also doesn't work.
>
> Try cinclude.
>
> Geoff
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Profiler in cocoon 2.0.5

2003-06-04 Thread Paweł Żukrowski




Hi all...
 
I know that profiler generator works in cocoon 
2.1
but is there a way to run it on 2.05 dev? (dated on 
20 may 2003)
I prepared all like documentation said but when i 
put 
"org.apache.cocoon.components.profiler.ProfilingCachingEventPipeline" as 
eventpipeline in cocoon.xconf
I get error that this component is 
deprecatied.and i cant  use it
 
is there a way (except switching to version 2.1dev) 
to get it running on 2.05 dev.
 
Thanks for any help
 
Pawel Zukrowski
 


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Alex Romayev

--- Geoff Howard <[EMAIL PROTECTED]> wrote:
> At 10:00 AM 6/3/2003, you wrote:
> ...
> >
> >
> >
> 
> map:redirect-to issues a client side redirect. 
> under what
> circumstances would you want to do that along with
> an pipeline
> content?  are you looking for something like
> map:call? or
> map:aggregate?

Interesting, what is map:call?  In my example, I need
to do the following:

1. submit a form
2. perform transformations
3. write to a file (SourceWritingTransformer)
4. display a page (other than the page with the
form)with updated content

Can I use map:call for that?

> 
> >Also it is not possible to use  or
>  after a
> >transformation.
> 
> Right, this is on purpose.  If you need this, you
> should either use
> map:aggregate or xinclude or cinclude.
> 
> >I tried also to use a XSL that produces input to
> xinclude but xinclude
> >can't wpork with cocoon:// URLs but needs a
> absolute path in the
> >base-Attribute.
> >So this also doesn't work.
> 
> Try cinclude.
> 
> Geoff 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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



RE: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Carmona Perez, David
Hi Lionel,

I'm using very successfully the Sysdeo plug-in.  And with JDK 1.4 it supports hot-code 
replacement, you can modify on the fly a Java class without restarting the server.



David

-Mensaje original-
De: Lionel Crine [mailto:[EMAIL PROTECTED]
Enviado el: martes, 03 de junio de 2003 16:55
Para: [EMAIL PROTECTED]
Asunto: Re: How to debug COCOON with ECLIPSE and TOMCAT?

I use tomcat cocoon and the sdk 1.4

All is working fine.

Do you have an error message ?


At 07:27 03/06/2003 -0700, you wrote:
>Hi,
>
>I would like to debug cocoon with eclipse and tomcat.
>I have the blueskytime plugins for eclipse and tomcat but could not
>make them debug cocoon.
>May be there's something i'm not doing right?
>
>Galia
>
>
>Do you Yahoo!?
>Free online
>calendar with sync to Outlook(TM).


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

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



Re: Using Path expression in Map Action type

2003-06-04 Thread Andreas Hartmann
Hi Shane,

Shane McEneaney wrote:




  
  
   ..
The code above fails and I have found no documentation to suggest if there
is a way of doing it.
this way it won't work. The sitemap is compiled to a Java
program (tomcat/work/.../sitemap_xmap.java). AFAIK the action
references are created at compile time.
But you could use the ParameterSelector to implement
such sitemap logic:
http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html
Of course, you will have to add a snippet for each possible
{../1} value. But I guess this won't be a problem as you have to
define your action types as well.
HTH,
Andreas


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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Andreas Hartmann
Geoff Howard wrote:

[...]


  

I think that should work.
It may, but I'd not recommend it.
Agreed. I should have mentioned this :)

Andreas



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


FW: jfor encoding problem

2003-06-04 Thread Yan, Charlene
Bertrand,

Thank you very much for your reply.  First of all, I'm using Cocoon-2.1m2 and 
jdk1.3.1.  I am using the xercesImpl-2.4.1.jar (875KB), xalan-20030506.jar(2571KB), 
and xml-apis.jar(122kb) in tomcat4.0.5's common/lib dir.  You can easily reproduce it 
by using the Orderpage example at http://localhost:8080/cocoon/samples/stream/order.  
If you add  at the top of the default xml 
and change Order Id to be Gérer, the next html page will display Gérer 
 as Order Id.  It is doing the same thing to rtf report.  

Is it a parser problem?  The same xml is parsed correctly in my struts application 
using different xml jars.  I'm going to switch to using those jars to try if it will 
work.

Thanks!

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:41 AM
To: [EMAIL PROTECTED]
Cc: Yan, Charlene
Subject: Re: jfor encoding problem



Le Lundi, 2 juin 2003, à 21:51 Europe/Zurich, Yan, Charlene a écrit :

> ...
> I'm trying to display accented characters correctly using jfor.  
> However, when I try to run 
> http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the 
> following exception.  I have put some French words such as "Gére" in 
> the xml file...

Is the encoding declaration correct in your input XML?
Can you parse it with another tool (XML editor or parser)?

If you can reduce your input to the smallest XML file that causes the 
problem, you could post it here so that someone can test it.

Hope this helps,
--
   Bertrand Delacretaz (codeconsult.ch, jfor.org)
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
   blogspace http://www.codeconsult.ch/bertrand


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



Using Path expression in Map Action type

2003-06-04 Thread Shane McEneaney
Hi,
 is there any way to use path expressions in the "map:act" tag in the
sitemap? We'd like the sitemap to choose the appropriate Action class
depending on the matched pattern. See the snippet below with the line
.




  
  
   ..

The code above fails and I have found no documentation to suggest if there
is a way of doing it.

Any help is greatly appreciated.

Shane McEneaney
Ireland

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



RE: jfor encoding problem

2003-06-04 Thread Yan, Charlene
Bertrand,

Thank you very much for your reply.  First of all, I'm using Cocoon-2.1m2 and 
jdk1.3.1.  I am using the xercesImpl-2.4.1.jar (875KB), xalan-20030506.jar(2571KB), 
and xml-apis.jar(122kb) in tomcat4.0.5's common/lib dir.  You can easily reproduce it 
by using the Orderpage example at http://localhost:8080/cocoon/samples/stream/order.  
If you add  at the top of the default xml 
and change Order Id to be Gérer, the next html page will display Gérer 
 as Order Id.  It is doing the same thing to rtf report.  

Is it a parser problem?  The same xml is parsed correctly in my struts application 
using different xml jars.  I'm going to switch to using those jars to try if it will 
work.

Thanks!

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:41 AM
To: [EMAIL PROTECTED]
Cc: Yan, Charlene
Subject: Re: jfor encoding problem



Le Lundi, 2 juin 2003, à 21:51 Europe/Zurich, Yan, Charlene a écrit :

> ...
> I'm trying to display accented characters correctly using jfor.  
> However, when I try to run 
> http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the 
> following exception.  I have put some French words such as "Gére" in 
> the xml file...

Is the encoding declaration correct in your input XML?
Can you parse it with another tool (XML editor or parser)?

If you can reduce your input to the smallest XML file that causes the 
problem, you could post it here so that someone can test it.

Hope this helps,
--
   Bertrand Delacretaz (codeconsult.ch, jfor.org)
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
   blogspace http://www.codeconsult.ch/bertrand


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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Lionel Crine
I use tomcat cocoon and the sdk 1.4

All is working fine.

Do you have an error message ?

At 07:27 03/06/2003 -0700, you wrote:
Hi,

I would like to debug cocoon with eclipse and tomcat.
I have the blueskytime plugins for eclipse and tomcat but could not
make them debug cocoon.
May be there's something i'm not doing right?
Galia

Do you Yahoo!?
Free online 
calendar with sync to Outlook(TM).


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


Re: "No buffer space available"

2003-06-04 Thread Lionel Crine
It seems that the buffer is full.

Do you open a connection for every rows ?

At 15:28 03/06/2003 +0200, you wrote:
Hi,

I'm trying to extract rows from my MySQL database and convert it to an XML 
file, using Tomcat/Cocoon.
I'm running :
  FreeBSD 5.0R
  Sun JRE 1.3.1 (patchset 8)
  Tomcat 4.1.18
  Cocoon 2.0.4
  MySQL 3.23.54
  MySQL J/Connector 3.0.6

When I start loading my page (a simple XSP/ESQL), I get the normal XML 
datas but after a moment download stops and a HTML page is added at end of 
file. All of my other pages work but this one that extract a lot of rows 
(more than 4,000) doesn't work.
In the html part, I got an error page with this message :
[...]
org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error opening 
connection to dburl: jdbc:mysql://localhost/my_db: Unable to connect to 
any hosts due to exception: java.net.SocketException: No buffer space available
[...]

Any ideas ?

Thanks

Nicolas SANDRI

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


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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Geoff Howard
At 10:31 AM 6/3/2003, you wrote:
Andreas Hartmann wrote:

Peter Klotz wrote:

So how can one read a file from the filesystem after a transformation?
You can write a transformer / serializer that reads a file and
generates the appropriate SAX events. I don't know if such a
component already exists.
Maybe you could use a stylesheet and the document function:




  

I think that should work.
It may, but I'd not recommend it.

Geoff

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


Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Geoff Howard
At 10:00 AM 6/3/2003, you wrote:
...



map:redirect-to issues a client side redirect.  under what
circumstances would you want to do that along with an pipeline
content?  are you looking for something like map:call? or
map:aggregate?
Also it is not possible to use  or  after a
transformation.
Right, this is on purpose.  If you need this, you should either use
map:aggregate or xinclude or cinclude.
I tried also to use a XSL that produces input to xinclude but xinclude
can't wpork with cocoon:// URLs but needs a absolute path in the
base-Attribute.
So this also doesn't work.
Try cinclude.

Geoff 

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


Re: inserting XML fragments in XSP

2003-06-04 Thread Christian Haul
On 03.Jun.2003 -- 02:16 PM, Mato Mira, Fernando wrote:
> > From: Christian Haul [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 1:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: inserting XML fragments in XSP
> > 
> > 
> > On 03.Jun.2003 -- 12:49 PM, Mato Mira, Fernando wrote:
> > > What's the correct Java translation of:
> > > 
> > >  ?
> > > 
> > > I can write the expansion directly in the page for now.
> > 
> > Won't help, but here it is:
> > 
> >   XSPUtil.includeString(String.valueOf(foo), 
> > this.manager, this.contentHandler);
> > 
> 
> It works. Thanks.

Blimey! I thought the error lies in the parser... well, so it is clear
where the "error" lies. According to some old docs (1.x) this was
meant to include literals. Which is IMO stupid because a literal could
be included by putting it on the page, no need for this tag.

Anyway, I have changed the util.xsl so that the above works now with
the current 2.1-dev version. In addition, I have removed the necessity
to use  around the variable in the other case.

HTH

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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



Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Andreas Hartmann
Andreas Hartmann wrote:

Peter Klotz wrote:

So how can one read a file from the filesystem after a transformation?


You can write a transformer / serializer that reads a file and
generates the appropriate SAX events. I don't know if such a
component already exists.
Maybe you could use a stylesheet and the document function:




  

I think that should work.

Andreas



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


How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Galia Angelova
Hi,
 
I would like to debug cocoon with eclipse and tomcat.
I have the blueskytime plugins for eclipse and tomcat but could not
make them debug cocoon.
May be there's something i'm not doing right?
 
Galia
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Andreas Hartmann
Peter Klotz wrote:

So how can one read a file from the filesystem after a transformation?
You can write a transformer / serializer that reads a file and
generates the appropriate SAX events. I don't know if such a
component already exists.
And why does the redirect not work?
There are some threads in the lists about this issue.

Andreas



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


Re: XSP debugging

2003-06-04 Thread Andreas Hartmann
morten svanæs wrote:

Hi,
I'm wondering if there's someway to get the correct linenumber from
a xsp stacktrace, when I get a error it's always on some very high number.
The number is correct. You get the line number of the generated
Java file (look in your tomcat/work directory to find the source).
Andreas



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


XSP debugging

2003-06-04 Thread morten svanæs



Hi,
I'm wondering if there's someway to get the correct 
linenumber from 
a xsp stacktrace, when I get a error it's 
always on some very high number.
 
Morten Svanæs
 


map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
Hi,

I have a pipline that generates a file in the filesystem using a generator
and a transformation. The output is empty but I want to present in the
same request one of the generated files (index.html).

I tried to use





and have another map:match for chunk_* that reads index.html.
The problem is that obviously that pipeline is not executed at all but the
redirection happens immediately? Why it is after other things in the
pipeline!

Also it is not possible to use  or  after a
transformation.

I tried also to use a XSL that produces input to xinclude but xinclude
can't wpork with cocoon:// URLs but needs a absolute path in the
base-Attribute.
So this also doesn't work.

So how can one read a file from the filesystem after a transformation?
And why does the redirect not work?


BTW, I'm using Cocoon 2.0.4


Thanks, Peter



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