Use PJA: How to run cocoon2 without X11

2001-07-06 Thread Steven Punte

Another possiblity, especially if a graphics card
is not available, is to use the PJA toolkit.

Either PJA classes can be directly invoked, or with
enought finess of awt.properties, all graphics
activity will be routed to this pure java 
implementation.

Result is very platform independent operation.


Steve Punte
[EMAIL PROTECTED]




On Fri, 6 Jul 2001 18:46:01 +0200, [EMAIL PROTECTED] wrote:

>  Hi!
>  
>  How can I run cocoon 2 without X11. Why is a Display needed???
>  
>  Christoph Gaffga
>  
>  
>  
>  > Hi !
>  >
>  > for me, this is a strange error. Why does C2 need the X server.
>  > And how can I fix it.
>  >
>  > thanks in advance.
>  >
>  > Christoph Gaffga
>  >
>  >
>  >
>  > ERROR   41966   [cocoon  ] (Thread-5): Error compiling sitemap
>  > java.lang.InternalError: Can't connect to X11 window server using
':0.0'
>  as
>  > the value of the DISPLAY variable.
>  > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>  > at
>  > sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58)
>  > at java.lang.Class.forName0(Native Method)
>  > at java.lang.Class.forName(Class.java:120)
>  > at
>  >
> 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
>  > .java:58)
>  > at sun.awt.motif.MToolkit.(MToolkit.java:57)
>  > at java.lang.Class.forName0(Native Method)
>  > at java.lang.Class.forName(Class.java:120)
>  > at java.awt.Toolkit$2.run(Toolkit.java:498)
>  > at java.security.AccessController.doPrivileged(Native Method)
>  > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
>  > at
java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
>  > at java.awt.SystemColor.(SystemColor.java:335)
>  > at
>  >
> 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy
>  > stemColorResolver.java:27)
>  > at
>  > org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
>  > at
>  >
> 
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMa
>  > p.java:39)
>  > at
>  >
> 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:3
>  > 9)
>  > at
>  >
> 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:3
>  > 2)
>  > at
>  >
> 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.ja
>  > va:88)
>  > at
>  >
> 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.
>  > java:59)
>  > at
>  >
> 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.
>  > java:59)
>  > at
org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:59)
>  > at
>  >
> 
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:47)
>  > at java.lang.Class.newInstance0(Native Method)
>  > at java.lang.Class.newInstance(Class.java:237)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
>  > faultComponentFactory.java:83)
>  > at
>  >
> 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
>  > 70)
>  > at
>  >
> 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
>  > imitingPool.java:82)
>  > at
>  >
> 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
>  > ourceLimitingPool.java:67)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
>  > olableComponentHandler.java:75)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
>  > DefaultComponentSelector.java:306)
>  > at
>  >
> 
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem
>  > apComponentSelector.java:42)
>  > at
>  >
> 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
>  > a:150)
>  > at
>  >
> 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap
>  > .java:940)
>  > at
>  > org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:490)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
>  > faultComponentFactory.java:110)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
>  > ThreadSafeComponentHandler.java:78)
>  > at
>  >
> 
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
>  > DefaultComponentSelector.java:306)
>  > at
>  >
> 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
>  > or(GeneratorSelector.java:75)
>  > at
>  >
> 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
>  > or(GeneratorSelector.java:71)
>  > at
>  >
> 
org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
>  > eratorSelector.java:57)
>  >

RE: FOP border question

2001-07-06 Thread Drasko Kokic

Thanks Darrel ... it works :-))

--- Darrel Riekhof <[EMAIL PROTECTED]> wrote:
> I got it working with this line for the 3rd col in
> my table:
> 
>  border-left-color="black"
> border-left-style="solid" border-left-width=".3mm"/>
>   
> 
> Darrel
> 
> -Original Message-
> From: Drasko Kokic [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP border question
> 
> 
> I have tried it right now and even thought it does
> not
> generate any warnings/errors in the log file ... it
> still leave the PDF without any table borders :-(
> 
> Thanks for your help
> Drasko
> 
> --- Lajos Moczar <[EMAIL PROTECTED]> wrote:
> > Just add "border-width" and "border-color"
> > attributes to your 
> > fo:table-cell, fo:table or fo:table-row elements.
> > That should do it.
> > 
> > Regards,
> > 
> > Lajos Moczar
> > galatea.com
> > 
> > 
> > Darrel Riekhof wrote:
> > 
> > > Is there a FOP mailing list?
> > > 
> > > I have a table with 3 cols and several rows.  I
> > want a border around the
> > > outside of the table, and a border between col 2
> > and 3.  Can't figure it out
> > > from the examples...
> > > 
> > > Want it to look something like this:
> > > 
> > >
> >
>
|---||
> > > | c1 r1  c2r1   | c3r1  
>  
> >   | 
> > > | c1 r2  c2r2   | c3r2  
>  
> >   | 
> > > | c1 r3  c2r3   | c3r3  
>  
> >   |
> > >
> >
>
|---||
> > > 
> > > Darrel
> > > 
> > >
> >
>
-
> > > Please check that your question has not already
> > been answered in the
> > > FAQ before posting.
> > 
> > > 
> > > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> > 
> > 
> >
>
-
> > Please check that your question has not already
> been
> > answered in the
> > FAQ before posting.
> > 
> > 
> > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: FOP border question

2001-07-06 Thread Darrel Riekhof

I got it working with this line for the 3rd col in my table:

   

Darrel

-Original Message-
From: Drasko Kokic [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: FOP border question


I have tried it right now and even thought it does not
generate any warnings/errors in the log file ... it
still leave the PDF without any table borders :-(

Thanks for your help
Drasko

--- Lajos Moczar <[EMAIL PROTECTED]> wrote:
> Just add "border-width" and "border-color"
> attributes to your 
> fo:table-cell, fo:table or fo:table-row elements.
> That should do it.
> 
> Regards,
> 
> Lajos Moczar
> galatea.com
> 
> 
> Darrel Riekhof wrote:
> 
> > Is there a FOP mailing list?
> > 
> > I have a table with 3 cols and several rows.  I
> want a border around the
> > outside of the table, and a border between col 2
> and 3.  Can't figure it out
> > from the examples...
> > 
> > Want it to look something like this:
> > 
> >
>
|---||
> > | c1 r1  c2r1   | c3r1
>   | 
> > | c1 r2  c2r2   | c3r2
>   | 
> > | c1 r3  c2r3   | c3r3
>   |
> >
>
|---||
> > 
> > Darrel
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: FOP border question

2001-07-06 Thread Drasko Kokic

I have tried it right now and even thought it does not
generate any warnings/errors in the log file ... it
still leave the PDF without any table borders :-(

Thanks for your help
Drasko

--- Lajos Moczar <[EMAIL PROTECTED]> wrote:
> Just add "border-width" and "border-color"
> attributes to your 
> fo:table-cell, fo:table or fo:table-row elements.
> That should do it.
> 
> Regards,
> 
> Lajos Moczar
> galatea.com
> 
> 
> Darrel Riekhof wrote:
> 
> > Is there a FOP mailing list?
> > 
> > I have a table with 3 cols and several rows.  I
> want a border around the
> > outside of the table, and a border between col 2
> and 3.  Can't figure it out
> > from the examples...
> > 
> > Want it to look something like this:
> > 
> >
>
|---||
> > | c1 r1  c2r1   | c3r1
>   | 
> > | c1 r2  c2r2   | c3r2
>   | 
> > | c1 r3  c2r3   | c3r3
>   |
> >
>
|---||
> > 
> > Darrel
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[C2.0b1] question about XSP generated Java files

2001-07-06 Thread Drasko Kokic

I think I have found something very strange in the way
Java files are being generated from the XSP files.

I have situation like described in the attached email.
 There is a main sitemap and a sub-sitemap for the
sub-URI LOOP.

In the LOOP sub-sitemap I have the following code:

   



   

I don't understand why is the Java file index_xsp.java
generated under the www directory and not under
www/LOOP directory???

Anybody care to explain how XSP and sitemap work
together.

TIA
Drasko

--- Drasko Kokic <[EMAIL PROTECTED]> wrote:
> Hello everybody,
> 
> this is already the second time I am getting stucked
> with this problem.  Unfortunately the first time I
> have "solved" the problem in untraceble way :-(
> 
> I am using submaps like following
> 
> context = KontoCheck
> submap  = LOOP
> 
> this creates properly the sitemap_xmap.java in the
>  blabla...KontoCheck/org/apache/cocoon/www
> as well as in the subdirectory LOOP.
> Both get compiled and things work fine.
> 
> BUT ...
> 
> after I have configured the LOOP submap to serve the
> URI SingleLogin/CheckIn I am getting the
> ClassNotFoundException.
> 
> Looking into the work directory I can see that under
> the www directory there is SingleLogin subdirectory
> containing the java file generated thrue XSP. ONLY
> THERE IS NO CLASS FILE.
> 
> How is it possible to fix this problem?  What is
> causing this misbehaviour?
> 
> TIA
> Drasko
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: [C2.0b1] Resource Not Found

2001-07-06 Thread Drasko Kokic

You are probably right about problems with JS and
browsers, but here is something else wrong.

Why am I having empty Java file in the work directory?
 It looks like a fault in the XSP generator.
And, also, why is the file in question
(Checkin_xsp.java) not under LOOP/SingleLogin
subdirectory?
Just to remind you, I am calling the following URL:
http://localhost:8800/KontoCheck/LOOP/SingleLogin/CheckIn
and in the KontoCheck sitemap I am mounting the
sub-sitemap for the LOOP sub-URI.

How should this work?

TIA
Drasko


--- "HALLOWELL,KARL (HP-Cupertino,ex1)"
<[EMAIL PROTECTED]> wrote:
> IMHO, it looks like a javascript problem here. Both
> Netscape and IE have
> their problems with javascript. The "Resource Not
> Found" error is something
> I've seen in Netscape browsers before when they open
> javascript
> that-Netscape-wasn't-meant-to-view. I'm not familiar
> with how Cocoon 2 does
> browser version detection (is that in a FAQ
> somewhere?).
> 
> 
> Karl Hallowell [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Drasko Kokic [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 04, 2001 2:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: [C2.0b1] Resource Not Found
> > 
> > 
> > I am having this problem now already one week and
> have
> > no idea what is causing it:
> > 
> > The page in question is available at the following
> > URL:
> > 
> > http://kodra.loop.de/KontoCheck/LOOP
> > 
> > and produces strange "Resource Not Found" error
> > WITHOUT any trace in the log file (it all looks
> OK)
> > What is even stranger is that it happens only with
> > Netscape browser.  IE is more or less okay with
> it.
> > 
> > For comparison look at the following URL:
> > 
> > http://kodra.loop.de/PEPSi/demo
> > 
> > (this is the C1.8.2 implementation of the same
> > prototype)
> > 
> > Does anybody have any idea what could be a
> problem? 
> > How to find out which "resource is not found"?!
> > 
> > TIA
> > Drasko
> > 
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> > 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




org.w3c.dom.Document as param, html as output

2001-07-06 Thread JOEL BENVENISTE

I'm trying to find a class/method (possibly xalan) that will take an 
org.w3c.dom.Document as an arg which will include an  
processing instruction and have an ouput of html.  I need to have this 
done on the fly without the xml doc saved in a directoryany 
suggestions??


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: [C2.0b1] Resource Not Found

2001-07-06 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

IMHO, it looks like a javascript problem here. Both Netscape and IE have
their problems with javascript. The "Resource Not Found" error is something
I've seen in Netscape browsers before when they open javascript
that-Netscape-wasn't-meant-to-view. I'm not familiar with how Cocoon 2 does
browser version detection (is that in a FAQ somewhere?).


Karl Hallowell [EMAIL PROTECTED]

> -Original Message-
> From: Drasko Kokic [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 2:23 PM
> To: [EMAIL PROTECTED]
> Subject: [C2.0b1] Resource Not Found
> 
> 
> I am having this problem now already one week and have
> no idea what is causing it:
> 
> The page in question is available at the following
> URL:
> 
> http://kodra.loop.de/KontoCheck/LOOP
> 
> and produces strange "Resource Not Found" error
> WITHOUT any trace in the log file (it all looks OK)
> What is even stranger is that it happens only with
> Netscape browser.  IE is more or less okay with it.
> 
> For comparison look at the following URL:
> 
> http://kodra.loop.de/PEPSi/demo
> 
> (this is the C1.8.2 implementation of the same
> prototype)
> 
> Does anybody have any idea what could be a problem? 
> How to find out which "resource is not found"?!
> 
> TIA
> Drasko
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: FOP border question

2001-07-06 Thread Lajos Moczar

Just add "border-width" and "border-color" attributes to your 
fo:table-cell, fo:table or fo:table-row elements. That should do it.

Regards,

Lajos Moczar
galatea.com


Darrel Riekhof wrote:

> Is there a FOP mailing list?
> 
> I have a table with 3 cols and several rows.  I want a border around the
> outside of the table, and a border between col 2 and 3.  Can't figure it out
> from the examples...
> 
> Want it to look something like this:
> 
> |---||
> | c1 r1  c2r1   | c3r1   | 
> | c1 r2  c2r2   | c3r2   | 
> | c1 r3  c2r3   | c3r3   |
> |---||
> 
> Darrel
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[C2.0b1] java.lang.ClassNotFoundException

2001-07-06 Thread Drasko Kokic

Hello everybody,

this is already the second time I am getting stucked
with this problem.  Unfortunately the first time I
have "solved" the problem in untraceble way :-(

I am using submaps like following

context = KontoCheck
submap  = LOOP

this creates properly the sitemap_xmap.java in the
 blabla...KontoCheck/org/apache/cocoon/www
as well as in the subdirectory LOOP.
Both get compiled and things work fine.

BUT ...

after I have configured the LOOP submap to serve the
URI SingleLogin/CheckIn I am getting the
ClassNotFoundException.

Looking into the work directory I can see that under
the www directory there is SingleLogin subdirectory
containing the java file generated thrue XSP. ONLY
THERE IS NO CLASS FILE.

How is it possible to fix this problem?  What is
causing this misbehaviour?

TIA
Drasko


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: How to run cocoon2 without X11

2001-07-06 Thread C. Gaffga

Now it works, clever and simple idea. Thank you very much

Christoph Gaffga


- Original Message - 
From: "Marcus Crafter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 7:13 PM
Subject: Re: How to run cocoon2 without X11


> On Fri, 6 Jul 2001, C. Gaffga wrote:
> 
> > How can I run cocoon 2 without X11. Why is a Display needed???
> 
> An Xserver is needed due to the batik library fop uses. batik uses
> java's graphics code, which in turn requires the Xserver.
> 
> If you don't have an xserver on your system, and can't set the DISPLAY
> variable to one, then try out xvfb. xvfb gives you an 'in-memory'
> xserver, which doesn't require any display hardware to run.
> 
> eg:
> 
> $> Xvfb :1 -screen 0 800x600x8 &
> $> export DISPLAY=:1
> $> $TOMCAT_HOME/bin/startup.sh -f server.xml
> 
> Hope that helps.
> 
> Cheers,
> 
> Marcus
> 
> -- 
> .
>  ,,$,  Marcus Crafter
> ;$'  ':Computer Systems Engineer
> $: :   Open Software Associates GmbH
>  $   o_)$$$:   82-84 Mainzer Landstrasse
>  ;$,_/\ &&:'   60327 Frankfurt Germany
>' /( &&&
>\_' Email : [EMAIL PROTECTED]
>   .Business Hours : +49 69 9757 200
> &&&:   After Hours: +49 69 49086750
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




FOP border question

2001-07-06 Thread Darrel Riekhof

Is there a FOP mailing list?

I have a table with 3 cols and several rows.  I want a border around the
outside of the table, and a border between col 2 and 3.  Can't figure it out
from the examples...

Want it to look something like this:

|---||
| c1 r1  c2r1   | c3r1   | 
| c1 r2  c2r2   | c3r2   | 
| c1 r3  c2r3   | c3r3   |
|---||

Darrel

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: How to run cocoon2 without X11

2001-07-06 Thread Sergio Carvalho


You can, alternatively, disable batik alltogether, if you don't use it. Search  
sitemap.xmap for components using fop - I think its just the FOPSerializer, and 
associated pipelines.

On Fri, 6 Jul 2001 19:13:00 +0200 (CEST), Marcus Crafter 
<[EMAIL PROTECTED]> wrote:
--
> On Fri, 6 Jul 2001, C. Gaffga wrote:
> 
> > How can I run cocoon 2 without X11. Why is a Display needed???
> 
>   An Xserver is needed due to the batik library fop uses. batik uses
>   java's graphics code, which in turn requires the Xserver.
> 
>   If you don't have an xserver on your system, and can't set the DISPLAY
>   variable to one, then try out xvfb. xvfb gives you an 'in-memory'
>   xserver, which doesn't require any display hardware to run.
> 
>   eg:
> 
>   $> Xvfb :1 -screen 0 800x600x8 &
>   $> export DISPLAY=:1
>   $> $TOMCAT_HOME/bin/startup.sh -f server.xml
> 
>   Hope that helps.
> 
>   Cheers,
> 
>   Marcus
> 
> -- 
> .
>  ,,$,  Marcus Crafter
> ;$'  ':Computer Systems Engineer
> $: :   Open Software Associates GmbH
>  $   o_)$$$:   82-84 Mainzer Landstrasse
>  ;$,_/\ &&:'   60327 Frankfurt Germany
>' /( &&&
>\_' Email : [EMAIL PROTECTED]
>   .Business Hours : +49 69 9757 200
> &&&:   After Hours: +49 69 49086750
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>



--
Sergio Carvalho
---
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon2 web-app query

2001-07-06 Thread John Waugh
Title: RE: Cocoon2 web-app query





ok, I think I have the answer.
There is only one C2 servlet in existance that takes the calls using Cocoon (.java), sitemap and the remainder of the url path to determine the processing.

Presumably therefore there are several places where the threads will encounter each other in accessing data objects, as there are a few hastables etc placed about for housekeeping?  would this have an upper limit on the number of threads that can be pushed through Cocoon and sitemap Manager?

Also I was looking at the reloading, it seems to check for modifications on every request?  this seems a bit of an overhead. I've been running resin, and although it has its' pros and cons, it does automatically reload (if everything) if the conf file is changed, without requests having to be made, as does freemarker.  Was there any reason for this model?

any thoughts, or if i'm off track,


cheers


John



-Original Message-
From: John Waugh [mailto:[EMAIL PROTECTED]]
Sent: 06 July 2001 17:44
To: Cocoon-Users (E-mail)
Subject: Cocoon2 web-app query



I know this might sound like a bit of a dense question but: 
how many servlets are running in the cocoon2 example after installation?  am i right in thinking there is only 1 servlet CocoonServlet.java that runs, and the content differences are handled by the Cocoon.java and sitemap end onwards, or in fact is there a seprate CocconServlet deployed for each example?  I think this is essentially a relationship between CocoonServlet Cocoon and sitemap that i'm not quite understanding,

if anybody could shed some light it would help. 
cheers 
John 
  





Re: How to run cocoon2 without X11

2001-07-06 Thread Marcus Crafter

On Fri, 6 Jul 2001, C. Gaffga wrote:

> How can I run cocoon 2 without X11. Why is a Display needed???

An Xserver is needed due to the batik library fop uses. batik uses
java's graphics code, which in turn requires the Xserver.

If you don't have an xserver on your system, and can't set the DISPLAY
variable to one, then try out xvfb. xvfb gives you an 'in-memory'
xserver, which doesn't require any display hardware to run.

eg:

$> Xvfb :1 -screen 0 800x600x8 &
$> export DISPLAY=:1
$> $TOMCAT_HOME/bin/startup.sh -f server.xml

Hope that helps.

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED]
  .Business Hours : +49 69 9757 200
&&&:   After Hours: +49 69 49086750


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Calling Cocoon form the command line.

2001-07-06 Thread Paul Sprague



Hi,
 
I've been trying to call cocoon from the command 
line like so, I know it's ugly. Basically the classpath contains all the jars 
need to run cocoon plus some weblogic stuff. 
 
java -classpath 
g:\javalibs\cocoon-1.8.2\lib\fop_0_15_0.jar;g:\javalibscocoon-1.8.2\lib\sax-bugfix.jar;g:\javalibs\cocoon-1.8.2\lib\turbine-pool.jar;g:\javalibs\cocoon-1.8.2\lib\xalan_1_2_D02.jar;g:\javalibs\cocoon-1.8.2\lib\xerces_1_2.jar;g:\javalibs\cocoon-1.8.2\lib\w3c.jar;e:\weblogic\cocoonwar\WEB-INF\lib\cocoon.jar;e:\weblogic\lib\weblogicaux.jar;e:\weblogic\classes  
org.apache.cocoon.Cocoon  -p 
e:\weblogic\cocoonwar\WEB-INF\cocoon2.properties  
E:\Temp\af_temp\a-a-July-06-2001.xml  
E:\Temp\af_temp\a-a-July-06-2001.pdf
 
This is the output
 
E:\weblogic>java -classpath 
g:\javalibs\cocoon-1.8.2\lib\fop_0_15_0.jar;g:\javalibscocoon-1.8.2\lib\sax-bugfix.jar;g:\javalibs\cocoon-1.8.2\lib\turbine-pool.jar;g:\javalibs\cocoon-1.8.2\lib\xalan_1_2_D02.jar;g:\javalibs\cocoon-1.8.2\lib\xerces_1_2.jar;g:\javalibs\cocoon-1.8.\lib\w3c.jar; 
e:\weblogic\cocoonwar\WEB-INF\lib\cocoon.jar;e:\weblogic\lib\weblogicaux.jar;e:\weblogic\classes  
org.apache.cocoon.Cocoon  -p 
e:\weblogic\cocoonwar\WEB-INF\cocoon2.properties  E:\Temp\af_temp\a-a-July-06-2001.xml  
E:\Temp\af_temp\a-a-July-062001.pdfFOP_VERSION = FOP 0.15FOP_VERSION_NO 
= 0.15Exception in thread "main" 
java.lang.NullPointerException    at 
org.apache.cocoon.Engine.handle(Engine.java:484)    
at 
org.apache.cocoon.EngineWrapper.handle(EngineWrapper.java:87)    
at org.apache.cocoon.Cocoon.main(Cocoon.java:311)
 
As you can see, it's not working. I've looked at 
the source code a bit. But I'm not sure what's going on.
 
I'm trying to generated a PDF file. The idea was to 
just call cocoon from the command line and have it process the XML file using an 
XSL which creates the FO code. Basically this all works when done through the 
browser. However I need to store the PDF on the server, not return it to the 
user.
 
I'm using Cocoon 1 v1.8.2
Any thoughts ?
 
Thank
Paul


Re: Cocoon 2 errors

2001-07-06 Thread Andre Juffer

Hi Dinkar,

I have had exactly the same problem, several times in fact. I have been 
running tomcat with apache and cocoon2. I have restarted everything 
manually and the problem disappeared. The reason was not clear to me.

Andre.

Dinkar Ganti wrote:

> I am getting the following internal server error while running Cocoon2 with
> stand-alone version of Tomcat.
> 
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
> available.
>   at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
>   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
>   at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>   at java.lang.Thread.run(Thread.java:484)
> 
> I am also attaching the cocoon.log for your reference. Any help would be
> greatly appreciated.
> 
> Thanks and regards
> 
> Dinkar
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> cocoon.log
> 
> Content-Type:
> 
> application/octet-stream
> Content-Encoding:
> 
> quoted-printable
> 
> 
> 
> attachment.txt
> 
> Content-Type:
> 
> text/plain


-- 
Andre H. Juffer  | Phone: +358-8-553 1683
The Biocenter and| Fax: +358-8-553-1141
 the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: http://www.biochem.oulu.fi/research.html


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




How to run cocoon2 without X11

2001-07-06 Thread C. Gaffga

Hi!

How can I run cocoon 2 without X11. Why is a Display needed???

Christoph Gaffga



> Hi !
>
> for me, this is a strange error. Why does C2 need the X server.
> And how can I fix it.
>
> thanks in advance.
>
> Christoph Gaffga
>
>
>
> ERROR   41966   [cocoon  ] (Thread-5): Error compiling sitemap
> java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as
> the value of the DISPLAY variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
>
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
> .java:58)
> at sun.awt.motif.MToolkit.(MToolkit.java:57)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at java.awt.Toolkit$2.run(Toolkit.java:498)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
> at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
> at java.awt.SystemColor.(SystemColor.java:335)
> at
>
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy
> stemColorResolver.java:27)
> at
> org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
> at
>
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMa
> p.java:39)
> at
>
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:3
> 9)
> at
>
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:3
> 2)
> at
>
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.ja
> va:88)
> at
>
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.
> java:59)
> at
>
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.
> java:59)
> at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:59)
> at
>
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:47)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
> faultComponentFactory.java:83)
> at
>
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
> 70)
> at
>
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
> imitingPool.java:82)
> at
>
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
> ourceLimitingPool.java:67)
> at
>
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
> olableComponentHandler.java:75)
> at
>
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
> DefaultComponentSelector.java:306)
> at
>
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem
> apComponentSelector.java:42)
> at
>
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
> a:150)
> at
>
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap
> .java:940)
> at
> org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:490)
> at
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
> faultComponentFactory.java:110)
> at
>
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
> ThreadSafeComponentHandler.java:78)
> at
>
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
> DefaultComponentSelector.java:306)
> at
>
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:75)
> at
>
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:71)
> at
>
org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
> eratorSelector.java:57)
> at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
> ProgramGeneratorImpl.java:261)
> at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> ogramGeneratorImpl.java:145)
> at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
> at java.lang.Thread.run(Thread.java:484)
> DEBUG   42028   [cocoon  ] (HttpProcessor[8080][4]): Changing Cocoon
> context(sitemap.xmap) to prefix()
> DEBUG   42030   [cocoon  ] (HttpProcessor[8080][4]):from
> context(file:/opt/tomcat4.b5/webapps/cocoon/) and prefix()
> DEBUG   42031   [cocoon  ] (HttpProcessor[8080][4]):at URI
> DEBUG   42032   [cocoon  ] (HttpProcessor[8080][4]): New context is
> file:/opt/tomcat4.b5/webapps/cocoon/
> ERROR   42037   [cocoon  ] (HttpProcessor[8080

Cocoon2 web-app query

2001-07-06 Thread John Waugh
Title: Cocoon2 web-app query





I know this might sound like a bit of a dense question but:
how many servlets are running in the cocoon2 example after installation?  am i right in thinking there is only 1 servlet CocoonServlet.java that runs, and the content differences are handled by the Cocoon.java and sitemap end onwards, or in fact is there a seprate CocconServlet deployed for each example?  I think this is essentially a relationship between CocoonServlet Cocoon and sitemap that i'm not quite understanding,

if anybody could shed some light it would help.


cheers
John
 





Cocoon 2 errors

2001-07-06 Thread Dinkar Ganti

I am getting the following internal server error while running Cocoon2 with
stand-alone version of Tomcat.

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.
at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

I am also attaching the cocoon.log for your reference. Any help would be
greatly appreciated.

Thanks and regards

Dinkar

 cocoon.log

-
Please check that your question has not already been answered in the
FAQ before posting. 

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


C1->C2 migration

2001-07-06 Thread Andre Juffer

Hi,

I have recently tried Cocoon2 (with Tomcat 3.2.1, Slackware Linux, 
Apache 1.3.*) and got everything to work. That is, it was no problem to 
read http://localhost/cocoon. I did not modify any of the existing
configuration files of Apache or 
Tomcat, when installing cocoon2.

I have used in the past cocoon1 quite 
extensively and tried, among other things, XSP. This all worked very
nicely.
For that purpose, I had a separate context under webapps (say 
webapps/Foo). All my own xml related stuff was put into that directory. 
It should be possible with cocoon2 to do the same thing, but up till 
this very moment I had no success. While http://localhost/Foo displays 
the content of that directory, I cannot get the sitemap compiled so that 
a pipeline would start. Putting one of my own files (say foo.xml) into 
the webapps/cocoon directory and modifying the sitemap, so that the 
pattern foo would start a pipeline that transforms foo.xml into html, 
worked without problems.

Which files/directories in webapps/foo from cocoon2 should always be 
there: cocoon.xconf, sitemap.xmap and WEB-INF? The web.xml should
contain cocoon2 specific entries? What are the minimal entries in the
cocoon.xconf and sitemap.xmap?
I have copied these files from the webapps/cocoon subdirectory
(including the modified sitemap for foo that worked fine in
webapps/cocoon). After restarting 
tomcat and apache, cocoon2 is telling me that it cannot find resource 
http://localhost/Foo/foo.

What am I missing? Is there anything that should modified in the
configuration files of Tomcat?

Thanks for your help.


-- 
Andre H. Juffer  | Phone: +358-8-553 1683
The Biocenter and| Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW:
http://www.biochem.oulu.fi/tutkimus/Biocomputing/

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: ESQL Cocoon problem (string length)

2001-07-06 Thread Gustavo Mejia

I am so sorry for this !!

I know that all of you are working and that all the issues are very important, I
don't want to make my question more  that the other!

Really, I don't want to bother you .

Again, please excuse me !!

Gustavo



Mark McGettrick wrote:

> > HI !
> >
> > Any news about this issue ??
> >
> >
> > Thanks!!
> >
> > Gustavo Mejia wrote:
> >
> > > Hello !!
> > >
> > > I have the same problem that Matthew had, did someone get the solution
> > > ??  how can I fix it ??
> > >
> > > Thanks for your help !!
>
> ok, it's annoying enough that you keep posting expecting instant resolution
> to your issues, but could you please stop sending messages with an urgent
> flag? i find your assumption that your question is more important than other
> messages coming into my inbox to be offensive.
>
> -mark
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

--
Gustavo Mejía Mora
INFOTEC
Tel: 5624 28 00
Ext: 253



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




xml2xml encoding xalan/cocon

2001-07-06 Thread Andres Voldman


People:

I have been having this problem for a while and I can't figure what is wrong.
I will really appreciate any tips.

I have a UTF-8 encoded xml file and I'm converting it to another xml using XSL.
The problem is that in the transformed xml the spanish characters instead
of preserving the UFT-8 representation are converted to... how to explain it?...
to its correct grafical representation (the document is perfectly legible but not 
UTF-8 encoded )

therefore, I get a UTF-8 encoded file with no utf-8 characters in it, and the
Java program which parses the xml  throws a invalid format exception.

I have made this test directly using XALAN and works ok. but, when I'm using
cocoon I get the erroneos characters.

I found a workaround using the xhtml formatter instead of the xml formatter. 
Using the xhtml formatter the non-us characters are preserved and the java
programs parses the xml perfectly.

Where is the problem? in Cocoon ? in the servlets container? in I? 

Thanks

Andres

PS: I'm using c1.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: ESQL Cocoon problem (string length)

2001-07-06 Thread Mark McGettrick

> HI !
>
> Any news about this issue ??
>
>
> Thanks!!
>
> Gustavo Mejia wrote:
>
> > Hello !!
> >
> > I have the same problem that Matthew had, did someone get the solution
> > ??  how can I fix it ??
> >
> > Thanks for your help !!

ok, it's annoying enough that you keep posting expecting instant resolution
to your issues, but could you please stop sending messages with an urgent
flag? i find your assumption that your question is more important than other
messages coming into my inbox to be offensive.

-mark


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




ESQL Cocoon problem (string length)

2001-07-06 Thread Gustavo Mejia

HI !

Any news about this issue ??


Thanks!!

Gustavo Mejia wrote:

> Hello !!
>
> I have the same problem that Matthew had, did someone get the solution
> ??  how can I fix it ??
>
> Thanks for your help !!
>
> 
>*
>
> Hi Matthew,
>
> It looks like the column that is causing problems is of type VARCHAR2
> with a
> size of 64.  I have a sneaking suspision that this is what is causing my
>
> problem.  I use the following code.  POPIS is the problem column that I
> think is causing the problem:
>
> 
> 
>   default
>   
> 
>  select CSKS_ID CSKS_ID1, POPIS POPIS1,
> TO_CHAR(PLATNOST_OD,'DD.MM.') PLATNOST_OD1
>  from cis_konst_symbol
>  order by POPIS
> 
> 
>   
>  
> 
> 
>  column="PLATNOST_OD1"/>
>  
>   
> 
> 
>
> 
>   
> 
>
> I think the column is too big--like a blob datatype.
>
> Regards,
> Robert Mayer
>
> > -Pùvodní zpráva-
> > Od: Matthew Cordes [SMTP:[EMAIL PROTECTED]]
> > Odesláno: Monday, May 14, 2001 9:54 PM
> > Komu: [EMAIL PROTECTED]
> > Pøedmìt: Re: ESQL Cocoon problem
> >
> > Hi,
> >
> > What datatype are you storing your data in?  I had this problem with a
>
> > clob, which I was treating as though it was a string (e.g.
> > .getString() ). If this is the case oracle has some special
>
> > clob/blob releated methods/classes, read the html documentation
> > that comes with the server.
> >
> > -matt
> >
> >
> > On Mon, May 14, 2001 at 01:57:06PM -0400, Donald Ball wrote:
> > > On Mon, 14 May 2001 [EMAIL PROTECTED] wrote:
> > >
> > > > I have a problem with the HTML table being cut off in my combined
> > XML/XSL
> > > > file.  I use ESQL tags and do a query (The query does work
> properly in
> > > > Oracle SQL Plus.) in our Oracle database.  Using Cocoon, I put the
>
> > column
> > > > results into a HTML table and the data is cut off at some point in
> the
> > > > table.  Also when I look at the raw data coming through, the data
> gets
> > cut
> > > > of at about row 30 and there should be about 200 rows displayed
> from
> > the
> > > > query.  In my select statement I query 3 columns.  When I comment
> out
> > the 2nd column of the HTML table all the data (minus that column) are
> > presented in the combined XML file OK.  In summary, Cocoon is not able
> to
> > display all the data that is presented by the query using ESQL tags?
> Why is this?
> > Have there been similar problems reported?  Is there a fix?
> > >
> > > there are no limitations on query size using esql.
> > >
> > > - donald
> > >
>
> --
> Gustavo Mejía Mora
> INFOTEC
> Tel: 5624 28 00
> Ext: 253
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

--
Gustavo Mejía Mora
INFOTEC
Tel: 5624 28 00
Ext: 253



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




On the fly XSLT generation

2001-07-06 Thread Markus Strickler

Hi-

I'd like to generate the stylesheet my XML files are transformed with on the
fly by transforming another XML file with a corrosponding stylesheet.
So for example I have an XML File main.xml, that contains something like
this:



 page1
 head1.xsl


 page2
 head2.xsl



and an XML file page1.xml:




 ...



where the dynamically generated Stylesheet should look like this:





What's the best way to do this?

-markus




-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: esql problem

2001-07-06 Thread JEULIN Olivier

It seems you should put it inside xsp:logic like this

 rowNum = ;

(if C2 is a bit like C1 ;) )
> -Message d'origine-
> De : Marco Spinetti [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 6 juillet 2001 15:08
> À : [EMAIL PROTECTED]
> Objet : R: esql problem
> 
> 
> I saw prova_xsp.java and I found this code:
> 
> while (_esql_query.resultset.next()) {
> this.characters("\n\t\t\t\t\trowNum = ");
> (_esql_query.resultset.getInt("result"))
> this.characters(";\n\t\t\t\t\t");
> if (_esql_connection.use_limit_clause ==
> 0 && _esql_query.max_rows != -1 &&
> _esql_query.position -
> _esql_query.skip_rows ==
> _esql_query.max_rows - 1) {
>   _esql_query.position++;
>   break;
> }
> _esql_query.position++;
>   }
> 
> but I don't see any error. Am I mistake?
> Marco
> 
> 
> - Original Message -
> From: JEULIN Olivier <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 2:56 PM
> Subject: RE: esql problem
> 
> 
> I'm using C1, it was a guess for C2...
> Let's try again :) :
>  as Chris tolds you, take a look at the generated java file, 
> I bet the ';'
> is causing this error (taglibs' elements generate java code 
> and are often
> nested in functions call)
> Olivier
> 
> > -Message d'origine-
> > De : Christian Haul [mailto:[EMAIL PROTECTED]]
> > Envoyé : vendredi 6 juillet 2001 14:49
> > À : [EMAIL PROTECTED]
> > Objet : Re: esql problem
> >
> >
> > On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote:
> > > Well, esql:get-int needs a column name,
> > > so try:  "select count(*) as thecount from..."
> > > and use: 
> >
> > That's not true. It takes either a label or a number. So
> >  should work (and it's translated 
> correctly
> > to _esql_query_resultset.getInt(1). Problem seems to be
> > something else.
> >
> > Marco, have a look at the generated source, line 4816
> >
> > /usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/loc
> > alhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java
> >
> > Chris.
> >
> > --
> > C h r i s t i a n   H a u l
> > [EMAIL PROTECTED]
> > fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: R: esql problem

2001-07-06 Thread Christian Haul

On 06.Jul.2001 -- 03:07 PM, Marco Spinetti wrote:
> I saw prova_xsp.java and I found this code:
> 
> while (_esql_query.resultset.next()) {
> this.characters("\n\t\t\t\t\trowNum = ");
> (_esql_query.resultset.getInt("result"))

The above is not terminated. And if it were, it doesn't work since you
need to do something with the result.

> this.characters(";\n\t\t\t\t\t");
> if (_esql_connection.use_limit_clause ==
> 0 && _esql_query.max_rows != -1 &&
> _esql_query.position -
> _esql_query.skip_rows ==
> _esql_query.max_rows - 1) {
>   _esql_query.position++;
>   break;
> }
> _esql_query.position++;
>   }
> 
> but I don't see any error. Am I mistake?
> Marco

Well, I do.

I don't see why this happens, since  gets replaced by
_esq.. which would output the value as XML
text node. I reckon you'll need to post all of your code, so we could
have a better look at it.

I've got to leave now but I'll try to look at it tomorrow if nobody
else finds the problem.

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




R: esql problem

2001-07-06 Thread Marco Spinetti

I saw prova_xsp.java and I found this code:

while (_esql_query.resultset.next()) {
this.characters("\n\t\t\t\t\trowNum = ");
(_esql_query.resultset.getInt("result"))
this.characters(";\n\t\t\t\t\t");
if (_esql_connection.use_limit_clause ==
0 && _esql_query.max_rows != -1 &&
_esql_query.position -
_esql_query.skip_rows ==
_esql_query.max_rows - 1) {
  _esql_query.position++;
  break;
}
_esql_query.position++;
  }

but I don't see any error. Am I mistake?
Marco


- Original Message -
From: JEULIN Olivier <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:56 PM
Subject: RE: esql problem


I'm using C1, it was a guess for C2...
Let's try again :) :
 as Chris tolds you, take a look at the generated java file, I bet the ';'
is causing this error (taglibs' elements generate java code and are often
nested in functions call)
Olivier

> -Message d'origine-
> De : Christian Haul [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 6 juillet 2001 14:49
> À : [EMAIL PROTECTED]
> Objet : Re: esql problem
>
>
> On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote:
> > Well, esql:get-int needs a column name,
> > so try:  "select count(*) as thecount from..."
> > and use: 
>
> That's not true. It takes either a label or a number. So
>  should work (and it's translated correctly
> to _esql_query_resultset.getInt(1). Problem seems to be
> something else.
>
> Marco, have a look at the generated source, line 4816
>
> /usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/loc
> alhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java
>
> Chris.
>
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: redirect to port 80

2001-07-06 Thread tom . klaasen

Goedendag Pierre,

It's not Cocoon that decides which port to use, but tomcat. You might want
to check out $TOMCAT/conf/server.xml, under the heading "Connectors".

hth,
tomK


-Original Message-
From: Pierre-Henry Perret [mailto:[EMAIL PROTECTED]]
Sent: maandag 2 juli 2001 11:13
To: [EMAIL PROTECTED]
Subject: redirect to port 80


Bonjour,

I have installed cocoon and made it serving corretly xml pages, well
it's nice! 

I would like to register my site as a cocoon user but i can't serve on
other
port than 8080 (e.g i must give an address as
'http://localhost:8080/cocoon..') - all other network stuff working
correctly
, i mean DNS - i don't have to do this with tomcat jserv because i can
directly see a working servlet as in
'http://localhost/servlets/examples...' 

i guess no idea to manage this,

Pierre-Henry Perret
Cocoon user
StDenis, France

-
Please check that your question has not already been answered in the
FAQ before posting. 

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

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: esql problem

2001-07-06 Thread JEULIN Olivier

I'm using C1, it was a guess for C2...
Let's try again :) :
 as Chris tolds you, take a look at the generated java file, I bet the ';'
is causing this error (taglibs' elements generate java code and are often
nested in functions call)
Olivier

> -Message d'origine-
> De : Christian Haul [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 6 juillet 2001 14:49
> À : [EMAIL PROTECTED]
> Objet : Re: esql problem
> 
> 
> On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote:
> > Well, esql:get-int needs a column name,
> > so try:  "select count(*) as thecount from..."
> > and use: 
> 
> That's not true. It takes either a label or a number. So 
>  should work (and it's translated correctly
> to _esql_query_resultset.getInt(1). Problem seems to be 
> something else.
> 
> Marco, have a look at the generated source, line 4816
> 
> /usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/loc
> alhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java
> 
>   Chris.
> 
> -- 
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: esql problem

2001-07-06 Thread Christian Haul

On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote:
> Well, esql:get-int needs a column name,
> so try:  "select count(*) as thecount from..."
> and use: 

That's not true. It takes either a label or a number. So 
 should work (and it's translated correctly
to _esql_query_resultset.getInt(1). Problem seems to be something else.

Marco, have a look at the generated source, line 4816

/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




R: esql problem

2001-07-06 Thread Marco Spinetti

Hi Oliver,
I tried what you suggest but the error is the same:

org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.apache.cocoon.ResourceNotFoundException: Language
Exception:org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error
compiling prova_xsp: Line 0, column 0:
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2F
cocoon/org/apache/cocoon/www/elenco/prova_xsp.java:1319: Invalid expression
statement. (_esql_query.resultset.getInt("pippo")) ^ Line 0, column 0:
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2F
cocoon/org/apache/cocoon/www/elenco/prova_xsp.java:3083: Invalid expression
statement. (_esql_query.resultset.getInt("pippo")) ^ Line 0, column 0:
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2F
cocoon/org/apache/cocoon/www/elenco/prova_xsp.java:4816: Invalid expression
statement. (_esql_query.resultset.getInt("pippo")) ^

Any ideas?
What can I do?

Thanks
marco

- Original Message -
From: JEULIN Olivier <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:30 PM
Subject: RE: esql problem


> Well, esql:get-int needs a column name,
> so try:  "select count(*) as thecount from..."
> and use: 
> Olivier
> -Message d'origine-
> Hi all,
> I have a question about esql. In my application I do a query "select
> count(*) from." and I try to get the number result in this way:
>
> 
> elenco1
> 
>  query
>  
>  
>  rowNum = ;
>  
>  
> 
> 
>
> but cocoon2 gives me a error:
>
> Invalid expression statement. (_esql_query.resultset.getInt(1)) ^ Line 0,
> column 0:
>
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2F
> cocoon/org/apache/cocoon/www/elenco/prova_xsp.java:4816: Invalid
expression
> statement. (_esql_query.resultset.getInt(1)) ^
>
> How can I take the result?
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[C20] FP taglib

2001-07-06 Thread Viktors Rotanovs

Hi,

does FP taglib exist in Cocoon 2.0, or should I use
something else to write to XML files?

Best Wishes,
Viktors Rotanovs
Phone +371 7377-472, fax +1 760-418-8128
viktors@IRCNET, ICQ# 113090923, AOL: ViktorsRotanovs


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: esql problem

2001-07-06 Thread JEULIN Olivier

Well, esql:get-int needs a column name,
so try:  "select count(*) as thecount from..."
and use: 
Olivier
-Message d'origine-
Hi all, 
I have a question about esql. In my application I do a query "select
count(*) from." and I try to get the number result in this way:


elenco1

 query
 
 
 rowNum = ;
 
  

  

but cocoon2 gives me a error:

Invalid expression statement. (_esql_query.resultset.getInt(1)) ^ Line 0,
column 0:
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2F
cocoon/org/apache/cocoon/www/elenco/prova_xsp.java:4816: Invalid expression
statement. (_esql_query.resultset.getInt(1)) ^ 

How can I take the result?

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: outputting XML tags

2001-07-06 Thread Vartika Bhandari


Thanksbut I am using C1 and I am unable to change mime-type whatever I
do. Anyway I have managed to get the display I wanted by using
disable-output-escaping and specifically outputting tag markup in the
stylesheet.but there is another problem.in certain circumstances,
I want to force the user to save the output to disk.I tried to set the
mimetype to something weird to manage this.but I am unable to.If
anyone has any idea as to how to set the mime-type of the reponse from an
xsp page, please let me know. I have already tried using
response.setContentType() within , besides using xsl:output.

Thanks in advance.

Vartika

On Fri, 6 Jul 2001, Christian Haul wrote:

> On 05.Jul.2001 -- 03:13 PM, Vartika Bhandari wrote:
> > Hi!
> > I am using cocoon for an application wherein in certain
> > circumstances I need to display a dynamically generated XML document as
> > plain text i.e with all markup as is. However cocoon strips off tags and
> > never displays them..I would be grateful for some ideas
> > as to how to manage this.
> 
> For C2
> 
> 1) use views e.g. the predefined "content" view by adding a request
>parameter named "cocoon-view", value "content". The "content" view
>shows the result of the generation step.
> 
> 2) change the serializer type to "xml", in addition you might want to
>change its mime-type to "text/plain". I think you could change the
>serializer using a selector e.g. based on a request parameter.
> 
>   Chris.
> 
> 


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




esql problem

2001-07-06 Thread Marco Spinetti



Hi all, 
I have a question about esql. In my application I 
do a query "select count(*) from." and I try to get the number result in 
this way:
 
elenco1 query   rowNum 
= ; 
 
but cocoon2 gives me a error:
 
Invalid expression statement. 
(_esql_query.resultset.getInt(1)) ^ Line 0, column 0: 
/usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/localhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java:4816: 
Invalid expression statement. (_esql_query.resultset.getInt(1)) ^ 
 
How can I take the result?
Help me
Marco
 
+---+Data 
processing engineer  Spinetti MarcoItalia On Line S.p.a. - 
InfostradaItaly+-+
 
 


Re: python

2001-07-06 Thread Chris Joelly

Hello!

does anybody know about a jperl.jar? ;-)

Chris

On Fri, Jul 06, 2001 at 11:58:12AM +0200, Carsten Ziegeler wrote:
> Cocoon 2 has a ScriptGenerator which can theoretically generate
> xml using any script languange.
> 
> The cocoon 2 distribution contains an example for python,
> all you need to get it work is the jython.jar from
> www.jython.org  and put it into your WEB-INF/lib
> directory.
> 
> > -Ursprüngliche Nachricht-
> > Von: franck delarue [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 6. Juli 2001 11:36
> > An: cocoon
> > Betreff: python
> >
> >
> > hi dear users,
> > I'd like to use python programs instead of xsp pages
> > (Python page -> xml -> xsl -> html) on cocoon2, linux.
> > Does anyone have informations or links about it ?

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz


 PGP signature


AW: python

2001-07-06 Thread Carsten Ziegeler

Cocoon 2 has a ScriptGenerator which can theoretically generate
xml using any script languange.

The cocoon 2 distribution contains an example for python,
all you need to get it work is the jython.jar from
www.jython.org  and put it into your WEB-INF/lib
directory.


Carsten


> -Ursprüngliche Nachricht-
> Von: franck delarue [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Juli 2001 11:36
> An: cocoon
> Betreff: python
>
>
> hi dear users,
> I'd like to use python programs instead of xsp pages
> (Python page -> xml -> xsl -> html) on cocoon2, linux.
> Does anyone have informations or links about it ?
>
> =
> _____    \
>  \  |\   /|   \
> F R A N C K D E L A R U E  \  \\_//
> /  + - + - + - + - + - + - +  /   \
> //_/ \   /
>  \_/
>
> ___
> Do You Yahoo!? -- Pour faire vos courses sur le Net,
> Yahoo! Shopping : http://fr.shopping.yahoo.com
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




python

2001-07-06 Thread franck delarue

hi dear users,
I'd like to use python programs instead of xsp pages
(Python page -> xml -> xsl -> html) on cocoon2, linux.
Does anyone have informations or links about it ?

=
_____    \ 
\  |\   /|   \  F R A N C K D E L A R U E  \  \\_/ 
   /   /  + - + - + - + - + - + - +  /   \ 
//_/ \   / 
\_/

___
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.shopping.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




xmlns:util

2001-07-06 Thread franck delarue

hi everyone,
i'm using cocoon2 on linux and i'm trying to use the
 tag, but when I just declare the
namespace : 
xmlns:util="http://www.apache.org/1999/XSP/Util"; 
in my xsp page, which is very simple (the most).
Cocoon2 throws me an error :

   org.apache.cocoon.ProcessingException: Language
  
Exception:org.apache.cocoon.components.language.Languag
   eException: Error compiling service_xsp:
 Line 94, column 75: '}' expected.


? do i have the wrong adress of the namespace ? is it
still possible to use the tags util with cocoon2 ?

thanks in advance.


=
_____    \ 
\  |\   /|   \  F R A N C K D E L A R U E  \  \\_/ 
   /   /  + - + - + - + - + - + - +  /   \ 
//_/ \   / 
\_/

___
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.shopping.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




FP taglib and concurency access

2001-07-06 Thread LEBRETON Philippe

i try the samples FP taglib, and my question is for the conurency access
of the index.xml and the item node.
what's append when two user edit the same item and save different
infomation?
does FP manage the concurrency access of the same node?

Thanks

Philippe LEBRETON


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: [C2] and posgresql

2001-07-06 Thread Beauprez Sven


If you use postgresql only because you need an open source DB, I suggest you
switch to MySQL. It is a very good DB and the JDBC drivers implement
everything you need. The SQLTransformer worked fine on it.
http://www.mysql.com
http://mmmysql.sourceforge.net/


Sven



> -Original Message-
> From: Colin Paul Adams [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 9:14 PM
> To: [EMAIL PROTECTED]
> Subject: [C2] and posgresql
> 
> 
> I'm making progress - I've finally figured out the minimal necessary
> changes to load the jdbc driver for postgres ( posgresql 7.0.3, linux
> RH 7.1, Sun JDK 1.3.1 ).
> 
> Unfortunately, I still get an error when I try Simple SQL from the
> welcome screen - from cocoon.log:
> 
>
> DEBUG   62403   [cocoon  ] (Thread-8): Retrieving a 
> org.apache.avalon.excalibur.datasource.JdbcConnection from the pool
> ERROR   62442   [cocoon  ] (Thread-8): Caught a SQLException
> This method is not yet implemented.
>   at org.postgresql.Driver.notImplemented(Driver.java:368)
>   at 
> org.postgresql.jdbc2.Connection.prepareStatement(Connection.java:399)
>   at 
> org.apache.avalon.excalibur.datasource.JdbcConnection.prepareS
> tatement(JdbcConnection.java:241)
>   at 
> org.apache.cocoon.transformation.SQLTransformer$Query.execute(
> SQLTransformer.java:820)
>   at 
> org.apache.cocoon.transformation.SQLTransformer.executeQuery(S
> QLTransformer.java:230)
>   at 
> org.apache.cocoon.transformation.SQLTransformer.endExecuteQuer
> yElement(SQLTransformer.java:362)
> 
> and many more similar ones follow.
> 
> As I read this, it's saying that the postgresql driver doesn't
> implement the perpareStament method, but the docs say it does!
> 
> Has anyone got jdbc working with postgres and Cocoon 2?
> Or has anyone any other suggestions? 
> -- 
> Colin Paul Adams
> Preston Lancashire
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: [C2] Possible Solution for PDF Bug with IE 5.x !??

2001-07-06 Thread Torsten Curdt

> On Thu, 5 Jul 2001, Torsten Curdt wrote:
> > > I don't think it has anything to do with content-length, it has to do
> > > with the filename extension.
> > 
> > Sorry, but this cannot be true since in C2 the filename extension is
> > .pdf as declared in the sitemap.
> 
> I am not talking about Cocoon2, I've never even used it.

Well, have a look on the subject line then...

> > BTW: Could you guys please fight out this browser war via email.
> >  It is not very productive on the list in any way.
> 
> It is extremely productive, as it touches upon the survivial of this and
> other OpenSource projects.

I fear some us might see this differently...
--
Torsten

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: PlainText Output

2001-07-06 Thread Adrian Geissel

- Original Message -
From: Daniel Pfuhl <[EMAIL PROTECTED]>
To: User CocoonList <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 9:05 PM
Subject: PlainText Output


> Hello
>
> can someone tell me where to find some examples to
> learn how I can transform my xml and output this as
> plain text?

Put the following into your style-sheet (the last in the chain)


type="text/plain"

...



You will need a dummy root tag, as XSLT expects to write out XML - but when
displayed in the browser, it should appear as plain ASCII text.

Hope this helps,

>
> thanks in advance
Welcome,
Adrian



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: outputting XML tags

2001-07-06 Thread Christian Haul

On 05.Jul.2001 -- 03:13 PM, Vartika Bhandari wrote:
> Hi!
> I am using cocoon for an application wherein in certain
> circumstances I need to display a dynamically generated XML document as
> plain text i.e with all markup as is. However cocoon strips off tags and
> never displays them..I would be grateful for some ideas
> as to how to manage this.

For C2

1) use views e.g. the predefined "content" view by adding a request
   parameter named "cocoon-view", value "content". The "content" view
   shows the result of the generation step.

2) change the serializer type to "xml", in addition you might want to
   change its mime-type to "text/plain". I think you could change the
   serializer using a selector e.g. based on a request parameter.

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. 

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