Re: XML + XSL + SVG --> PDF. SVG, Not working on Cocoon

2002-01-18 Thread Stephan Kassanke

Versions of FOP on your local machine and the one of cocoon might differ.
You cannot infer from a correct output on your local machine that it will
work in cocoon too when versions differ. You may exchange the cocoon fop
version with your local version which is most probably more recent.

Another clue would be to make sure that you have x11 installed or xvfb due
to the JDK bug that references x when it comes to including the batik
classes.

Stephan

- Original Message -
From: "Alonso Lord, Santiago (MA)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 1:22 PM
Subject: RE: XML + XSL + SVG --> PDF. SVG, Not working on Cocoon


I need to use SVGs. These a Autocad images converted to SVG. For one the
image quality is much better, and i´ve been told that the editing
capabilities are desired.
Given that it works using FOP on my local box, the problem should have an
easy solution the cocoon (using fop) box.

-S-

> -Mensaje original-
> De: Sidharth [SMTP:[EMAIL PROTECTED]]
> Enviado el: domingo 13 de enero de 2002 13:23
> Para: [EMAIL PROTECTED]
> Asunto: Re: XML + XSL + SVG --> PDF.  SVG, Not working on Cocoon
>
> Well convert the .svg extension to Jpeg file and then give the file
> reference in fo file
> - Original Message -
> From: "Alonso Lord, Santiago (MA)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 16, 2002 3:23 PM
> Subject: XML + XSL + SVG --> PDF. SVG, Not working on Cocoon
>
>
> > I´m trying to include a SVG file into a PDF generated from an XML + XT.
> My
> > problem is that despite working perfectly on my local box, it doesn´t
> work
> > when the file is generated from Cocoon.
> > Both boxes run NT
> > On my local box I use:
> > XT to generate a *.fo from my XML and XSL
> > FOP 0.20.2 to generate the PDF file
> >
> > The server is using:
> > Cocoon 2.0
> > (and Tomcat 4.0.2)
> >
> > Basically my entry in the XSL is this:
> > 
> >   
> >  
> >   
> >
> >
> > I´ve played around with that on the server, including a file:/// but
> given
> > that it works if i change it to 6005b.jpg, which is in the same
> location,
> > that doesn´t seem to be the problem.
> > In cocoon´s log this msg appears:
> >
> > ExternalGraphic: Error while creating area : Invalid Image URL - error
> on
> > relative URL : no protocol : null6005b.svg
> >
> >
> > What´s strange is that that was the same error a gif file was previously
> > giving me, which i solved by including the file:///
> >
> > Any idea why it would work on one and not the other?
> >
> > Thanks
> >
> > -
> > 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]>



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




POI with Cocoon

2002-01-18 Thread Sidharth



Has anyone tried POI with Cocoon.
Please tell me how to??
Where is the jar log4j.jar
 


Re: POI with Cocoon

2002-01-18 Thread Nicola Ken Barozzi

- Original Message -
From: Sidharth
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:25 PM
Subject: POI with Cocoon


> Has anyone tried POI with Cocoon.
> Please tell me how to??

Poi has an example that works with current cocoon webapp samples.
Just copy the directory under /cocoon/mount and copy the poi jars under
/WEB-INF/lib/ and restart the servlet engine.
Detailed instructions are in the distribution.

> Where is the jar log4j.jar

You can download it from http://jakarta.apache.org/log4j/  .


Please send text only messages to the list, according to the
rules stated in http://jakarta.apache.org/site/mail.html .
For more info on why html messages are discouraged, see
http://www.math.fu-berlin.de/~guckes/mail/edit.html#htmlized_text


--
Nicola Ken Barozzi [EMAIL PROTECTED]
These are the days of miracle and wonder...
  ...so don't cry baby, don't cry...
  Paul Simon


-
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 Vs SQLTransformer

2002-01-18 Thread Miller, Grant

Hello,
Can anyone explain what are the advantages/disadvantages of using the esql
logicsheet as compared to the SQL transformer?
At the moment it seems to me that SQL transformer is better because you can
chain arbitrary sql transformers together where as esql can only be done in
the generate step. In other words, why have esql at all?
Are there other issues, such as does SQL transformer use connection pooling?

Cheers,

Grant

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank 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]>




Select on Browser Capabilities

2002-01-18 Thread Peter Hargreaves

Like many others (I imagine), I want to serve up wml to mobile users and 
html to  desktop users from the same request:

http://www.mysite.com

The example in the sitemap shows the use of a selector to choose a 
pipeline based on the name of the browser, then deliver html or wml.

But, I don't know the name of all the browsers that might use my site! 
Wouldn't it be better to match/select/action on browser capabilities to 
determine whether to send html or wml? Do mobile phones (etc) declare 
browser capabilities in their headers? Do all html browser declare 
themselves as html? Would this approach work? Is there a way to do this now?

Any help/views welcome.

Many thanks,
Pete Hargreaves.

P.S. I am familiar with the use of selectors to select on browser name, 
and familiar with the use of browser-capabilities in xslt.

I'm Using: NT4.0sp6, jdk1.3.1, jakarta-tomcat-4.0.1, Cocoon 2.0.


-
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 support for stored procedures

2002-01-18 Thread Christian Haul

On 17.Jan.2002 -- 06:43 PM, [EMAIL PROTECTED] wrote:
> Hi,
> 
> Could someone please confirm for me what the current status/direction 
> of support for stored procs, i.e. CallableStatement, in ESQL is 
> currently, before I go and add my own extensions?

There is a proposed patch by Peter Durrant on it (which I
unfortunately didn't manage to apply) a one written by myself which
is a bit more flexible I think. Today I tried it with an INFORMIX
IUS9.23 but got an "The cursor has been previously released and is
unavailable." error message which I don't quite understand.

I will to verify my suspicion of the cause with another RDBMS shortly
(i.e. PostgreSQL).

Had just now some problems with CVS but will try to commit what is
already there ASAP. (It doesn't hurt but doesn't fly either.)

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: Caching and accessing Cocoon 2 via mod_proxy

2002-01-18 Thread Gianugo Rabellino

Simeon Walker wrote:

> Hi,
>   I'm thinking of using Apache and mod_proxy as a front end
> to Cocoon 2. Has anyone done this?


I did it once with Cocoon 1.8. It works but don't expect high figures: 
we are working on it, but as of now there is almost no way to cleverly 
work on the "Expires" headers so that a proxy can really cache content 
since it's always flagged as expired. Basically you'll see a noticeable 
performance inmprovement due to the optimization of network communication.

Anyway I'd consider using Squid for better performance.

Ciao,

-- 
Gianugo


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




getServletPath and getPathInfo

2002-01-18 Thread Helly, Aidan

Hi,

 I am attempting to get C2 working with weblogic sp2 (using J2EE 1.3
functionality), after successfully getting C2 to work with Tomcat 3.2.3.
One important difference between these 2 environments is Tomcat complies
with version 2.2 of the Servlet Spec. while my weblogic setup adheres to
version 2.3.

 My question concerns how the URL received from a browser is split up
into servletPath and pathInfo. Cocoon's web.xml has the servlet mapping


  /


if I attempt to access cocoon/protected/login via my Tomcat config I
see the following in the cocoon log file
CONTEXT PATH: /cocoon
SERVLET PATH: /protected/login
PATH INFO: null

while if I do the same using my weblogic config, I get the following
CONTEXT PATH: /cocoon
SERVLET PATH: /
PATH INFO: /protected/login

as a consequence of this with my weblogic configuration, I get an 
exception telling me 
"The current URI(/protected/login) doesn't start with given prefix
(protected)

Looking at the code for CocoonServlet.jar tells me that the source of
this problem is weblogic setting the SERVLET PATH to "/" since the uri
is got by combining the servletPath and the pathInfo (resulting in a
url of //protected/login). If it was either null or even an empty string
then all would be fine!

Having looked at the servlet spec's for 2.2 and 2.3 I'm a little confused
as both spec's seem to suggest that the weblogic handling is the more
correct, i.e. 

servletPath = what was matched - context
path info = url - servlet path

(also the 2.3 spec states that a pattern match of /*, should result in
 a servlet path of an empty string. Unfortunately the weblogic
implementation
 doesn't quite stretch that far, it still sets the sevlet path to "/").

So the question is what should servletpath and pathinfo be set to in this 
case?

I realise this is more of a servlet engine question, but I was just
wondering if anyone out there in C2 land had any ideas!

thanks 

Aidan 

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


-
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: Select on Browser Capabilities

2002-01-18 Thread Lars Groenhagen

>
> Like many others (I imagine), I want to serve up wml to mobile users and
> html to  desktop users from the same request:
>
> http://www.mysite.com
>
> The example in the sitemap shows the use of a selector to choose a
> pipeline based on the name of the browser, then deliver html or wml.
>
> But, I don't know the name of all the browsers that might use my site!

In most cases, you could get the information on User-Agent strings from the
vendor websites. Good starting points are:

http://forum.nokia.com
http://devforum.openwave.com/

> Wouldn't it be better to match/select/action on browser capabilities to
> determine whether to send html or wml? Do mobile phones (etc) declare
> browser capabilities in their headers? Do all html browser declare
> themselves as html? Would this approach work? Is there a way to
> do this now?
>

>From my experience mobile phones do not declare (enough of) their
capabilities in the header. Therefore I prefer to decide from the User-Agent
what to serve. In most cases the UA-Strings will give you not only the name
of the browser used, but also the model of the phone. Most vendors also give
information about the capabilities of the phones on their websites. With
this information you could already serve very optimized code to the
different phones or PDAs. If you just want to decide whether to serve html
or wml the UA-string is IMHO by far enough since there are only very few
devices that are capable of displaying html an wml with the same browser.
Unfortunately the WAE implementations of different mobile phones generate
quite different output from the same wml code. Therefore it makes sense to
have specific wml according to the requesting phone/PDA. Openwave wrote a
guide that shows the differences between Openwave and Nokia browsers:

http://demo.openwave.com/pdf/styleguides/gsm.pdf

Getting information on the behavior of other wml-browser requires a lot of
testing :-(

I think generally you are right. It would be nice to get the capabilities
directly from the header and serve the content accordingly. But I guess this
will have to wait until the next(?) generation of mobile phones.

Lars


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




dynamic stylesheet using an XSP ...possible?

2002-01-18 Thread Christian Zoffoli


Hi to all.

Is it possible to generate a stylesheet using an XSP ?  ...and using is
like a normal stylesheet with the cocoon pseudo protocol ?? 


...thanks in advance 

Christian

-
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: Just starting COCOON

2002-01-18 Thread Sreekanth . Payyavula

I have got to work but have a difficult time understanding. I tried some
samples with devshed and could not get them to work. 

Sree
x5178

-Original Message-
From: Alexander Churin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 9:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Just starting COCOON


I got it up and running, the documentation must be written better in Italian
because the English version is Terrible!  Thank you very much for your
help...

TechStyles USA LLC
http://www.techstylesusa.com
Alexander Churin
Director of Technology
708.288.5660


-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 12:59 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Just starting COCOON


Alexander,

I'd suggest to download Cocoon sources and re-compile (using build,bat).
I downloaded the binaries too... but never managed to make them run (on the
other hand the compiled sources run).

Best regards,


-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Alexander Churin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 6:24 PM
> To: [EMAIL PROTECTED]
> Subject: Just starting COCOON
>
>
> I have been reading these install docs back and forth for 2 days now and I
> am missing something.  I am running Tomcat 4.0 using the Catalina
> web server
> on win2000 and winXP.  It is working just fine and I want to add COCOON to
> the whole thing.  So after downloading the latest binary distribution of
> COCOON 2.0 I am in the process of setting it up.  The install
> file tells me
> to BUILD cocoon using build. bat.  Well I don't have build.bat.  No clue
> where to find it either.  I moved the war file that cam in the zip to the
> tomcat/webapps dir and that did nothing so I guess I have to build it even
> though I have downloaded the binaries.
>
> so far I have set up
> SET JAVA_HOME=C:\jdk1.3.1_01
>
> my next step is:
> build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps
> install
>
> I get the error:
> 'build.bat' is not recognized as an internal or external command, operable
> program or batch file.
>
> Please, someone save me!
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://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 your free @yahoo.com address at http://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]>


**
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 sender immediately.

This footnote also confirms that this email message has been swept by
MIMEsweeper and Symantec Norton AntiVirus for the presence
of computer viruses.
**


-
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: POI with Cocoon

2002-01-18 Thread Andrew C. Oliver

While the POI serializers and such will shortly be living on cocoon, you
might want to email your POI-Cocoon questions to
[EMAIL PROTECTED] for the moment.

(though definitely turn off html-mail first) :-)

-andy
-- 
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
- fix java generics!


The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


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




Probably a stupid question...

2002-01-18 Thread TJ Smith



I'm using Windows 2000, Tomcat 3.3, Cocoon 
1.8.2
 
That said, here's the question:  I want a 
single xml file to be rendered in (at least) html and PDF and who knows 
what.  I know I can have multiple style sheets (for a given xml file) based 
upon Browser type (media)  Can I use something similar to add a stylesheet 
reference to a PDF style sheet?  That is, I have the following lines in my 
xml file"
 

Can I add another 'xml-stylesheet' statement to 
handle PDF conversion?  
 
Thanx
TJ
 


Implement a Generator or a URLStreamHandler?

2002-01-18 Thread Conal Tuohy

I've considering a small project to publish a usenet newsgroup using Cocoon
2. I've used Cocoon for a couple of months, for publishing static xml source
(DocBook) as PDF and HTML, but now I have to write some Java! ;-)

I think my options are either to write a NewsGroupGenerator in the Cocoon
framework, or a URLStreamHandler (and URLStreamHandlerFactory) in the Java
URL framework. With a URL-handler I could just use the standard
FileGenerator like so:


news:{1}"; />




I am intending to use the URL framework, but can anyone suggest why a
Generator might be better?


Conal


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