SVG, JPEG, PNG and Xvfb

2001-10-19 Thread Phil Blake
Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted by someone on the list: if [ "$1" = "stop" ] ; then # kill off any

RE: Stylesheets Logicsheets

2001-10-19 Thread Luca Morandini
Bernie, 1) A Logicsheet is an XSP source file. A logicsheet defines a taglib, which is then used to provide more tags to be included in XML files 2) AStylesheet is a plain XSL file. Mind, a logicsheet is, basically, an XSL + Java file, hence the confusion... my habit is to have

RE: Stylesheets using Logicsheets

2001-10-19 Thread Luca Morandini
Brent, As far as I know, you can't do this directly, since the XSP generation has to be the first step in a pipeline (generation). Anyhow, what you can do is chaining two pipelines: 1) A pipeline which produces (via transform) an XML file with your tags (like

Accessing Tomcat from C2

2001-10-19 Thread Max Larsson
Hi, i am wondering if it is possible to access Tomcat specfic runtime classes from inside C2. What i want to do is to read to runtime Tomcats configuration from inside C2 . Anyone knows anything? best regards Max - Please

Re: SVG, JPEG, PNG and Xvfb

2001-10-19 Thread Martijn Bouterse
Phil Blake wrote: Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. For Linux the SVG Java libraries (Apache Batik) as used in Cocoon 2 depend on a X display. As Linux can perfectly function without

RE: problems with Html Generator

2001-10-19 Thread lucas
Thank's a lot for your interest ! You where right, as I read in the documentation the problem was related with my proxy configuration, so I try your solution. Unfortunalety I think I do something wrong: My proxy host is http://pinedo on port 80, so, I create the environment variable with value:

[C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon?

2001-10-19 Thread Adrian Geissel
Hi, I appologise in advance for posting to this mailing list, but I also think that the answer maybe of interest to the Cocoon community. What I am trying to do is to build a generic form within C2 that is defined in an XSP which is aggregated with another path that will contain the data which

RE: [C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon?

2001-10-19 Thread Max Larsson
Hi as long as i knwo you forgotten to define that the namespace xalan is an extension namespace. How to do that you have to read the Xalan documentation. Max -Original Message- From: Adrian Geissel [mailto:[EMAIL PROTECTED]] Sent: Freitag, 19. Oktober 2001 10:34 To: [EMAIL PROTECTED]

C2 - JSPGenerator and jsp:include

2001-10-19 Thread Eric Fesler
Hi, I'm having some trouble working with the JSPGenerator. I'm using a JSP to generate the XML representation of an session resident object. However, because this object presents some recursive characteristics, I use the tag jsp:include. The JSP itself works properly. However, when I'm using

RE: session and xsl

2001-10-19 Thread Liam Morley
If you look at the Java API for Cocoon, you'll notice that it has its own Session object (org.apache.cocoon.environment.Session), which does not inherit from or otherwise have much to do with javax.servlet.http.HttpSession other than the fact that they have many similar methods. (Actually, I

[C2] Help: Unexpected bad XSP/Logicsheet behavior

2001-10-19 Thread Adrian Geissel
Hi, My logicsheetprovides XSP support templates, for controllingthe structure of the generated XML. A typical template generates an XML fragment, including the local 'root' (top-level) element, attributes, content and child elements. The strange behavior is that my 'root' element is not

Re: SVG, JPEG, PNG and Xvfb

2001-10-19 Thread Jeff Turner
On Fri, Oct 19, 2001 at 04:59:15PM +1000, Phil Blake wrote: Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted

RE: Java 1.4 and Cocoon 2

2001-10-19 Thread Madel,Kurt
Not sure if this is the reason, but I know that Batik (svg generator used by cocoon) won't work with Java 1.4 yet, and Batik is registered in the Sitemap. -Original Message- From: Torsten Knodt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 10:37 AM To: cocoon-users Subject:

RE: Java 1.4 and Cocoon 2

2001-10-19 Thread Mark Ayad
I Couldn't get it to work with Java 1.4, probably because Java 1.4 rte includes Jaxp Regards All Mark -Original Message- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 2:17 PM To: '[EMAIL PROTECTED]' Subject: RE: Java 1.4 and Cocoon 2 Not sure if this is

RE: Java 1.4 and Cocoon 2

2001-10-19 Thread Kenneth Petersen
I'm afraid that I don't why you got the message that you describe. But I'm am having no ploblem using Cocoon 2 with Java 1.4 beta 2. I am using Tomcat 4.0, JBoss 2.4.3 and Cocoon 2 on a windoze 2000 sp2 platform. KP Not sure if this is the reason, but I know that Batik (svg generator used by

Anyone using Castor with Cocoon2

2001-10-19 Thread Madel,Kurt
I would like to use Castor's data binding and pass its Marshalled xml to Cocoon2 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe,

[C1] Cocoon SQL vs ESQL

2001-10-19 Thread Derek Hohls
I have been struggling to get ESQL working... I had thought it was the database setup, but turns out that is OK (see below) - now I am stuck again. Following previous suggestions, I have tried to get an equivalent of the sample code shippped wiht Cocoon working. I could not find any ESQL to

Re: Anyone using Castor with Cocoon2

2001-10-19 Thread Frank Taffelt
Hi, i'm using the following function to marshal a castor object into cocoon. /** * marshalls an object into cocoon * * @param obj an codeObject/code the Castor generated Object * @param map a codeMapping/code the Castor Mapping Object for the given object * @exception Exception if an

Re: Request Generator examples

2001-10-19 Thread Lajos Moczar
Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0

Reloading Cocoon2 / Custom Generator

2001-10-19 Thread Martin Kavalar
Hello, i was wondering if it is possible to reload cocoon or a custom build generator after its been recompiled without restarting tomcat. If yes, i'd like to know how, and if not, then id like to know if theres another way to speed up the compiling / testing process somehow because always

where is context.setAttribute?

2001-10-19 Thread Paolo
How can we set context attributes with cocoon2? Why did the authors implement getAttribute function but not the setAttribute? ByeBye, Paolo Scaffardi AIRVENT SAM S.p.A. - Please check that your question has not already been

RE: Reloading Cocoon2 / Custom Generator

2001-10-19 Thread Karl Oie
all classes are loaded by a classloader, by creating your own classloader you can nullify it after use and the class will have to load from disk again, included is a example of a custom classloader, here is an example of how to use it: SimpleClassLoader sc = new SimpleClassLoader(

RE: Anyone using Castor with Cocoon2

2001-10-19 Thread Madel,Kurt
ok, stupid question, but I need a little help setting things up. Can you just place the castor jar in your class path, and then make the neccessary include in your xsp page for the marshal function? Sorry to be a bother, but I think this kind of info would really help out Cocoon2 novices, like

RE: Cocoon 2: Where to put xml/xsl files to?

2001-10-19 Thread Jeremy Aston
Hi Alexander, You have to configure the sitemap to pick up your files. The cTwIG idiots guide has some basic examples. You can find it at http://www.pigbite.co.uk/ctwig/index.html. HTH. Jez [EMAIL PROTECTED] -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED]]

RE: HOW to transform HTML file from XSP file

2001-10-19 Thread Jeremy Aston
Hi Sergi, I'm sorry it took a while for me to respond but I've been really busy. I think I have solved the problem - it's the namespace you are using in the xsl file for the stylesheets. Instead of xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" try xsl:stylesheet

Re: Deploying xml pages/resources

2001-10-19 Thread Lajos Moczar
Hi Allan: I'm not sure what you are trying to do. If it is simply to process XML files using your old XSLs, look at the examples in the cocoon sitemap.xmap (like the hello.html one). All you have to do is add a similar entry for your own stuff. Then put your files under the cocoon webapp

RE: C2.0: connection pool/ datasource problem [interbase]

2001-10-19 Thread Mark S. Kent
I'm having a similar problem with pooling setup for Interbase. I've used the Cocoon2 sample for ESQL to edit my page, sitemap, etc. but it still won't work. I've defined the datasource cl (that's C and L -- not C and ONE) and in cocoon.xconf as: datasources jdbc name=cl

Problems during cocoon installation

2001-10-19 Thread Alessandra Donnini
Our configuration is: Linux redhat 6.2 Apache 1.3.20 jakarta-tomcat-3.2.3 Cocoon 2 When we try to start cocoon2 for the first time the browser shows this message "the sitemap handler's sitemap is not available". Looking for the reason in the cocoon.log.000.. file I can find these two

Re[2]: C2.0: connection pool/ datasource problem [interbase]

2001-10-19 Thread Russell Castagnaro
Hello Mark, Mine did start working when I changed the classes12.zip file to classes12.jar. I guess the class loader only loads jars. Have you confirmed the the url works and the Driver class is loaded? Try an XSP page that loads the driver explicitly to confirm... Friday, October 19, 2001,

Re: [C1] Cocoon SQL vs ESQL

2001-10-19 Thread Christopher Painter-Wakefield
You don't say in what way the code is not working; do you get an exception, other error message, or just no data? If the latter, are you sure your XSL stylesheet matches the structure of the XML you are creating? -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:

Re[2]: [C2] Accessing CLOBs as Documents

2001-10-19 Thread Russell Castagnaro
Hello Marty, Hmm.. So ar you saying that if my clobs didn't have the ?xml version=1.0 encoding=UTF-8? then get-xml would work? When I tried: esql:get-xml column=doc_content/ It didn't work, but perhaps that is because it is a document. Thursday, October 18, 2001, 7:13:50 AM, you

RE: Request Generator examples

2001-10-19 Thread Luca Morandini
Lajos, thanks for you reply. Actually, my error was not putting the namespace tag request: in front of my XPatch elements. Since I've put it into the stylesheet header I, wrongly, supposed it ot be redundant. Hence, I've transformed: xsl:template

Using Custom Component in Cocoon2

2001-10-19 Thread Alexander Smirnoff
Hi, I have made custom Component and trying to access it from XSP file. It seems that it passes OK all main steps of composition/configuration/initialization, but somehow at the end I getting the next exception: org.apache.avalon.framework.component.ComponentException: Could not access the

JSP Example With Cocoon2

2001-10-19 Thread Earl Bingham
I have the latest and the 2.2b release build of Cocoon2. The JSP example the comes with the release that uses the JspGenerator doesn't work. I have tried it on Windows 2000 with Tomcat4.0 and RedHat Linux with Tomcat4.0 Is there something wrong with the example or do I not have something

Aggregate and root elements

2001-10-19 Thread Simone Gianni
Hi all .. I'm trying to do, with cocoon 2rc1, something like this : aggregate some contents, between these there are some which are themself aggregated, these are boxes on the right of my page, and some of them are static and common for all the site, some others are specific to a

Re: Reloading Cocoon2 / Custom Generator

2001-10-19 Thread Martin Kavalar
I have a jar with all the classes my generator employs in it. Is there no way to get cocoon to reload every class that has changed from disk in this jar? Karl Oie wrote: all classes are loaded by a classloader, by creating your own classloader you can nullify it after use and the class will

JUnit Testing Actions with Logging...

2001-10-19 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Hello everyone, In Cocoon2 has anyone successfully configured a JUnit test case that will run an Action (or any other class) that has logging method calls in it? For example, I have an action that I am able to Unit test with out any problem until I add the following (line 45):