Re: Spacing issues?

2003-06-10 Thread Andre Thenot
On Tuesday, June 10, 2003, at 07:01 PM, Robert Koberg wrote: Andre was a bit off with his comments. Also he is using a long-hand version when there is a simpler way to accomplish it (attribute value templates or {} in an attribute). Joerg was showing you how to "strip" the leading and trailing

Re: TeX to PDF serializator

2003-06-10 Thread Andre Thenot
On Tuesday, June 10, 2003, at 06:37 PM, Peter Flynn wrote: In any case, it shouldn't be specific to LaTeX. All we need is an ability of Cocoon to spawn an external process and serve the result back to the user with a defined media type. There's a _big_ problem with this: how do I apply a transform

Re: Spacing issues?

2003-06-10 Thread Andre Thenot
That was an XPath expression. Use (assuming you have an xsl:variable named "report-name"): panel_sw Further reading: XML in a nutshell, published by O'Reilly, look at chapter on XSL. A. On Tuesday, June 10, 2003, at 05:19 PM, Tim Bachta wrote: Where do I put that? -Original Message

Re: Re[2]: TeX to PDF serializator

2003-06-10 Thread Andre Thenot
On Thursday, June 5, 2003, at 05:35 AM, Vasil I. Yaroshevich wrote: I can make XML document such as and I want to convert it to PDF. How? Sure you can. But that defeats the whole purpose of using XML in the first place. :-) AS> what would definitly be useful is a tex generator, that generate

Re: form validator and regexp problem...

2002-08-30 Thread Andre Thenot
On Friday, August 30, 2002, at 09:36 , Barbara Post wrote: > I use the regexp expression from C 2.0.3 form validator example > and want to > validate 2 email fields : > > in the descriptor : > > matches-regexp="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$"/>

Re: [ANN] Another article on Cocoon - Web Syndication

2002-08-30 Thread Andre Thenot
On Friday, August 30, 2002, at 08:58 , Ivelin Ivanov wrote: > Not a bad idea, > eventually all the content can be ported to xdoc. How about syndicating the documentation? :-) (sorry, couldn't resist...) A. - Please check th

Re: C2.0.3 silently ignoring exceptions

2002-08-28 Thread Andre Thenot
On Wednesday, August 28, 2002, at 05:57 , Christopher Painter-Wakefield wrote: > This problem (I won't say bug, in case it is something we've > done!) is very > detrimental to development, since we have to go look in the > logs to find > out we got an exception. Any help would be appreciated!

Re: Installing mysql JDBC Driver

2002-08-28 Thread Andre Thenot
You can also put it in $JAVA_HOME/lib/ext (or $JAVA_HOME/jre/lib/ext depending on your setup). That way, it's accessible from anywhere on your system which is a feature or a bug On Wednesday, August 28, 2002, at 12:51 , Jan Willem Penterman wrote: > I just dropped it into the lib folder.

Re: Counting rows in a resultset

2002-08-28 Thread Andre Thenot
On Wednesday, August 28, 2002, at 06:06 , Tuomo Lesonen wrote: > This doesn't work: SELECT COUNT(*), id, name FROM names WHERE id = 1; > > I'm using MS SQL2000. The query above is probably not well > formed SQL, or > SQL2000 doesn't know what to do with it... :( The count(*) syntax works in MyS

Re: Automatic FAQ

2002-03-22 Thread Andre Thenot
FYI, the domain name cocoon-users.org is available. I agree that a site like the one you mentioned would be a very valuable resource. However, the entry point for new cocoon users is the site on apache.org; we probably should focus on improving it instead of making lots of small sites. A.

Db Authenticator action; Tomcat not happy.

2002-03-01 Thread Andre Thenot
Hi, What I'm trying to do: get the DatabaseAuthenticatorAction to... well, authenticate from the Db. The logs don't seem to have any information that can tell me what I'm doing wrong. What I'm using: Tomcat 4.0.1, Cocoon 2.01 (freshly installed), JVM 1.3.1 and a MySQL database (with its drive

Re: Cannot get MySQL pool connection

2002-02-28 Thread Andre Thenot
Paul, Please disregard my previous posting -- I didn't see the part where you had already checked web.xml. I am also on Mac OS X, and I put the mm.mysql jar in Java's ext directory, as I figured pretty much anything I do on that machine will appreciate having mysql available. Here's the comp

Re: Cannot get MySQL pool connection

2002-02-28 Thread Andre Thenot
Paul, Have you put the mysql driver class in your web.xml file? load-class ... org.gjt.mm.mysql.Driver HTH, Andre. On Thursday, February 28, 2002, at 01:17 , Paul Caton wrote: > I'm running Cocoon 2.01 under Tomcat 4.0.2 and Java 1.3.1 on MacOS > X. I've set up a MySQL database

Re: Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found

2002-02-14 Thread Andre Thenot
You need to set up your sitemap so that Cocoon knows how to respond to that request, and which xml and xsl files it should use: http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html A. On Thursday, February 14, 2002, at 06:09 , Bai-Hao Chen wrote: Dear Sir,   I can run "http://localhost:80

Re: Allready looked in XSP and Logicsheets

2002-02-12 Thread Andre Thenot
On Tuesday, February 12, 2002, at 04:50 , Bednarz, education-one GmbH wrote: > I tried the following for a stylesheet simple.xsl > - > >xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:xsp="http://www.apache.org/

Escaping in (stupid question)

2002-02-12 Thread Andre Thenot
Hi, I'd like to know if there is a way to have get data from a helper class into a logicsheet without that data getting escaped. I looked through xsp.xsl but still haven't been enlightened. Here's what my logicsheet looks like: String message = com.newhomesdirect.logs.LogQuery

Documentation (was: (?) xsp-request:get-attribute documentation)

2002-02-10 Thread Andre Thenot
On Friday, February 8, 2002, at 07:38 , Vadim Gritsenko wrote: >> From: Andre Thenot [mailto:[EMAIL PROTECTED]] >> >>Is there any documentation project going on? > > It's kind of going on continuously in the CVS :) OK, I check it out (and into it). >> I&

Re: (?) xsp-request:get-attribute documentation

2002-02-08 Thread Andre Thenot
hard to understand looking at the XSL but for the newcomer, it takes a while to find out where to start. A. On Friday, February 8, 2002, at 01:33 , Andre Thenot wrote: > Hi, > > I've been playing around with setAttribute() in a java Action > class in the container, to set at

(?) xsp-request:get-attribute documentation

2002-02-08 Thread Andre Thenot
Hi, I've been playing around with setAttribute() in a java Action class in the container, to set attributes accessible with in an XSP. It works perfectly for String objects. But what I'm looking for is documentation that explains how to pass more exotic stuff using attributes; all I have f

Re: Problem with Actions (C2)

2002-02-07 Thread Andre Thenot
On Thursday, February 7, 2002, at 04:06 , Vadim Gritsenko wrote: > Make a change: (snip) >>src="docs/samples/xsp/{../1}.xsp"/> (snip) > Note that {1} replaced with {../1}. > It's like a path. Actions/matchers are like nodes. Yeehaa! Thanks a lot! Now that I look back in the docs, it _do

Problem with Actions (C2)

2002-02-07 Thread Andre Thenot
Hi, I've looked in the docs and in the archives but I can't find out why I'm having trouble with actions in Cocoon 2.0 (binary version). Here's what I did: 1. I created a HelloPoohAction.java, almost identical to the one in the "Creating and using actions" docs, except that I added import st

Re: problem in updating xsl

2002-02-05 Thread Andre Thenot
On Monday, February 4, 2002, at 02:16 , Luca Morandini wrote: > If so, you should "touch" (change the file date) of the > importing stylesheet > to make Cocoon recognize that the imported stylesheet has been > modified. This made my day! Note that Cocoon relies on the "Modify" time of the fil

Re: Installing Cocoon2 on MacOSX

2002-02-03 Thread Andre Thenot
Martina, Just follow all the instructions in the docs that pertain to unix and you should be fine. I suggest you make a directory in /Applications called "Local" (so it looks like /usr/local, but it's visible from the Finder). Install Apache's Tomcat in there, and put Cocoon's war file in th