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 map:generate type=request map:parameter name=generate-attributes value=true/ /map:generate I need to grab a couple of keys from this output,

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) ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp;

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(xsp-request:get-parameter name=wfID/,xsp-request:get-parameter name=tkID/,xsp-request:get-parameter name=Responsible/,xsp-request:get-parameter name=Status/) The parameters are

fo:external-graphic 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 xsl:for-each select=SecContent xsl:variable name=sectioncontent select=./

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

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

RE: Converting amp; to in HTML output...

2002-12-12 Thread BOCEK Michal
Test this in xsl: trasformation (stylesheet) xsl:value-of disable-output-escaping=yes select=@src/ MB -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: Converting amp; to in HTML output... I would

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: problem with the sitemap and patterns

2002-12-12 Thread [EMAIL PROTECTED]
This is my real pipeline: map:match pattern=mysite/*** map:mount check-reload=yes reload-method=synchron src=mysite/sitemap.xmap uri-prefix=mysite/ /map:match As you can see, I use 3 asterisks, 'cause I want to match something like: mysite/mydirectory/myfile.myext; when I write:

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 map:match pattern=mysite/** 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:

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

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

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

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

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

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 : ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp;

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

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: XMLDB psuedo Proptocol in cocoon2.0.4

2002-12-12 Thread Subrahmanya, Noida
Hi, I am setting up anapplication 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

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,

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

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 want

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

RE: Converting amp; 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 amp;

Pipeline problem

2002-12-12 Thread Rano, Didier
I have a problem with a pipeline. If I test by block, all is ok: map:match pattern=hub/ldap/* map:generate src=hub/ldap/{1}.xml/ map:transform type=ldap/ map:transform src=hub/LDAP2Group.xslt type=xslt/ map:serialize/ /map:match The output of the previous test is given to the

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: map:match pattern=hub/integration/* map:generate

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 own

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

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: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=Now bDate/Time:/bxsl:apply-templates/ /xsl:template ... More templates ...

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 apply-template you will need xsl:for-each ... xsl:call-template select=mytemplate xsl:with-param name=myparamtopass value=./ /xsl:call-template

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 apply-template you will need xsl:for-each ... xsl:call-template select=mytemplate xsl:with-param

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

Re: Confused about xsl:include

2002-12-12 Thread Jeff Sexton
I have also tried using import instead, as in this fragment: xsl:import href=stylesheets/other.xsl/ xsl:template match=Now xsl:apply-imports/ /xsl:template No matter what I do, templates in the included xsl file are not applied to the output. No errors either, the templates just are

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: fo:external-graphic 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... xsl:for-each select=SecContent

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: xsl:include href=stylesheets/other.xsl/ to include the above file, the match is no longer applied in the output. I'm perfectly open to

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: xsl:include href=stylesheets/other.xsl/ to include the above file, the match is no

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 #includefile in a C source file. In other

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

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 map:read in

RE: Confused about xsl:include

2002-12-12 Thread Robert Koberg
Hi, Put some text in your: xsl:template match=titleboo h1xsl:apply-templates//h1 /xsl:template 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

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: xsl:template match=titleboo h1xsl:apply-templates//h1 /xsl:template

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: 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 heard

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

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

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 xsl:copy-of select=./ 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: all message textmsg1text /message

transforms allowed after SourceWritingTransformer?

2002-12-12 Thread Timothy Larson
Does Cocoon allow transforms after using the SourceWritingTransformer? Example (note: xsl-file-B): map:generate src=some-xml-file/ map:transform src=xsl-file-A/ map:transform type=SourceWritingTransformer/ map:transform src=xsl-file-B/ map:serialize/ In Cocoon-2.0.4 (compiled with

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 element, and

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 xsl:value-of select=$m/. If you use xsl:copy-of select=$m/, the tree is copied to the output. But I don't see, where the to strings come from.

Re: Converting amp; to in HTML output...

2002-12-12 Thread Joerg Heinicke
Hi Derek, Yields this output (via a HTML-serialized pipeline): div align=left embed pluginspage=http:///www.adobe.com/svg/viewer/install/; type=image/svg-xml width=500 height=300 name=SCVEmbed src=graph/graph_WQ.svg?point=1amp;endyr=2002amp;varid=1/ the above is correct, /div a

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 xsl:value-of select=$m/. If you use xsl:copy-of select=$m/, the tree is copied to the output. But I don't see, where the to strings come from.

[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: Converting amp; 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 amp; in general,but it certainly wasn't happy in the specific case I mention below; this might be a browser

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 methodpublic void connect() of XMLDBSource. Now in 2.0.4 it has been moved to method public void configure(Configuration conf) of XMLDBSourceFactory

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

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

2002-12-12 Thread Subrahmanya, Noida
Hi, I am setting up anapplication 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 could