Re: XSL-question: sort with parameter

2002-03-27 Thread Leonid Kleiner
Try this. Here datatypes also are of concern :). xsl:when test=$xsldttype='number' xsl:for-each select=DATALINE/*[name() = $xslcol] xsl:sort select=. data-type=number/ xsl:call-template name = tablerow / /xsl:for-each /xsl:when xsl:when test=$xsldttype='text' xsl:for-each

RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Matthieu Benéteau
Sorry for being long, I'm just beginning my day. ( 09:40 AM in France :) I have simply replaced FileWritingTransformer with SourceWritingTransformer in the sitemap : 1. map:transformer name=tofile logger=sitemap.transformer.tofile src=org.apache.cocoon.transformation.SourceWritingTransformer

URGENT!!! :RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread Volker Schneider
Hi Matthieu and all cocoon user colleagues, I looked into the archives as well, found something but that doesn't help at all. There is a link to a xsl-file that does not contain any xsl-tag. I don't know what the answer is and I stuck at this problem in a very urgent project. Please help me!

Re: Database connection problem

2002-03-27 Thread Peter Robins
I had a similar problem, Derek, which I eventually tracked down to authorisation problems. My DB was set up for user@localhost, and the driver was trying to connect with [EMAIL PROTECTED] When I added this authorisation to the MySQL tables, it worked w/o problem. Yours may be a different

RE: URGENT!!! :RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread Michael Homeijer
Hi, Add the request namespace declaration: xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; and try xsl:value-of select=request:request/@target/ HTH, Michael -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: woensdag 27 maart 2002 10:04 To:

Re: URGENT!!! :RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread KOZLOV Roman
Hi Volker, Declare in your xsl file the request's namespace for example: xsl:stylesheet ... xmlns:req=http://xml.apache.org/cocoon/requestgenerator/2.0; ... and then refer to request's elements with defined prefix, ex: req:requestParameters Best regards Roman Volker Schneider

RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread Matthieu Benéteau
Hi Volker, Here is the mail that gave me the answer : http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100349922300307w=2 Actually, you have to declare the request namespace in your stylesheet : xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; then you match the request

RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread Volker Schneider
Hi Matthieu, Roman and Michael, thank you very much for your quick replies. This solved my problem. Best regards - Volker - -Original Message- From: Matthieu Benéteau [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 27. März 2002 10:16 To: [EMAIL PROTECTED] Subject: RE: XML namespaces and

database sample not working with cocoon 2.0.2 / jdk 1.4

2002-03-27 Thread Lars Schmidt-Thieme
Hi, I have some troubles with the database sample in cocoon 2.0.2 running under tomcat 4.0.4-b2 and jdk 1.4.0-final on a SuSE 7.3 linux box. I built cocoon with jdk1.4 via build.sh -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp (I also tried build.sh

RE: Database connection problem

2002-03-27 Thread Derek Hohls
Cocoon - Version 2.01 Java - 1.3.1 Cocoon installed by support staff on server. [EMAIL PROTECTED] 27/03/2002 09:42:46 Tell us, version of Cocoon and JDK. Have you compiled Cocoon by yourself and under what JDK ? -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent:

how to keep initial ?xml..? statement?

2002-03-27 Thread Lars Schmidt-Thieme
Hi, does anyone know how to tell cocoon (2.0.2) to keep an initial ?xml version=1.0? statement in a xml- file? Or to add one, if it got lost during processing of a pipeline? I already tried - using xhtml or xml-serializer - saying omit-xml-declarationno/omit-xml-declaration in the

Re: Database connection problem

2002-03-27 Thread Derek Hohls
Peter Thanks for the hint; could you be more specific as to what/how the authorisation was implemented? Derek [EMAIL PROTECTED] 27/03/2002 10:42:13 I had a similar problem, Derek, which I eventually tracked down to authorisation problems. My DB was set up for user@localhost, and the driver

Re: Database connection problem

2002-03-27 Thread Bert Van Kets
You can find more on mySQL authorisartion in the documents on the mySQL site. One of them is http://www.mysql.com/articles/mysql_intro.html All it comes down to is setting the correct entries in the user and db tables in the mysql database. Bert At 11:43 27/03/2002 +0200, you wrote: Peter

RE: [C2] DeltaTimeCacheValidity?

2002-03-27 Thread Rune Sandnes
public CacheValidity generateValidity() { return new TimeStampCacheValidity(documentTimestamp); } or public CacheValidity generateValidity() { return new DeltaTimeCacheValidity(10); } If I am not mistaken, the ESQL statements will be

Src vs bin download

2002-03-27 Thread Peter Robins
As I'm not really interested in the actual sources, I would normally download the bin file. However, is it still the case that if I want a cutdown core installation I'm better off getting the src and running the build routine? With the distribution file getting ever bigger, on my slow

RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Jeremy Quinn
At 9:55 am +0100 27/3/02, Matthieu Benéteau wrote: 1. map:transformer name=tofile logger=sitemap.transformer.tofile src=org.apache.cocoon.transformation.SourceWritingTransformer map:parameter name=serializer value=xml/ /map:transformer the serialize parameter is wrong, try

RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Matthieu Benéteau
It's working ! :) Thanks a lot. Matthieu -Message d'origine- De : Jeremy Quinn [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 27 mars 2002 11:26 Objet : RE: SourceWritingTransformer : Cannot get 'xml' serializer At 9:55 am +0100 27/3/02, Matthieu Benéteau wrote: 1.

Re: how to keep initial ?xml..? statement?

2002-03-27 Thread Lars Schmidt-Thieme
resolved this myself - i confused map:serialize name=... with map:serialize type= xml xhtml serializer just work find. - Sorry for the noise. - Lars On Wednesday 27 March 2002 10:41, you wrote: Hi, does anyone know how to tell cocoon (2.0.2) to keep an initial ?xml version=1.0?

session-validator broken in c2.0.2?

2002-03-27 Thread Andrew Savory
Hi guys, I'm seeing a weird error in my site since upgrading to c2.0.2: my sessions aren't working. For example: map:match pattern=list.html map:act type=session-validator map:parameter name=descriptor value=context:///descriptors/user-login.xml/ map:parameter name=validate

RE: Src vs bin download

2002-03-27 Thread Chris Newland
Hi Peter, As far as I know, the .tar.gz and the .zip files have exactly the same content. I always choose the .tar.gz and Cocoon works fine in Linux and Windows. The reason why the .tar.gz is smaller is that the files are tarred together first to create one large file which is then gzipped. In

RE: session-validator broken in c2.0.2?

2002-03-27 Thread Paolo Scaffardi
Yes, it is broken: see this my bug report and solution! http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7478 java.lang.NullPointerException in AbstractValidatorAction Summary: java.lang.NullPointerException in AbstractValidatorAction Product: Cocoon

Re: 4 Suite Server

2002-03-27 Thread Anthony W. Marino
On Tuesday 26 March 2002 07:54 pm, MJ Ray wrote: Anthony W. Marino wrote: Anyone have any experiences with 4 Suite Server http://fourthought.com; compared to cocoon2? They were developing a fairly nippy XSLT engine last I saw, but I've not tried the recent 4SS releases. I think they are

Re: 4 Suite Server

2002-03-27 Thread MJ Ray
Anthony W. Marino wrote: On Tuesday 26 March 2002 07:54 pm, MJ Ray wrote: How things are going to shake out will be interesting to see. If I may ask, what do you mean by this last statement? It's always interesting to see how different implementations of similar ideas compare when they've

RE: [C2] DeltaTimeCacheValidity?

2002-03-27 Thread Vadim Gritsenko
From: Rune Sandnes [mailto:[EMAIL PROTECTED]] public CacheValidity generateValidity() { return new TimeStampCacheValidity(documentTimestamp); } or public CacheValidity generateValidity() { return new DeltaTimeCacheValidity(10); }

Re: 4 Suite Server

2002-03-27 Thread Anthony W. Marino
On Wednesday 27 March 2002 07:36 am, MJ Ray wrote: Anthony W. Marino wrote: On Tuesday 26 March 2002 07:54 pm, MJ Ray wrote: How things are going to shake out will be interesting to see. If I may ask, what do you mean by this last statement? It's always interesting to see how different

Re: 4 Suite Server

2002-03-27 Thread MJ Ray
Anthony W. Marino wrote: On Wednesday 27 March 2002 07:36 am, MJ Ray wrote: Anthony W. Marino wrote: On Tuesday 26 March 2002 07:54 pm, MJ Ray wrote: How things are going to shake out will be interesting to see. If I may ask, what do you mean by this last statement? It's always

Re: 4 Suite Server

2002-03-27 Thread Anthony W. Marino
On Wednesday 27 March 2002 09:12 am, MJ Ray wrote: Anthony W. Marino wrote: On Wednesday 27 March 2002 07:36 am, MJ Ray wrote: Anthony W. Marino wrote: On Tuesday 26 March 2002 07:54 pm, MJ Ray wrote: How things are going to shake out will be interesting to see. If I may

Resource Site/Tutorial

2002-03-27 Thread Leigh Dodds
Hi, I know a couple of folks have posted a link to my Introduction to Cocoon 2 tutorial [1], I just wondered if it could get added to the Cocoon links on the website? Am writing an XSP tutorial currently. Cheers, L. [1].

Strange problem around protected area example

2002-03-27 Thread Xavier DAMAY
Hello, :-( I try to modify the protected example for managing authentification. So, I added this sentence in the hsqldb database WEB-INF/db/cocoondb.script : CREATE TABLE IDENTIFICATION_TABLE(ID INTEGER,NAME VARCHAR,PASSWORD VARCHAR,UNIQUE(ID)) I populated the base with two records INSERT

Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx
Hello all I have the following problem: After updating cocoon from version 2.0.1 to 2.0.2 non-english characters are not normally decoded on page , generated by XSP . In XSP page I use following encode declaration: ?xml version=1.0 encoding=KOI8-R? If I use static XML file and XSL

Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx
Hello all I have the following problem: After updating cocoon from version 2.0.1 to 2.0.2 non-english characters are not normally decoded on page , generated by XSP . In XSP page I use following encode declaration: If I use static XML file and XSL transformation, output page is fine. Where

Error when XML file for a map:part is absent.

2002-03-27 Thread Olivier Rossel
I make a map:aggregate with two XML files. If both files are ok, the output is ok. If one file is missing, half the output is an exception (a FileNotFound exception). Most of the time, displaying an exception is bad. So I would like the erroneous map:part simply be ignored, and the correct

Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas

2002-03-27 Thread Christopher Watson
Hopefully someone can help me ? Followed the advice in cocoon-2.0.2\docs\installing\index.html, i.e. created the endorsed directory, copied xerces xalan and xml-apis Build clean then build installwar Compile falls over EsqlConnection, saying it should be declared abstract due to missing

Cocoon-2.0.2 - Status of the Demo Samples

2002-03-27 Thread Joseph Rajkumar
Hi I tried to send this directly to Carsten Ziegeler, but the email was rejected with this message: [EMAIL PROTECTED]: 212.8.217.2 failed after I sent the message. Remote host said: 552 Error: content rejected and so I am posting it to the users group hoping that it will get to the

RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas

2002-03-27 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas I don't know about your compile problems, but I do know that JDBC connections are fairly problematic with jdk1.4 since they changed some things. I had no problems building the CVS a few

Re: Cocoon-2.0.2 - Status of the Demo Samples

2002-03-27 Thread Bert Van Kets
The employee database which is a part of the samples has NEVER worked correctly and as you probably know many many postings have been sent to the cocoon-users mailing list about this. I greatly appreciate the work and complexity of the product and the time and effort that has been put in by so

xsp - file upload question

2002-03-27 Thread Axel Honfi
Hello! I have a serious problem with file-uploads. I need to check if the file already exists in the specified directory and if yes, create a new subdirectory and store it there. And I need to delete files in the upload directory. I examined the xsp-upload-sample, but I still don't have a clue

sunShine context loading

2002-03-27 Thread Bert Van Kets
I'm trying to load context data from a pipeline using the load command in the sunshine:createcontext tag. I created a pipeline called getusers. Its output is ?xml version=1.0 encoding=UTF-8 ? - data xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;

Entity Catalogs For Incoming Documents

2002-03-27 Thread Fernando Padilla
Hello. I have the Entity Catalog working for XML documents going through the pipeline ( I guess the file generator does this. ) But has anyone used the Entity Catalog mechanism for xml documents being uploaded to the system? I have a webapp that has users uploading xml files, and I need

RE: Error when XML file for a map:part is absent.

2002-03-27 Thread Vadim Gritsenko
You should write error handler. See samples sitemap and sub sitemap. Vadim From: Olivier Rossel [mailto:[EMAIL PROTECTED]] I make a map:aggregate with two XML files. If both files are ok, the output is ok. If one file is missing, half the output is an exception (a FileNotFound

RE: Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread Vadim Gritsenko
From: yuryx [mailto:[EMAIL PROTECTED]] Hello all I have the following problem: After updating cocoon from version 2.0.1 to 2.0.2 non-english characters are not normally decoded on page , generated by XSP . I fail to see difference. In both cases, in Cocoon 2.0.1 and in Cocoon 2.0.2,

Re: could not get sitemap source - error when accessing cocoon:-ressource

2002-03-27 Thread Dirk Reiss
hello, we tried to access the ./processed/somePath/SOME_FILE.xml (which was originally resolved via xsp through an database-query) directly through a browser and cocoon doesnt deliver anything back, just loads forever... many thanks so far, dirk our stacktrace looks like follows:

RE: could not get sitemap source - error when accessing cocoon:-ressource

2002-03-27 Thread Vadim Gritsenko
Dirk, I guess this is your sitemap snippet: map:match pattern=processed/**.xml map:generate type=serverpages src=somePath/{1}.xml/ map:transform type=cinclude/ map:serialize type=xml/ /map:match Here are some advices: 1. Always have serializer 2. Try first without CInclude: map:match

Urgent: Problems in including XML fragment in XSP o/p

2002-03-27 Thread Chitharanjan Das
Hello, I am using cocoon 2.0,2 Tomcat 4.0.1 JDK 1.3.1 My match entry for my XSP reads like this .. map:match pattern=xsp/compare map:act set=accordia map:generate type=serverpages src=docs/samples/xsp/compare.xsp/

merging multiple xml files for processing by an XSL file

2002-03-27 Thread James Andersen
OK, I'm pretty sure this is a simple thing to do but I'm fairly new to Cocoon and I cannot figure it out. I've looked at the FAQ about concatenating files and I get Stylesheet directed termination errors. I've tried the document() function and I get transformHandler errors. I don't really

Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx
I fail to see difference. In both cases, in Cocoon 2.0.1 and in Cocoon2.0.2, XSP page with KOI8-R encoding, produces following Java code:this.characters("\n??\n "); yes, in sample_xsp.java: this.characters("\n "); this.contentHandler.startElement( "", "h4", "h4",

RE: Cocoon-2.0.2 - Status of the Demo Samples

2002-03-27 Thread Piroumian, Konstantin
From: Joseph Rajkumar [mailto:[EMAIL PROTECTED]] Hi I tried to send this directly to Carsten Ziegeler, but the email was rejected with this message: [EMAIL PROTECTED]: 212.8.217.2 failed after I sent the message. Remote host said: 552 Error: content rejected and so I am

Re: Urgent: Problems in including XML fragment in XSP o/p

2002-03-27 Thread John Austin
The XSP code snippet is area subarea xsp:expr itemsXML /xsp:expr /subarea /area - If I do as

Solved a problem: Redirect extension to Xalan

2002-03-27 Thread John Austin
This note is mostly for the benefit of anyone else searching for help with Redirect. Sorry if Xalan is a bit off topic for Cocoon2, but I expect that a lot of XSLT users will be using Cocoon as a framework for Xalan-J/XSLT-based applications. I spotted Redirect in Chapter 8(?) of XSLT by Doug

Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread Andrey Demchenko
 I also have the same problem in Win 2000 Server. I solve this with change my Localeto Ukrainian, delete all files in ...WEB-INF/tmp And now it works OK. But I do not shure that it's good solution. I use "windows-1251" encoding It is work only in cocoon 2.0.1 In 2.0.2 I have "ðÒÉ×ÅÔ"

Re: Urgent: Problems in including XML fragment in XSP o/p

2002-03-27 Thread Derek Hohls
John I do not think you are the only one with this 'problem' - would you be able (in your spare time!?) to post a quick (or detailed?) walk-through of the steps you took to solve it. I understand the general approach - it would just be very useful to have a working example to demonstrate all

How to change response contenttype?

2002-03-27 Thread Paolo Scaffardi
Hey, guys, working with Cocoon 2.0.2 i discovered that every serialized HTML file contains a line like that: META http-equiv=Content-Type content=text/html; charset=UTF-8 But, i cannot find where i can tell cocoon to set another charset before the response.getWriter() call? How can i