Saxon and NullPointerException

2003-12-01 Thread Carmona Perez, David
Hi all,

Does anyone know why I receive a NullPointerException when I place saxon-6.5.3.jar in 
the WEB-INF/lib file
in an installation of Cocoon 2.1.2 that used to run ok?

I used the Cocoon bundled with the latest version of Forrest.

Are there any conflicts with Xalan?

Thanks in advance for any help.

Here is a detailed log:

FATAL_E (2003-12-01) 10:53.12:429   [core.xslt-processor] (/index.html) 
PoolThread-4/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:168)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:548)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNode.java:66)
at 
org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode.java:128)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
Caused by: java.lang.NullPointerException
at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
-
java.lang.NullPointerException
at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
at 
org.apache.xalan.templates.ElemAp

RE: Saxon and NullPointerException

2003-12-01 Thread Carmona Perez, David
I have applied the patch to Saxon, documented in 
http://wiki.cocoondev.org/Edit.jsp?page=DocbookTransformation , and it continues to 
fail...



David

-Mensaje original-
De: Carmona Perez, David 
Enviado el: lunes, 01 de diciembre de 2003 10:56
Para: Cocoon (E-mail)
Asunto: Saxon and NullPointerException

Hi all,

Does anyone know why I receive a NullPointerException when I place saxon-6.5.3.jar in 
the WEB-INF/lib file
in an installation of Cocoon 2.1.2 that used to run ok?

I used the Cocoon bundled with the latest version of Forrest.

Are there any conflicts with Xalan?

Thanks in advance for any help.

Here is a detailed log:

FATAL_E (2003-12-01) 10:53.12:429   [core.xslt-processor] (/index.html) 
PoolThread-4/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:168)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:548)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNode.java:66)
at 
org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode.java:128)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
Caused by: java.lang.NullPointerException
at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
-
java.lang.NullPointerException
at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java

RE: Insert an image

2003-12-01 Thread Carmona Perez, David









What kind of image?

A vectorial one through SVG?





David

 

-Mensaje original-
De: Josep Riudavets
[mailto:[EMAIL PROTECTED]
Enviado el: lunes, 01 de diciembre
de 2003 16:25
Para: [EMAIL PROTECTED]
Asunto: Insert an image

 

Hi all ... 

 

How can I do for inserting an image into
an XSL stylesheet???

 

Thanks
all 








RE: Insert an image

2003-12-01 Thread Carmona Perez, David









Simply create a pipeline like this:

 



    







David

 

-Mensaje original-
De: Josep Riudavets
[mailto:[EMAIL PROTECTED]
Enviado el: lunes, 01 de diciembre
de 2003 16:46
Para: [EMAIL PROTECTED]
Asunto: Re: Insert an image

 

A jpg image 

 

It is placed into /cocoon/images/
directory ...

 



- Original Message - 



From: Carmona Perez, David 



To: [EMAIL PROTECTED] 

Sent: Monday, December 01,
2003 4:33 PM

Subject: RE: Insert an image

 

What kind of image?

A vectorial one through SVG?





David

 





-Mensaje original-
De: Josep Riudavets
[mailto:[EMAIL PROTECTED]
Enviado el: lunes, 01 de diciembre
de 2003 16:25
Para: [EMAIL PROTECTED]
Asunto: Insert an image

 

Hi all ... 

 

How can I do for inserting an image
into an XSL stylesheet???

 

Thanks all 










RE: Saxon and NullPointerException

2003-12-02 Thread Carmona Perez, David
It occurs with a standard new seeded project, with no modifications apart from copying 
Saxon.jar in WEB-INF/lib
By the way, this behaviour only happens with Forrest 0.6.5, but not with Cocoon 2.1.2 
or 2.1.3.  It must be some Cocoon.xconf issue in Forrest distribution.

The following entry is commented out:

  



David

-Mensaje original-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 01 de diciembre de 2003 18:00
Para: [EMAIL PROTECTED]
Asunto: Re: Saxon and NullPointerException

On 01.12.2003 10:56, Carmona Perez, David wrote:

> Hi all,
>
> Does anyone know why I receive a NullPointerException when I place saxon-6.5.3.jar 
> in the WEB-INF/lib file
> in an installation of Cocoon 2.1.2 that used to run ok?
>
> I used the Cocoon bundled with the latest version of Forrest.
>
> Are there any conflicts with Xalan?
>
> Thanks in advance for any help.
>
> Here is a detailed log:

Do you have configured something in the cocoon.xconf (search for 'Saxon'
there)? And in the map:components section of the sitemap?

Joerg


-
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: Insert an image

2003-12-02 Thread Carmona Perez, David
Its as easy as:


http://www.w3.org/1999/XSL/Transform";
version='1.0'
exclude-result-prefixes="#default">




 
 



David

-Mensaje original-
De: Josep Riudavets [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 01 de diciembre de 2003 17:37
Para: [EMAIL PROTECTED]
Asunto: Re: Insert an image

And ... what about the source? Could you post it?

David ... I need the code in order to insert it into an XSL page, because
the image is part of a web page ...
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 5:20 PM
Subject: Re: Insert an image


> for example
>
>
> ...
> 
> 
> 
> 
> 
> ...
>
>
>
> -- stavros
> On Mon, 1 Dec 2003, Josep Riudavets wrote:
>
> > Hi all ...
> >
> > How can I do for inserting an image into an XSL stylesheet???
> >
> > Thanks all
> >
>
>
> -
> 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]



2 generators in a request

2003-12-02 Thread Carmona Perez, David
Hi all,

I'm using DocBook under Cocoon.

In the chunked version of the standard DocBook stylesheets, the transformation step 
generates a set of files..











I know I can't do that because I can generate twice.

Any suggestion will be welcome.


David


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



**Solved** 2 generators in a request

2003-12-02 Thread Carmona Perez, David
Thanks.

Finally a have made a custom action like this:

/**Ejecuta pipeline con efectos secundarios
 * @author dperezcar */
public class ExecutePipeline extends AbstractAction {
/** @see 
org.apache.cocoon.acting.Action#act(org.apache.cocoon.environment.Redirector, 
org.apache.cocoon.environment.SourceResolver, java.util.Map, java.lang.String, 
org.apache.avalon.framework.parameters.Parameters) */
public Map act(Redirector redirector, SourceResolver resolver, Map 
objectModel, String source, Parameters parameters) throws MalformedURLException, 
ParameterException, IOException {
Source fte = resolver.resolveURI(parameters.getParameter("uri"));
try {
fte.getInputStream();
} finally {
resolver.release(fte);
}
return EMPTY_MAP;
}
}

and something like that in the pipeline:











David

-Mensaje original-
De: Simon Mieth [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de diciembre de 2003 12:06
Para: [EMAIL PROTECTED]
Asunto: Re: 2 generators in a request

On Tue, 2 Dec 2003 11:46:08 +0100
"Carmona Perez, David" <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I'm using DocBook under Cocoon.
>
> In the chunked version of the standard DocBook
> stylesheets, the transformation step generates a set of
> files..
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I know I can't do that because I can generate twice.
>
> Any suggestion will be welcome.
>
> 
> David
>
>
Hi,

maybe the CInclude-Transformer can do this job.
look at
http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html

Best regards,
Simon

-
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]



gzip compression

2003-12-15 Thread Carmona Perez, David
Hi all,

Does someone how can I make some action that activates compressing output data using 
GZip?  Gzip compression is an HTTP 1.1 standard feature.

Ideally it would be great if it could be like an action, so that it's easy to activate 
it on or off.
I have tried this code:

import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;
import java.util.zip.GZIPOutputStream;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.acting.AbstractAction;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.environment.http.HttpEnvironment;
import org.apache.cocoon.environment.http.HttpResponse;

public class CompressAction extends AbstractAction {
class StreamGzip extends ServletOutputStream {
public StreamGzip(OutputStream out) throws IOException {
gzip = new GZIPOutputStream(out);
}
/** @see java.io.OutputStream#write(int) */
public void write(int b) throws IOException {
gzip.write(b);
}
/** @see java.io.OutputStream#close() */
public void close() throws IOException {
gzip.close();
}
/** @see java.io.OutputStream#flush() */
public void flush() throws IOException {
gzip.flush();
}
private GZIPOutputStream gzip;
}
class GzipResponse extends HttpResponse {
GzipResponse(HttpServletResponse resp) throws IOException {
super(resp);
os = new StreamGzip(resp.getOutputStream());
}
public ServletOutputStream getOutputStream() throws IOException {
return os;
}
StreamGzip os;
}
public Map act(Redirector redirector, SourceResolver resolver, Map 
objectModel, String source, Parameters parameters) throws Exception {
Request pet = ObjectModelHelper.getRequest(objectModel);
String accept = pet.getHeader("Accept-Encoding");
if (accept != null && accept.indexOf("gzip") >= 0) {
GzipResponse resp = new 
GzipResponse((HttpServletResponse)objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT));
resp.setHeader("Content-Encoding", "gzip");
objectModel.put(ObjectModelHelper.RESPONSE_OBJECT, resp);
return EMPTY_MAP;
}
return null;
}
}

But it doesn't work, because the HttpEnvironment holds also holds a reference to the 
outputstream.
Which is the cleanest way to perform this?
Any suggestion will be greatly appreciated.



David


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



RE: gzip compression

2003-12-16 Thread Carmona Perez, David
Thanks, the latest versions of Tomcat 4.1 already support it.



David

-Mensaje original-
De: Nicolas Toper [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 15 de diciembre de 2003 18:56
Para: [EMAIL PROTECTED]
Asunto: Re: gzip compression

Apache could do that automatically...

Otherwise, I'd use Tomcat and a filter servlet to do it: you could find some
all ready to be used on the Web...
Le Lundi 15 Décembre 2003 18:46, Carmona Perez, David a écrit :
> Hi all,
>
> Does someone how can I make some action that activates compressing output
> data using GZip?  Gzip compression is an HTTP 1.1 standard feature.
>
> Ideally it would be great if it could be like an action, so that it's easy
> to activate it on or off. I have tried this code:
>
> import java.io.IOException;
> import java.io.OutputStream;
> import java.util.Map;
> import java.util.zip.GZIPOutputStream;
>
> import javax.servlet.ServletOutputStream;
> import javax.servlet.http.HttpServletResponse;
>
> import org.apache.avalon.framework.parameters.Parameters;
> import org.apache.cocoon.acting.AbstractAction;
> import org.apache.cocoon.environment.ObjectModelHelper;
> import org.apache.cocoon.environment.Redirector;
> import org.apache.cocoon.environment.Request;
> import org.apache.cocoon.environment.SourceResolver;
> import org.apache.cocoon.environment.http.HttpEnvironment;
> import org.apache.cocoon.environment.http.HttpResponse;
>
> public class CompressAction extends AbstractAction {
>   class StreamGzip extends ServletOutputStream {
>   public StreamGzip(OutputStream out) throws IOException {
>   gzip = new GZIPOutputStream(out);
>   }
>   /** @see java.io.OutputStream#write(int) */
>   public void write(int b) throws IOException {
>   gzip.write(b);
>   }
>   /** @see java.io.OutputStream#close() */
>   public void close() throws IOException {
>   gzip.close();
>   }
>   /** @see java.io.OutputStream#flush() */
>   public void flush() throws IOException {
>   gzip.flush();
>   }
>   private GZIPOutputStream gzip;
>   }
>   class GzipResponse extends HttpResponse {
>   GzipResponse(HttpServletResponse resp) throws IOException {
>   super(resp);
>   os = new StreamGzip(resp.getOutputStream());
>   }
>   public ServletOutputStream getOutputStream() throws IOException {
>   return os;
>   }
>   StreamGzip os;
>   }
>   public Map act(Redirector redirector, SourceResolver resolver, Map
> objectModel, String source, Parameters parameters) throws Exception {
> Request pet = ObjectModelHelper.getRequest(objectModel);
>   String accept = pet.getHeader("Accept-Encoding");
>   if (accept != null && accept.indexOf("gzip") >= 0) {
>   GzipResponse resp = new
> GzipResponse((HttpServletResponse)objectModel.get(HttpEnvironment.HTTP_RESP
>ONSE_OBJECT)); resp.setHeader("Content-Encoding", "gzip");
>   objectModel.put(ObjectModelHelper.RESPONSE_OBJECT, resp);
>   return EMPTY_MAP;
>   }
>   return null;
>   }
> }
>
> But it doesn't work, because the HttpEnvironment holds also holds a
> reference to the outputstream. Which is the cleanest way to perform this?
> Any suggestion will be greatly appreciated.
>
>
> 
> David
>
>
> -
> 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: parameter value from xsp?

2003-12-31 Thread Carmona Perez, David
Use an action for this purpose.



David

-Mensaje original-
De: julien bloit [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 31 de diciembre de 2003 11:31
Para: [EMAIL PROTECTED]
Asunto:  parameter value from xsp?

Hi,

Is there a simple way to set a sitemap parameter value from within an xsp
page?
For example in this case :



...


'myValue' would be returned from a call to a specific xsp 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]



RE: Jetty and XSLT with document()

2004-01-05 Thread Carmona Perez, David









As a workaround to the problem, why
don’t try to use another protocol like:

  context:/myPath/myFile.xml or cocoon:/url

?





David

 

-Mensaje
original-
De: Jan Hoskens
[mailto:[EMAIL PROTECTED]
Enviado el: lunes, 05 de enero de
2004 14:53
Para: [EMAIL PROTECTED]
Asunto: Jetty and XSLT with
document()

 

Hi,

 

I'm using a stylesheet with a variable
that contains a nodeset variable:

 



 

The path in the document() function is
relative and does work under Tomcat.

If I switch to jetty, an exception
occurs when I want to use the variable as a nodeset:

 



 

FATAL_E (2004-01-05)
13:48.36:637   [core.xslt-processor] (/cocoontest/index.html)
PoolThread-4/TraxErrorHandler: Error in TraxTransformer:
file:/d:/cocoontest/stylesheets/wdc2html.xsl; Line 101; Column 54; 
; SystemID: file:/d:/cocoontest/stylesheets/wdc2html.xsl; Line#: 101; Column#:
54
javax.xml.transform.TransformerException: java.lang.ClassCastException

 

It seems that under Jetty, the variable
does not contain the xml document at all and gives an exception because the
test expects a nodeset but does not receive one?

 

Why doesn't Jetty give me the document as
Tomcat does??

Or is it wrong to use paths relative to
the xsl document in the xsl itself?

 

 

Thankzz,

 

Jan

 

 








Gzip pipeline processor

2004-01-13 Thread Carmona Perez, David
Hi everybody,

I've created a new ProcessingPipeline, in order to compress with gzip.  I want finer 
control and integration with Cocoon that the standard servlet filters may offer.

It works ok, but the problem I have with it, is that the browser is terribly slow when 
getting the different components of a page (images, CSS sheets, scripts, ...).  
Does someone know if there is any detail I have left off?  
I suspect of not flushing the ouput stream.  Where is it flushed or closed?

Any help will be greatly appreciated.

Here is the full source code:

/** Creado en 12-ene-2004 */
package fcc.ima.cocoon;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.SocketException;
import java.util.Map;
import java.util.zip.GZIPOutputStream;

import org.apache.cocoon.ConnectionResetException;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline;
import org.apache.cocoon.environment.Environment;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.Response;

/**Pipeline that may compress the content with gzip.
 * @author dperezcar */
public class GzipNonCachingProcessingPipeline extends NonCachingProcessingPipeline {
static protected class StreamHandler {
protected OutputStream getStream(Environment environment, int 
outputBufferSize, boolean shouldSetContentLength) throws IOException {
// Copy parameters
this.environment = environment;

OutputStream result;
if (shouldSetContentLength) {
bufferStream = new ByteArrayOutputStream();
if (shouldCompress()) {
result = gs = new 
GZIPOutputStream(bufferStream);
} else {
result = bufferStream;
}
} else {
if (shouldCompress()) {
result = gs = new 
GZIPOutputStream(environment.getOutputStream(0));
} else {
result = 
environment.getOutputStream(outputBufferSize);
}
}
if (gs != null) {
Response resp = 
ObjectModelHelper.getResponse(environment.getObjectModel());
resp.addHeader("Content-Encoding", "gzip");
}
return result;
}
protected void end() throws IOException { 
if (gs != null) {
gs.finish();
}
if (bufferStream != null) {
byte[] data = bufferStream.toByteArray();
environment.setContentLength(data.length);
OutputStream out = environment.getOutputStream(0);
out.write(data);
out.flush();
out.close();
} else if (gs != null) {
gs.flush();
gs.close();
}
}
protected boolean shouldCompress() {
Map objModel = environment.getObjectModel();
Request req = ObjectModelHelper.getRequest(objModel);
if (req != null) {
String ae = req.getHeader("accept-encoding");
if (ae != null && ae.indexOf("gzip") != -1) {
Response resp = 
ObjectModelHelper.getResponse(objModel);
if (resp != null && 
!resp.containsHeader("content-encoding")) {
//getLogger().debug("GZIP supported, 
compressing.");
return true;
} else {
//getLogger().debug("Content-encoding 
already set.");
}
}
}
return false;
}
protected Environment environment;
protected ByteArrayOutputStream bufferStream;
protected GZIPOutputStream gs;
}
/** @see 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processReader(org.apache.cocoon.environment.Environment)
 */
protected boolean pr

RE: Parameter other than String for Sitemap Component

2004-01-13 Thread Carmona Perez, David
You can use a request attribute for passing any object, in addition to just Strings



David

-Mensaje original-
De: Sebastian Klamar [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 14:46
Para: Cocoon User Mailinglist
Asunto: Parameter other than String for Sitemap Component

Hi,

what are the possibilities to give a sitemap component a parameter?  I
see  which only accepts String, don't they?  What else?
What to do to supply a static XML structure (not via URI but inline in
sitemap.xmap) or any arbitrary object (e.g. Collection)?


TIA -- Sebastian

--
Die letzten Worte...
 des Polizisten (zu seinem Sohn): "Vorsicht, Junge, das Ding ist
   geladen!"

PGP Key: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C  A6CF D162 20BB 1E72 7CE6

-
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: RE : Gzip pipeline processor

2004-01-13 Thread Carmona Perez, David
Thanks Rasik.

But my solution serves for any kind of output through Cocoon, not just for XML output, 
both readers and generators

After testing a litlle more, I will shortly make it available though the Wiki.

I don't know why but now it works ok.


David

-Mensaje original-
De: Rasik Pandey [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 15:40
Para: [EMAIL PROTECTED]
Asunto: RE : Gzip pipeline processor

Maybe this would be useful:
http://wiki.cocoondev.org/Wiki.jsp?page=Gzip_XML_Serializer

See the endDocument() method in the attached java class.



 >-Message d'origine-
 >De : Carmona Perez, David [mailto:[EMAIL PROTECTED]
 >Envoyé : mardi 13 janvier 2004 12:52
 >À : Cocoon (E-mail)
 >Objet : Gzip pipeline processor
 >
 >
 >Hi everybody,
 >
 >I've created a new ProcessingPipeline, in order to compress
 >with gzip.  I want finer control and integration with Cocoon
 >that the standard servlet filters may offer.
 >
 >It works ok, but the problem I have with it, is that the
 >browser is terribly slow when getting the different
 >components of a page (images, CSS sheets, scripts, ...). 
 >Does someone know if there is any detail I have left off? 
 >I suspect of not flushing the ouput stream.  Where is it
 >flushed or closed?
 >
 >Any help will be greatly appreciated.
 >
 >Here is the full source code:
 >
 >/** Creado en 12-ene-2004 */
 >package fcc.ima.cocoon;
 >
 >import java.io.ByteArrayOutputStream;
 >import java.io.IOException;
 >import java.io.OutputStream;
 >import java.net.SocketException;
 >import java.util.Map;
 >import java.util.zip.GZIPOutputStream;
 >
 >import org.apache.cocoon.ConnectionResetException;
 >import org.apache.cocoon.ProcessingException;
 >import
 >org.apache.cocoon.components.pipeline.impl.NonCachingProcessin
 >gPipeline;
 >import org.apache.cocoon.environment.Environment;
 >import org.apache.cocoon.environment.ObjectModelHelper;
 >import org.apache.cocoon.environment.Request;
 >import org.apache.cocoon.environment.Response;
 >
 >/**Pipeline that may compress the content with gzip.
 > * @author dperezcar */
 >public class GzipNonCachingProcessingPipeline extends
 >NonCachingProcessingPipeline {
 >  static protected class StreamHandler {
 >  protected OutputStream getStream(Environment
 >environment, int outputBufferSize, boolean
 >shouldSetContentLength) throws IOException {
 >  // Copy parameters
 >  this.environment = environment;
 >
 >  OutputStream result;
 >  if (shouldSetContentLength) {
 >  bufferStream = new
 >ByteArrayOutputStream();
 >  if (shouldCompress()) {
 >  result = gs = new
 >GZIPOutputStream(bufferStream);
 >  } else {
 >  result = bufferStream;
 >  }
 >  } else {
 >  if (shouldCompress()) {
 >  result = gs = new
 >GZIPOutputStream(environment.getOutputStream(0));
 >  } else {
 >  result =
 >environment.getOutputStream(outputBufferSize);
 >  }
 >  }
 >  if (gs != null) {
 >  Response resp =
 >ObjectModelHelper.getResponse(environment.getObjectModel());
 > 
 >resp.addHeader("Content-Encoding", "gzip");
 >  }
 >  return result;
 >  }
 >  protected void end() throws IOException {
 >  if (gs != null) {
 >  gs.finish();
 >  }
 >  if (bufferStream != null) {
 >  byte[] data =
 >bufferStream.toByteArray();
 > 
 >environment.setContentLength(data.length);
 >  OutputStream out =
 >environment.getOutputStream(0);
 >  out.write(data);
 >  out.flush();
 >  out.close();
 >  } else if (gs != null) {
 >  gs.flush();
 >  gs.close();
 >  }
 >  }
 >  protected boolean shouldCompress() {
 >  Map objModel = environment.getObjectModel();
 >  Request 

RE: RE : Gzip pipeline processor

2004-01-13 Thread Carmona Perez, David
Because I have finer control of what I want to compress in the sitemap, and avoid 
duplicated buffers in order to calculate the content-length..



David

-Mensaje original-
De: Jorg Heymans [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 16:13
Para: [EMAIL PROTECTED]
Asunto: Re: RE : Gzip pipeline processor

Hi David,

Looks interesting, could you also post some numbers along like cpu-usage
and timing versus the non-gzipped case?

Why did you choose this solution rather than sticking apache in front of
tomcat ?

Thanks
Jorg

Carmona Perez, David wrote:

> Thanks Rasik.
>
> But my solution serves for any kind of output through Cocoon, not just for XML 
> output, both readers and generators
>
> After testing a litlle more, I will shortly make it available though the Wiki.
>
> I don't know why but now it works ok.
>
> 
> David
>
> -Mensaje original-
> De: Rasik Pandey [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 13 de enero de 2004 15:40
> Para: [EMAIL PROTECTED]
> Asunto: RE : Gzip pipeline processor
>
> Maybe this would be useful:
> http://wiki.cocoondev.org/Wiki.jsp?page=Gzip_XML_Serializer
>
> See the endDocument() method in the attached java class.
>
>
>
>  >-Message d'origine-
>  >De : Carmona Perez, David [mailto:[EMAIL PROTECTED]
>  >Envoyé : mardi 13 janvier 2004 12:52
>  >À : Cocoon (E-mail)
>  >Objet : Gzip pipeline processor
>  >
>  >
>  >Hi everybody,
>  >
>  >I've created a new ProcessingPipeline, in order to compress
>  >with gzip.  I want finer control and integration with Cocoon
>  >that the standard servlet filters may offer.
>  >
>  >It works ok, but the problem I have with it, is that the
>  >browser is terribly slow when getting the different
>  >components of a page (images, CSS sheets, scripts, ...).
>  >Does someone know if there is any detail I have left off?
>  >I suspect of not flushing the ouput stream.  Where is it
>  >flushed or closed?
>  >
>  >Any help will be greatly appreciated.
>  >
>  >Here is the full source code:
>  >
>  >/** Creado en 12-ene-2004 */
>  >package fcc.ima.cocoon;
>  >
>  >import java.io.ByteArrayOutputStream;
>  >import java.io.IOException;
>  >import java.io.OutputStream;
>  >import java.net.SocketException;
>  >import java.util.Map;
>  >import java.util.zip.GZIPOutputStream;
>  >
>  >import org.apache.cocoon.ConnectionResetException;
>  >import org.apache.cocoon.ProcessingException;
>  >import
>  >org.apache.cocoon.components.pipeline.impl.NonCachingProcessin
>  >gPipeline;
>  >import org.apache.cocoon.environment.Environment;
>  >import org.apache.cocoon.environment.ObjectModelHelper;
>  >import org.apache.cocoon.environment.Request;
>  >import org.apache.cocoon.environment.Response;
>  >
>  >/**Pipeline that may compress the content with gzip.
>  > * @author dperezcar */
>  >public class GzipNonCachingProcessingPipeline extends
>  >NonCachingProcessingPipeline {
>  >  static protected class StreamHandler {
>  >  protected OutputStream getStream(Environment
>  >environment, int outputBufferSize, boolean
>  >shouldSetContentLength) throws IOException {
>  >  // Copy parameters
>  >  this.environment = environment;
>  >
>  >  OutputStream result;
>  >  if (shouldSetContentLength) {
>  >  bufferStream = new
>  >ByteArrayOutputStream();
>  >  if (shouldCompress()) {
>  >  result = gs = new
>  >GZIPOutputStream(bufferStream);
>  >  } else {
>  >  result = bufferStream;
>  >  }
>  >  } else {
>  >  if (shouldCompress()) {
>  >  result = gs = new
>  >GZIPOutputStream(environment.getOutputStream(0));
>  >  } else {
>  >  result =
>  >environment.getOutputStream(outputBufferSize);
>  >  }
>  >  }
>  >  if (gs != null) {
>  >  Response resp =
>  >ObjectModelHelper.getResponse(environment.getObjectModel());
>  >
>  >resp.addHeader("Content-Encoding", "gzip");
>  >

RE: RE : Gzip pipeline processor

2004-01-13 Thread Carmona Perez, David
One problem I have detected is that IE 6 doesn´t like to compress JavaScript files.  
Sometimes it reports runtime errors even though the javascript data is gathered ok.


David

-Mensaje original-
De: Carmona Perez, David 
Enviado el: martes, 13 de enero de 2004 17:16
Para: [EMAIL PROTECTED]
Asunto: RE: RE : Gzip pipeline processor

Because I have finer control of what I want to compress in the sitemap, and avoid 
duplicated buffers in order to calculate the content-length..



David

-Mensaje original-
De: Jorg Heymans [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 16:13
Para: [EMAIL PROTECTED]
Asunto: Re: RE : Gzip pipeline processor

Hi David,

Looks interesting, could you also post some numbers along like cpu-usage
and timing versus the non-gzipped case?

Why did you choose this solution rather than sticking apache in front of
tomcat ?

Thanks
Jorg

Carmona Perez, David wrote:

> Thanks Rasik.
>
> But my solution serves for any kind of output through Cocoon, not just for XML 
> output, both readers and generators
>
> After testing a litlle more, I will shortly make it available though the Wiki.
>
> I don't know why but now it works ok.
>
> 
> David
>
> -Mensaje original-
> De: Rasik Pandey [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 13 de enero de 2004 15:40
> Para: [EMAIL PROTECTED]
> Asunto: RE : Gzip pipeline processor
>
> Maybe this would be useful:
> http://wiki.cocoondev.org/Wiki.jsp?page=Gzip_XML_Serializer
>
> See the endDocument() method in the attached java class.
>
>
>
>  >-Message d'origine-
>  >De : Carmona Perez, David [mailto:[EMAIL PROTECTED]
>  >Envoyé : mardi 13 janvier 2004 12:52
>  >À : Cocoon (E-mail)
>  >Objet : Gzip pipeline processor
>  >
>  >
>  >Hi everybody,
>  >
>  >I've created a new ProcessingPipeline, in order to compress
>  >with gzip.  I want finer control and integration with Cocoon
>  >that the standard servlet filters may offer.
>  >
>  >It works ok, but the problem I have with it, is that the
>  >browser is terribly slow when getting the different
>  >components of a page (images, CSS sheets, scripts, ...).
>  >Does someone know if there is any detail I have left off?
>  >I suspect of not flushing the ouput stream.  Where is it
>  >flushed or closed?
>  >
>  >Any help will be greatly appreciated.
>  >
>  >Here is the full source code:
>  >
>  >/** Creado en 12-ene-2004 */
>  >package fcc.ima.cocoon;
>  >
>  >import java.io.ByteArrayOutputStream;
>  >import java.io.IOException;
>  >import java.io.OutputStream;
>  >import java.net.SocketException;
>  >import java.util.Map;
>  >import java.util.zip.GZIPOutputStream;
>  >
>  >import org.apache.cocoon.ConnectionResetException;
>  >import org.apache.cocoon.ProcessingException;
>  >import
>  >org.apache.cocoon.components.pipeline.impl.NonCachingProcessin
>  >gPipeline;
>  >import org.apache.cocoon.environment.Environment;
>  >import org.apache.cocoon.environment.ObjectModelHelper;
>  >import org.apache.cocoon.environment.Request;
>  >import org.apache.cocoon.environment.Response;
>  >
>  >/**Pipeline that may compress the content with gzip.
>  > * @author dperezcar */
>  >public class GzipNonCachingProcessingPipeline extends
>  >NonCachingProcessingPipeline {
>  >  static protected class StreamHandler {
>  >  protected OutputStream getStream(Environment
>  >environment, int outputBufferSize, boolean
>  >shouldSetContentLength) throws IOException {
>  >  // Copy parameters
>  >  this.environment = environment;
>  >
>  >  OutputStream result;
>  >  if (shouldSetContentLength) {
>  >  bufferStream = new
>  >ByteArrayOutputStream();
>  >  if (shouldCompress()) {
>  >  result = gs = new
>  >GZIPOutputStream(bufferStream);
>  >  } else {
>  >  result = bufferStream;
>  >  }
>  >  } else {
>  >  if (shouldCompress()) {
>  >  result = gs = new
>  >GZIPOutputStream(environment.getOutputStream(0));
>  >  } else {
>  >  result =
>  >environment.getOutputStream(outputBufferSize);
>  >   

RE: project directory in

2004-01-13 Thread Carmona Perez, David
Of course it is also valid



David

-Mensaje original-
De: Mark Lundquist [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 17:28
Para: [EMAIL PROTECTED]
Asunto: Re: project directory in 


On Jan 12, 2004, at 5:40 PM, Joerg Heinicke wrote:

> On 13.01.2004 02:16, Mark Lundquist wrote:
>> Hi all,
>> I need to include a stylesheet using , and I would very
>> much like to be able to locate the included stylesheet relative to my
>> Cocoon project directory.  Is there a way to do that?
>
> There is using the Cocoon protocols cocoon:/ (access two a pipeline in
> current sitemap using one slash or root sitemap using two slashes) or
> context:// (on filesystem relative to webapp context).
>

I thought the "cocoon:/" pseudo-protocol was only valid in the
sitemap... does it work in the stylesheets, too?

Thanks,
~ML


-
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: Running external programs

2004-01-13 Thread Carmona Perez, David
I have created successfully a custom transformer that calls an external program.  The 
executable is searched relative to the servlet context path.

Its code is something like that (sorry is in spanish):

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.Map;
import java.util.Properties;

import javax.xml.transform.OutputKeys;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamResult;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.transformation.AbstractTransformer;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;

import fcc.ima.modelo.Conexion;
import fcc.ima.util.VarsEntorno;

public class TransfListado extends AbstractTransformer {
public TransfListado() {
fabrica = (SAXTransformerFactory)TransformerFactory.newInstance();
formato.put(OutputKeys.METHOD, "xml");
formato.put(OutputKeys.ENCODING, "ISO-8859-1");
}

/**Averigua la ubicación de listado4
 * @see 
org.apache.cocoon.sitemap.SitemapModelComponent#setup(org.apache.cocoon.environment.SourceResolver,
 java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters) */
public void setup(SourceResolver resolver, Map objectModel, String src, 
Parameters par)
throws ProcessingException, SAXException, IOException 
{
if (comando == null) {
File rutaBase = new 
File(ObjectModelHelper.getContext(objectModel).getRealPath("informe/mostrar"));
// Si es Windows, anadimos  extension .exe
comando = new File(rutaBase, "myexcecutable.exe")).toString();
}
}
/**Prepara para enviar datos a listado4*/
protected void setOutputStream(OutputStream out) throws IOException, 
SAXException, TransformerConfigurationException {
handler = fabrica.newTransformerHandler();
handler.getTransformer().setOutputProperties(formato);
handler.setResult(new StreamResult(out));
setContentHandler(handler);
setLexicalHandler(handler);
}
/**Arranca el proceso y le envía todos los eventos SAX
 * @see org.xml.sax.ContentHandler#startDocument() */
public void startDocument() throws SAXException {
try {
getLogger().debug("Arrancando listado4");
Map vars = VarsEntorno.getVars();
// Asegurarnos de q se usa el servidor de base de datos 
adecuado
vars.put("INFORMIXSERVER", Conexion.instancia().getServidor());
proceso = Runtime.getRuntime().exec(comando, 
VarsEntorno.getArray(vars));
setOutputStream(proceso.getOutputStream());
} catch (Exception e) {
throw new SAXException(e);
}
super.startDocument();
}
/**Después de haber enviado toda la información a listado4, 
 * se lee su salida estándar y se analiza con un [EMAIL PROTECTED] XMLReader} 
 * convencional para generar nuevos eventos SAX*/
public void endDocument() throws SAXException {
super.endDocument();
try {
// Analizo la salida de listado4
getLogger().debug("Leyendo resultado de listado4");
// Para q listado4 se entere de q no hay + datos 
proceso.getOutputStream().close();
XMLReader analizador = XMLReaderFactory.createXMLReader();
analizador.setContentHandler(xmlConsumer);
analizador.parse(new InputSource(proceso.getInputStream()));

/*try {
proceso.waitFor();
} catch (InterruptedException e) {
getLogger().warn("esperando listado4", e);
}
int codigo = proceso.exitValue();
if (codigo != 0) {
String msj = "listado4 ha devuelto el código de error 
"+codigo;
getLogger().error(msj);
throw new SAXException(msj);
}*/
  

RE: RE : Gzip pipeline processor

2004-01-13 Thread Carmona Perez, David
The source code of this component has been made available in 
http://wiki.cocoondev.org/Edit.jsp?page=GzipPipeline 



David

-Mensaje original-
De: Carmona Perez, David 
Enviado el: martes, 13 de enero de 2004 17:19
Para: [EMAIL PROTECTED]
Asunto: RE: RE : Gzip pipeline processor

One problem I have detected is that IE 6 doesn´t like to compress JavaScript files.  
Sometimes it reports runtime errors even though the javascript data is gathered ok.


David

-Mensaje original-
De: Carmona Perez, David
Enviado el: martes, 13 de enero de 2004 17:16
Para: [EMAIL PROTECTED]
Asunto: RE: RE : Gzip pipeline processor

Because I have finer control of what I want to compress in the sitemap, and avoid 
duplicated buffers in order to calculate the content-length..



David

-Mensaje original-
De: Jorg Heymans [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de enero de 2004 16:13
Para: [EMAIL PROTECTED]
Asunto: Re: RE : Gzip pipeline processor

Hi David,

Looks interesting, could you also post some numbers along like cpu-usage
and timing versus the non-gzipped case?

Why did you choose this solution rather than sticking apache in front of
tomcat ?

Thanks
Jorg

Carmona Perez, David wrote:

> Thanks Rasik.
>
> But my solution serves for any kind of output through Cocoon, not just for XML 
> output, both readers and generators
>
> After testing a litlle more, I will shortly make it available though the Wiki.
>
> I don't know why but now it works ok.
>
> 
> David
>
> -Mensaje original-
> De: Rasik Pandey [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 13 de enero de 2004 15:40
> Para: [EMAIL PROTECTED]
> Asunto: RE : Gzip pipeline processor
>
> Maybe this would be useful:
> http://wiki.cocoondev.org/Wiki.jsp?page=Gzip_XML_Serializer
>
> See the endDocument() method in the attached java class.
>
>
>
>  >-Message d'origine-
>  >De : Carmona Perez, David [mailto:[EMAIL PROTECTED]
>  >Envoyé : mardi 13 janvier 2004 12:52
>  >À : Cocoon (E-mail)
>  >Objet : Gzip pipeline processor
>  >
>  >
>  >Hi everybody,
>  >
>  >I've created a new ProcessingPipeline, in order to compress
>  >with gzip.  I want finer control and integration with Cocoon
>  >that the standard servlet filters may offer.
>  >
>  >It works ok, but the problem I have with it, is that the
>  >browser is terribly slow when getting the different
>  >components of a page (images, CSS sheets, scripts, ...).
>  >Does someone know if there is any detail I have left off?
>  >I suspect of not flushing the ouput stream.  Where is it
>  >flushed or closed?
>  >
>  >Any help will be greatly appreciated.
>  >
>  >Here is the full source code:
>  >
>  >/** Creado en 12-ene-2004 */
>  >package fcc.ima.cocoon;
>  >
>  >import java.io.ByteArrayOutputStream;
>  >import java.io.IOException;
>  >import java.io.OutputStream;
>  >import java.net.SocketException;
>  >import java.util.Map;
>  >import java.util.zip.GZIPOutputStream;
>  >
>  >import org.apache.cocoon.ConnectionResetException;
>  >import org.apache.cocoon.ProcessingException;
>  >import
>  >org.apache.cocoon.components.pipeline.impl.NonCachingProcessin
>  >gPipeline;
>  >import org.apache.cocoon.environment.Environment;
>  >import org.apache.cocoon.environment.ObjectModelHelper;
>  >import org.apache.cocoon.environment.Request;
>  >import org.apache.cocoon.environment.Response;
>  >
>  >/**Pipeline that may compress the content with gzip.
>  > * @author dperezcar */
>  >public class GzipNonCachingProcessingPipeline extends
>  >NonCachingProcessingPipeline {
>  >  static protected class StreamHandler {
>  >  protected OutputStream getStream(Environment
>  >environment, int outputBufferSize, boolean
>  >shouldSetContentLength) throws IOException {
>  >  // Copy parameters
>  >  this.environment = environment;
>  >
>  >  OutputStream result;
>  >  if (shouldSetContentLength) {
>  >  bufferStream = new
>  >ByteArrayOutputStream();
>  >  if (shouldCompress()) {
>  >  result = gs = new
>  >GZIPOutputStream(bufferStream);
>  >  } else {
>  >  result = bufferStream;
>  >  }
>  >  } else {
>  >  if (shoul

Sitemap variables substitution limits

2004-01-21 Thread Carmona Perez, David
Hi all,

Does anyone know why I can't use the following syntax:



.




What are the limits of variables substitution?
I have used them successfully e.g. in the pattern and src attributes.  Can they be 
used for every attribute?
Thanks in advance for any hint.


David


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



RE: [map:aggregate] passing sitemap parameter

2004-01-21 Thread Carmona Perez, David









You must set a parameter to a value,
thorugh an action or a matcher.

In this case, who sets the ‘test’
parameter?

 





David

 

-Mensaje
original-
De: Jan Hoskens
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 21 de enero
de 2004 10:48
Para: [EMAIL PROTECTED]
Asunto: [map:aggregate] passing
sitemap parameter

 

Hi,

 

I tried to pass a parameter within my
aggregation:

 

...



 



...

 



 




 

When I show the parameter test, it always
is empty. I looked at the logs, but when the part is called, I don't see where
the parameter gets passed:

 

sitemap.log:

Current Sitemap Parameters:
LEVEL 1
PARAM: '0' VALUE: 'index'

 

that's all!

 

Why can't I pass parameters to a part? Or
am I doing something wrong?

 

setup: cocoon cvs head 2.1, updated
yesterday

 

 

Greetings,

 

Jan








Database pool and dynamic URLs

2004-01-26 Thread Carmona Perez, David
Dear Cocooners,

I've read an article about connection pooling in 
http://wiki.cocoondev.org/Wiki.jsp?page=ConnectionPooling .
The technique explained there isn't useful for my case, because the user, password, 
and database name are not known beforehand, they are dynamically constructed.

Any workaround?
Thanks for any help.


David


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



RE: Database pool and dynamic URLs

2004-01-26 Thread Carmona Perez, David
Jorg,

I let the user collect the available databases from a list, and build a connection 
string dynamically based on the database name.
I can also receive XML request specifying the database name.
Available databases are not known in advance, so I can't put them in cocoon.xconf.


David

-Mensaje original-
De: Jorg Heymans [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 26 de enero de 2004 16:57
Para: [EMAIL PROTECTED]
Asunto: Re: Database pool and dynamic URLs

How exactly do you construct these dynamically? (and possibly also :
why?). Can you explain to us your usecase a bit more?

Thanks
Jorg

Carmona Perez, David wrote:

> Dear Cocooners,
>
> I've read an article about connection pooling in 
> http://wiki.cocoondev.org/Wiki.jsp?page=ConnectionPooling .
> The technique explained there isn't useful for my case, because the user, password, 
> and database name are not known beforehand, they are dynamically constructed.
>
> Any workaround?
> Thanks for any help.
>
> 
> David


-
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: Database pool and dynamic URLs

2004-01-27 Thread Carmona Perez, David
Thanks.  I'll try before to customize the excalibur connection pool.


David

-Mensaje original-
De: Frank Taffelt [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 26 de enero de 2004 18:37
Para: [EMAIL PROTECTED]
Asunto: Re: Database pool and dynamic URLs

the esql taglib still supports the creation of a dynamic jdbc connection
using the follwing tags: esql:driver, esql:dburl, esql:username,
esql:password tags.

fill these elements with your dynamic values and it should work. But keep in
mind that your are loosing the advantage of pooled connection's, doing
things this way ...

hth,
Frank



- Original Message -----
From: "Carmona Perez, David" <[EMAIL PROTECTED]>
To: "Cocoon (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, January 26, 2004 4:54 PM
Subject: Database pool and dynamic URLs


> Dear Cocooners,
>
> I've read an article about connection pooling in
http://wiki.cocoondev.org/Wiki.jsp?page=ConnectionPooling .
> The technique explained there isn't useful for my case, because the user,
password, and database name are not known beforehand, they are dynamically
constructed.
>
> Any workaround?
> Thanks for any help.
>
> 
> David
>
>
> -
> 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: File downloading problem

2004-02-13 Thread Carmona Perez, David








A
solution that works for me is to use this reader (attached with this message) adapted
from Cocoon 2.0.4, that should replace the buggy one that comes with Cocoon
2.1.2.

 





David

 

-Mensaje
original-
De: tonyo
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 21 de enero
de 2004 11:19
Para: [EMAIL PROTECTED]
Asunto: File downloading problem

 

Hi,



 



I’d like to make
some Word and PDF files downloadable from my application, based on Cocoon 2.1.2
/ Tomcat 4.1.18.



Here is the
problem I meet:



- The first click
on the link gives the following message :

Internet Explorer cannot download toto.doc from localhostInternet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.

- If I click ‘OK’
and try again, then the downloading comes successful.



 



I know that this
question has already been raised before, but the proposed solutions (consisting
in adding a set-header action before the reader in the map:match) didn’t solve
my problem.



 



Here is an
extract of my sitemap:











    















    







 



Many thanks in advance
for your help



 



Antoine



 



 



 



 



 



 



 








ResourceReader.java
Description: ResourceReader.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: FileGenerator making two HTTP requests

2004-02-13 Thread Carmona Perez, David
And is there any known workaround?

I have already tried to detect the first request with this action: 

public class RepeatedPdfRequestAction extends AbstractAction {
/** @see 
org.apache.cocoon.acting.Action#act(org.apache.cocoon.environment.Redirector, 
org.apache.cocoon.environment.SourceResolver, java.util.Map, java.lang.String, 
org.apache.avalon.framework.parameters.Parameters) */
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel,
String source, Parameters par) throws Exception 
{
Request req = ObjectModelHelper.getRequest(objectModel);
if (req.getParameter("cocoon-view") != null) {
return null;
}
String agent = req.getHeader("user-agent");
if (agent != null) {
if (agent.equals("contype")) {
getLogger().debug("Peticion IE repe (contype)");
return EMPTY_MAP;
} else if (agent.indexOf("MSIE") >= 0 && 
req.getHeader("accept-language") != null) {
getLogger().debug("Peticion IE repe 
(accept-language)");
return EMPTY_MAP;
}
}   
return null;
}
}


and if the action succeeds, to launch the following reader:

public class EmptyPdfReader extends AbstractReader {
/**It does nothing 
 * @see org.apache.cocoon.reading.Reader#generate() */
public void generate() throws IOException, SAXException, ProcessingException {
getLogger().debug("Generando PDF vacio");
}
/**Returns the mime-type of the resource in process.*/
public String getMimeType () {
   return "application/pdf";
}
}

But sometimes it doesn't work well.

Any suggestions will be welcome!.


David

-Mensaje original-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 06 de febrero de 2004 12:37
Para: [EMAIL PROTECTED]
Asunto: Re: FileGenerator making two HTTP requests

If it is the PDF and you access it via Internet Explorer and the Adobe
Plugin it is an issue of IE. IE requests the file twice.

Joerg

On 04.02.2004 14:44, Teator, Michael wrote:

> Geoff,
>
> The content is returned from a request to a JRun server that returns the
> XML.
>
> I tried setting the pipeline to noncaching, no difference.
>
> I also tried taking JRun out of the equation with a simple test as follows.
> If I try to retrieve http://localhost:8080/cocoon/test5.pdf, I see two
> requests in the localhost access logs for test5.xml.
>
> (note this is just a test sitemap... the XML normally comes from a http
> request to another server, not from cocoon)
>
>   
>   
>src="tests/test.xml"/>
>   
>   
>   
>   
>value="true"/>
>src="http://localhost:8080/cocoon/test{../1}.xml"/>
>src="tests/test.xsl"/>
>   
>   
>   
>
>   etc etc...

-
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: IE explorer problem

2004-02-16 Thread Carmona Perez, David
Why don't you use a final version of Cocoon 2.1 instead of a milestone, like i.e. 
2.1.4?



David

-Mensaje original-
De: Andrey Almirov [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 16 de febrero de 2004 11:25
Para: [EMAIL PROTECTED]
Asunto: IE explorer problem

Hello All!

1. I have problem with using Cocoon 2.1-M1.

I have the pipeline login.


 
  
  
 


After success login it redirects to choose project pipeline which is
similar to login.

redirector.redirect(true,REDIRECT_PAGE);

All works fine, but when I use IE 6 after login IE shows just empty
screen. If one looks to source code -- all is fine (source code is
fine). If you press Refresh  the page is renders fine.

This is doing in IE 6 only.

2. The second problem is that some time IE shows the message: "Internet
Explorer cannot open the site ... Operation aborted"

When I press Refresh --- all is fine.

The main strangeness of this problem is that it happens in IE 6 only.
In IE 5 all is fine.

Does anybody help me?

Thanks in advance.

Configuration.

Cocoon 2.1-M1, Tomcat 4.1.24, JDK 1.4, Winfows 2000 Prof.


Andrey  mailto:[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]



xmlns namespace references not removed by the HTML serializer.

2004-02-16 Thread Carmona Perez, David
Hi all,

Does anybody know why xmlns namespace references are not removed by the HTML 
serializer?.

In my browser I can see some code like this:




http://apache.org/cocoon/i18n/2.1"; xmlns:xsp="http://apache.org/xsp"; 
href="normal.css" type="text/css" rel="stylesheet">


 

Thanks in advance for any help.


David


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



RE: xmlns namespace references not removed by the HTMLserializer.

2004-02-16 Thread Carmona Perez, David
Thanks for all answers, it works ok.  :)



David

-Mensaje original-
De: Derek Hohls [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 16 de febrero de 2004 13:05
Para: [EMAIL PROTECTED]
Asunto: Re: xmlns namespace references not removed by the HTMLserializer.

See:

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


>>> [EMAIL PROTECTED] 2004/02/16 01:56:10 PM >>>
Hi all,

Does anybody know why xmlns namespace references are not removed by the
HTML serializer?.

In my browser I can see some code like this:




http://apache.org/cocoon/i18n/2.1";
xmlns:xsp="http://apache.org/xsp"; href="normal.css" type="text/css"
rel="stylesheet">




Thanks in advance for any help.


David


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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


-
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: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Carmona Perez, David
Why don't you consult the jxpath web page? http://jakarta.apache.org/commons/jxpath/ 
I have used under Cocoon 2.0.4 custom functions without problems, but don't remember 
the details.


David

-Mensaje original-
De: Roman Hrivik [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de febrero de 2004 12:41
Para: [EMAIL PROTECTED]
Asunto: JXPathMetaModule configuration and sample use for function, package


Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :



   




I tried to use this module in sitemap like this






but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?


there is my logs:
DEBUG   (2004-02-18) 12:30.20:515   [core.modules.input.utils]
(Unknown-URI) Unknown-thread/JXPathMetaModule: adding Package
my.own.package to functions
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: modeConf is null
this.inputConf is
[EMAIL PROTECTED]
mConf is null this.input is
[EMAIL PROTECTED]
this.defaultInput is request-attr inputName is null parameter is
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: MetaModule performing op
GET_VALUE on statically assigned module 'request-attr', using config
null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: using request-attr as
[EMAIL PROTECTED]
for 0 () and
[EMAIL PROTECTED]
gives null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: returning an null as null
















-
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: Is there a sitemap DTD?

2004-02-18 Thread Carmona Perez, David
I've seen a schema that I attach in this message.


David

-Mensaje original-
De: Jim Bloggs [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 0:08
Para: [EMAIL PROTECTED]
Asunto: Is there a sitemap DTD?

Greetings Cocoon Users!

Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
looking everywhere for it, including google. I could have sworn I saw it
somewhere in passing, but now I can't find it again. Is there such a
thing?

I would be most grateful for any assistance.

Many thanks.

Jim

--
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

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


sitemap-2.1-draft.xsd
Description: sitemap-2.1-draft.xsd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: combining coocon with my web application

2004-02-18 Thread Carmona Perez, David








You can have more than one servlet
per web application, it is a matter of defining in web.xml the address patterns
that go to each servlet.  For
example, I combined successfully Cocoon and Struts.

 





David

 

-Mensaje
original-
De: reza x
[mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero
de 2004 8:47
Para: [EMAIL PROTECTED]
Asunto: combining coocon with my
web application

 

hi all.

I am going to combine cocoon with my current framework
and web application.I don't want use the WAR file which is ready in cocoon
distribution.

how can i do this combination?

the only need i want to meet by cocoon is to give
it an XSL file and an input xml file and generate some html
and pdf format outputs.please guide me how can i do this.

 

thanks alot for your attention.

Best Regard.

 

 









Do you Yahoo!?
Yahoo! Mail SpamGuard -
Read only the mail you want.








RE: iframes and cocoon

2004-02-25 Thread Carmona Perez, David
Title: Re: iframes and cocoon








I also had no problems.

From the server point of view, it is
like a standard page.

 





David

 

-Mensaje
original-
De: beyaNet Consultancy
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 25 de
febrero de 2004 16:49
Para: [EMAIL PROTECTED]
Asunto: Re: iframes and cocoon

 

Beate, 

I am
using an iframe in my application with no problems. what would you like to
know? 

 

Andrew 

On 25
Feb 2004, at 15:43, <[EMAIL PROTECTED]> wrote: 

 

Hi all, 

 

we are using cocoon 2.1.1 and are thinking of changing our application
in a way to use iframes in cocoon. 

Does anybody have experience in using iframes with cocoon, something
specific to take into account, some useful link or tips? 

 

Thanks a lot 

Beate 

 

 

  

 

Any
e-mail message from the European Central Bank (ECB) is sent in good faith but
shall neither be binding nor construed as constituting a commitment by the ECB
except where provided for in a written agreement. 

This
e-mail is intended only for the use of the recipient(s) named above. Any
unauthorised disclosure, use or dissemination, either in whole or in part, is
prohibited. 

If you
have received this e-mail in error, please notify the sender immediately via
e-mail and delete this e-mail from your system. 








RE: Failed to execute pipeline

2004-02-26 Thread Carmona Perez, David









Probable cause:

 

You have an XML file somewhere with
has a bad encoding.  You are using
an editor that is not XML aware and using some non-English character.

 





David

 

-Mensaje
original-
De: franck LAMY [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 26 de febrero
de 2004 11:14
Para: [EMAIL PROTECTED]
Asunto: Failed to execute pipeline

 

 

Hi,

 

When i execute my application under tomcat
5.0.18, i have the following error :

 

org.apache.cocoon.ProcessingException:
Failed to execute pipeline.: java.io.UTFDataFormatException: Invalid byte 2 of
3-byte UTF-8 sequence.

 

Here is my sitemap.xmap file :







    

        

       
    

   
   

       
    

        

    





Can someone helps me because i turn around .

THANKS

 








RE: Very strange IE problem

2004-02-26 Thread Carmona Perez, David
Why don't you search in msdn.microsoft.com for IE bugs?



David

-Mensaje original-
De: Andrey Almirov [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 26 de febrero de 2004 17:21
Para: [EMAIL PROTECTED]
Asunto: Very strange IE problem

Hello, dear Cocoon users!

I have 2 pipelines: A and B

A pipeline:


  


  


  
  

  


When I visit  A  it just shows some button. When I click on this button pipeline 
redirects to B.

B is usial pipeline


  
  


where bigPage.xml *MUST* have the following properties:
1. It musts have a big size.
2. It musts load some css or script.

The problem is that when A redirect to B sometime the error  "InternetExplorer cannot 
open the site
... Operation aborted"

Or just white screen appears.

It happens on IE 6 only.

Configuration: Windows Professional 2000, Tomcat 4.1.24, Cocoon 2.1.4

In attachment there are all needed files.

In the experiments I have noted that this effect depends on size of file, and on Inet 
speed. So I do
this experiment in localhost (Inet speed rather big)

Thanks in advance.

Andrey

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



Validating transformer

2004-02-26 Thread Carmona Perez, David








In order to improve the quality of
my app, I would like to have a transformer that:

 


 given a DTD, schema or something similar, 
 it could validate the XML data received.


 

Does anybody know if there is
already one?

 

Thanks in advance for any help.





David

 








RE: Cocoon efficiency and .jar files

2004-02-27 Thread Carmona Perez, David
I think when required, because class loader errors are detected when the class is used.

Remove unnecessary jars in order to increase efficiency.


David

-Mensaje original-
De: carl latimer [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 27 de febrero de 2004 11:47
Para: [EMAIL PROTECTED]
Asunto: Cocoon efficiency and .jar files

Hi, I am a member of a small group developing a web site using Tomcat and
Cocoon and we are having some problems with the efficiency of the site. We
were wondering if all of the lib jar files for Cocoon were loaded into
memory, by default, on start up or whether they are loaded into memeory as
and when required? Any thoughts people?

Thanks, Carl.

_
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger


-
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 protocol not available

2004-03-02 Thread Carmona Perez, David
Why don't you try with a newer version of Cocoon.  
E.g. with Cocoon 2.0.4, 2.1.2, 2.1.3 it has worked ok for me.

-Mensaje original-
De: Meyer, Christian [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de marzo de 2004 12:48
Para: '[EMAIL PROTECTED]'
Asunto: cocoon protocol not available


Hi,

where is the reason that the cocoon protocol is not available in the
sitemap? I use cocoon 2.0.3 and got the following error while using the
cocoon protocol:

java.lang.IllegalArgumentException: The url cocoon:/bf_orders_actions_show
cannot be converted into a valid url. java.net.MalformedURLException:
unknown protocol: cocoon
at
com.inqmy.services.servlets_jsp.server.HttpServletResponseFacade.sendRedirec
t(HttpServletResponseFacade.java:590)
at
org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpResponse.ja
va:132)
at
org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEnvironment.
java:198)

How can I solve that?

Thanks cham

-
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]



Input modules nesting

2004-04-01 Thread Carmona Perez, David



Hi 
all,
 
Does anyone know if I can 
nest invocations to input modules in this way:
 

 
?
 
Thanks in advance for any 
help.


Documentation broken!

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***




The sitemap documentation
is broken:
 
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
 
Does anyone know where I
can find it?
Thanks in
advance.


RE: Documentation broken!

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


-Mensaje original-
De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Enviado el: martes, 06 de abril de 2004 16:09
Para: [EMAIL PROTECTED]
Asunto: Re: Documentation broken!


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***



Le 6 avr. 04, à 16:06, Carmona Perez, David a écrit :
>
> ...The sitemap documentation is broken:
>  
> http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html

Works fine here.

-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: Documentation broken!

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***



Strange, because the other documentation links work for me.
And I have tried two browsers: IE 6.0 and Mozilla 1.6.

This is the empty content I receive on this link:



-Mensaje original-
De: Antonio Gallardo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 06 de abril de 2004 16:14
Para: [EMAIL PROTECTED]
Asunto: Re: Documentation broken!


Carmona Perez, David dijo:
>
>
> The sitemap documentation is broken:
>
> http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
>
> Does anyone know where I can find it?

Yep. Here:
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html

It works fine here too ;)

Best Regards,

Antonio Gallardo


-
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: Documentation broken!

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Thanks Antonio, but yesterday I had the same problem.

Surely it must be a proxy related issue or something similar.

-Mensaje original-
De: Antonio Gallardo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 06 de abril de 2004 16:30
Para: [EMAIL PROTECTED]
Asunto: RE: Documentation broken!


***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Carmona Perez, David dijo:
> ***
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> ***-***
>
>
>
> Strange, because the other documentation links work for me.
> And I have tried two browsers: IE 6.0 and Mozilla 1.6.
>
> This is the empty content I receive on this link:
>
> 

Don't worry this things happens, sometimes the proxies make weird things.
I recommend you to wait 10 mins and retry.

Best Regards,

Antonio Gallardo

-
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: encodeURL transformer

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***



If you know Java, you can try to debug the code of the encoder transformer.

-Mensaje original-
De: Davide [mailto:[EMAIL PROTECTED]
Enviado el: martes, 06 de abril de 2004 16:52
Para: [EMAIL PROTECTED]
Asunto: encodeURL transformer


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***


Hi all, i've a big  problem

I'm using the encodeURL transformer in my pipeline because i need it to
keep session with wap. but with some links it doesn't run. for example:

 results in
mcnavigator/conent;Jsession= and it's ok

with 

Wildcard matcher and **

2004-04-06 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Hi all,

How can I match the following URLs:

- myresource
- /myresource
- myfolder/myresource
but not:
- armyresource


I have tried:

...


Problem:
It doesn't match "myresource".

Solutions:
1)

...


...

2)

...


Does anyone know a better solution?

Thanks in advance.


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



Resources inherited in sub-sitemaps

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***




Hi
all,
 
Are resources
inherited in sub-sitemaps?
It seems that not. 
How can I inherit them.
 
Thanks in advance for any
help.


RE: Resources inherited in sub-sitemaps

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


The only solution I see is to convert them to standard pipelines with internal-only 
status.  The problem is that I lose parameter capabilities.

-Mensaje original-
De: John L. Webber [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de abril de 2004 10:39
Para: [EMAIL PROTECTED]
Asunto: Re: Resources inherited in sub-sitemaps


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***


As far as I know they're not, but maybe they will be in a future
version...it sure would be nice.

John

Carmona Perez, David wrote:

> Hi all,
> 
> Are resources inherited in sub-sitemaps?
> It seems that not.  How can I inherit them.
> 
> Thanks in advance for any help.


--
-
 Jentro Technologies GmbH
 John L. Webber, Software Development
-
 Rosenheimer Str. 145e  81671 München
 Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED]
 Fax  +49 89 189 169 99 http://www.jentro.com
-
NOTICE: The information contained in this e-mail is confidential or may otherwise be 
legally privileged. It is intended for the named recipient only. If you have received 
it in error, please notify us immediately by reply or by calling the telephone number 
above and delete this message and all its attachments without any use or further 
distribution of its contents. Please note that any unauthorised review, copying, 
disclosing or otherwise making use of the information is strictly prohibited. Thank 
you.
-


-
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: Resources inherited in sub-sitemaps

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***



Can  be used as a replacement for  ?

-Mensaje original-
De: Carmona Perez, David
Enviado el: miércoles, 07 de abril de 2004 10:41
Para: [EMAIL PROTECTED]
Asunto: RE: Resources inherited in sub-sitemaps

The only solution I see is to convert them to standard pipelines with internal-only 
status.  The problem is that I lose parameter capabilities.

-Mensaje original-
De: John L. Webber [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de abril de 2004 10:39
Para: [EMAIL PROTECTED]
Asunto: Re: Resources inherited in sub-sitemaps

As far as I know they're not, but maybe they will be in a future

version...it sure would be nice.

John

Carmona Perez, David wrote:

> Hi all,
>


> Are resources inherited in sub-sitemaps?
> It seems that not.  How can I inherit them.
>


> Thanks in advance for any help.


--

-
 Jentro Technologies GmbH
 John L. Webber, Software Development
-
 Rosenheimer Str. 145e  81671 München
 Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED]

 Fax  +49 89 189 169 99 http://www.jentro.com
-
NOTICE: The information contained in this e-mail is confidential or may otherwise be 
legally privileged. It is intended for the named recipient only. If you have received 
it in error, please notify us immediately by reply or by calling the telephone number 
above and delete this message and all its attachments without any use or further 
distribution of its contents. Please note that any unauthorised review, copying, 
disclosing or otherwise making use of the information is strictly prohibited. Thank 
you.

-


-
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: Documentation broken!

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


It was a proxy issue, that has happened only with this page!!

-Mensaje original-
De: Antonio Gallardo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 06 de abril de 2004 16:30
Para: [EMAIL PROTECTED]
Asunto: RE: Documentation broken!


Carmona Perez, David dijo:
>
>
>
> Strange, because the other documentation links work for me.
> And I have tried two browsers: IE 6.0 and Mozilla 1.6.
>
> This is the empty content I receive on this link:
>
> 

Don't worry this things happens, sometimes the proxies make weird things.
I recommend you to wait 10 mins and retry.

Best Regards,

Antonio Gallardo

-
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: Resources inherited in sub-sitemaps

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


If I used to have this construct:






I must do this in order to encode parameters, when using resources:




Does  allow to split the generator-transformer-serializer chain in 
two requests, like a resource?


-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Jorg Heymans
Enviado el: miércoles, 07 de abril de 2004 10:51
Para: [EMAIL PROTECTED]
Asunto: Re: Resources inherited in sub-sitemaps


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***


>
>
> The only solution I see is to convert them to standard pipelines with internal-only 
> status. 

The problem is that I lose parameter capabilities.
>
what do you mean by losing parameter capabilities?




-
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]



Anchor in an action

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Hi all,

I've read in the wiki, 
http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution, the following:

you use the new anchor syntax. With sitemap variable anchors you name a specific level 
and refer to them directly by the specified name.
 ...
 

  
  
  

 
 ...


It seems not to work. In my case I attach it to an action instead of a matcher.

Any help will be appreciated.


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



RE: Flow & Session Variables

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***



There is a way by using the SessionAttributeModule input module with this syntax:






-Mensaje original-
De: Nils Köster [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de abril de 2004 13:59
Para: [EMAIL PROTECTED]
Asunto: AW: Flow & Session Variables


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***


Generally: yes, try 
Details: http://cocoon.apache.org/2.0/developing/webapps/session.html

In my development of a site with kind of a shopping-basket i found out that
theres no way to get the contains of a session into a  or
. If you need that, contact me, i've got a workaround.

Regards,
nils

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Nils Köster


-
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: Anchor in an action

2004-04-07 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


I'm using Cocoon version 2.1.2

Here is a snippet that doesn't work:









-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de abril de 2004 15:25
Para: [EMAIL PROTECTED]
Asunto: Re: Anchor in an action

Carmona Perez, David wrote:
>
>Hi all,
>
>I've read in the wiki, 
>http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution, the following:
> 
>
Ah, a useful link.

>you use the new anchor syntax. With sitemap variable anchors you name a specific 
>level and refer to them directly by the specified name.
>
> ...
> 
>
>  
>  
>  
>
> 
> ...
>
>It seems not to work. In my case I attach it to an action instead of a matcher.
>
>Any help will be appreciated.
> 
>
What version of Cocoon are you using?

Support for 'name' is there in both action and match in the code, it seems.

Can you provide a sample of sitemap code that doesn't work?

Upayavira


-
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: Resources inherited in sub-sitemaps

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Thanks a lot, very good trick.  I have event thought of creating sitemaps dynamically, 
but this trick is standard XML.

-Mensaje original-
De: Tuomo L [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de abril de 2004 21:23
Para: Cocoon (E-mail)
Asunto: Re: Resources inherited in sub-sitemaps


Hi,

This might help you...

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107607554627091&w=2

-Tuomo

On Wed, 7 Apr 2004, Carmona Perez, David wrote:

>
> Hi all,
>
> Are resources inherited in sub-sitemaps?
> It seems that not.  How can I inherit them.
>
> Thanks in advance for any help.
>
>

-
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]



Redirection from an action

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Hi all,

I have in a action the following Java code:

public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String 
source, Parameters par)
throws Exception
{
...
redirector.redirect(false, newUrl);
}

but seems to do nothing.

Has anyone tried to redirect from an action?

Thanks for any possible help.


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



PatternException when expanding sitemap variables

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Here is a small fragment of my pipeline:







The 'pon-idioma' action sets a variable called 'nuevo-url'.
I receive the following error when nesting a matcher that accesses this variable:

org.apache.cocoon.sitemap.PatternException: Error while evaluating 
'{nuevo-url}' : not so many levels

Here is the call stack

at 
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:245)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:117)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)

It seems that the problem is related to expand the variable.
Why do I get this error?
Thanks for any help.

David


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



RE: Anchor in an action

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


I get an exception of anchor not found.

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 08 de abril de 2004 12:42
Para: [EMAIL PROTECTED]
Asunto: Re: Anchor in an action


>
>
>I'm using Cocoon version 2.1.2
>
>Here is a snippet that doesn't work:
>
>
>   
>   
>   
>   
>   
>
> 
>
Okay. You say "it doesn't work." What does it do that is wrong?

Upayavira

>-Mensaje original-
>De: Upayavira [mailto:[EMAIL PROTECTED]
>Enviado el: miércoles, 07 de abril de 2004 15:25
>Para: [EMAIL PROTECTED]
>Asunto: Re: Anchor in an action
>
>Carmona Perez, David wrote:
> 
>
>>Hi all,
>>
>>I've read in the wiki, 
>>http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution, the following:
>>
>>   
>>
>
> 
>
>Ah, a useful link.
>
> 
>
>>you use the new anchor syntax. With sitemap variable anchors you name a specific 
>>level and refer to them directly by the specified name.
>>
>>...
>>
>>   
>> 
>> 
>> 
>>   
>>
>>...
>>
>>It seems not to work. In my case I attach it to an action instead of a matcher.
>>
>>Any help will be appreciated.
>>
>>   
>>
>
> 
>
>What version of Cocoon are you using?
>
>Support for 'name' is there in both action and match in the code, it seems.
>
>Can you provide a sample of sitemap code that doesn't work?
>
>Upayavira
>
>
>-
>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: PatternException when expanding sitemap variables

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Where can I look at the generated sitemap.java, in order to find the error cause?

-Mensaje original-
De: Carmona Perez, David
Enviado el: jueves, 08 de abril de 2004 10:40
Para: Cocoon (E-mail)
Asunto: PatternException when expanding sitemap variables

Here is a small fragment of my pipeline:







The 'pon-idioma' action sets a variable called 'nuevo-url'.
I receive the following error when nesting a matcher that accesses this variable:

org.apache.cocoon.sitemap.PatternException: Error while evaluating 
'{nuevo-url}' : not so many levels

Here is the call stack

at 
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:245)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:117)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)

It seems that the problem is related to expand the variable.
Why do I get this error?
Thanks for any help.

David


-
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: Anchor in an action

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Could I also use 2.1.4 as it's more stable?
BTW, Cocoon 2.1.4 doesn't show up in changes 
http://cocoon.apache.org/2.1/changes.html, the latest shown is 2.1.3.

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 08 de abril de 2004 13:19
Para: [EMAIL PROTECTED]
Asunto: Re: Anchor in an action


>I get an exception of anchor not found.
> 
>
The simplest, and most immediate question I'd ask is, are you able to
upgrade to 2.1.5-dev (from CVS)? As the this code has been completely
rewritten, and thus may prevent your problem.

Regards, Upayavira

>-Mensaje original-
>De: Upayavira [mailto:[EMAIL PROTECTED]
>Enviado el: jueves, 08 de abril de 2004 12:42
>Para: [EMAIL PROTECTED]
>Asunto: Re: Anchor in an action
>
>
> 
>
>>I'm using Cocoon version 2.1.2
>>
>>Here is a snippet that doesn't work:
>>
>>
>>  
>>  
>>  
>>  
>>  
>>
>>
>>   
>>
>
> 
>
>Okay. You say "it doesn't work." What does it do that is wrong?
>
>Upayavira
>
> 
>
>>-Mensaje original-
>>De: Upayavira [mailto:[EMAIL PROTECTED]
>>Enviado el: miércoles, 07 de abril de 2004 15:25
>>Para: [EMAIL PROTECTED]
>>Asunto: Re: Anchor in an action
>>
>>Carmona Perez, David wrote:
>>
>>   
>>
>
> 
>
>>>Hi all,
>>>
>>>I've read in the wiki, 
>>>http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution, the following:
>>>
>>> 
>>> 
>>>
>
> 
>
>>   
>>
>
> 
>
>>Ah, a useful link.
>>
>>
>>   
>>
>
> 
>
>>>you use the new anchor syntax. With sitemap variable anchors you name a specific 
>>>level and refer to them directly by the specified name.
>>>
>>>...
>>>
>>>  
>>>
>>>
>>>
>>>  
>>>
>>>...
>>>
>>>It seems not to work. In my case I attach it to an action instead of a matcher.
>>>
>>>Any help will be appreciated.
>>>
>>> 
>>> 
>>>
>
> 
>
>>   
>>
>
> 
>
>>What version of Cocoon are you using?
>>
>>Support for 'name' is there in both action and match in the code, it seems.
>>
>>Can you provide a sample of sitemap code that doesn't work?
>>
>>Upayavira
>>
>>
>>-
>>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: PatternException when expanding sitemap variables

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


I have achieved it to work by

1) Placing the result variable of the action as a request attribute, instead of as a 
sitemap variable
2) Changing

   to


Does anyone know if what has happened to me is a Cocoon bug or not?

-Mensaje original-
De: Carmona Perez, David
Enviado el: jueves, 08 de abril de 2004 12:59
Para: [EMAIL PROTECTED]
Asunto: RE: PatternException when expanding sitemap variables


Where can I look at the generated sitemap.java, in order to find the error cause?

-Mensaje original-
De: Carmona Perez, David

Enviado el: jueves, 08 de abril de 2004 10:40
Para: Cocoon (E-mail)
Asunto: PatternException when expanding sitemap variables

Here is a small fragment of my pipeline:







The 'pon-idioma' action sets a variable called 'nuevo-url'.
I receive the following error when nesting a matcher that accesses this variable:

org.apache.cocoon.sitemap.PatternException: Error while evaluating 
'{nuevo-url}' : not so many levels

Here is the call stack

at 
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:245)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:117)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)
at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)

It seems that the problem is related to expand the variable.
Why do I get this error?
Thanks for any help.

David


-
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: PatternException when expanding sitemap variables

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***




-Mensaje original-
De: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 08 de abril de 2004 14:45
Para: [EMAIL PROTECTED]
Asunto: RE: PatternException when expanding sitemap variables


***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Is the followin, pasted example correct?

>  
>   
>   
>   
> 

There is a closing slash in the first line!
If so, you can't get the value from the action in your matcher
as the matcher is not nested inside the action. It should work
this way (without a closing slash at the action element):








HTH
Carsten

> -Original Message-
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 08, 2004 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: PatternException when expanding sitemap variables
>
> ***
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> ***-***
>
>
> I have achieved it to work by
>
> 1) Placing the result variable of the action as a request
> attribute, instead of as a sitemap variable
> 2) Changing
>
>   
>to
>   
>
> Does anyone know if what has happened to me is a Cocoon bug or not?
>
> -Mensaje original-
> De: Carmona Perez, David
>
> Enviado el: jueves, 08 de abril de 2004 12:59
> Para: [EMAIL PROTECTED]
> Asunto: RE: PatternException when expanding sitemap variables
>
>
> Where can I look at the generated sitemap.java, in order to
> find the error cause?
>
> -Mensaje original-
> De: Carmona Perez, David
>
> Enviado el: jueves, 08 de abril de 2004 10:40
> Para: Cocoon (E-mail)
> Asunto: PatternException when expanding sitemap variables
>
> Here is a small fragment of my pipeline:
>
> 
>   
>   
>   
> 
>
> The 'pon-idioma' action sets a variable called 'nuevo-url'.
> I receive the following error when nesting a matcher that
> accesses this variable:
>
>   org.apache.cocoon.sitemap.PatternException: Error while
> evaluating '{nuevo-url}' : not so many levels
>
> Here is the call stack
>
>   at
> org.apache.cocoon.components.treeprocessor.variables.PreparedV
> ariableResolver.resolve(PreparedVariableResolver.java:245)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.i
> nvoke(MatchNode.java:117)
>   at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> e.invoke(PipelineNode.java:163)
>   at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo
> de.invoke(PipelinesNode.java:161)
>   at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreeProcessor.java:351)
>   at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreeProcessor.java:304)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
>   at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:1104)
>
> It seems that the problem is related to expand the variable.
> Why do I get this error?
> Thanks for any help.
>
> David
>
>
> -
> 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: PatternException when expanding sitemap variables

2004-04-08 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


I don't understand how I haven't been able to discover it myself.
Thanks a lot.  This was the problem!!!.

-Mensaje original-
De: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 08 de abril de 2004 14:45
Para: [EMAIL PROTECTED]
Asunto: RE: PatternException when expanding sitemap variables


***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Is the followin, pasted example correct?

>  
>   
>   
>   
> 

There is a closing slash in the first line!
If so, you can't get the value from the action in your matcher
as the matcher is not nested inside the action. It should work
this way (without a closing slash at the action element):








HTH
Carsten

> -----Original Message-
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 08, 2004 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: PatternException when expanding sitemap variables
>
> ***
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> ***-***
>
>
> I have achieved it to work by
>
> 1) Placing the result variable of the action as a request
> attribute, instead of as a sitemap variable
> 2) Changing
>
>   
>to
>   
>
> Does anyone know if what has happened to me is a Cocoon bug or not?
>
> -Mensaje original-
> De: Carmona Perez, David
>
> Enviado el: jueves, 08 de abril de 2004 12:59
> Para: [EMAIL PROTECTED]
> Asunto: RE: PatternException when expanding sitemap variables
>
>
> Where can I look at the generated sitemap.java, in order to
> find the error cause?
>
> -Mensaje original-
> De: Carmona Perez, David
>
> Enviado el: jueves, 08 de abril de 2004 10:40
> Para: Cocoon (E-mail)
> Asunto: PatternException when expanding sitemap variables
>
> Here is a small fragment of my pipeline:
>
> 
>   
>   
>   
> 
>
> The 'pon-idioma' action sets a variable called 'nuevo-url'.
> I receive the following error when nesting a matcher that
> accesses this variable:
>
>   org.apache.cocoon.sitemap.PatternException: Error while
> evaluating '{nuevo-url}' : not so many levels
>
> Here is the call stack
>
>   at
> org.apache.cocoon.components.treeprocessor.variables.PreparedV
> ariableResolver.resolve(PreparedVariableResolver.java:245)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.i
> nvoke(MatchNode.java:117)
>   at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> e.invoke(PipelineNode.java:163)
>   at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo
> de.invoke(PipelinesNode.java:161)
>   at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreeProcessor.java:351)
>   at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.proce
> ss(TreeProcessor.java:304)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
>   at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:1104)
>
> It seems that the problem is related to expand the variable.
> Why do I get this error?
> Thanks for any help.
>
> David
>
>
> -
> 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]



Validator Transformer

2004-04-13 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***




Hi
all,
 
I've created a
transformer that can be inserted in any stage of an
XML pipeline, in order to validate its contents.  This can be a powerful
tool for debugging and conformance testing.. 
 
http://wiki.cocoondev.org/Wiki.jsp?page=ValidationTransformer
 
I expect your
feedback.
 
David


RE: cocoon under eclipse

2004-04-13 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


It seems a problem with the classpath, some core component of Cocoon is missing.  
Search for the existence of org/apache/cocoon/webapps/session/ContextManager.class in 
a JAR file.

-Mensaje original-
De: Flavio Palumbo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de abril de 2004 12:23
Para: [EMAIL PROTECTED]
Asunto: cocoon under eclipse


***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Hi all,

I tried to put cocoon under eclipse, building a new project in eclipse,
addressing the directory of a working built of cocoon 2.1.3.

The goal was to try to easily debug cocoon to better understand it.

But now when I try to run it with jetty, in the normal way with cocoon servlet,
i got the following exception :

I run with Win2000, cocoon 2.1.3, jdk 1.4.2_01, jetty.

Any hint ?

Thanks a lot

Flavio Palumbo


Initialization Problem
Message: Could not set up component

Description: org.apache.avalon.framework.configuration.ConfigurationException:
Could not set up component

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

cause

org.apache.avalon.framework.component.ComponentException: Could not find
component (key [org.apache.cocoon.webapps.session.ContextManager])

request-uri

/

full exception chain stacktrace

Original Exception: org.apache.avalon.framework.component.ComponentException:
Could not set up Component for hint [ session-context] (key [session-context])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:754)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:414)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:302)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:556)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1369)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:515)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
at org.mortbay.http.HttpServer.start(HttpServer.java:647)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: org.apache.avalon.framework.service.ServiceException: Could not
find component (key [org.apache.cocoon.webapps.session.ContextManager])
(Key='org.apache.cocoon.webapps.session.ContextManager')
at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:118)
at 
org.apache.cocoon.webapps.session.components.ContextInputModule.service(ContextInputModule.java:147)
at 
org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:181)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:288)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:736)
... 24 more
Caused by: org.apache.avalon.framework.component.ComponentException: Could
not find component (key [org.apache.cocoon.webapps.session.ContextManager])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:297)

RE: Improvements to sitemap-v06.rng

2004-04-14 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


It's a new feature called anchors documented here 
http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution,
that uses the name attribute.

-Mensaje original-
De: David Crossley [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 14 de abril de 2004 5:49
Para: [EMAIL PROTECTED]
Asunto: Re: Improvements to sitemap-v06.rng


***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Carmona Perez, David wrote:
> - Accept parameters to 

Thanks, added that one.

> - Accept anchors (attribute name) in  and 

As far as i know, map:match does not permit a "name" attribute,
so i did not add your declaration.

The map:action already has a "name" attribute. Your attachment
tried to declare it for map:act which again, as far as i know,
does not permit a "name" attribute.

Someone please speak up if i am wrong.

> Hope they are useful are become incorporated into CVS.

One out of three, thanks.

--David



-
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 under eclipse

2004-04-14 Thread Carmona Perez, David
***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Maybe its missing some other component required by this class.  Have you checked 
carefully all the logs?
No, the CatalogManager.properties file is optional, its absenece isn't harmful.

-Mensaje original-
De: Flavio Palumbo [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 14 de abril de 2004 13:42
Para: [EMAIL PROTECTED]
Asunto: RE: cocoon under eclipse


***
Este correo ha sido procesado por el Antivirus del Grupo FCC
***-***


Hi David,

thanks for the replay, I found the 
org/apache/cocoon/webapps/session/ContextManager.class
in cocoon-session-fw-block.jar under C:\cocoon-2.1.3\build\webapp\WEB-INF\lib
... that seems ok, isn't it ?

I noticed that now, when jetty starts, appears this messagge never seen
before:
Cannot find CatalogManager.properties

Maybe this is the cause of the problem.

Thanks a lot
Flavio Palumbo

>-- Original Message --
>Reply-To: [EMAIL PROTECTED]
>Subject: RE: cocoon under eclipse
>Date: Tue, 13 Apr 2004 17:39:55 +0200
>From: "Carmona Perez, David" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>
>
>***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


It seems a problem with the classpath, some core component of Cocoon is
missing.  Search for the existence of org/apache/cocoon/webapps
>session/ContextManager.class in a JAR file.

-Mensaje original-
De: Flavio Palumbo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de abril de 2004 12:23
Para: [EMAIL PROTECTED]
Asunto: cocoon under eclipse


***
>***
Este correo ha sido procesado por el antivirus del Grupo FCC.
***-***


Hi all,

I tried to put cocoon under eclipse, building a new project in eclipse,
addressing the directory of a working built of cocoon 2.1.3
>

The goal was to try to easily debug cocoon to better understand it.

But now when I try to run it with jetty, in the normal way with cocoon servlet,
i got the following exception :

I run with Win2000, cocoon 2.1.3, jdk 1.4.2_01, jetty.

Any
>hint ?

Thanks a lot

Flavio Palumbo


Initialization Problem
Message: Could not set up component

Description: org.apache.avalon.framework.configuration.ConfigurationException:
Could not set up component

Sender: org.apache.cocoon.servlet
>CocoonServlet

Source: Cocoon Servlet

cause

org.apache.avalon.framework.component.ComponentException: Could not find
component (key [org.apache.cocoon.webapps.session.ContextManager])

request-uri

/

full exception chain stacktrace

O
>iginal Exception: org.apache.avalon.framework.component.ComponentException:
Could not set up Component for hint [ session-context] (key [session-context])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComp
>nentSelector.java:754)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:414)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at org.apache.avalo
>.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:302)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at org.apache.avalon.excalibur.component.
>xcaliburComponentManager.initialize(ExcaliburComponentManager.java:556)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUt
>l.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1369)
at or
>.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:515)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
at org.mortbay.jett
>.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
at org.mortbay.http.HttpServer.start(HttpServer.java:647)
at org.mortbay.je
>ty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)

RE: Validator Transformer

2004-04-19 Thread Carmona Perez, David

You were right. It has been corrected

-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Martin Holz
Enviado el: viernes, 16 de abril de 2004 14:49
Para: [EMAIL PROTECTED]
Asunto: Re: Validator Transformer



"Carmona Perez, David" <[EMAIL PROTECTED]> writes:


> I've created a transformer that can be inserted in any stage of an XML
> pipeline, in order to validate its contents.  This can be a powerful tool for
> debugging and conformance testing..
>

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

Thank you. The first tests look good.


The documentation of the  stopForErrors parameter is slightly wrong,
the wiki says stopForErrors, but the source says
stop-for-errors.

Martin


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


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:







And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RV: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Hi,

If I save the result of the xinclude processing to a file and do the following:






then everything goes ok.

This seems a bug of the XInclude transformer.

Has this happened to anyone else?


-Mensaje original-
De: Carmona Perez, David
Enviado el: lunes, 19 de abril de 2004 16:24
Para: Cocoon (E-mail)
Asunto: SAXParseException: Content is not allowed in prolog.




Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:







And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Sorry, I meant  instead of 

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 16:37
Para: [EMAIL PROTECTED]
Asunto: Re: SAXParseException: Content is not allowed in prolog.



Carmona Perez, David wrote:

>Hi all,
>
>I have a problem with Cocoon that I find a little hard to debug.
>
>My pipeline is something like:
>
>
>


>
>
>
>
> 
>
If you get content is not allowed in prolog, look for characters before
the And receive the following exception (inside Xerces and Saxon):
>
>org.xml.sax.SAXParseException: Content is not allowed in prolog.
>   at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
>   at 
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
>   at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
>   at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
>   at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
>   at 
> org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
>   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
>   at 
> org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
>   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
>   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>   at 
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
>   at com.icl.saxon.om.Builder.build(Builder.java:265)
>   at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
>   at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
>   at com.icl.saxon.functions.Document.evaluate(Document.java:70)
>   at 
> com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
>   at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
>   at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
>   at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
>   at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)
>
>How can I guess where it is happening? A breakpoint doesn't help much.
>Even though this error, I get correct results.  The problem is that the logs get full 
>and slows my app.
>
>Thanks in advance for any help.
>
>David.
>
>*
>Este correo ha sido procesado por el Antivirus del Grupo FCC.
>*
>
>-
>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]


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

What is strange it that the fatal errors happen after the endDocument sax event is 
received!!!
I've discovered this thanks to the LogTransformer.

-Mensaje original-
De: Carmona Perez, David
Enviado el: lunes, 19 de abril de 2004 16:49
Para: [EMAIL PROTECTED]
Asunto: RE: SAXParseException: Content is not allowed in prolog.




Sorry, I meant  instead of 

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 16:37
Para: [EMAIL PROTECTED]
Asunto: Re: SAXParseException: Content is not allowed in prolog.



Carmona Perez, David wrote:

>Hi all,
>
>I have a problem with Cocoon that I find a little hard to debug.
>
>My pipeline is something like:
>
>
>


>
>
>
>
>


>
If you get content is not allowed in prolog, look for characters before

the And receive the following exception (inside Xerces and Saxon):
>
>org.xml.sax.SAXParseException: Content is not allowed in prolog.
>   at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
>   at 
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
>   at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
>   at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
>   at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
>   at 
> org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
>   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
>   at 
> org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
>   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
>   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>   at 
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
>   at com.icl.saxon.om.Builder.build(Builder.java:265)
>   at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
>   at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
>   at com.icl.saxon.functions.Document.evaluate(Document.java:70)
>   at 
> com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
>   at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
>   at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
>   at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
>   at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)
>
>How can I guess where it is happening? A breakpoint doesn't help much.
>Even though this error, I get correct results.  The problem is that the logs get full 
>and slows my app.
>
>Thanks in advance for any help.
>
>David.

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: cocoon under eclipse

2004-04-20 Thread Carmona Perez, David

I use Tomcat 4.1.x with Eclipse 2.1.x successfully.  For that I use the Sysdeo plugin: 
http://www.sysdeo.com/eclipse/tomcatPlugin.html .

-Mensaje original-
De: Flavio Palumbo [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 17:10
Para: [EMAIL PROTECTED]
Asunto: Re: cocoon under eclipse



Hi Olivier,

thank you for the replay, but I overtook that phase ; in fact I found on
the mail archive a mail of yours with links to Wiki pages "LoadInEclipse"
and "DebuggingCocoon"; so I rebuilt my project following that documents
; unfortunately the built went fine, but when I tried to start jetty from
within eclipse, I always get an exception java.lang.NoClassDefFoundError:
Loader
Exception in thread "main".
I configured jetty as an application following these notes, reported at
the bottom of the LoadInEclipse document :

- make sure ./tools/loader is on your eclipse classpath (it isn't by default)

- create an eclipse run configuration for Jetty Cocoon:

  - On configurations 'Main' tab use 'Loader' as the main class.

  - On the Arguments tab set:

- Program arguments: "tools\jetty\conf\main.xml"

- VM arguments: "-Djava.endorsed.dirs=./lib/endorsed"

"-Dwebapp=./build/webapp"

"-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser"
"-Djetty.port= -Djetty.admin.port=8889"
"-Dhome=."
"-Dloader.jar.repositories=./tools/jetty/lib,./lib/endorsed"
"-Dloader.main.class=org.mortbay.jetty.Server"

Can you please help me ?

Thanks a lot

Flavio Palumbo



>-- Original Message --
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>From: Olivier Billard <[EMAIL PROTECTED]>
>Subject: Re: cocoon under eclipse
>Date: Mon, 19 Apr 2004 15:06:10 +0200
>
>
>Hi Flavio,

It may come from a dependency on blocks
Check the block.properties if you didn't forget a block on what an other

block depends...

--
Olivier Billard


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





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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: SAXParseException: Content is not allowed in prolog.

2004-04-20 Thread Carmona Perez, David

Thanks all of you for your tips.

I don't know the cause, but as the output is correctly generated, finally I've opted 
to create a log filter to filter out all the messages with its lengthy call stack (it 
is time consuming and generates really very big log files).

-Mensaje original-
De: Conal Tuohy [mailto:[EMAIL PROTECTED]
Enviado el: martes, 20 de abril de 2004 0:39
Para: [EMAIL PROTECTED]
Asunto: RE: SAXParseException: Content is not allowed in prolog.



David, it sounds like your mystylesheet.xsl has some content in the prolog. Are you 
sure there's nothing wrong there? It's easy to accidentally insert some white space at 
the start of the file or something.

> -Original Message-
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 20 April 2004 2:36 a.m.
> To: Cocoon (E-mail)
> Subject: RV: SAXParseException: Content is not allowed in prolog.
>

>

>

> Hi,
>

> If I save the result of the xinclude processing to a file and

> do the following:
>

> 
> 
> 
> 
>

> then everything goes ok.
>

> This seems a bug of the XInclude transformer.
>

> Has this happened to anyone else?

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


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: ressource reader bug with IE (linked to caching)

2004-04-20 Thread Carmona Perez, David



I
detected the same problem and posted to Bugzilla, with a patch, taken from
Cocoon 2.0.4 which didn't have this bug.
 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24647
 
Hope this
helps.

   -Mensaje original-De: Joel
  Reungoat [mailto:[EMAIL PROTECTED]Enviado el: martes, 20
  de abril de 2004 13:05Para:
  [EMAIL PROTECTED]Asunto: ressource reader bug with IE (linked
  to caching)Hello users,I'm trying to access DOC
  or PDF files using the ressource reader component as described in the sitemap
  below and get the following error only under Microsoft IE :>>
Internet Explorer cannot download test.doc from localhost
Internet Explorer was not able to open this Internet site. The
requested
site is either unavailable or cannot be found. Please try again later.
>>

This message also only appears at the first attempt. It seems that at
  first attempt, the file has been prepared in the cache. So, if  I refresh
  the page a second time from IE, I get and open correctly my document under
  Word (or Acrobat if pdf).When using Mozilla navigator, there is no
  problem at first attempt.Also, if a first attempt is made from Mozilla,
  then the first attempt from IE is working.So it seems that Cocoon caching
  is implicated.I made a test in the sitemap by forcing "noncaching" for the
  pipeline. And then, I can not access at all to my document.Does
  anybody have a solution for this problem ?My cocoon version :
  2.1.4My IE version : 5.5 (probably problems also with 6.0)IE
  configaration for caching page : "automatic" (other choice produces same
  problem) Other links I found without answers : http://www.mail-archive.com/[EMAIL PROTECTED]/msg07949.htmlhttp://www.mail-archive.com/[EMAIL PROTECTED]/msg04959.htmlHere
  is my sitemap : 
  
   
     
     
   
  
  


  *
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*


XSP and sitemap parameters

2004-04-21 Thread Carmona Perez, David



Hi,
 
Does anybody know how to
pass sitemap parameters to an XSP page?
Can I
do?
 
    
   

    
 
How do I retrieve this
parameter from the XSP code?
 
Thanks for any
answer.

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*


RE: XSP and sitemap parameters

2004-04-21 Thread Carmona Perez, David



Thanks.
 
I think there
is other way
 
parameters.getParameter("my-param")

  -Mensaje original-De: beyaNet Consultancy
  [mailto:[EMAIL PROTECTED]Enviado el: miércoles, 21 de abril de
  2004 15:30Para: [EMAIL PROTECTED]Asunto: Re: XSP
  and sitemap parameters
  try, 
  1. xsp: 
  
      xmlns:xsp="http://apache.org/xsp" 
      xmlns:util="http://apache.org/xsp/util/2.0" 
      >
  
   
       
     
      int newUser = (int).length(); 
       
   
   
  2. Sitemap: 
   
       
   
  Hi, 
   
  Does anybody know how to pass sitemap parameters to an XSP
  page? 
  Can I do? 
   
      
  
      

       
   
  How do I retrieve this parameter from the XSP code?
  
   
  Thanks for any answer. 
  * 
  Este correo ha sido procesado por el antivirus del Grupo FCC. 
  * 
  

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*


RE: XSP and sitemap parameters

2004-04-21 Thread Carmona Perez, David

There are 2 versions: one that throws a ParameterException if not provided the default 
value, and the other you have commented.

I have tried out and it works!.

-Mensaje original-
De: olivier demah [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 21 de abril de 2004 16:01
Para: [EMAIL PROTECTED]
Asunto: Re: XSP and sitemap parameters



Carmona Perez, David a écrit :

> Thanks.
> 
> I think there is other way
> 
> parameters.getParameter("my-param")

parameters requiers 2 parms if i'm not wrong :
parameters.getParameter("your-parm","defaultvalue");


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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: XSP: cinclude and map:parameters problem

2004-04-21 Thread Carmona Perez, David

Another solution:

Create the XSP code dynamically through a cocoon sub-pipeline in this way:











The only drawback is that the XSP could get compiled every time.

-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Andreas Hartmann
Enviado el: miércoles, 21 de abril de 2004 16:20
Para: [EMAIL PROTECTED]
Asunto: Re: XSP: cinclude and map:parameters problem



olivier demah wrote:

> Andreas Hartmann a e'crit :
>
>> olivier demah wrote:
>>
>> [...]
>>
>>> So i thought ; i had to do something to pass parameters from xsp to
>>> xsp because i "call" news.xsp with cinclude.
>>
>>
>>
>> This does not work. Your compiled XSP is executed _before_ the
>> CInclude transformation, so "including another XSP" is not possible
>> this way.
>
>
> at least its clear :)

You might consider a logicsheet or a helper class for code
reuse in XSPs.

-- Andreas


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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: URLEncoding of special characters

2004-04-22 Thread Carmona Perez, David

You have to configure the serializer encoding like in this sample:


ISO-8859-1


-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Harald Wehr
Enviado el: jueves, 22 de abril de 2004 8:35
Para: [EMAIL PROTECTED]
Asunto: URLEncoding of special characters



I have a problem concerning special german characters occuring in urls.
I made a minimal example to show my problems. Assume following pipeline
snippet:


   
   


The test1.xml looks like this. Please consider the special german
characters in the url (hope the are displayed correctly in your mail
client):




  Test


   ÜTest
   ÄTest



The HTML-Serializer encodes the urls to following output (source code of
HTML file):

http://www.w3.org/TR/html4/loose.dtd";>



Test


ÜTest
ÄTest



So the Ü is encoded to %C3%9C and Ä to %C3%84 but I need %DC for Ü and
%C4 for Ä.

The java.net.URLEncoder.encode method brings the following:

System.out.print(java.net.URLEncoder.encode("ÜÄ","UTF-8"));
Result: %C3%9C%C3%84

System.out.print(java.net.URLEncoder.encode("ÜÄ","ISO-8859-1"));
Result: %DC%C4

So why does the serializer does this UTF-8 url encoding? In the web.xml
I set the container-encoding and form-encoding parameters to ISO-8859-1
without any changes. Serializer is the defined the following way in the
sitemap:


  -//W3C//DTD HTML 4.01 Transitional//EN
  http://www.w3.org/TR/html4/loose.dtd
  ISO-8859-1


Can you give me any hints how I get the url correctly encoded? (need it
for further database lookups).

Cocoon: Dev-Snapshot from 2004-03-29
Java: 1.4.2_03

Thanks for your help

Harald

--
Institut für Tourismus- und Geo-Informationssysteme GmbH
Sitz: Friedrichstrasse 57-59 38855 Wernigerode

Büro: Gießerweg 5
   38855 WernigerodeWeb: http://www.itgis.com
Tel: 03943/557807
Fax: 03943/557808

Das Internet-Lexikon - Ein Dienst der ITGIS GmbH:
http://www.knowlex.org

Privat: http://www.harald-wehr.de



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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



sitemap-v06.rng

2004-04-29 Thread Carmona Perez, David

Hi all,

I propose to change the RelaxNG validation file sitemap-v06.rng in this way:
Component declaration like , , , and 
similars would need to be:








where component.config is defined as






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






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












That is, to allow any configuration content.  If we make it too restrictive, what 
about custom components setup?.

What do you think about this?

David

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



sitemap.java

2004-04-29 Thread Carmona Perez, David

Hi all,

Where can I find the generated sitemap.java in order to debug some problems I have?
In Cocoon 2.0.4 I could find it in the configured work directory of my servlet.

Thanks for any help.

David.

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: RegexpURIMatcher problem

2004-04-29 Thread Carmona Perez, David

Have you looked at the Cocoon wiki?  There is a lot of useful documentation.

-Mensaje original-
De: Jakob [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 29 de abril de 2004 14:14
Para: [EMAIL PROTECTED]
Asunto: Re: RegexpURIMatcher problem



Thanks Bruno,

that did the trick.  A little trial and error showed also
that the {1} ... placeholders can be used in the same way
as for the wildcard matcher.  This is logical, but wasn't
explicited anywhere I looked.

thanks again,
Jakob.


Bruno Dumon said:
> On Thu, 2004-04-29 at 12:37, Jakob Fix wrote:
>> Hi,
>>
>> I cannot find any examples for using regular
>> expressions in a  section of the sitemap.
>>
>> I want to match three types of URLs that are different
>> only by one fragment,  i.e.:
>>
>> 
>> 
>> 
>>
>> There is a fourth URL type which is to be handled
>> differently:
>>
>> 
>>
>> I thought I could reduce the three first pipelines
>> into one by doing something like this:
>>
>> > pattern="db/*/*/[toc|lof|lot]/*.xml">
>>
>> But I don't know how to reference the regex match in
>> the generator.
>
> You need to put ( ) around the parts you want to
> reference. What you wrote above isn't a regular
> expression though, try something like:
>
>  pattern="db/(.*)/(.*)/(toc|lof|lot)/(.*).xml">
>
>>   A helping
>> hand or a link to examples of the usage of
>> RegexpURIMatcher would be greatly appreciated.
>>
>> Also, is the regex matcher very costly in comparison
>> to the wildcard matcher?
>
> haven't ever tested it.
>
> --
> Bruno Dumon




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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: RegexpURIMatcher problem

2004-04-29 Thread Carmona Perez, David

I use it a lot, and is quite powerful, but sometimes the expressions can become quite 
complicated.
Me myself often add or complete content to the wiki, when something important is 
missing.  It's very easy to do so.
Another resource I use it's the source code.  With tools like Eclipse is very easy to 
browse through 3rd party code.

-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Jakob Fix
Enviado el: jueves, 29 de abril de 2004 15:43
Para: [EMAIL PROTECTED]
Asunto: Re: RegexpURIMatcher problem




Carmona Perez, David  fcc.es> writes:
>
> Have you looked at the Cocoon wiki?  There is a lot of useful documentation.
>

you bet I did.  a search for "RegexpURIMatcher" [1] found one hit, the page
about "Matcher" [2], where there's just one example.  it seems to me that
people rarely use the regex matcher, and are happy with the wildcard matcher.

but you're right when you suggest I should contribute my solution to the wiki.
I will.

cheers,
Jakob.

[1] http://wiki.cocoondev.org/Search.jsp?query=RegexpURIMatcher
[2] http://wiki.cocoondev.org/Wiki.jsp?page=Matcher



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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: sitemap-v06.rng

2004-04-29 Thread Carmona Perez, David

Hi,

I also use it for editing and validating with XMLBuddy and Eclipse.
At least there should be some extension mechanism for custom components.

-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Martin Holz
Enviado el: jueves, 29 de abril de 2004 16:17
Para: [EMAIL PROTECTED]
Asunto: Re: sitemap-v06.rng



Hi,

"Carmona Perez, David" <[EMAIL PROTECTED]> writes:

> I propose to change the RelaxNG validation file sitemap-v06.rng in this way:
> Component declaration like , , , and 
> similars would need to be:
[Snipped concrete implementation]
> That is, to allow any configuration content.  If we make it too restrictive, what 
> about custom components setup?.

I use sitemap-v06.rng for editing the sitemap with oxygen and I like
it to be very restrictive. So I do not always have to look into the docu
to see how a configuration looks exactly. I do change the sitemap
quite often but do not write new components very often, especially
compontents which need additional configuration elements.
Adapting sitemap-v06.rng once in a while is a low price for good
sitemap editing support.


Martin


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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: sitemap-v06.rng

2004-04-30 Thread Carmona Perez, David

RelaxNG allows to create modular schemas, separated in several files.
One could create a generic one, and include customizations for specific component 
types in external files.

-Mensaje original-
De: David Crossley [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 30 de abril de 2004 6:34
Para: [EMAIL PROTECTED]
Asunto: Re: sitemap-v06.rng



Martin Holz wrote:
> I use sitemap-v06.rng for editing the sitemap with oxygen and I like
> it to be very restrictive. So I do not always have to look into the docu
> to see how a configuration looks exactly. I do change the sitemap
> quite often but do not write new components very often, especially
> compontents which need additional configuration elements.
> Adapting sitemap-v06.rng once in a while is a low price for good
> sitemap editing support.

Perhaps we could have two schema:
 sitemap-strict.rng
 sitemap-lax.rng

With the "lax" one, we could implement David's idea to be not so strict.

With the "strict" one we could keep adding to it so that it defines
everything that is allowable. This helps with automated editor prompts
and so is a type of sitemap documentation.

I recently re-added the build target "validate-sitemaps". Running it
against today's CVS still shows many things missing (you may need to
edit tools/targets/validate-build.xml to include more sitemaps).

The trouble with the "strict" one is the maintenance. We don't see
many people helping out with improving it and keeping it up-to-date.
It would be an excellent resource if we did.

It is great to hear that the various xml editors are providing support
for RELAX NG.

--David



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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: Best way to merge two xml files

2004-04-30 Thread Carmona Perez, David

Hi,

Other ways is to use the xinclude transformer (you can generate dynamically the 
xincludes), or use the XSLT document function.  I have tried these methods, and all of 
them work ok.

-Mensaje original-
De: Tony Edwards [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 30 de abril de 2004 6:22
Para: [EMAIL PROTECTED]
Asunto: Re: Best way to merge two xml files



Hi David,
Check out cinclude.
We have a documentation application that combines documents from
multiple sources.
Eg we have a primary, high level description document that can reference
any number of subordinate process description documents. Each of these
process descriptions can reference any number of module level
description documents which themselves can reference step level
documents. We throw the whole lot together using cinclude.
Our relevent sitemap chunk looks like this:

   



 
 

  


  
  

 

  



 



You'll note there's a cinclude level for subordinate level of documentation.
Works like a charm!
Hope this helps.
Tony
David Swearingen wrote:

> (Subject line of my post may be misleading.)  What I'm trying to do
> is, when XSL processing of foo.xml is taking place, when a certain
> element is encountered in foo.xml, I want to insert content from
> someotherdocument.xml.
> 
> It appears that the XSLT function document() does this.  Is this the
> best way?
> 
> [I realize that aggregate sounds like it should do the trick, however,
> aggregate appears to require a priori knowledge of how many documents
> to aggregate, that is, when creating the sitemap you have to know in
> advance that you're going to do n aggregations.  In my case, however,
> I don't know how often I'm going to have to merge other xml documents
> when processing the main document.]
> 
> Hope that made sense.
> David
> 



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


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



LogFactor

2004-05-03 Thread Carmona Perez, David

Hi,

Does anyone know where I can find LogFactor5, in order to see in a more user friendly 
way the Cocoon logs.?
Or is it the same as Chainsaw?
I have found in the wiki this, 
http://wiki.cocoondev.org/Wiki.jsp?page=LogFactorFiveHowto, but doesn't explain how to 
get the program.
I have searched through Google with no success.

Thanks for any help.

David

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: LogFactor

2004-05-03 Thread Carmona Perez, David

Thanks.
Of course I will update the wiki with any useful discoverings.

-Mensaje original-
De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 03 de mayo de 2004 10:22
Para: [EMAIL PROTECTED]
Asunto: Re: LogFactor



Le 3 mai 04, à 09:32, Carmona Perez, David a écrit :

> ...Does anyone know where I can find LogFactor5, in order to see in a

> more user friendly way the Cocoon logs.?..

LogFactor5 has been donated to log4j, so it is included with our

distribution (in lib/optional/log4j-1.2.8.jar). You just need to enable

it to use it.

> Or is it the same as Chainsaw?

AFAIK they have more or less the same functionality but IIUC Chainsaw

is preferred by the log4j team.

> I have found in the wiki this,

> http://wiki.cocoondev.org/Wiki.jsp?page=LogFactorFiveHowto, but

> doesn't explain how to get the program.

Please add this info there once you find what you're looking for!

-Bertrand


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


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: JXT or XSP?

2004-05-03 Thread Carmona Perez, David


I agree, I tried to make my own business objects in cocoon.xconf, and it's quite 
complicated.
I only use it input modules and things directly related to Cocoon.

-Mensaje original-
De: Ugo Cei [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 03 de mayo de 2004 11:32
Para: [EMAIL PROTECTED]
Asunto: Re: JXT or XSP?



Ralph Goers wrote:
> I started to write a really long response but though better of it.  The
> bottom line here, is that what you are doing is not "wrong". It is probably
> exactly how I would implement your site.  However, pardon me for saying so,
> your site is fairly simple.  As the system grows larger you will find that
> your flowscript is turning into a full-blown application, which is exactly
> what I feel it shouldn't be. 

Rationale for "Flowscript considered harmful" (more or
less)

Ralph,

while yours is certainly a well though-out rationale, I tend to agree
more with Reinhard's arguments, so I won't repeat them here.

I just wanted to add my 0.02€.

It's undoubtedly true that you can abuse flowscript and implement too
much business logic in it. At my company, we are probably guilty of
this, in a sense. We tend to implement things with Javascript because
the roundtrip time between editing and testing is so short: no need to
recompile and restart the container to test results.

Our policy is that putting business logic in the flowscript is to be
considered OK in a prototyping stage. Once the prototype is tested, you
should reimplement it in a Java method or class. Of course, this takes
discipline and sometimes the move-to-Java stage can be postponed (or
forgotten) due to deadline pressure, as always.

But I have high hopes that we can have the best of both worlds (the
speed of the scripting approach together with the proper encapsulation
and type-safety provided by Java) *now*. The answer is the compiling
class loader.

I've just begun experimenting with it and the ease with which you can
edit your Java classes in an editor like Eclipse's (with on-the-fly
error correction, support for refactoring, code-completion etc.) and
have them automatically compiled and available looks very promising.

One more thing: you mentioned editing cocoon.xconf as a typical step
when you're defining a new business object. Well, I see cocoon.xconf as
something that should be hidden from view as much as possible. I don't
want less-experienced developers touch it and risk breaking the build
because of a misconfigured component. I don't even want myself being
subjected to the pain of dealing with it.

IMHO, Avalon is much harder than it should be. If we have to live with
it, for the time being, I want to implement a full-fledged Avalon
component only for exceptional cases. I think a POJO, compiled
on-the-fly and instantiated via cocoon.createObject from the flowscript,
and maybe implementing some of the handful of interfaces that this
method supports, is all that is needed 99% of the times. This is where
your business logic should reside. Once your business objects are
considered "stable", make a lib out of them and add the JAR file to your
project.

Ugo



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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el Antivirus del Grupo FCC
*

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



RE: LogFactor

2004-05-05 Thread Carmona Perez, David

I have updated the info in the wiki.
BTW is it possible to use Chainsaw instead?

> -Mensaje original-
> De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 03 de mayo de 2004 10:22
> Para: [EMAIL PROTECTED]
> Asunto: Re: LogFactor
>
>
>
> Le 3 mai 04, à 09:32, Carmona Perez, David a écrit :
>
> > ...Does anyone know where I can find LogFactor5, in order
> to see in a
>
> > more user friendly way the Cocoon logs.?..
>
> LogFactor5 has been donated to log4j, so it is included with our
>
> distribution (in lib/optional/log4j-1.2.8.jar). You just need
> to enable
>
> it to use it.
>
> > Or is it the same as Chainsaw?
>
> AFAIK they have more or less the same functionality but IIUC Chainsaw
>
> is preferred by the log4j team.
>
> > I have found in the wiki this,
>
> > http://wiki.cocoondev.org/Wiki.jsp?page=LogFactorFiveHowto, but
>
> > doesn't explain how to get the program.
>
> Please add this info there once you find what you're looking for!
>
> -Bertrand
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> *
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> *
>

*
Este correo ha sido procesado por el Antivirus del Grupo FCC
*

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



FOP & iText

2003-07-09 Thread Carmona Perez, David
Hi all,

I'm seriously considering using iText instead of FOP for generating PDF files, because 
it seems to consume less memory, and seems more powerful and probably quicker..

Has anybody tried it from Cocoon?

I've seen that there is a serializer for iText in the Cocoon 2.1 dev, has anyone tried 
it successfully?

Thanks in advance


David


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



RE: Anyone tried Cocoon + Tomcat with XP and IIS ??

2003-07-10 Thread Carmona Perez, David
If you're using Tomcat, why do you need IIS?

I've used successfully Cocoon under XP with Tomcat.

IIS is also running but in another port, and doesn't interfere.


David

-Mensaje original-
De: JD Daniels [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 09 de julio de 2003 21:11
Para: [EMAIL PROTECTED]
Asunto: Re: Anyone tried Cocoon + Tomcat with XP and IIS ??

SSSLLOWW OMG slow

It is a struggle just to test stuff on an XP machine

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 10:08 AM
Subject: Anyone tried Cocoon + Tomcat with XP and IIS ??


>
> Subject:
> Anyone tried Cocoon + Tomcat with XP and IIS ??
>
> Any experience is greatly appreciated !
>
> Thanks,
>
> Holger
>
> ___
> The ALL NEW CS2000 from CompuServe
>  Better!  Faster! More Powerful!
>  250 FREE hours! Sign-on Now!
>  http://www.compuserve.com/trycsrv/cs2000/webmail/
>
>
>
>
>
> -
> 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]



Custom serializers and session

2003-07-30 Thread Carmona Perez, David








Dear Cocooners,

 

As serializers doesn’t implement the
interface  SitemapModelComponent, they
don’t have a setup() method and no access to the objectModel and the session.

 

I need to access to the session of the
current request from the serializer.

 

Does anyone know how this can be
performed?

 





David

 








RE: XML on the browser

2003-07-30 Thread Carmona Perez, David








Mozilla has also this capability.  You must return an XML file to the
browser and indicate a stylesheet through a directive

 





David

 

-Mensaje
original-
De: Jorg Heymans
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 30 de julio
de 2003 15:26
Para: '[EMAIL PROTECTED]'
Asunto: RE: XML on the browser

 

With browsers like IE you can associate a
stylesheet with your XML file and have it rendered on the client side by
microsofts xslt processor. 

Check microsoft.com/xml and further 

 

Rgds

Jorg

 

-Original Message-
From: Galia Angelova
[mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 30. Juli 2003
15:16
To: [EMAIL PROTECTED]
Subject: XML on the browser

 

Hello,

I have the following question:

 

Is it possible to use XML and XSL  on
the browser with cocoon?

 

If "yes"  - are there any examples?

 

Thanks in advance!

 

Galia Angelova

 

System architecht

Acsior Ltd.









Do you Yahoo!?
Yahoo!
SiteBuilder - Free, easy-to-use web site design software








RE: General Questions about using Cocoon

2003-07-30 Thread Carmona Perez, David
See my answers below...



David

-Mensaje original-
De: Christoph Strehl [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 30 de julio de 2003 13:07
Para: Coocoon
Asunto: General Questions about using Cocoon 

Hi all,

I am new to Cocoon and I have read some Tutorials about it so I guess I
got the basic idea what it is all about. I really like what Cocoon has
to offer, but there are still a few questions that I need to ask before
I start programming my first webapp with Cocoon. I hope you aren't angry
with me if these questions were already asked before ;-) Well, here I
go:

As a fan of JSP I am going to use the JSPReader of Cocoon to build the
dynamic content which will be translated into HTML via a XSL-file. There
will be one XSL-files for each logical unit of the webapp, for example
news2html.xsl, forum2html.xsl, navigation2html.xsl and so forth. My
first question is, is it possible to cascade a xsl-files? For example if
some content is the same on each page and I want to present it the same
way, do I have to put the transformation-code in each xsl-file I got or
I can I "include" a xsl-file and put the transformation-code in this one
only?

Of course you can

My second questions is about caching. In my past webapps with JSP I used
a cached-system called OSCache which can be found at
http://www.opensymphony.com/oscache/. I *think* I am still able to use
this or similar - external - cache-thechnologies for caching the
dynamic-content part of my cocoon-webapp, right? But besides that I have
read something about a Cocoon-internal caching-system. How does it - in
short - work and am I able to use it at the same time I use the
cache-system mentioned above for my JSPs?`
Search in the Wiki for caching (http://wiki.cocoondev.org/Wiki.jsp?page=Main)

The third and last question is about performance: How much does the
advantage of separation of code cost? I can imagine that with all the
overhead cocoon comes along, webapps using cocoon are significantly
slower than pure JSP webapps. Has anyone of you made experiences how
much slower it is? Is it still fast enough

Quite fast and modular, it uses internally SAX, the XML data is only parsed once.  And 
you can easily create new components.

Again I want to apologize if these questions were stupid or were already
asked but I didn't know where else to ask them.

Regards,
Christoph Strehl



-
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]



A problem propagates forever

2003-07-30 Thread Carmona Perez, David
Sometimes I request fails (because I'm debugging and tuning things) and it keeps on 
failing (maybe due to the cache).  The generator  is file-based.  If I rename the base 
file, everything runs now OK (the URL is a new one, because the file name is encoded 
in the URL), everything works ok.  

How can I solve this, apart from renaming a file? 

I've tried to delete all cache files from the work/cocoon-files/cache-dir directory or 
restarting the Web server, with no success



David

-Mensaje original-
De: Christoph Strehl [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 30 de julio de 2003 13:07
Para: Coocoon
Asunto: General Questions about using Cocoon 

Hi all,

I am new to Cocoon and I have read some Tutorials about it so I guess I
got the basic idea what it is all about. I really like what Cocoon has
to offer, but there are still a few questions that I need to ask before
I start programming my first webapp with Cocoon. I hope you aren't angry
with me if these questions were already asked before ;-) Well, here I
go:

As a fan of JSP I am going to use the JSPReader of Cocoon to build the
dynamic content which will be translated into HTML via a XSL-file. There
will be one XSL-files for each logical unit of the webapp, for example
news2html.xsl, forum2html.xsl, navigation2html.xsl and so forth. My
first question is, is it possible to cascade a xsl-files? For example if
some content is the same on each page and I want to present it the same
way, do I have to put the transformation-code in each xsl-file I got or
I can I "include" a xsl-file and put the transformation-code in this one
only?

My second questions is about caching. In my past webapps with JSP I used
a cached-system called OSCache which can be found at
http://www.opensymphony.com/oscache/. I *think* I am still able to use
this or similar - external - cache-thechnologies for caching the
dynamic-content part of my cocoon-webapp, right? But besides that I have
read something about a Cocoon-internal caching-system. How does it - in
short - work and am I able to use it at the same time I use the
cache-system mentioned above for my JSPs?`

The third and last question is about performance: How much does the
advantage of separation of code cost? I can imagine that with all the
overhead cocoon comes along, webapps using cocoon are significantly
slower than pure JSP webapps. Has anyone of you made experiences how
much slower it is? Is it still fast enough

Again I want to apologize if these questions were stupid or were already
asked but I didn't know where else to ask them.

Regards,
Christoph Strehl



-
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: Custom serializers and session

2003-07-30 Thread Carmona Perez, David








Yes, that’s a solution, but it’s a
pity that serializers are 2nd class citizens in Cocoon!.

 





David

 

-Mensaje
original-
De: Jorg Heymans
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 30 de julio
de 2003 15:38
Para: '[EMAIL PROTECTED]'
Asunto: RE: Custom serializers and
session

 

Can't you access your session in a custom
generator or transformer and insert the information you want into the SAX
stream that is being passed to the serializer?

 

 

Just a guess ...

 

-Original Message-
From: Carmona Perez, David
[mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 30. Juli 2003
15:23
To: [EMAIL PROTECTED]
Subject: Custom serializers and
session

 

Dear
Cocooners,

 

As
serializers doesn't implement the interface  SitemapModelComponent, they don't have a setup() method and
no access to the objectModel and the session.

 

I need to
access to the session of the current request from the serializer.

 

Does
anyone know how this can be performed?

 





David

 








RE: FOP alternatives

2003-08-14 Thread Carmona Perez, David
I've discarded that possibility in order to have more control, but for other cases it 
can be a good solution.


David

-Mensaje original-
De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 08 de agosto de 2003 8:50
Para: [EMAIL PROTECTED]
Asunto: Re: FOP alternatives

Le Vendredi, 8 aoû 2003, à 08:35 Europe/Zurich, Carmona Perez, David a
écrit :

> ... I've written a custom Cocoon serializer that uses iText

how about using the existing itext block?

-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]



FOP alternatives

2003-08-14 Thread Carmona Perez, David
Hi all,

I'd like to share my experience to alternatives to FOP for generating PDF files in 
Cocoon, for people that has to deal with the same problems I've already had.

FOP gave me good output quality, but it was quite slow and used up the available 
memory with huge input data.
So I started searching for alternatives, and found an open source project called iText 
(http://www.lowagie.com/iText) also used in other open source projects like 
JasperReports, that has given me excellent results in terms of speed and memory usage, 
over 10 times faster and 32 Mb of RAM versus 192 Mb, although I had to rewrite my app. 
 I've written a custom Cocoon serializer that uses iText.   iText is quite powerful, 
but sometimes you have to do some low level coding.


David


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



  1   2   >