XMLDB psuedo Proptocol in cocoon2.0.4 failure in registering driver DatabaseImpl.

2002-12-12 Thread Subrahmanya, Noida
  Hi,    I am setting up an application which reads from an XMLdatabase using the XMLDB API's on cocoon 2.0.4 . This was running fine on cocoon 2.0.3. The problem i am having is when an XMLResource is being read from the XML database. It throws an XMLDBException with the reason being c

Debug:Logging information

2002-12-12 Thread Subrahmanya, Noida
There are some statements in Cocon API's such as getLogger().error I want these to be printed in log files . how and where should i configure this to be enabled. Any help? I want to debug an XML:Db web application. rgds, subrahmanya

RE: Converting & to & in HTML output...

2002-12-12 Thread Derek Hohls
Actually, disable-output-escaping  works just fine ;-)   I tried Michal's solution and (a) I now get & in the HTML and (b) my SVG file is called and loaded correctly.   HTML *might* be OK with & in general, but it certainly wasn't happy in the specific case I mention below; this might be a brows

[RT] limiting access to a url by method

2002-12-12 Thread Tony Collen
I've been thinking... in a RESTful style architecture, one performs "verbs" upon a certain URI, e.g. GET POST PUT or DELETE. It seems to me that Cocoon allows one to craft a REST-style application, and in fact it lets one do it very easily. However, I've noticed that Cocoon will respond to GETs

RE: XMLDB psuedo Proptocol in cocoon2.0.4

2002-12-12 Thread Subrahmanya, Noida
I have seen that this occurs due to the DatabaseImpl not beeing registered to DatabaseManager. In 2.0.3 It registersthe database driver in method public void connect() of XMLDBSource. Now in 2.0.4 it has been moved to method public void configure(Configuration conf) of XMLDBSourceFactory w

RE: xsl:copy-of Problem

2002-12-12 Thread Geoff Howard
> Hello Marcel, > > I wonder that anything is outputted. The output of the template > 'sortmsg' is only stored in the variable $m, but there is nothing like > . If you use , the > tree is copied to the output. But I don't see, where the to strings come > from. Do you have a anywhere in your templa

Re: Converting & to & in HTML output...

2002-12-12 Thread Joerg Heinicke
Hi Derek, Yields this output (via a HTML-serialized pipeline): http:///www.adobe.com/svg/viewer/install/"; type="image/svg-xml" width="500" height="300" name="SCVEmbed" src="graph/graph_WQ.svg?point=1&endyr=2002&varid=1"/> the above is correct, Link but this is wrong. URLs in HTML m

Re: xsl:copy-of Problem

2002-12-12 Thread Joerg Heinicke
Hello Marcel, I wonder that anything is outputted. The output of the template 'sortmsg' is only stored in the variable $m, but there is nothing like . If you use , the tree is copied to the output. But I don't see, where the to strings come from. Do you have a anywhere in your template match

Re: Why cocoon sucks

2002-12-12 Thread Antonio Gallardo
Steven Noels dijo: > Kasper Nielsen wrote: > >> For a short synopsis at school I'm looking for points to areas where >> cocoon and stacking an endlessly number of XSL transformers on top of >> each other falls short. You know stuff like how difficult it is adding >> a new attribute to an XML elemen

transforms allowed after SourceWritingTransformer?

2002-12-12 Thread Timothy Larson
Does Cocoon allow transforms after using the SourceWritingTransformer? Example (note: xsl-file-B): In Cocoon-2.0.4 (compiled with "build installscratchpadwar") it produces this beautiful error message: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang

xsl:copy-of Problem

2002-12-12 Thread Marcel Jurk
Hi, since I use Cocoon2.1 (CVS 12.12.2002) I have the following problem. When I use in a xsl-stylesheet, only the values form the elements are copied, but not the element itself, e.g. when I transform the following xml data: msg1 msg2 with the stylesheet:

automati xmlform

2002-12-12 Thread Robert Sösemann
Hello, I am working on an cms input wizard to fill a database. Is it possible with cocoons xmlform validation to generate its schema rules automatically? I could imagine, an action to query the db's sytem tables to get knowledge about the types and other contraints and generate an xmlform to enf

eliminate duplicate data in beans

2002-12-12 Thread Robert Sösemann
Hello, I have the feeling, that what I am doing can be done more elegant without hardcoding db schema information into a java bean. I am using java beans to transport data through the different steps of a CMS (inside a session). Users are a adding data in every step to a bean representing a db r

RE: Getting CVS version to run on Tomcat 4.1.12

2002-12-12 Thread Antonio Gallardo
Geoff Howard dijo: > In later versions of Tomcat you need to copy the jars to > $TOMCAT_HOME/common/endorsed instead of / in addition to > jre/lib/endorsed. I'm pretty sure it's because the default catalina.sh > specifies its own endorsed directory on startup, overriding the default. > I have hear

use SourceWritingTransformer with redirect?

2002-12-12 Thread Timothy Larson
What can I do in a Cocoon sitemap to send a redirect if I also need to execute a pipeline to produce a side-effect? Specifically, I am trying to respond to a POST by writing a file to disk and redirecting back to the page that caused the POST. The redirect is to drop the POST information so page

RE: Confused about xsl:include - solved

2002-12-12 Thread Jeff Sexton
My problem was simple. It was finding the wrong file to include. That'll teach me to clean up after myself. Thanks to all for the feedback! On Thu, 12 Dec 2002, Robert Koberg wrote: > Hi, > > Put some text in your: > boo > > > > Does it get there? > > Try your transformation at the co

RE: Confused about xsl:include

2002-12-12 Thread Robert Koberg
Hi, Put some text in your: boo Does it get there? Try your transformation at the commandline and see if you get better error messages. It would probably better to post these questions on the XSL list, but you could try posting sample XML and the XSL that attempts to apply-templates to g

caching images, reloading XML/XSLT

2002-12-12 Thread gv
Hello, Having a problem where every page request loads all images on the page every time, even if the images have been loaded before, and even if there are multiples of the same image on the same page. I am using Cocoon 2.0.3 with the default settings for resource reloading; using in the sitemap

RE: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
On Thu, 12 Dec 2002, Timothy Larson wrote: > Check your log files...maybe the xsl:include is not looking in the > directory that you expect and so not finding the file to include. I know that's not it because if I use a bogus href in the include, I get an exception thrown. This is very puzzlin

RE: Confused about xsl:include

2002-12-12 Thread Timothy Larson
Check your log files...maybe the xsl:include is not looking in the directory that you expect and so not finding the file to include. Tim >>> [EMAIL PROTECTED] 12/12/02 02:21PM >>> >Well no, I guess there isn't. The docs on include seem to say that it's >like a #include in a C source file. In ot

RE: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
On Thu, 12 Dec 2002, Hunsberger, Peter wrote: > > The above template match="title" works fine if I paste it into the main > xsl file. But if > > instead, right there in it's place, in the main xsl, I put this: > > > > > > > > to include the above file, the match is no longer applied in the out

RE: Confused about xsl:include

2002-12-12 Thread Hunsberger, Peter
> The above template match="title" works fine if I paste it into the main xsl file. But if > instead, right there in it's place, in the main xsl, I put this: > > > > to include the above file, the match is no longer applied in the output. I'm perfectly open to > other ways of doing this. I'm

Re: stops to work

2002-12-12 Thread J.Pietschmann
Jessica Niewint wrote: Thank you all for your help. Yesterday everything works fine ... today xsp somehow stops to work ... no image will be shown only the text ... I really have any idea what could be wrong So if you have an ideajust follow it...

RE: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
On Thu, 12 Dec 2002, Hunsberger, Peter wrote: > Nonsense... Apply-templates works just fine with included templates. > What's missing from the included code is the place that the apply is invoked > so we can't tell if it's being done correctly. It's also possible that some > other template with

Re: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
I have also tried using import instead, as in this fragment: No matter what I do, templates in the included xsl file are not applied to the output. No errors either, the templates just are not applied. If I do nothing more than paste the template back into the main xsl file, it w

RE: Confused about xsl:include

2002-12-12 Thread Hunsberger, Peter
> Not 100% sure, but in my (humble) opinion, you can only call included > templates and no longer use apply. Nonsense... Apply-templates works just fine with included templates. What's missing from the included code is the place that the apply is invoked so we can't tell if it's being done corre

Re: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
On Thu, 12 Dec 2002, Yves Vindevogel wrote: > Not 100% sure, but in my (humble) opinion, you can only call included > templates and no longer use apply. > > Instead of you will need > > > > > > > > in the included file: > > > > I have no nor paramet

Re: Confused about xsl:include

2002-12-12 Thread Yves Vindevogel
Not 100% sure, but in my (humble) opinion, you can only call included templates and no longer use apply. Instead of you will need in the included file: > This should be simple, but I'm not able to make it work. > > Here's an xsl file, worki

Confused about xsl:include

2002-12-12 Thread Jeff Sexton
This should be simple, but I'm not able to make it work. Here's an xsl file, working fine: http://www.w3.org/1999/XSL/Transform";> Date/Time: ... More templates ... So what I do is take the "Now" template and put it in a separate file called "other.xsl" and add an include like

Re: Why cocoon sucks

2002-12-12 Thread Tony Collen
On Thu, 12 Dec 2002, Alex McLintock wrote: > Why did you chuckle? As a member of the London perl mongers group (I drink > with them and waffle on the mailing list) I know a large number of people > happy to work with Mason. Well, I know exactly nothing about Mason itself, but perhaps the title of

RE: Getting CVS version to run on Tomcat 4.1.12

2002-12-12 Thread Andrew Timberlake
Thanks for the help! It now works Andrew On Thu, 2002-12-12 at 18:40, Geoff Howard wrote: > In later versions of Tomcat you need to copy the jars to > $TOMCAT_HOME/common/endorsed instead of / in addition to jre/lib/endorsed. > I'm pretty sure it's because the default catalina.sh specifies its ow

RE: Pipeline problem

2002-12-12 Thread Hunsberger, Peter
> How solve my problem ? > > How trace data between two transformers : > - between ldap and xslt > - between xslt and annuaire... You can always comment out part of the pipeline temporarily and view the output directly. Eg: Note that the serialize is now told that it's sendi

Pipeline problem

2002-12-12 Thread Rano, Didier
I have a problem with a pipeline. If I test by block, all is ok: The output of the previous test is given to the next: annuaire is my own transformer. And, now when I test the complete pipeline, I have errors:

RE: Converting & to & in HTML output...

2002-12-12 Thread Geoff Howard
that will not work. disable-output-escaping is disabled in cocoon - search the archives on dev and users for the reasoning. There is a processing instruction that can do this (search the archives again) but it could have hidden problems. Are you sure you need to? HTML is ok with & everywhere yo

RE: problem with the sitemap and patterns

2002-12-12 Thread Geoff Howard
Nice guess, but three asterisks is not defined. mysite/** will match literally everything after the slash. If you need to seperate out the file extension, you can do mysite/**.* (the values will be stored in {1} and {2}) but then you have to have a .XXX request. If you will only sometimes have a

RE: Getting CVS version to run on Tomcat 4.1.12

2002-12-12 Thread Geoff Howard
In later versions of Tomcat you need to copy the jars to $TOMCAT_HOME/common/endorsed instead of / in addition to jre/lib/endorsed. I'm pretty sure it's because the default catalina.sh specifies its own endorsed directory on startup, overriding the default. I have heard rumors that they also need

RE: How can i have both upload and saving to Xindice on click of a button?

2002-12-12 Thread Ray Martin
Sir, Cocoon places the uploaded file into a default directory. The default directory is C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\upload-dir. I use a Cocoon action to "pick up" the uploaded file from the default directory and place it where ever i wan

Re: Why cocoon sucks

2002-12-12 Thread Alex McLintock
At 16:02 12/12/02, Tony Collen wrote: On a side note, I chuckled to myself when I saw this book in the store: http://www.oreilly.com/catalog/perlhtmlmason/ I think it helped me appreciated what Cocoon does just a little bit more :) Why did you chuckle? As a member of the London perl mongers g

Re: Why cocoon sucks

2002-12-12 Thread Tony Collen
On a side note, I chuckled to myself when I saw this book in the store: http://www.oreilly.com/catalog/perlhtmlmason/ I think it helped me appreciated what Cocoon does just a little bit more :) Tony Tony Collen -- [EMAIL PROTECTED] College of Liberal Arts University of Minnesota, Minneapo

XPath queries and the sitemap

2002-12-12 Thread cavallino_mail.zeelandnet.nl
I am doing an XPath search on my Xindice database with IExplorer and I get the results in XML in my browser. I use an URL that looks somethin like: http://localhost:8080/cocoon/xmldb/coll1/coll2?xpath=//NODE[contains("TheQuery")] The result of that comes in XML. But I want to transform it to HTML

Re: Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-12 Thread Steven Noels
Yves Vindevogel wrote: Hi All, My problem is solved thanks to your help (all of you) Therefore, I'd like to post what I did because I had some mails from people from Italy and Zwitserland with the same problem. This is kind of my help towards them. Good thinking! Now please go and add it to

Include content of another (non-xml) file into an XSP

2002-12-12 Thread Yves Vindevogel
Hi, I'm looking for a way to include the complete content of a text file into an XSP page. This is an example page : http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:xsp-request="http://apache.org/xsp/request/2.0";

RE: Re: Why cocoon sucks

2002-12-12 Thread robert_hitchins
You should listen to your own words...Cocoon is a *TOOL*...and as such it is not, nor has it ever been, intended as a cure-all for developing web applications. Perhaps someday it will be, but what it is now, is a very slick way to take content in XML form from your logic layer and use a flexib

Re: Why cocoon sucks

2002-12-12 Thread Yves Vindevogel
I agree with Chris. In every language you can create a mess. Two rules of advice for Kasper on programming: 1) Be a lazy coder. Think first how you can write as few lines of code as possible. Not only will you have effecient code, you'll have code that you can maintain. 2) Stop using copy & p

RE: XMLDB psuedo Proptocol in cocoon2.0.4

2002-12-12 Thread Subrahmanya, Noida
Hi,   I am setting up an application which reads from an XMLdatabase using the XMLDB API's on cocoon 2.0.4 . This was running fine on coccon 2.0.3. The problem i am having is when an XMLResource is being read from the XML database. It throws an XMLDB API exception with the reason being cou

Re: Why cocoon sucks

2002-12-12 Thread Steven Noels
Kasper Nielsen wrote: For a short synopsis at school I'm looking for points to areas where cocoon and stacking an endlessly number of XSL transformers on top of each other falls short. You know stuff like how difficult it is adding a new attribute to an XML element, and make sure it's copied alon

Re: Why cocoon sucks

2002-12-12 Thread Kasper Nielsen
- Original Message - From: "Chris Faulkner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 12, 2002 12:56 PM Subject: Re: Why cocoon sucks > > > > >For a short synopsis at school I'm looking for points to areas where cocoon > >and stacking an endlessly number of XSL

Getting CVS version to run on Tomcat 4.1.12

2002-12-12 Thread Andrew Timberlake
I have checked that latest sources out of CVS Copied the Xerces etc jars into $JAVA_HOME/jre/lib/endorsed/ run ./build.sh -Dinclude.webapp.libs=yes clean webapp I have then copied the cocoon.war into webapps and restarted tomcat I now get the error below. I am using RedHat 8.0, Sun's JVM 1.4.1_01

Re: problem with the sitemap and patterns

2002-12-12 Thread Lenya L. Khachaturov
On Wed, Dec 11, 2002 at 03:05:57PM -0500, Timothy Larson wrote: > Try > Notice the two asterisks. > > Tim > > >>> [EMAIL PROTECTED] 12/11/02 12:44PM >>> > Is there a way to specify a GENERAL pattern? > I know, the wildcards exists for this reason, but if I write in my sitemap: > > > > and the

Re: problem with the sitemap and patterns

2002-12-12 Thread [EMAIL PROTECTED]
This is my real pipeline: As you can see, I use 3 asterisks, 'cause I want to match something like: "mysite/mydirectory/myfile.myext"; when I write: http://localhost:8080/mysite/1dir or http://localhost:8080/mysite/1dir/2dir/3dir/4dir/file.ext or a lot of other combinations .

Re: Why cocoon sucks

2002-12-12 Thread Chris Faulkner
> >For a short synopsis at school I'm looking for points to areas where cocoon >and stacking an endlessly number of XSL transformers on top of each other >falls short. You know stuff like how difficult it is adding a new attribute >to an XML element, and make sure it's copied along in all your 200

RE: Converting & to & in HTML output...

2002-12-12 Thread BOCEK Michal
Test this in xsl: trasformation (stylesheet) MB -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: Converting & to & in HTML output... I would appreciate some help with the following problem. The i

error message during transform

2002-12-12 Thread Jakob
I have the latest Jetty servlet engine, the latest released Cocoon, on Windows NT. I had this problem when retrieving XML documents from eXist, but I have now tested it without eXist, and the problem persists. When transforming a document containing a big, complex CALS table using this (test cas

Why cocoon sucks

2002-12-12 Thread Kasper Nielsen
Okay this is a question not a statement! For a short synopsis at school I'm looking for points to areas where cocoon and stacking an endlessly number of XSL transformers on top of each other falls short. You know stuff like how difficult it is adding a new attribute to an XML element, and make s

stops to work

2002-12-12 Thread Jessica Niewint
Thank you all for your help. Yesterday everything works fine ... today xsp somehow stops to work ... no image will be shown only the text ... I really have any idea what could be wrong http

RE: Cocoon's cache problems?

2002-12-12 Thread Maxime.Gheysen
Thanks! I execute a esql string that is : INSERT INTO wfTasklist (wfID, tkID, Responsible, Status) VALUES(,,,) The parameters are from an other page : WorkflowID : Task Name: Responsable: Status: As you can see I want to send these four parameters. The first is a

Re: Transforming several XMLs (Request Generator component)

2002-12-12 Thread Yves Vindevogel
You must begin with the REQUEST. This can be done by using XSP. This must be the first because you can only do XSP as generator. This is the source of something I need from the Session (similar) http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:xsp-request="http://apa

Transforming several XMLs (Request Generator component)

2002-12-12 Thread Lenya L. Khachaturov
Hello, I need to produce a transformation based on two XML files. The first is my XML file, the second is the output of the Request Generator, produced by I need to grab a couple of keys from this output, combine it with my XML and transform it. How should I do this? -- Lenya Khachaturov ma