Re: FOP alternatives

2003-08-08 Thread Bertrand Delacretaz
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]


Re: serving css and images

2003-08-08 Thread Upayavira
Ben,

You're very much on the right track. You just need to make sure that the URL that the 
images are referred to in your XHTML are matched by the  node, and 
then that you have pointed at the correct files on the filesystem. So just check that 
everything fits. For example, are your images and stuff in 'styles'?

Oh, and I've just spotted, set the mime-type for *.gif to image/gif, not text/css!!!

Regards, Upayavira

On 8 Aug 2003 at 1:39, Ben Munat wrote:

> Hello. I'm very new to Cocoon... wobbling along. At this point I'm
> just trying to get Cocoon to serve an xml file transformed to xhtml
> with an xslt. Well actually, I did get it to serve the file. However,
> the resulting page has a link to an image and a css file and those are
> not coming through.
> 
> I have the Cocoon Developer's Handbook and it seems to indicate that I
> need to do this in my subsitemap:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> However, that hasn't solved the problem. Anyone have any idea what I'm
> missing? I do need to have these pipelines in my sitemap so that pages
> can find their images and stylesheets, right?
> 
> Thanks in advance,
> 
> Ben Munat
> 
> 
> -
> 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]



link livesites: Massachusetts Alliance for Families

2003-08-08 Thread Ashe, Shawn J
Provides communications and advocacy support for foster, adoptive and
kinship parents in Massachusetts... helping to provide for the needs of
those who work with the most vulnerable in our society: lost, neglected or
abused children.  Cocoon 2.0.4

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



RE: serving css and images

2003-08-08 Thread Kieran Kirwan

This works in my site.









_
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
 
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie   
 



-Original Message-
From: Ben Munat [mailto:[EMAIL PROTECTED]
Sent: 08 August 2003 09:39
To: [EMAIL PROTECTED]
Subject: serving css and images


Hello. I'm very new to Cocoon... wobbling along. At this point I'm just 
trying to get Cocoon to serve an xml file transformed to xhtml with an 
xslt. Well actually, I did get it to serve the file. However, the 
resulting page has a link to an image and a css file and those are not 
coming through.

I have the Cocoon Developer's Handbook and it seems to indicate that I 
need to do this in my subsitemap:













However, that hasn't solved the problem. Anyone have any idea what I'm 
missing? I do need to have these pipelines in my sitemap so that pages 
can find their images and stylesheets, right?

Thanks in advance,

Ben Munat


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

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Mail Marshal for the presence of computer viruses.

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



RE: i18n locale in Cocoon 2.1

2003-08-08 Thread Andrzej Radzki
Try this in your sitemap:


  true
  true
  true
  false
  



and then for example:



 
   
 



look into samples of i18n... try do this in the same way. 

ar

> -Original Message-
> From: Beat De Martin [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: RE: i18n locale in Cocoon 2.1
> 
> I already changed the namespaces.
> At the pipeline I use only
> ...
> 
> ...
> 
> Maybe I have to use the following:
> 
> 
>   
>  
> 
> Is this required if I want to use session attribute locale ?
> 
> 
> 
> > Check namespace i18n in transformed files.
> > Cocoon 2.1 has: http://apache.org/cocoon/i18n/2.1 instead of
> > http://apache.org/cocoon/i18n/2.0
> >
> > ar
> >
> > > -Original Message-
> > > From: Beat De Martin [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, August 08, 2003 10:47 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: i18n locale in Cocoon 2.1
> > >
> > > Hi all
> > > I'm using Cocoon 2.1 and I have some problem with translation
> > > Until Cocoon 2.0.4 I just set the session attribute locale to the
> > desired
> > > language and it worked.
> > > When I do this in 2.1 it doesn't seem to work. This is an excerpt
from
> > my
> > > logfile:
> > >
> > >
> > > SESSION ATTRIBUTES:
> > >
> > > PARAM: 'locale' VALUE: 'fr_CH'
> > > ...
> > > DEBUG   (2003-08-08) 10:38.54:938   [core]
(/GIS/selektion_gv.html)
> > > Thread-17/I18nTransformer: I18nTransformer: using locale de_CH
> > >
> > >
> > > sitemap:
> > >
> > >  > > src="org.apache.cocoon.transformation.I18nTransformer"
> > logger="core">
> > >
> > >   > > location="i18n/translations"/>
> > >   > name="messages_fehler"
> > > location="i18n/translations"/>
> > >
> > >
> > untranslated
> > >true
> > >   
> > >
> > > Cheers
> > >
> > >
> > >
> > > --
> > > COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> > > --
> > > 1. GMX TopMail - Platz 1 und Testsieger!
> > > 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
> > > 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday -
8.
> > e-
> > > Post
> > >
> > >
> > >
-
> > > 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]
> >
> 
> --
> COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> --
> 1. GMX TopMail - Platz 1 und Testsieger!
> 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
> 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
e-
> Post
> 
> 
> -
> 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: from an XSP page

2003-08-08 Thread Vernick, Michael David (Michael)
I just downloaded Antonio's patch for cocoon-2.1rc1.  The patch works fine for me.

-Original Message-
From: Bhargavi Atchutuni [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject:  from an XSP page


Hi,

Antonio, I used the XSPSessionHelper1.java and
session.xsl that you posted in another message, and
built my cocoon2.1rc1.

1. When I try to use 
 in my xsp, I get an
error. I have this is my xsp header:
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="false"

An Error Occurred
Could not transform
resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl

org.apache.cocoon.ProcessingException: Could not
transform
resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException:
Exception in creating Transform Handler

cause: java.io.UTFDataFormatException: Invalid byte 1
of 1-byte UTF-8 sequence.

2. Additionally, even my orginal session:getxml in the
xml file is not working any more with the new cocoon.
Can you tell me what sunShine transformer is now
called and what the context is now called - it used to
be sunRise and what is the namespace?

Thanks,
Bhargavi


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

-
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: problem creating a new transformer

2003-08-08 Thread Bruno Dumon
On Thu, 2003-08-07 at 16:07, Miguel Carvalho wrote:
> I also tried to create a naked version of cocoon but with no success. I
> created the local.blocks.properties and the local.build.properties, made a
> build clean and then made a new build and it still builded all the blocks
> that i sought i had removed, bellow i will put boht the files
> 

your local.blocks.properties file looks ok. You're sure you put it in
the right location (the cocoon distribution root directory, thus the
same directory containing the build script and the build.properties
file)? And how do you know they're still being build?

BTW: if have new questions unrelated to your previous questions, it is
better to start new threads (i.e. send a new message, with a new
subject).

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


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



Re: Request generator changes ?

2003-08-08 Thread Michael Wechner
Vincent De Groote wrote:
Hello,

I cocoon-2.0.3, the request generator produced parameters for the datas sent
by a form (in multipart/form-datas).  In cocoon 2.1, these values are not
generated anymore.
What do I need to do to retrieve the old processing ?


maybe you have to enable-uploads


enable-uploads
true

within web.xml

HTH

Michael






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



--
Michael Wechner
Wyona Ltd.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://cocoon.apache.org/lenya/
[EMAIL PROTECTED][EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: IE6: Can't open dynamic PDF from applet

2003-08-08 Thread J.Pietschmann
Beat De Martin wrote:
Do you set the mime-type ?
The FOPSerializer sets the proper MIME type automatically, and also
by defaults takes care of setting the content length and other known
traps. It can't completely outsmart IEx though.
...
Hi
... much irrelevant stuff snipped...
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
Ouch!

J.Pietschmann

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


RE: Getting Error when trying to use JSDK1.42 + Tomcat 4.1.27 + Cocoon 2.02 or 2.04

2003-08-08 Thread Cedric Picard
Title: Message



Jasper,
 
from 
the stack trace you've provided, it would appear that your XSL transformation is 
the cause of your problems:

> java.lang.RuntimeException: Errors in XSLT 
transformation:
> Fatal: File jar:file:/C:/Programme/Apache 
Group/Tomcat 4.1/webapps/cocoon/WEB-INF/lib/cocoon-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl; 
Line 154; Column 32; org.apache.xml.utils.WrappedRuntimeException: The output 
format must have a '{http://xml.apache.org/xalan}content-handler' 
property!
 
Look 
into C:/Programme/Apache Group/Tomcat 4.1/webapps/cocoon/WEB-INF/logs/core.log for 
more details on what the error is.
 
Hope 
that helps,
Cedric

  
  -Original Message-From: Jasper 
  Michalczik [mailto:[EMAIL PROTECTED] Sent: 07 August 2003 
  23:57To: [EMAIL PROTECTED]Subject: Getting Error 
  when trying to use JSDK1.42 + Tomcat 4.1.27 + Cocoon 2.02 or 
  2.04
  
  Hello,
   
  I’m getting the following Error 
  when trying to use Cocoon 2.02 or 2.04 on JSDK1.42 + Tomcat 
  4.1.27:
   
  I got this Error in two different 
  Computers, both running with Win XP pro.
   
   
  Cocoon 2 - Internal server 
  error
   
  
   
  type fatal
   
  message Failed to generate program 
  code (this may happen if you use Xalan in incremental processing mode). Please 
  check log file and/or console for errors.
   
  description 
  org.apache.cocoon.ProcessingException: Failed to generate program code (this 
  may happen if you use Xalan in incremental processing mode). Please check log 
  file and/or console for errors.
   
  sender 
  org.apache.cocoon.servlet.CocoonServlet
   
  source Cocoon 
  servlet
   
  stack-trace
   
  org.apache.cocoon.ProcessingException: 
  Failed to generate program code (this may happen if you use Xalan in 
  incremental processing mode). Please check log file and/or console for 
  errors.
      
  at 
  org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
      
  at 
  org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
      
  at 
  org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
      
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
      
  at java.lang.Thread.run(Unknown Source)
   
   
  --
  --
  The Console 
  displays:
   
  08.08.2003 00:50:30 
  org.apache.commons.modeler.Registry loadRegistry
  INFO: Loading registry 
  information
  08.08.2003 00:50:31 
  org.apache.commons.modeler.Registry getRegistry
  INFO: Creating new Registry 
  instance
  08.08.2003 00:50:31 
  org.apache.commons.modeler.Registry getServer
  INFO: Creating 
  MBeanServer
  08.08.2003 00:50:33 
  org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 
  on port 80
  Starting service 
  Tomcat-Standalone
  Apache 
  Tomcat/4.1.27-LE-jdk14
  08.08.2003 00:50:35 
  org.apache.struts.util.PropertyMessageResources 
  INFO: Initializing, 
  config='org.apache.struts.util.LocalStrings', 
returnNull=true
  08.08.2003 00:50:35 
  org.apache.struts.util.PropertyMessageResources 
  INFO: Initializing, 
  config='org.apache.struts.action.ActionResources', 
  returnNull=true
  08.08.2003 00:50:36 
  org.apache.struts.util.PropertyMessageResources 
  INFO: Initializing, 
  config='org.apache.webapp.admin.ApplicationResources', 
  returnNull=true
  server.properties not found, using 
  command line or default properties
  Opening database: 
  C:\Programme\Apache Group\Tomcat 
  4.1\webapps\cocoon\WEB-INF\db\cocoondb
  HSQLDB server 1.7.1 is 
  running
  Use SHUTDOWN to close normally. 
  Use [Ctrl]+[C] to abort abruptly
  Fri Aug 08 00:50:44 CEST 2003 Listening for 
  connections ...
  08.08.2003 00:50:45 
  org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on 
  port 80
  08.08.2003 00:50:45 
  org.apache.jk.common.ChannelSocket init
  INFO: JK2: ajp13 listening on 
  /0.0.0.0:8009
  08.08.2003 00:50:45 org.apache.jk.server.JkMain 
  start
  INFO: Jk running ID=0 
  time=0/160  config=C:\Programme\Apache Group\Tomcat 
  4.1\conf\jk2.properties
  java.lang.RuntimeException: Errors 
  in XSLT transformation:
  Fatal: File 
  jar:file:/C:/Programme/Apache Group/Tomcat 
  4.1/webapps/cocoon/WEB-IN
  F/lib/cocoon-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl; 
  Line 154; Column 32; org.apache.xml.utils.WrappedRuntimeException: The output 
  format must have a '{http://xml.apache.org/xalan}content-handler' 
  property!
   
      
  at 
  org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
      
  at 
java.lang.Thread.run(Thread.java:534)--This e-mail is confidential and is intended for the named recipient only. Ifyou r

RE: problem creating a new transformer

2003-08-08 Thread Miguel Carvalho
Hi again, after i have upgraded to 2.0.4 and corrected some problems in the
transformer i ended up getting this:

the first part of the result (marked) bellow is ok, and i am applying this
to the html serializer, and this is the result


http://www.w3.org/XML/1998/namespace";
xmlns:util="http://apache.org/xsp/util/2.0";
xmlns:xsp="http://apache.org/xsp"; xmlns:dae="http://laseeb/dae/sgDae";>

http://laseeb/dae/sgDae";
xmlns:src="http://xml.apache.org/xindice/Query";>
Titulo com rating 2
http://laseeb/dae/sgDae";
xmlns:src="http://xml.apache.org/xindice/Query";>
Titulo com rating 2Titulo do artigo com rating igual a
1
http://laseeb/dae/sgDae";
xmlns:src="http://xml.apache.org/xindice/Query";>
Titulo com rating 2Titulo do artigo com rating igual a 1Titulo do
artigo com rating igual a 2
http://laseeb/dae/sgDae";
xmlns:src="http://xml.apache.org/xindice/Query";>
Titulo com rating 2Titulo do artigo com rating igual a 1Titulo do
artigo com rating igual a 2Titulo do artigo com rating igual a 2





Internal server error Cocoon 2 - Internal server
errortype
internal-server-errormessage Failed to execute
pipeline.description
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.ArrayIndexOutOfBoundsException: -1sender
org.apache.cocoon.servlet.CocoonServletsource Cocoon
servletexceptionorg.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
java.lang.ArrayIndexOutOfBoundsException: -1request-uri<
pre>/dae/daestartoriginal exceptionOriginal
exception : java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
at
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java
:706)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1047)  at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
at
org.apache.cocoon.serialization.AbstractTextSerializer.endElement(AbstractTe
xtSerializer.java:335)
at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
at
pt.laseeb.dae.transformer.daeTransformer.endElement(daeTransformer.java:210)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:228)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:359)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400194(sitemap_xmap.java:16
53)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1424)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:592)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
at
org.apache.catalina.core.Standa

FW: jndi datasource lookup from cocoon 2.0.4 on weblogic 7

2003-08-08 Thread Grange, John
Title: FW: jndi datasource lookup from cocoon 2.0.4 on weblogic 7





Has anybody any thoughts on this one?


-Original Message-
From: Grange, John [mailto:[EMAIL PROTECTED]]
Sent: 06 August 2003 09:01
To: '[EMAIL PROTECTED]'
Subject: jndi datasource lookup from cocoon 2.0.4 on weblogic 7



I am trying to get the j2ee jndi datasource lookup working under weblogic 7, without success.  My xsp page fails with a null pointer exception in EsqlQuery.java:99 and produces a malformed xml document (no closing tags)

Has anybody else had this problem - if so, how have they resolved it?  If this is not the correct list to report this to, can you please let me know where to report it.

It appears (looking in the excalibur code) that java:comp/env is prepended to the jndi name when performing a lookup, this is not required under weblogic, and as such fails if it is included.

The following code DOES NOT work under WebLogic 
InitialContext ctx = new InitialContext(); 
Object obj = ctx.lookup("java:comp/env/jdbc/"+"myDataSourceName"); 
The following code DOES work under WebLogic 
InitialContext ctx = new InitialContext(); 
Object obj = ctx.lookup("myDataSourceName"); 
My setup configuration is as follows: 
cocoon.xconf: 
     
     
    jdbc/reportsDS 
     
     
web.xml: 
     
   jdbc/reportsDS 
   javax.sql.DataSource 
   Container 
    



weblogic.xml: 
 
     
    Cocoon App 
     
     
     
    jdbc/reportsDS 
    com.lv.jdbc.oracle.ReportsTxDataSource 
     
     
 




John Grange 
Software Team Leader 
Tel: +44 (0) 1749 834922 
Email: [EMAIL PROTECTED] 
BlueFinger Limited 
Underwood Business Park, Wookey Hole Road, Wells, Somerset, BA5 1AF, UK 
Tel: +44 (0) 1749 834900 
Fax: +44 (0) 1749 834902 
Mobile: +44 (0) 7876 038058 
web: www.bluefinger.com 
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. 
*** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.***




i18n locale in Cocoon 2.1

2003-08-08 Thread Beat De Martin
Hi all
I'm using Cocoon 2.1 and I have some problem with translation
Until Cocoon 2.0.4 I just set the session attribute locale to the desired
language and it worked.
When I do this in 2.1 it doesn't seem to work. This is an excerpt from my
logfile:


SESSION ATTRIBUTES:

PARAM: 'locale' VALUE: 'fr_CH'
...
DEBUG   (2003-08-08) 10:38.54:938   [core] (/GIS/selektion_gv.html)
Thread-17/I18nTransformer: I18nTransformer: using locale de_CH


sitemap:


 
   
   
 
 untranslated
 true


Cheers



-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


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



Character encoding

2003-08-08 Thread Nuno Leong



Hi all,
 
I'm having some trouble with character encoding on 
cocoon. Basically, i'm using Jboss-Net to access webservices via SOAP. The Soap 
Response has the encoding correct but the presentation (with cocoon) is showing 
some characters all garbled.
 
Here's a simple method i've used to test 
this:
 
 
public String teste() 
{    return "á : à : ã : â : é : í : 
ó : õ : ú : Á : À : Ã : É : Í : Ó : Õ : Ô : Ú : ç : Ç";
 
 
These are the special characters i'm having trouble 
with. The SOAP encoding is UTF-8, according to the Jboss-Net log.
 
I've set up a small match on the sitemap to 
serialize the response to HTML:
 
    
    
  

 
 
teste.xsp has the SOAP call:
 
  language="java"  
xmlns:xsp="http://apache.org/xsp"  
xmlns:xsp-request="http://apache.org/xsp/request/2.0"  
xmlns:xscript="http://apache.org/xsp/xscript/1.0"  
xmlns:soap="http://apache.org/xsp/soap/3.0"  
xmlns:xsp-session="http://apache.org/xsp/session/2.0"  
>      
http://192.168.0.2:8080/jboss-net/services/Teste">    
    
  
     

 
 
The output on the browser is showing these strange 
characters:
á : à : ã : â : é : í : ó : õ : ú : Á : À : Ã : É : 
Í : Ó : Õ : Ô : Ú : ç : Ç  
 
 
and the Source shows:
http://apache.org/xsp" xmlns:xsp-session="http://apache.org/xsp/session/2.0" 
xmlns:xscript="http://apache.org/xsp/xscript/1.0" 
xmlns:soap="http://apache.org/xsp/soap/3.0" 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"> 
http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   
http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns1="urn:Teste">   á : à : 
ã : â : é : 
í : ó : õ : 
ú : Á : À : 
à : É : Í : 
Ó : Õ : Ô : 
Ú : ç : 
Ç  
    
  
 
 
I'm not sure why this is happening, but i guess it 
has something to do with character encoding that cocoon is applying to the SOAP 
response. I've tested the webservice with a small VB.Net console application, 
and the output is correct, so the problem is definitely with 
cocoon.
 
Any thoughts on this?
 
Thanks in advance.
--Nuno LeongPráxia 
SI


RE: 2.1rc1 build error

2003-08-08 Thread Cedric Picard
I just checked my own version 2.1m2 and ResolverImpl.java does not exist
in src/java/org/apache/cocoon/components/resolver.

You'll need to get this class from CVS if you downloaded the release
version.

-Original Message-
From: rufio [mailto:[EMAIL PROTECTED] 
Sent: 06 August 2003 17:54
To: [EMAIL PROTECTED]
Subject: 2.1rc1 build error


Hi all

When I try to build WAR on jdk1.4 I get these errors:

compile-tests:
Compiling 24 source files to
/home/rufio/cocoon-2.1rc1/build/cocoon-2.1rc1/test
/home/rufio/cocoon-2.1rc1/src/test/org/apache/cocoon/components/resolver
/test/ResolverImplTestCase.java:64: cannot resolve symbol symbol  :
class ResolverImpl 
location: package resolver
import org.apache.cocoon.components.resolver.ResolverImpl;
 ^
/home/rufio/cocoon-2.1rc1/src/test/org/apache/cocoon/components/resolver
/test/ResolverImplTestCase.java:234: cannot resolve symbol symbol  :
class ResolverImpl 
location: class
org.apache.cocoon.components.resolver.test.ResolverImplTestCase
private ResolverImpl resolverImpl;
^
/home/rufio/cocoon-2.1rc1/src/test/org/apache/cocoon/components/resolver
/test/ResolverImplTestCase.java:282: cannot resolve symbol symbol  :
class ResolverImpl 
location: class
org.apache.cocoon.components.resolver.test.ResolverImplTestCase
resolverImpl = (ResolverImpl) manager.lookup(role);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors

There aren't any prequestions in INSTALL.txt so I have no clue what
could be the reason?

Regards, Rufio

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



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

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



Re: problem creating a new transformer

2003-08-08 Thread Olivier Billard
Hi Miguel,

It seems that you are doing something with a null variable at line 116 of your 
Transformer... Do you already have checked this ? (see further)

Miguel Carvalho wrote:
Hi, i want to create a new transformer that gets sax events from a XSP
Generator created by me.
i'm using cocoon 2.0.4 under a XP with java version 1.4.1_03.

bellow i will post the XSP code of the generator


type internal-server-error

message Exception in ServerPagesGenerator.generate()

description org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

exception

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.NullPointerException
request-uri

/dae/daestart

original exception

Original exception : java.lang.NullPointerException
at
org.apache.cocoon.serialization.AbstractTextSerializer.startElement(Abstract
TextSerializer.java:271)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:87)
HERE

at
pt.laseeb.dae.transformer.daeTransformer.startElement(daeTransformer.java:11
6)
--
Olivier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XSP could not be preloaded

2003-08-08 Thread rob . gregory
Hi,

does anyone know what this error means ?

ERROR   (2003-08-05) 14:06.27:937   [core.program-generator]
(/cocoon/ebiz/projfiledata/application/projfiledata.html)
HttpProcessor[80][3]/ProgramGeneratorImpl: The serverpage
[file:/D:/opt/ebiz/projfiledata/application/xsp/projfiledata.xsp] could not
be preloaded

It sometimes - but not always - appears in my log file after I
have restarted Tomcat. I have tried to replicate the error by
restarting Tomcat, with and without deleting the cache, but
haven't been able to.
My users haven't reported any problems with HTML pages
not being generated - so I don't know if it's a problem or not.

Thanks,

Rob.



SIEMENS COMPANY CONFIDENTIALITY MESSAGE :
This  e-mail  and  any attachments are confidential and may be privileged.
If  you are not a named recipient, please notify the sender immediately and
do not disclose the contents to another person or use it for any purpose or
store/copy the information in any medium.

On 30 April 2003 ALSTOM sold its Industrial Gas Turbines businesses in
Lincoln, Aberdeen, Spain and Singapore to Siemens. The registered name of
the business is Demag Delaval Industrial Turbomachinery Ltd. and is a
wholly owned Siemens company. The business remains actively committed to
the sale and support of industrial gas turbines up to 15 MW as well as
those 3,500 units delivered over the past 50 years.  The Napier
Turbocharger business is also included in this transaction.
Please continue to use your existing contacts for gas turbines and
turbochargers.



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



RE: xinclude - cinclude - map:aggregate ??

2003-08-08 Thread Chris Clark
Have you tried the session transformer?  I think it might be able to do what you 
want...
Here's a sample:

sitemap stuff:

  
 

 

  

xml source stuff:
  

  http://apache.org/cocoon/session/1.0";>
  Page Title
  
  Test data from "authentication" context: 


  
  
  

In this case the information is in the "authentication" context which I filled in when 
teh user logged on.  I'm pretty sure you can specify the "rqeuest" context.  The path 
is just an xpath expression for the variable you want to substitute.  You might need 
to write an intemediary XSLT to convert your placeholders into the  
tags, depending on what your needs are.

Hope this helps,
Chris
  


> -Original Message-
> From: Jorg Heymans [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 8:51 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: xinclude - cinclude - map:aggregate ??
> 
> Oookay, looking at the wiki this does not seem possible (unless it's an
> undocumented feature). The src attribute of map:part does not seem to give
> access to the requestgenerator in some way or another
> 
> 
> I'll rephrase my problem then, maybe there is something more fundamental
> wrong with my logic.
> 
> 1)I have an xml file
> 2)This xml file has placeholders that need to arbitrary replaced with
> request parameters. Eg invoking url myfile.xml?placeholder1=myvaluehere
> outputs the xml document with every occurrence of placeholder1 replaced with
> "myvaluehere".
> 3)unlimited amount of placeholders can be defined, this results in an
> arbitrary amount of requestparameters, hence I really need to be able query
> the requestobject and loop over them.
> 
> 
> Hope this clarifies my problem a bit. Should I approach this differently?
> 
> Jorg
> 
> -Original Message-
> From: Jorg Heymans [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 6. August 2003 14:12
> To: '[EMAIL PROTECTED]'
> Subject: xinclude - cinclude - map:aggregate ??
> 
> Hi list,
>  
> I want to iterate over the requestparameter variables in my stylesheet.
> Following won't work
>  
> 
> 
> 
>  value="true"/>
> 
> 
> 
>  
> Is the map:aggregate or xinclude functionality the thing I'm looking for?
> How would I reference the request object as a source then?
>  
> 
>  
>  
> 
>  
> this didn't bring what I was looking for..
>  
> Normally I would do map:generate type="request" and then transform from
> there on, but I need to keep the Smil file as the starting point here.
>  
> Any thoughts?
> Jorg
> 
> -
> 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: problem creating a new transformer

2003-08-08 Thread Miguel Carvalho
i tried to do that but it didn't worked that well, the thing is, like you
have probably noticed i'm kind of newbie in cocoon, so i started this
project from a sample "chello" that used cocoon 2.0rc2.
Now, trying to upgrade to 2.0.4 i kind of messed up things a little :P

I thought that it would be ehough to copy the cocoon.jar that is generated
from the build dir of the src of cocon2.0.4 but it seems (my recente
experience - today :) ) that this isn't that linear..

So if you could tell me or direct me to some papers or how-to's that talk
about upgrading to diferent versions of cocoon it would be great...

Thanks
Miguel Carvalho

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 6 de Agosto de 2003 19:04
To: [EMAIL PROTECTED]
Subject: RE: problem creating a new transformer


On Wed, 2003-08-06 at 19:11, Miguel Carvalho wrote:
>
> ok, and can you give me a hand in doing this!! :( I tried to copy the
> sitemap.xmap, cocoon.xconf and web.xml from the cocoon 2.0.4 to my project
> and it didn't worked. I also copied all the libs plus the
cocoon-scratchpad
> and added it to my classpath and still no good... :( but there are backups
> :)
>
> Could you tell me the steps that i have to go, so i can pass to the
> iterpreted engine?

it's only a change to the cocoon.xconf: comment out the following lines:

  

and enable the following line:

thus change it to:




However, this will not help you with your transformer problem.

I've had a quick look at the code you sent earlier, and the problem
might be with your endElement calls, currently they are like:

super.endElement(NAMESPACE, ARTICLE_ELEMENT, "");

but you should provide a value for the qName, and your code would be
easier to read if you just pass on the values you get as arguments:

super.endElement(namespaceURI, localName, qName);

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


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




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



Re: Request generator changes ?

2003-08-08 Thread Michael Wechner
Geoff Howard wrote:
Michael Wechner wrote:





The Wiki has more.  This is in bad need of moving into the real 
documentation.  If anyone has the time, a good gameplan would be to 
combine the three upload related pages at the wiki into a good document 
on uploads with Cocoon with all the current changes in mind.
do you have the URLs of the related pages within the Wiki?

The search didn't reveal a lot:
http://wiki.cocoondev.org/Search.jsp?query=enable-uploads&Search=Find%21
Thanks

Michael

  I can't
write it at the moment, but I could guide someone through understanding 
the issues and the current state.

Geoff Howard

-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED] Sent: 07 
August 2003 15:39
To: [EMAIL PROTECTED]
Subject: Re: Request generator changes ?

Vincent De Groote wrote:

Hello,

I cocoon-2.0.3, the request generator produced parameters for the datas


sent

by a form (in multipart/form-datas).  In cocoon 2.1, these values 
are not
generated anymore.

What do I need to do to retrieve the old processing ?




maybe you have to enable-uploads

 
enable-uploads
true

within web.xml

HTH

Michael


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



--
Michael Wechner
Wyona Ltd.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://cocoon.apache.org/lenya/
[EMAIL PROTECTED][EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Confused About Perfomance Issues

2003-08-08 Thread Reinhard Pötz


> -Original Message-
> From: Julian [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 4:20 PM
> To: cocoon
> Subject: Confused About Perfomance Issues
> 
> 
> Hi,
> 
> I have looked into this a few times, but am not
> "getting it".
> 
> 
> How can I configure/build Cocoon to
> pre-load/pre-compile sitemaps before or during server
> startup?
> 

In 2.1 (latest CVS) the interpreted sitemap is used - no compilation is
necessary.

> 
> 
> Every time my server is restarted Cocoon takes about
> 8-10 secs. to respond to requests to a given sitemap. 
> I believe this is sitemap compilation.  I have a few
> sitemaps so this causes some serious lag time, albeit
> on first request...afterwards all responds quickly.
> 
> jre 1.4.1, Cocoon CVS version, Tomcat 4.1.12
> 

It's not only the sitemap - Cocoon initialized many components and this
needs some time at startup. It also takes some time to compile XSP pages
(in the case you use them).

HTH

Cheers,
Reinhard


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



Session and authentication

2003-08-08 Thread maisonneuve nico
hy

i have the welcome page:



i would like use always the same tag () that display :
if the user is logged his name
else a authentication form (it's a good practice ?)
i use the authentication Framework.( it's works).
and a styleslsheet with  the template :



but i dont know how do to see in the template that the user is logged or not
thanks in advance

_
Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: serving css and images

2003-08-08 Thread Ben Munat
Thanks! The Cocoon Developer's Handbook doesn't seem to mention an xhtml 
serializer anywhere... frustrating. And I wonder, does it only work with 
certain versions of cocoon? I'm running 2.0.4 and changed the serializer 
on that page to xhtml, but I still don't get a doctype and the mime-type 
is still text/html.

Oh, and the program I used to write the xsl stuck the fo ns in there... 
didn't even notice it... thanks.

b

Joerg Heinicke wrote:

Hello Ben,

Cocoon has a so called XHTML serializer, which is in fact a XML 
serializer, but adds the correct mime-type and the DOCTYPE, so that 
Mozilla correctly recognizes the page as XHTML. So you should use



The XSL FO namespace declaration comes from your stylesheet I guess - 
and the serializer does not remove it, but it does not add ns 
declarations by magic. The ns declaration has no influence on the mime 
type recognition of Mozilla, but the wrong mime-type text/xml of the XML 
serializer has.

Regards,

Joerg

Ben Munat wrote:

Thanks for all the replies. I must have been pretty fuzzy last night 
to miss the fact that I hadn't changed the image map:match to the 
correct source and mime type! Thus are the dangers of cut & paste 
(yank & put, actually).

I've gotten it to find the image and stylesheet now, but I had to 
change the serializer to html. Don't I want to use the xml serializer 
to get xhtml output? Cocoon is also putting this namespace on my html 
tag:

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

which is what, I think, was making mozilla interpret the file as xml 
and hence not retrieve the stylesheet and image or even render the 
html, for that matter. Once I changed the serializer to html, it put in:



so now mozilla treats it as html (even though the fo ns declaration is 
still there). I don't know that it matters that much, though I'd like 
to know why I'm getting that ns added... and for that matter, isn't 
there a way to have cocoon insert an xhtml dtd into the output file?

Thanks for all your help.

Ben Munat


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