Re: change data between java-action and html-pages
On Sun, 15 Dec 2002, Christoph Stocker wrote: hi! i have a java-action, which in every call say what's the next page and do some other data controlling. no i want to share the date, generated in my action, with my xsp-pages. whats the best way to share this date (in the session object?) is there another possibility, maybe a bean defined in the sitemap and can be filled in the action and read out in my xsp-pages. i don't want to use cookies!!! Why don't you use the request object than? Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: change data between java-action and html-pages
On Sun, 15 Dec 2002, Christoph Stocker wrote: hi! what i have forgotten is, that i want to store information over muliple pages and i thougth i can use a bean for this data-storing. Than use the session. Giacomo greetings, chris -Ursprüngliche Nachricht- Von: giacomo@lapgp [mailto:giacomo@lapgp] Im Auftrag von Giacomo Pati Gesendet: Sonntag, 15. Dezember 2002 17:29 An: [EMAIL PROTECTED] Betreff: Re: change data between java-action and html-pages On Sun, 15 Dec 2002, Christoph Stocker wrote: hi! i have a java-action, which in every call say what's the next page and do some other data controlling. no i want to share the date, generated in my action, with my xsp-pages. whats the best way to share this date (in the session object?) is there another possibility, maybe a bean defined in the sitemap and can be filled in the action and read out in my xsp-pages. i don't want to use cookies!!! Why don't you use the request object than? Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help on rolling my own XSL
Do you have a copy-over template in your logicsheet like: xsl:template match=@*|*|text()|processing-instruction() xsl:copy xsl:apply-templates select=@*|*|text()|processing-instruction()/ /xsl:copy /xsl:template Giacomo On Mon, 30 Sep 2002, Jerry Fowler wrote: Gentlefolk: I'm using the off-the-shelf Cocoon 2.0.3. I'm trying to roll my own xsp logicsheet, with an error result that I hope someone will recognize instantly: The constructed file, results_test_xsp.java, contains empty package line, and an empty class declaration, as follows: package ; ... /** * Generated by XSP. Edit at your own risk, :-) */ public class extends XSPGenerator { My keen nose and the Java parser tell me that the program generator should have inserted a package name and a class name in order to make this code mean anything. My grateful salute to anyone who can say off the top of the head why the generator chose to shortchange me. Below I provide the relevant portions of my xsp and my logicsheet if the clue above does not immediately ring a bell. I believe I have faithfully followed the guidelines on /cocoon/documents/userdocs/xsp/logicsheet.html, to wit, File results-test.xsp: -- ?xml version=1.0? ?xml-logicsheet href=file:///tmp/xeosql.xsl? xsp:page xmlns:xsl=http://apache.org/xsl; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; document body xsl:call-template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / /xsl:call-template /body /document /xsp:page -- File xeosql.xsl: -- ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xspdoc:desc Deliver data directly from an AIDIF /xspdoc:desc xsl:param name=XSP-ENVIRONMENT/ xsl:param name=XSP-VERSION/ xsl:param name=filename/ xsl:param name=language/ xsl:variable name=environmentCocoon 2/xsl:variable xsl:variable name=xsp-namespace-urihttp://apache.org/xsp/xsl:variable xsl:variable name=prefixxeosql/xsl:variable xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:include.../xsp:include /xsp:structure xsl:apply-templates/ /xsp:page /xsl:template xsl:template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / xsp:logic ... /xsp:logic /xsl:template !-- Allows initialization code to be executed exactly once. -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet -- Many thanks, Jerry - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Livesites: no longer
On 20 Aug 2002, Andreas Kuckartz wrote: This site listed as the second entry under Live Sites powered by Apache Cocoon seems to be a Zope site (and has some technical problems): Sirvisetti UDDI Registrar WAP site http://www.sirvisetti.com/uddihtml/uddi Thanks for the pointer. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect/Rewrite Module
On Fri, 9 Aug 2002, Michael Wechner wrote: Hi I have a situation where I would like to do a lot of URI-redirects/rewrites. I know I can do this via the sitemap, but other people would be doing this. So for the reason of Separation of Concern I would like to separate this from the actual sitemap. My question is what are the possibilties to do something like that? -One way would probably be to have a separate sitemap dedicated to redirects, which is mounted by the actual sitemap. -Or to have the redirects in a separate file, which is pulled in by the actual sitemap as an external entity -Or to have an action/component, where every request is sent through and is acting as an redirect/rewrite module (and maybe calling Cocoon again!!) Any thoughts on this? What about redesigning your URI space? You know, I'm not a friend of redirects as they where made to keep old URIs still working if you had to restructure your site. It seems to me that people think redirection is a tool/pattern for web development. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use Xindice in Cocoon2?
On Wed, 17 Jul 2002, sheshadri wrote: check for XMLDBTransformer regards, shesh - Original Message - From: Ken C To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 10:49 AM Subject: How to use Xindice in Cocoon2? I have been reading through the mail archive and can't find up-to-date mails on 'using xindice in Cocoon'. As the user guide suggests, both XML:DB Generator and XML:DB Collection Generator are gonna be deprecated. I am wondering how cocoon can communicate with xindice and what protocol I shall be using for that purpose. And would it be the same protocol for use in xsp and in a sitemap, if possible? The way to use XML DBs it is by an URL like xmldb:xindice://host/collection/resource IIRC. Giacomo Thanks in advance. PS. A summary of the problem and its solution will be provided, as suggested by the Cocoon developers and its community. And sorry for my poor english if it doesn't present clearly. -- Do You Yahoo!? Yahoo! Autos - Get free new car price quotes - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: To Admin - Important/Urgent/Serious
If you are shure you have subscribed using that mail address try mailto:[EMAIL PROTECTED] Giacomo PS request for help is mailto:[EMAIL PROTECTED] On Tue, 16 Jul 2002, Suchandra Nag wrote: same here .. Please someone help me to unsubscribe from the list .. My email_id is [EMAIL PROTECTED] Thanks in advance Suchandra SB wrote: I unsubscribed from this mail list and still geting mails. Again, I sent mail to [EMAIL PROTECTED] didnt get any response, probably my email is not in their database. So I subscribed again, and unsubscribed today. and I got mails from cocoon-users today too. After I unsubscribe, my mails dont seem to reach the list(as I didnt get my mail), but I *do* get all your mails. *So* I subscribed again and writing this mail. Why isnt there an email list *[EMAIL PROTECTED] ? Can some kind soul help? --st. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Cocoon 2.0.3 Release
Congrats to all! Cool work. I see I've missed alot according to the huge list of changes. Giacomo On Mon, 15 Jul 2002, Carsten Ziegeler wrote: Apache Cocoon 2.0.3 Released snipped-rest/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Save output files
On Mon, 15 Jul 2002, Steven Noels wrote: Thomas Balthazar wrote: and i want to save the output (the html file) instead of simply viewing it with my browser. Can you please give me some clues. Cocoon offers a wonderful, if less-than-optimal documented command-line interface that crawls itself given a starting point URL. You can easily invoke this commandline interface using Ant or from a little batch file. If you want an example of this, check the 'build docs' target that comes with Cocoon, or have a look at Forrest which does the same thing. I don't immediately recall some location documenting all of its commandline option, as always there is the source code as a reference: sh ./run.sh --help Actually because of the automatic JVM recognition change recently the excalibur jars are not detected correctly in that script. You'll need to have a CLASSPATH setup that contains the appropriate jar (lib/core/jvmXXX/avalon-excalibur-vmXX-20020705.jar) Giacomo http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-cocoon2/src/java/org/apache/cocoon/Main.java?rev=HEADcontent-type=text/plain An example Ant target which invokes this behaviour, copied from Forrest build.xml: java classname=org.apache.cocoon.Main fork=true dir=${dir.containing.docs} failonerror=true arg value=-c./ arg value=-d../docs/ arg value=-w../work/ arg value=-l../work/cocoon.log/ arg value=-u${centipede.tools.cents.forrest.loglevel}/ arg value=index.html/ classpath path refid=classpath/ fileset dir=${build.dir} include name=*.jar/ /fileset fileset dir=${tools.dir} include name=*/lib/*.jar/ /fileset pathelement location=${tools.jar}/ pathelement location=${build.context}/WEB-INF/classes/ /classpath /java or check http://xml.apache.org/forrest/ HTH, /Steven - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looking for help in the upcomming release
On Fri, 12 Jul 2002, Carsten Ziegeler wrote: Just an update to the procedure: If you use the latest CVS step 3 - setting the targetted jvm - is done now automatically by the build system. It detects the compiler version you use and chooses by itself the correct target. So, everything is getting easier. Nice work, Carsten. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adapter to DocumentHandler - ContentHandler
On Wed, 26 Jun 2002, Argyn Kuketayev wrote: I want to write a serializer for one 3rd party component. It uses old SAX parser. I wanted to subclass AbstractXMLPipe, but it wants ContentHandler, while I can get only DocumentHandler. The question is: does anybody know about wrapper/adapter for DocumentHandler to make it look like a ContentHandler? Have a look at org.apache.cocoon.xml.DocumentHandlerAdapter. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Announcement] Web3 - SAP R/3 connection components
On Mon, 15 Apr 2002, Michael Gerzabek wrote: Hi Cocoon'ers! We have finished our connectivity toolkit Web3 that seamlessly integrates Cocoon 2 and multiple SAP(TM) R/3(R) backend systems via the SAP(TM) standard software library Java Connector(R). This portion of software enables the use of SAP(TM) remote function calls via the open xml publishing framework Cocoon 2. The core package of Web3 consist of a few classes that follow the avalon programming style. The functionality is accomplished by a Transformer. To get this working you will need the SAP Java Connector (www.sap.com). If the community is interested in Web3, we would be proud to donate the core package to you. To do so we will need some days to finish documentation and examples. Sounds great: Cocoon integrates SAP as well :) Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused about Logging
Quoting Jörn Heid [EMAIL PROTECTED]: [Using Cocoon 2.0.2 in Jetty 4.0.0 on Win 2000 with JDK 1.4] I have changed all log-level attributes in logkit.xconf and web.xml to FATAL-ERROR but every debug message is printed out into the four log files and on stdout. Is this a problem of 2.0.2 or Jetty? How can I generally turn out -ALL- messages? You have indeed choosen the right approach to eliminate DEBUG,INFO,WARN and ERROR message from cocoon. My system (Tomcat 4.0.1 and Cocoon pre 2.0.1-dev) *will* report FATAL_ERRORs only that way. Giacomo JOERN - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This mail sent through IMP: http://horde.org/imp/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: working with mod_rewrite
On Thu, 4 Apr 2002, Michael Wechner wrote: Did you try mod_proxy? You will find some notes at http://www.wyona.org/docs/wyona-cms-docs/integrator-guide/virtual-server/proxy-apache.html We had some issues with ProxyPass (I don't remember right now what it was) and used both like this: RewriteRule ^/cocoon/(.*)$ http://cocoonhost:8080/cocoon/$1 [P,L] ProxyPassReverse /cocoon/ http://cocoonhost:8080/cocoon/ Giacomo All the best Michael Liam Morley wrote: I read up on working with mod_rewrite in the Cocoon FAQ, and I'm having a bit of a hard time getting mod_rewrite to cooperate with my sessions. I've got the following in my Apache httpd.conf: RewriteEngine On RewriteLog E:/rewrite.log RewriteLogLevel 3 RewriteRule /cms/(.*) /cocoon/cms/$1 [PT] Each time the page is visited, a new session ID is created. After checking the logs, I noticed that the JSESSIONID isn't getting passed when using mod_rewrite. Here's an excerpt from the log without using mod_rewrite: PARAM: 'cookie' VALUES: '[JSESSIONID=A897E11152D430961782D5C9D9E67211; CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]' PARAM: 'connection' VALUES: '[Keep-Alive]' PARAM: 'accept-encoding' VALUES: '[gzip, deflate]' PARAM: 'referer' VALUES: '[http://localhost/cocoon/cms/info/mission.html]' PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*]' PARAM: 'accept-language' VALUES: '[en-us]' PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)]' PARAM: 'host' VALUES: '[localhost]' And here's what happens when I use mod_rewrite: PARAM: 'cookie' VALUES: '[CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]' PARAM: 'connection' VALUES: '[Keep-Alive]' PARAM: 'accept-encoding' VALUES: '[gzip, deflate]' PARAM: 'referer' VALUES: '[http://localhost/cms/news/news_story_1.html]' PARAM: 'accept' VALUES: '[*/*]' PARAM: 'accept-language' VALUES: '[en-us]' PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)]' PARAM: 'host' VALUES: '[localhost]' As you can tell, there's no JSESSIONID when I use mod_rewrite.. also, the 'accept' parameter is different. If anybody can help me, I'd greatly appreciate it. Thanks:) Liam Morley - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why isn't Cocoon making into the commerical world?
On Wed, 3 Apr 2002, Artur Bialecki wrote: Cocoon is making into comertial world. My company uses it for all iterfaces to our sizable product (over 1000 XSPs). We started with 1.7.4 and moved to 1.8.1 and now I'm trying to move to 2.0.2 (I hope performance will be better). Where Coccon is lacking is documentation, documentation, and documentation. I find that whenever I'm looking for something 5% of the time I find it in Cocoon docs, 40% of the time I find it from the mailing list archives (I wish I could use deja.com for my searches) and rest of the time is code surfing. :) You are very welcome to contribute some docs if you have some written for customers or your companies internal usage. Giacomo Also some push into comertial J2EE providers should be made. iPlanet App Server included cacoon in one of it's version but I think the new one (6.5) will come with Struts. Anyways, it's a great engine I just wish I could spend less time looking and more time developing. Artur... -Original Message- From: Steven Punte [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: Why isn't Cocoon making into the commerical world? Dear Cocoon User Group: First of all, I LOVE the Cocoon framework, I'm a total believer, and expecially love how Cocoon2 is turning out! Cocoon seems just awesomely powerfully, years ahead of the classical architectures proposed by Sun (i.e. JSP to ServletBeans to EJBs...). But how come there is NO (i.e. ABSOLUTELY NO) demand for Cocoon expertise in the US market? Type in key word java and retrieve 3500 hits on www.dice.com. Type in key word cocoon and get ZERO! Is it all just a dream? Steve PS: No need to reply if your commerical project is using it: congradulation. But the bigger picture is my question. __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards. http://movies.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and Jetty
On Fri, 1 Mar 2002, Brad Cox wrote: Dear Brad After wasting this whole week trying to get Cocoon out of the box with not one suggestions from cocoon developers, I'm beginning to get the message. Maybe you missed the reply from Vadim. He *is* a cocoon developer. I think you've had alot of suggestions how to solve your problem from the community here and I don't see why you have to put your frustration out into this community. If the suggestions doesn't helped you out is not our fault IMO and maybe Jetty isn't used here very much so we might lack specific knowledge . If we had to publish 'success stories' the mail traffic on this list would sure be exhausting. Sure, I'd like you to be able to play with Cocoon and that you've used Tomcat 4.0.2 (which gave some problems with Cocoon as well) was mentioned in an other thread on this list. Finally my suggestion to you would be try it on another servlet engine as my experience is that is usually *does* run out of the box following the installation guidlines from the documents. Cheers Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: valid value type of action fields?
On Fri, 1 Mar 2002, marco wrote: Hava a look at http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/AbstractDatabaseAction.html Giacomo Does anyone know all the valid value of the type property of the following tags? Which type should used agaisnt the data type of MySQL columns? employee connectionpersonnel/connection table name=employee_table keys key param=employee dbcol=id type=int mode=manual/ /keys values value param=name dbcol=name type=string/ value param=department dbcol=department_id type=int/ /values /table /employee - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: controlling cocoon cache per pipeline?
On Tue, 12 Feb 2002, giacomo wrote: On Tue, 12 Feb 2002, Tsui, Alban wrote: Well ... I want to cahce the generated Jpegs files rather than caching the pipeline. Is this the same problem? Sorry, I've overseen the word generated infront of Jpegs. For generated stuff (which has a pipeline) it's all the same mechanisms. Giacomo No you'll probably use a reader for Jpegs and readers can be configured to tell the browser about exiration times: map:read src=foo.jpg expires100/expires /map:read Giacomo -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 13:58 To: [EMAIL PROTECTED] Subject: RE: controlling cocoon cache per pipeline? On Tue, 12 Feb 2002, Vadim Gritsenko wrote: From: Tsui, Alban [mailto:[EMAIL PROTECTED]] I have a pipeline in sitemap for generating svg graphics. Everytime a user accesses it, it gets called but is there anyway to cache the grpahics so that next time, a cached-file gets sent instead of going through the xsp, transform, serializer steps to generate a new one? Pipeline is cached automatically when every step in the pipeline can be cached. Read: When every step in the pipeline can be cached. As you mentioned XSP (which are not cachable by default) I suggest adding a generateKey method to your XSP (there are cocoon samples for it in src/webapp/docs/samples/xsp/cacheable.xsp). Giacomo Or can we generate those files dynamically and get them written to the disc while serving the image when the pipeline first gets called, then we can retrieve the file into the piple line next time it is called? Hope I am clear on my question! Yes, you can come up with something like this, but why if Cocoon already caches all the pipelines automatically (see above)? Also is it possible to set up a pipeline so that when it is called, cocoon will clear certain cache from the disc/memory? I might need to do that once per day if I can cache those images... This is also done automatically as soon as pipeline is requested and it's content has been changed. Vadim I am using the latest release of Cocoon 2.0.1 running on Tomcat 4.0.1. Regards Alban This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: controlling cocoon cache per pipeline?
On Tue, 12 Feb 2002, Tsui, Alban wrote: So do you mean that I can wrap my pipeline into map:read src=foo.jpg ... my pipeline ... expires100/expires /map:read ?? No, definitively not! The sample above was meant to be used for already generated *.pgj laying around on the server side. Giacomo My url is someting like ... cocoon/graphics/gengraph?value=10point=5 for generating svg and then serialised as jpegs. Or do you mean I can stick an expires into my pipeline? Does that mean the pipeline will check if the input url is the same, ... if it is not the same then... it will run and it is the same and it hasn't expired, it will generate it again? Is there any documenation of expires? -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 14:22 To: [EMAIL PROTECTED] Subject: RE: controlling cocoon cache per pipeline? On Tue, 12 Feb 2002, giacomo wrote: On Tue, 12 Feb 2002, Tsui, Alban wrote: Well ... I want to cahce the generated Jpegs files rather than caching the pipeline. Is this the same problem? Sorry, I've overseen the word generated infront of Jpegs. For generated stuff (which has a pipeline) it's all the same mechanisms. Giacomo No you'll probably use a reader for Jpegs and readers can be configured to tell the browser about exiration times: map:read src=foo.jpg expires100/expires /map:read Giacomo -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 13:58 To: [EMAIL PROTECTED] Subject: RE: controlling cocoon cache per pipeline? On Tue, 12 Feb 2002, Vadim Gritsenko wrote: From: Tsui, Alban [mailto:[EMAIL PROTECTED]] I have a pipeline in sitemap for generating svg graphics. Everytime a user accesses it, it gets called but is there anyway to cache the grpahics so that next time, a cached-file gets sent instead of going through the xsp, transform, serializer steps to generate a new one? Pipeline is cached automatically when every step in the pipeline can be cached. Read: When every step in the pipeline can be cached. As you mentioned XSP (which are not cachable by default) I suggest adding a generateKey method to your XSP (there are cocoon samples for it in src/webapp/docs/samples/xsp/cacheable.xsp). Giacomo Or can we generate those files dynamically and get them written to the disc while serving the image when the pipeline first gets called, then we can retrieve the file into the piple line next time it is called? Hope I am clear on my question! Yes, you can come up with something like this, but why if Cocoon already caches all the pipelines automatically (see above)? Also is it possible to set up a pipeline so that when it is called, cocoon will clear certain cache from the disc/memory? I might need to do that once per day if I can cache those images... This is also done automatically as soon as pipeline is requested and it's content has been changed. Vadim I am using the latest release of Cocoon 2.0.1 running on Tomcat 4.0.1. Regards Alban This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly
RE: controlling cocoon cache per pipeline?
On Tue, 12 Feb 2002, giacomo wrote: On Tue, 12 Feb 2002, Tsui, Alban wrote: So do you mean that I can wrap my pipeline into map:read src=foo.jpg ... my pipeline ... expires100/expires /map:read ?? No, definitively not! The sample above was meant to be used for already generated *.pgj laying around on the server side. ^ Grumpf... *.jpg Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question::Redundant logging...
On Mon, 11 Feb 2002, Ugo Cei wrote: giacomo wrote: !-- add this line -- category name=store.janitor log-level=ERROR/ Shouldn't it be store-janitor instead? This is how DEBUG messages are tagged in my logs (using C2.0.1). Oh, yes, sorry, your version is the correct one. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question::Redundant logging...
On Sun, 10 Feb 2002, Stephen Clarke wrote: Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Change the logkit.xconf file to: ... categories category name=core log-level=DEBUG log-target id-ref=core/ log-target id-ref=error/ !-- add this line -- category name=store.janitor log-level=ERROR/ /category ... to get rid of those messages. Giacomo Grateful for any pointers on how to stop this logging behavior, or whatever it is. -- Best, Stephen Clarke - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: c2: broken pipe
On Fri, 8 Feb 2002, Vadim Gritsenko wrote: From: Hans-Guenter Stein [mailto:[EMAIL PROTECTED]] Any help? In my c2 setup with tomcat 3.3, when several request are to be processed simultaniously, I get the following exception: ERROR (2002-02-08) 18:49.35:583 [access] (/standard.xml) Thread-39/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException: Broken pipe Never seen this. Usually Broken pipe happens when the client kills the connection (hit the stop button on your browser) Giacomo at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingStr eamPipeline.java:370) What's in this file, in this line and around? Vadim snip/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: c2: broken pipe
On Sat, 9 Feb 2002, Vadim Gritsenko wrote: From: giacomo [mailto:[EMAIL PROTECTED]] On Fri, 8 Feb 2002, Vadim Gritsenko wrote: From: Hans-Guenter Stein [mailto:[EMAIL PROTECTED]] Any help? In my c2 setup with tomcat 3.3, when several request are to be processed simultaniously, I get the following exception: ERROR (2002-02-08) 18:49.35:583 [access] (/standard.xml) Thread-39/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException: Broken pipe Never seen this. Usually Broken pipe happens when the client kills the connection (hit the stop button on your browser) I'm getting java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer: socket write error And I'm not getting that. My Cocoon runs on a Linux box. Giacomo in such situations :-/ Is it Win/Unix difference? Vadim Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plaudits and dumb questions...
On Sun, 30 Dec 2001, Stephen Clarke wrote: Hi, I've just discovered the joys of Cocoon. Installation of both Cocoon 2 and Tomcat 4 on Win95 went remarkably smoothly despite my trepidation. The only problem I recall is running out of environment space when running the batches. I had to make a shortcut to the batches and control the environment space through the shortcut properties. Now I've got some really dumb questions which you are free to ignore. I won't be this stupid for long. I've got as far as serving up my own XML/XSLT combo. Fantastic. Now, 1. How do I serve a static HTML file, ie. what do I have to put in sitemap? Use a Reader (see sample sitemap). 2. What reason is there not to abandon Apache httpd altogether and simply assign Cocoon to port 80 and serve everything from there. (Suspect 1 and 2 may be connected ). Running Tomcat on port 80 requires root privileges (at least on unix and alike OS). This is essential on production system. Apache httpd has been developed to run on port 80 and to take care of security issues. 3. How do I serve my PHP files through Cocoon? I notice there is a PHPGenerator in the libraries. But what do I put in the sitemap. What about CGI / Perl ? Any chance of that? I've never used that one. Sorry, can't help you out. 4. Upon whom do I pour my plaudits for this wonderful institution, cocoon. To all who have helped making it :) Giacomo regards, Stephen Clarke - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp while - for loop
Quoting Johannes Schwarz [EMAIL PROTECTED]: My xsp - file compiles without any problems. But as soon as I put a while or a for loop inside the method or inside the xsp:logic - tag within the tag NAVIGATION my xsp file won't compile anymore. It seems that it's going into an infinite loop. Did anybody else have that problem or at least a solution? Best regards J. Schwarz ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:structure xsp:includejava.util.*/xsp:include xsp:includejava.io.*/xsp:include /xsp:structure xsp:logic String fileName=; public File getFileName() { fileName = parameters.getParameter(fileName,unknown); File back=null; try { back=new File(fileName); } catch (Exception e) { e.printStackTrace(); } return back; } /xsp:logic NAVIGATION xsp:logic for (int i=0;i5;i++) ^^^ Try using for (int i=0;i lt; 5;i++) as although it looks like java it is handled like xml and thus you have to use entities for , and . Giacomo ; //dosomething /xsp:logic /NAVIGATION /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applying custom style sheets before logicsheets [HELP!]
On Sun, 16 Dec 2001, Wolfram Eisert wrote: The right approach to this problem is to restructure the testdb.xsl as a logicsheet and register it in the cocoon.xconf file. Giacomo Hi, you can first build your xsp in a seperate pipeline and use this result as a source for your serverpages-processing. Example: map:pipeline internal-only=true map:match pattern=build_xsp map:generate src=build_xsp_src.xml/ map:transform src=build_xsp_transform.xsl/ map:serialize type=xml/ /map:match /map:pipeline map:pipeline map:match pattern=test.xml map:generate type=serverpages src=cocoon:/build_xsp/ map:transform src=xsp_transform.xsl/ map:serialize type=html/ /map:match /map:pipeline Hope this helps! Wolfram -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 15. Dezember 2001 21:35 An: [EMAIL PROTECTED] Betreff: Applying custom style sheets before logicsheets [HELP!] Hi, This question may seem very simple, but bear with me as I am quite new to cocoon. I am using Cocoon 2. I have an XSP page [testdb.xsp], and want to pass this through a stylesheet [testdb.xsl], then apply the built-in cocoon 2 logic sheets [particularly the esql], apply a xml to html stylesheet and then serialize as html. What do I have to do to make this work? I have started by placing using esql from the testdb.xsp directly - this works as expected. Trouble is, I want the SQL queries to be generated by the testdb.xsl stylesheet, so removing the esql from testdb.xsp and making the testdb.xsl generate them instead does not execute them - they stay as esql:... even in the outputted html. I have tried many things, such as adding/removing the esql namespace from the start of the original xsp document, the xsp generated from testdb.xsl, etc, the files below are what are known to not work. I think it is just something very simple that I am missing... Here is the relevant part of the sitemap: map:match pattern=testdb map:generate type=serverpages src=testdb.xsp/ map:transform src=testdb.xsl/ map:transform src=table.xsl/ map:transform src=stylesheets/dynamic-page2html.xsl/ map:serialize/ /map:match testdb.xsl: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsp=http://apache.org/xsp; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xsl:template match=/ xsp:page xsl:apply-templates/ /xsp:page /xsl:template xsl:template match=data-display esql:connection esql:poolpersonnel/esql:pool esql:execute-query xsl:apply-templates select=query/ xsl:apply-templates select=display/ /esql:execute-query /esql:connection /xsl:template xsl:template match=query esql:query xsl:value-of select=./ /esql:query /xsl:template xsl:template match=display esql:results xsl:apply-templates/ /esql:results /xsl:template xsl:template match=display-table br/ table header xsl:for-each select=column cell text xsl:value-of select=title/ /text /cell /xsl:for-each /header !-- header finished, now the data -- body esql:row-results row xsl:for-each select=column cell !-- make a reference to the action here -- action xsl:value-of select=action/@name/ xsl:value-of select=action/@key/ /action text xsl:value-of select=data/@source/ xsl:value-of select=text/ /text /cell /xsl:for-each /row /esql:row-results /body /table /xsl:template xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template /xsl:stylesheet testdb.xsp: ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; page titleTest/title data-display querySELECT uid, userid, password FROM users/query display display-table column titleUsername/title data source=userid/ /column column titlePassword/title action name=view key=uid/ data source=password/ /column column title/title action name=delete key=uid/ textdelete/text /column /display-table /display /data
Re: Cocoon2 and FOP
On Sun, 25 Nov 2001, Mark S. Kent wrote: Sorry if this is off-topic, but I didn't see an FOP User list, just a Developer one, so let me know if I need to ask this question over there. Is there a command in Apache's FOP to rotate the page by 90 degrees to get a landscape orientation for PDF? I have an output file that reads from a database to get a list of types that are created by the client. I then use that count of types to create a loop of how many columns I should draw (I haven't actually written the code yet -- I'm making assumptions that will work with fo: commands). So, there could be more types creating columns in my table that would cause the columns to scroll off of the page and not be seen. Normally you only have to dimension your page according to landscape (width and height) and there you are. Giacomo Is the width parameters in FO/PDF required to be hardcoded? Otherwise, I plan on using a calculated number based on known first column widths plus product of the type count and a fixed column value for each type column. Mark - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Look-and-feel approach with views
On Mon, 26 Nov 2001, Alexander Smirnoff wrote: I'm using 2.0rc1, but even if I put label=xsltran into generator... declaration this doesnt work either... I feel that I misundersatnd the concept. It seems, for example, in webapp sitemap.xconf (in HEAD branch) the view declaration like: map:view name=links from-position=last map:serialize type=links/ /map:view never executes... Otherwise it supposed to be executed for every pipline after last component in pipline... So I'm really confused... If you don't request that view it will never be executed :) use a http://localhost:8080/cocoon/welcome?cocoon-view=links and you'll get all the links in the welcome page as response. Giacomo Thanks, Alex. On Fri, 23 Nov 2001, Alexander Smirnoff wrote: Hi everyone, I'm trying to use Views for setting look and feel based on specific user logged on the web site. So far I cannot even make very basic view working: map:views map:view from-label=xsltran name=xsltran map:transform src=stylesheets/xsl/welcome.xsl/ map:serialize/ /map:view /map:views map:pipelines map:pipeline map:match pattern=site/* ... map:match pattern=site/workframe map:label name=xsltran map:generate src=content/xml/welcome.xml/ /map:label map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match ... /map:match /map:pipeline map:pipelines What version are you using? In the current 2.0 and HEAD branches of the CVS there isn't a map:label anymore. So you need to specify it this way: map:match pattern=site/workframe map:generate src=content/xml/welcome.xml labelxsltran/ map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match Giacomo this falls through welcome1.xsl, but not through welcome.xsl which suppose to be called from the xsltran view... What is my mistake? Thanks, Alexander Smirnoff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Look-and-feel approach with views
On Mon, 26 Nov 2001, Alexander Smirnoff wrote: OK. I've got it. Well, is it possible to trigger the view from inside sitemap? What about Passing parameters? I think the idea of breaking pipeline and continuing it from another resource-like pipeline (view) from labeled predefined point is very powerful. Imagine having the same long chain of transformations through group or even all of pipelines in the sitemap! From my point of view it makes sitemap more unreadable. From the other side, if you have some resource-like view which could be processed from any pipeline and being returned to the point of entry will make readability of sitemap more easy... Something like that: !-- declaration -- map:chain name=look-feel !-- action get-user-skin :-) defines path to the source of the skin -- map:act type=get-user-skin map:transform src={srcpath}/{src}/ /map:act map:transform src=default/{src}/ /map:chain !-- from pipline -- map:match pattern=... map:generate src=welcome.xml/ map:call-chain name=look-feel map:parameter name=src value=welcome.xsl/ /map:call-chain map:serialize/ /map:match This is just a random thought. Sorry for being naive if this is the case...Probably there are some workaround which I don't know, - I'll be glad to comprehend. I can't see what your approach is good for. Views aren't made for skinning. They are for producing view in the sense of schema, meta data, links etc. but not for green or red. If you like to use it that way, yes, your sitemap might look ugly then. Your proposed enhancement is only giving another programmers view into the sitemap which isn't what we initially wanted and is what we like to get fixed in the future. Giacomo Thanks, Alex. - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 26, 2001 2:46 PM Subject: Re: Look-and-feel approach with views On Mon, 26 Nov 2001, Alexander Smirnoff wrote: I'm using 2.0rc1, but even if I put label=xsltran into generator... declaration this doesnt work either... I feel that I misundersatnd the concept. It seems, for example, in webapp sitemap.xconf (in HEAD branch) the view declaration like: map:view name=links from-position=last map:serialize type=links/ /map:view never executes... Otherwise it supposed to be executed for every pipline after last component in pipline... So I'm really confused... If you don't request that view it will never be executed :) use a http://localhost:8080/cocoon/welcome?cocoon-view=links and you'll get all the links in the welcome page as response. Giacomo Thanks, Alex. On Fri, 23 Nov 2001, Alexander Smirnoff wrote: Hi everyone, I'm trying to use Views for setting look and feel based on specific user logged on the web site. So far I cannot even make very basic view working: map:views map:view from-label=xsltran name=xsltran map:transform src=stylesheets/xsl/welcome.xsl/ map:serialize/ /map:view /map:views map:pipelines map:pipeline map:match pattern=site/* ... map:match pattern=site/workframe map:label name=xsltran map:generate src=content/xml/welcome.xml/ /map:label map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match ... /map:match /map:pipeline map:pipelines What version are you using? In the current 2.0 and HEAD branches of the CVS there isn't a map:label anymore. So you need to specify it this way: map:match pattern=site/workframe map:generate src=content/xml/welcome.xml labelxsltran/ map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match Giacomo this falls through welcome1.xsl, but not through welcome.xsl which suppose to be called from the xsltran view... What is my mistake? Thanks, Alexander Smirnoff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html
Re: My stupid question No.23
On Tue, 27 Nov 2001, Alex Kachanov wrote: Is it possible to merge somehow the stylesheets in C2? The samples xsp that comes with Cocoon does exatly this. Have a look into it. Giacomo I have several stylesheets for different types of devices/browsers. Those stylesheets have some common parts. Is it possible to keep those common part just in a sinlge stylesheet (so I would need to make changes to this stylesheet only) and merge this common stylesheet with other device specific stylesheets? Probably, C2 has such functionality, could you give me a hint? with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Look-and-feel approach with views
On Mon, 26 Nov 2001, Alexander Smirnoff wrote: OK. Then how could I implement dynamically look-and-feel based on user credentials (customer-id, user_id) ? I see only one possible way: inserting action for each XSL transformation in each pipeline... That approach makes sitemap look even more ugly... I don't get what you want to achieve. Can you give a sample? Giacomo Comments are follows, Alex. - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 26, 2001 5:50 PM Subject: Re: Look-and-feel approach with views On Mon, 26 Nov 2001, Alexander Smirnoff wrote: OK. I've got it. Well, is it possible to trigger the view from inside sitemap? What about Passing parameters? I think the idea of breaking pipeline and continuing it from another resource-like pipeline (view) from labeled predefined point is very powerful. Imagine having the same long chain of transformations through group or even all of pipelines in the sitemap! From my point of view it makes sitemap more unreadable. From the other side, if you have some resource-like view which could be processed from any pipeline and being returned to the point of entry will make readability of sitemap more easy... Something like that: !-- declaration -- map:chain name=look-feel !-- action get-user-skin :-) defines path to the source of the skin -- map:act type=get-user-skin map:transform src={srcpath}/{src}/ /map:act map:transform src=default/{src}/ /map:chain !-- from pipline -- map:match pattern=... map:generate src=welcome.xml/ map:call-chain name=look-feel map:parameter name=src value=welcome.xsl/ /map:call-chain map:serialize/ /map:match This is just a random thought. Sorry for being naive if this is the case...Probably there are some workaround which I don't know, - I'll be glad to comprehend. I can't see what your approach is good for. Views aren't made for skinning. They are for producing view in the sense of schema, meta data, links etc. but not for green or red. If you like to use it that way, yes, your sitemap might look ugly then. So what would be more elegant approach ? Use actions in each transformation point in sitemap? Your proposed enhancement is only giving another programmers view into the sitemap which isn't what we initially wanted and is what we like to get fixed in the future. The only proposition I made is to manipulate sitemap in orthogonal fashion like views do. Why not? I do understand... What are the tradeoffs? Giacomo Thanks, Alex. - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 26, 2001 2:46 PM Subject: Re: Look-and-feel approach with views On Mon, 26 Nov 2001, Alexander Smirnoff wrote: I'm using 2.0rc1, but even if I put label=xsltran into generator... declaration this doesnt work either... I feel that I misundersatnd the concept. It seems, for example, in webapp sitemap.xconf (in HEAD branch) the view declaration like: map:view name=links from-position=last map:serialize type=links/ /map:view never executes... Otherwise it supposed to be executed for every pipline after last component in pipline... So I'm really confused... If you don't request that view it will never be executed :) use a http://localhost:8080/cocoon/welcome?cocoon-view=links and you'll get all the links in the welcome page as response. Giacomo Thanks, Alex. On Fri, 23 Nov 2001, Alexander Smirnoff wrote: Hi everyone, I'm trying to use Views for setting look and feel based on specific user logged on the web site. So far I cannot even make very basic view working: map:views map:view from-label=xsltran name=xsltran map:transform src=stylesheets/xsl/welcome.xsl/ map:serialize/ /map:view /map:views map:pipelines map:pipeline map:match pattern=site/* ... map:match pattern=site/workframe map:label name=xsltran map:generate src=content/xml/welcome.xml/ /map:label map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match ... /map:match /map:pipeline map:pipelines What version are you using? In the current 2.0 and HEAD branches of the CVS
Re: Look-and-feel approach with views
On Fri, 23 Nov 2001, Alexander Smirnoff wrote: Hi everyone, I'm trying to use Views for setting look and feel based on specific user logged on the web site. So far I cannot even make very basic view working: map:views map:view from-label=xsltran name=xsltran map:transform src=stylesheets/xsl/welcome.xsl/ map:serialize/ /map:view /map:views map:pipelines map:pipeline map:match pattern=site/* ... map:match pattern=site/workframe map:label name=xsltran map:generate src=content/xml/welcome.xml/ /map:label map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match ... /map:match /map:pipeline map:pipelines What version are you using? In the current 2.0 and HEAD branches of the CVS there isn't a map:label anymore. So you need to specify it this way: map:match pattern=site/workframe map:generate src=content/xml/welcome.xml labelxsltran/ map:transform src=stylesheets/xsl/welcome1.xsl/ map:serialize/ /map:match Giacomo this falls through welcome1.xsl, but not through welcome.xsl which suppose to be called from the xsltran view... What is my mistake? Thanks, Alexander Smirnoff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon1 Jserv (?)
On Thu, 22 Nov 2001, Tomas Espeleta wrote: Hi to everybody! A little question: *** Is there any way to install Coccon2 with Apache-Jserv ? No, you name the reason yourself below. Is really hard for me upgrading to Tomcat now (Is a preconfigured production enviroment), so now I'm using Cocoon1 with Jserv... I'm very interested to new features (most of all sitemap and serializing) of [C2]. What I'm searching for is a workaround... (?) I read from respective sites: Jserv: Apache JServ requires exactly the 2.0 version of the JSDK Cocoon2: A Servlet 2.2 compliant servlet engine must be present in order to support servlet operation and dynamic request handling *** May Cocoon2 work with Servlet API 2.0? No. Cocoon 2 (used as a Servlet) uses this new API and had stated so since its beginning. Alternatively, (even though this shouldn't be a question for this list) *** Is there any way to make Jserv Tomcat coexist under the same Apache installation? I don't see why it shouldn't work. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design: a more dynamic sitemap ?
On Thu, 22 Nov 2001, Luca Morandini wrote: Folks, I think Cocoon is terrific for web publishing, and that the sitemap concept is just brilliant. Thanks. But, for more complex web applications, I think the current sitemap concept falls short. This is already recognized and random thoughts about how this can be solved are issued discussed on the cocoon-dev list. Giacomo What I would like is a sitemap which responds to SAX events and, generally, is more dynamic. Just imagine a SAX event modifying a sitemap parameter in order to redirect the flow... wouldn't it be great ? Since I don't know whether this issue is really felt amongst Cocoon users and developers, may someone let me know his thought and/or whether this issue has surfaced amongst the Cocoon developers ? Best regards, P.S. In order to clarify my thoughts, you may look at the thread Sitemap parameters set by Transformer posted about 10 ten days ago. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: freshmeat project listing for Cocoon] (fwd)
On Wed, 21 Nov 2001, Davanum Srinivas wrote: Team, Am getting rid of cocoon2 entry, so please go to http://freshmeat.net/projects/cocoon/ and vote for it. Already done :) Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap Substitution Vars
On Sun, 18 Nov 2001, Stan Hughes wrote: I know it is possible to have one substitution variable for a matched pattern as in the following: map:match pattern=faq/* map:generate src=faq/{1}.xsp/ ... /map:match But, is it possible to have more than one, i.e., {1},{2},{3} ... Nothing I have tried works. Look into the sample sitemaps. There a lots of them. Giacomo Thanks in advance, Stan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2: xsl:message
On Wed, 14 Nov 2001, Mark S. Kent wrote: I just tried using xsl:message in Cocoon2 and got a hard-failure screen. Per the XSLT spec, isn't the message entered supposed to display in the browser or something? Tried this: xsl:message terminate=yes xsl:textError occurred - check your data!/xsl:text /xsl:message should be xsl:message terminate=yes Error occurred - check your data! /xsl:message Giacomo But got the big blue nasty Cocoon2 error screen as a result and this message did not appear. xsl:message is supposed to output a message and optionally terminate the execution of a stylesheet. All I see in the log is: /ServerPagesGenerator: Exception in ServerPagesGenerator.generate() java.lang.RuntimeException: Stylesheet directed termination Mark - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Sitemap variables?
On Wed, 14 Nov 2001, David Rosenstrauch wrote: Also, is it just me or is the flow control in sitemaps really weak? You have 1 option for flow control: returning a Map from an action. Flow control is decided on whether the map returned from the action is null. If it's null then the code within is skipped; if it's not null then it's executed. Seems very limiting to me though. What if you want to return data back to the sitemap regardless (e.g., success message if success; error message if error)? You can't. If you return a message for both success and failure, then the ability to do flow control is lost. The basic problem is that the Map returned from the action is the only way to return data to the sitemap. But using it for flow control too really makes things difficult. What if you want more fine-grained flow control? (e.g., if x do a; if y do b; if z do c). Doesn't seem to be any way to do it. Agree/disagree? Yes, this has been recognized and discussion about it are still going on on the dev list. If you're interested have a look there and help us out. Giacomo DR Date: Wed, 14 Nov 2001 14:24:28 -0500 To: [EMAIL PROTECTED] From: David Rosenstrauch [EMAIL PROTECTED] Subject: Sitemap variables? X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is it possible to set variables in the sitemap (i.e., similar to xsl:variable)? I find myself passing the same map:paramaters in different places in the map over and over again and would like to centralize this in one place. If not a map:variable, is it possible to set a map:parameter at the top of the sitemap that applies globally? Bonus question: is there other functionality that can be utilitzed in the map besides that described in the docs (e.g., map:generate, map:serialize, etc.) i.e., adding in additional code like as in xsp:logic, or calling external taglibs? Thanks, DR - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2: xsl:message
On Thu, 15 Nov 2001, Jörg Heinicke wrote: I just tried using xsl:message in Cocoon2 and got a hard-failure screen. Per the XSLT spec, isn't the message entered supposed to display in the browser or something? Tried this: xsl:message terminate=yes xsl:textError occurred - check your data!/xsl:text /xsl:message should be xsl:message terminate=yes Error occurred - check your data! /xsl:message Giacomo That makes no difference, Giacomo. I think, here is only a problem of understanding, how xsl:message works. You will never see a message (from xsl:message) in the output-tree, so with Cocoon on the client's screen. This messages are for the backend. So you will find the messages in the logfiles as exceptions 'stylesheet directed termination'. That's correct. Since Cocoon 2 has more than one logfile, you have to look not only at cocoon.log, but at components.log too. And there is written your error-message - with or without xsl:text, this only differs in whitespace-handling, so using xsl:text is more correct. Even a complex error-message using other xsl-statements is possible. Thanks for enlighting me :) Giacomo Regards, Joerg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do not understand Cocoon2 documentation
On Wed, 14 Nov 2001, Doug wrote: I am still having problems getting a remote directory to work with Cocoon2. I am wondering if it is because I am using Tomcat 4.01 with Cocoon2 which the documentation says will not work. Here's the section: Tomcat 4.0 versions prior to beta7 do not expose the servlet.jar file to Apache Cocoon by default, so if you use any Tomcat 4.0 versions released earlier than beta7, before you build the Apache Cocoon webapp you will need to add the following to the Apache Cocoon servlet definition in the web.xml file: init-param !-- change param value to path to Catalina's servlet.jar -- param-nameextra-classpath/param-name param-valuepath\to\tomcat\common\lib\servlet.jar/param-value /init-param I am willing to try anything, but can someone please explain what is meant by param-valuepath\to\tomcat\common\lib\servlet.jar/param-value?? I am using Windows98, so would the element be param-valueC:\Apache Tomact 4.01\common\lib\servlet.jar/param-value?? You're on the right track :) Sorry, I'm not able to determine your problem (probably 'cause I have not followed this thread so far). Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is Cocoon good for???
Quoting Søren Neigaard [EMAIL PROTECTED]: Ok I'm a bit frustrated right now, but nothing I do works :( I have tried to deliver XML from my Java method to C2 as a stream of ASCII XML, as a string of ASCII XML, as a SAXSource and as a DOMSource. But to no avail. Yes I know that I probably havent done the last two attempts correctly, but I cant figure out how to do it, and I cant find any info that might help me, and the first two attempte should work according to the info I have found on Apache's C2 site (but it dont). Sorry, I can't help you out here (no experience). If I return a stream/string of ACSII XML data to C2, it works just fine on the first URL I call (no matter how many times i call it), but if I call another URL which doest EXCATLY the same as the first (same logicsheet, same namespace) it dosn't work. BUT If I had called the last URL first, it would have bene the one to work, and number one URL would fail!??? What is this?? Thats just impossible to work with :( Oh yes... Then there's the org.apache.cocoon.environment.Request. Whats that then?? Why not keep it as javax.servlet.http.HttpServletRequest so others can work with it without binding their code to C2. This is intentionally! The core Cocoon engine is not bound to the Servlet API, thus we introduced an abstract Environment to design a general Request/Response model. If we will bind Cocoon to the Servlet API the engine isn't easy portable to other environments like Commandline, Maillet, etc. Ok you guys, don't take this as a flame or anything like that. You have been super to help me, I'm just so damn tired off Cocoon, and I just neede to blow off some steam. I hope you feel better now :) It may sound stupid, but I really needed to send this mail, or I'm afraid I might go crazy :) Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassFormatError
On Sat, 10 Nov 2001 [EMAIL PROTECTED] wrote: This problem is back in cocoon 2 RC2 Why you think it is back? Has it ever been gone? Giacomo java.lang.ClassFormatError: org/apache/cocoon/www/file_/C_/tomcat_3_2_3/webapps/nedss/investigation/web/xsp/investigation_xsp (Code of a method longer than 65535 bytes) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap parameters set by Transformer
On Sat, 10 Nov 2001, Luca Morandini wrote: Giacomo, here's the sample: 1) The user goes to login.xml URI 2) A pipeline takes care of producing the proper HTML form 3) The user fills the form and activates submit 4) The submit event triggers a check-login.xml being requested 5) A pipeline takes care of calling SQLTransformer to check login/password via a stored procedure. 6) The SQLTransformer emits an sql:loginStatus element which contains the value of an output parameter of the stored procedure, which may be 0 (login accepted), or not 0 (login denied) 7) An XSL grabs the SQLTransformer's output and produces something like: control:status value=0 message=Login accepted/ or control:status value=3 message=Wrong password/ 8) I'd like to call another Transformer (let's call it ControlTransformer) which scans the output of previous step and sets a *sitemap parameter* called status to match the contents of value attribute in control:status element 9) In the sitemap, using a ParameterSelector, the appropriate map:redirect-to-uri is chosen, depending on the value of status I know this may be done using XSP and/or actions, but I'd like to stick to XML/XSL as much as I can, hence avoiding XSP and actions, though I'm open to suggestions. Regarding the use of the *sitemap parameter* term... I'm confised, since in: http://xml.apache.org/cocoon2/userdocs/selectors/selectors.html The following sentence is reported: ParameterSelector: matches the string specified in the test parameter against a specified Cocoon internal (e.g. sitemap) parameter;. Hence, I supposed the term sitemap parameter was widely used. I guess session parameter should be used instead, am I right ? Exactly. Look, there are two steps in the sitemap process: 1. step: evaluation. 2. step: production. In the 1. step the sitemap assembles the components (generator, transformer and serializer) to produce the requested resource. This is done using actions, matchers and selectors. This means that the later components are activated immediately when encountered during the sitemap scan whereas the former components are activated when the pipeline is complete (read has a generator, 0-n transformer and a serializer). This implies that a selector or matcher or action cannot inspect the SAX stream the pipeline produces because the production of the SAX stream is delayed after the evaluation process. In your case you should probably stick with request/session attribute to come along what you are trying to solve. Sitemap parameter are values proposed to be configuration data passed to the components. These values could be produced by actions or matchers and passed to pipeline components (generators, transformers or serializers) but not the other way around. Hope this makes it clearer. Cheers Giacomo Thanks for your kind reply, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 2:12 PM To: Cocoon-users; [EMAIL PROTECTED] Subject: Re: Sitemap parameters set by Transformer On Sat, 10 Nov 2001, Luca Morandini wrote: Folks, does anyone know how to set a sitemap parameter from within a Transformer ? Why would your Transformer need to set a sitemap parameter (BTW what do you mean by sitemap parameter??) Actually there is no way (and no intention) to set any parameter (except those available from the Environment like Request, Session) I'd like to be able to steer the sitemap flow from a Transformer, and the best way seems to me the ability to set sitemap parameters (to be used in some subsequent map:select statements). You should make a sample. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sitemap parameters set by Transformer
On Sat, 10 Nov 2001, Liam Morley wrote: I think what Luca means is to have something like map:parameter/. To me, it would make sense to send SAX events that trigger certain things to happen down the road, depending on what you have in mind. Otherwise, I'm not sure if you can set sitemap properties mid-way through a pipeline's execution, although it does seem like a decent idea. I hope you find a solution that applies to your particular problem. You got the point. As soon as the pipelines starts to produce SAX events the sitemap has already done its job and thus isn't able to rearrange your pipeline according to some SAX events (or setting any parameters somewhere). Giacomo Liam Morley -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 6:19 AM To: Cocoon-users Subject: Sitemap parameters set by Transformer Folks, does anyone know how to set a sitemap parameter from within a Transformer ? I'd like to be able to steer the sitemap flow from a Transformer, and the best way seems to me the ability to set sitemap parameters (to be used in some subsequent map:select statements). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sitemap parameters set by Transformer
On Sun, 11 Nov 2001, Luca Morandini wrote: Giacomo, thanks for explaining to me the whole sitemap parameters concept. Though... why an action or a matcher can set, say, a session parameter, and a transformer cannot ? No, both are able to set session attributes. But the time line WHEN they do it is different. When a transformer sets a session attribute during its scan of the SAX events pased throught it there is not chance for a Selector to cach it up. The execution time scope of actions, matchers and selectors are different from generators, transformers and serializers. First only actions, matchers and selectors are executed (to asseble the pipeline) afterwards only generators, transformers and serializers are executed (plugged together to form the pipeline and process SAX events). Hope it is another step forward to make it clearer. Giacomo I mean, there is a compelling rason for it... or it could be done but the developers deemed it to be unnecessary (as it probably is) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 11:41 AM To: [EMAIL PROTECTED] Subject: RE: Sitemap parameters set by Transformer On Sat, 10 Nov 2001, Luca Morandini wrote: Giacomo, here's the sample: 1) The user goes to login.xml URI 2) A pipeline takes care of producing the proper HTML form 3) The user fills the form and activates submit 4) The submit event triggers a check-login.xml being requested 5) A pipeline takes care of calling SQLTransformer to check login/password via a stored procedure. 6) The SQLTransformer emits an sql:loginStatus element which contains the value of an output parameter of the stored procedure, which may be 0 (login accepted), or not 0 (login denied) 7) An XSL grabs the SQLTransformer's output and produces something like: control:status value=0 message=Login accepted/ or control:status value=3 message=Wrong password/ 8) I'd like to call another Transformer (let's call it ControlTransformer) which scans the output of previous step and sets a *sitemap parameter* called status to match the contents of value attribute in control:status element 9) In the sitemap, using a ParameterSelector, the appropriate map:redirect-to-uri is chosen, depending on the value of status I know this may be done using XSP and/or actions, but I'd like to stick to XML/XSL as much as I can, hence avoiding XSP and actions, though I'm open to suggestions. Regarding the use of the *sitemap parameter* term... I'm confised, since in: http://xml.apache.org/cocoon2/userdocs/selectors/selectors.html The following sentence is reported: ParameterSelector: matches the string specified in the test parameter against a specified Cocoon internal (e.g. sitemap) parameter;. Hence, I supposed the term sitemap parameter was widely used. I guess session parameter should be used instead, am I right ? Exactly. Look, there are two steps in the sitemap process: 1. step: evaluation. 2. step: production. In the 1. step the sitemap assembles the components (generator, transformer and serializer) to produce the requested resource. This is done using actions, matchers and selectors. This means that the later components are activated immediately when encountered during the sitemap scan whereas the former components are activated when the pipeline is complete (read has a generator, 0-n transformer and a serializer). This implies that a selector or matcher or action cannot inspect the SAX stream the pipeline produces because the production of the SAX stream is delayed after the evaluation process. In your case you should probably stick with request/session attribute to come along what you are trying to solve. Sitemap parameter are values proposed to be configuration data passed to the components. These values could be produced by actions or matchers and passed to pipeline components (generators, transformers or serializers) but not the other way around. Hope this makes it clearer. Cheers Giacomo Thanks for your kind reply, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: giacomo [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 2:12 PM To: Cocoon-users; [EMAIL PROTECTED] Subject: Re: Sitemap parameters set by Transformer
Re: Sitemap parameters set by Transformer
On Sat, 10 Nov 2001, Luca Morandini wrote: Folks, does anyone know how to set a sitemap parameter from within a Transformer ? Why would your Transformer need to set a sitemap parameter (BTW what do you mean by sitemap parameter??) Actually there is no way (and no intention) to set any parameter (except those available from the Environment like Request, Session) I'd like to be able to steer the sitemap flow from a Transformer, and the best way seems to me the ability to set sitemap parameters (to be used in some subsequent map:select statements). You should make a sample. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ctwig update
On Tue, 25 Sep 2001, Jeremy Aston wrote: Just a quick note to advise that cTwIG - the C2 Idiots Guide - has been converted from raw HTML to xdocs format. The result of this is that the url has slightly changed to http://www.pigbite.co.uk/ctwig/index.html. index.htm will continue to work but please update any links/favorites as this might change at anytime. I am also about to test the install process against RC1 and add in some examples for basic XSP and XSP/Logicsheet processing. Several people have provided comments on the content. I will update these this week and post as I go along. I also have had several people offering to add content. This is great and just what I was hoping for. In line with the work I have done on xdocs it would be really useful if any content was supplied in that format however if it comes in HTML, MS Word etc etc I will aim to convert it. I will add this info to the site this week as well. I have to say that I really appreciate this process. I think it will result in far better documenting the installation and How-To process than we developpers can do because we have different knowledge and view points. Tank you all for going further with the cTwIG ;) Giacomo Thanks for your support and comments so far! Regards Jeremy _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Idiots Guide - Site Released!
On Sun, 23 Sep 2001, Jeremy Aston wrote: Hi! In response to my needs and, judging by the feedback, others' needs I have done the first part of cTwIG - the Cocoon Two Idiots Guide. You can find it here - http://www.pigbite.com and follow the link, or directly at http://www.pigbite.co.uk/ctwig/index.htm. It's still very basic but I fully intend to put all my experiences, along with any contributed ones, in there as I go along. Expect changes and expect changes soon. I must go know 'cos I've got a party to attend but no doubt more will be up there in a couple of days. Thanks to everyone for their help and supportive comments so far. I hope the above meets someones needs other than my own. BTW - if you find any dodgy links/typos etc please excuse me and let me know because I really have done this in a rush! Looks quite good so far. I hope you've written it in the xdocs/dtd/document-v10.dtd so we can integrate it into the common documentation for C2. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files
Quoting Aston Jeremy [EMAIL PROTECTED]: Hi, I have just moved from c1.8 to c2b2 and am lost on how to deploy even the simplest of code under c2. I did have c2 running as a war under Tomcat 3.2.3 but now have got it running as an raw web app with Apache 1.3.19/mod_jk acting as the HTTP server and java interface (i.e. I've got the aliases and jkmount /cocoon/* ajp12 in my httpd.conf). This is so I can easily develop and add in my basic noddy code without having to repackage the war each time. All the samples work fine but even a basic xml page coded and copied under the cocoon webapp folder results in a page not found error. My research leaves me to believe that I need to add something to the sitemap file so that the file can be picked up but does this mean that *every* page needs to be in sitemap, even if it is in some kind of wild card arrangement? It appears that cocoon must be restarted to reloaded the changed sitemap - surely this is a ridiculous overhead in development time and prevents rapid code the page and test it that I am used to - even on C1.8. I basically understand what the sitemap is doing for the samples - it's just seems too long winded when all I want to do is create a folder and do a simple XML/XSL transformation. Am I missing something? What I need is an idiots guide to deploying a basic XML file right through to a basic XSP/Logicsheet/XML scenario. An idiots guide to working with the sitemap file would help as well - the alpha documentation does not contain sufficent examples at the moment. The main difference between C1 and C2 is that the definition of the processing steps is teared out of the individual xml pages into the sitemap. The thing is you have to group your pages you'd like to process by a single XSLT stylesheet. To achieve what you call code the page and test it use this simple sitemap snippet: map:match pattern=mygroup/*.html map:generate type=file src=mydir/{1}.xml/ map:transform type=xslt src=stylesheet/mygroup2html.xsl/ map:serialize type=html/ /map:match With this snipped a file anyfile.xml put into the mydir directory will be accessable by the url mygroup/anyfile.html and will by transformed by the stylesheet in stylesheet/mygroup2html.xsl. Hope this helps. Giacomo As an example - how do I deploy the basic XML/XSL file deployed in the XSP Guide chapter that is in the c2 doc set: Assume: The file path: c:\java\tomcat\webapps\cocoon\mystuff (on Win 2000 pro btw) The url I request: http://localhost/cocoon/mystuff/greeting.xml http://localhost/cocoon/mystuff/greeting.xml With my C1.8 knowledge I would have expected that I just create the folder and plop the files (greeting.xml and greeting.xsl) in there but it seems that the sitemap holds the key to these being served... Perhaps with a few pointers I can write the idiots guide but I need a little help myself first! Many thanks in advance Jez [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files
On Thu, 20 Sep 2001, Aston Jeremy wrote: Thanks for your help people. Things are working and I am well on my way to getting more complex patterns and map settings for xml/logicsheet/xsl transformations going. I've had to make some notes for fellow developers so I will probably tart them up and put them somewhere for everyone. It could even turn into a c2 newbie guide... It would be very welcome to supplement the docs we already have. Giacomo Jeremy -Original Message- From: Giacomo Pati [mailto:[EMAIL PROTECTED]] Sent: 20 September 2001 14:39 To: [EMAIL PROTECTED]; Aston Jeremy; [EMAIL PROTECTED] Subject: Re: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files Quoting Aston Jeremy [EMAIL PROTECTED]: Hi, I have just moved from c1.8 to c2b2 and am lost on how to deploy even the simplest of code under c2. I did have c2 running as a war under Tomcat 3.2.3 but now have got it running as an raw web app with Apache 1.3.19/mod_jk acting as the HTTP server and java interface (i.e. I've got the aliases and jkmount /cocoon/* ajp12 in my httpd.conf). This is so I can easily develop and add in my basic noddy code without having to repackage the war each time. All the samples work fine but even a basic xml page coded and copied under the cocoon webapp folder results in a page not found error. My research leaves me to believe that I need to add something to the sitemap file so that the file can be picked up but does this mean that *every* page needs to be in sitemap, even if it is in some kind of wild card arrangement? It appears that cocoon must be restarted to reloaded the changed sitemap - surely this is a ridiculous overhead in development time and prevents rapid code the page and test it that I am used to - even on C1.8. I basically understand what the sitemap is doing for the samples - it's just seems too long winded when all I want to do is create a folder and do a simple XML/XSL transformation. Am I missing something? What I need is an idiots guide to deploying a basic XML file right through to a basic XSP/Logicsheet/XML scenario. An idiots guide to working with the sitemap file would help as well - the alpha documentation does not contain sufficent examples at the moment. The main difference between C1 and C2 is that the definition of the processing steps is teared out of the individual xml pages into the sitemap. The thing is you have to group your pages you'd like to process by a single XSLT stylesheet. To achieve what you call code the page and test it use this simple sitemap snippet: map:match pattern=mygroup/*.html map:generate type=file src=mydir/{1}.xml/ map:transform type=xslt src=stylesheet/mygroup2html.xsl/ map:serialize type=html/ /map:match With this snipped a file anyfile.xml put into the mydir directory will be accessable by the url mygroup/anyfile.html and will by transformed by the stylesheet in stylesheet/mygroup2html.xsl. Hope this helps. Giacomo As an example - how do I deploy the basic XML/XSL file deployed in the XSP Guide chapter that is in the c2 doc set: Assume: The file path: c:\java\tomcat\webapps\cocoon\mystuff (on Win 2000 pro btw) The url I request: http://localhost/cocoon/mystuff/greeting.xml http://localhost/cocoon/mystuff/greeting.xml With my C1.8 knowledge I would have expected that I just create the folder and plop the files (greeting.xml and greeting.xsl) in there but it seems that the sitemap holds the key to these being served... Perhaps with a few pointers I can write the idiots guide but I need a little help myself first! Many thanks in advance Jez [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat-4.0 and Cocoon-2.0B2
On Wed, 19 Sep 2001, Morrison, John wrote: It works - you've just got to watch out for xml parsers and substitute xerces/xalan where required. I have the latest CVS version running WITHOUT any modification concerning jars. Just followed the BUILDING.txt doc and preparing a build.properties file with all the jars needed to build TC4. Giacomo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 19 September 2001 3:53 pm To: cocoon-users Subject: Tomcat-4.0 and Cocoon-2.0B2 Hi Folks I would like to know if anybody has got Tomcat-4.0 (the latest final release, not RC1 or RC2) working with Cocoon-2.0B2. I have Tomcat-4.0RC1 working fine with Cocoon-2.0B2, but I could not get Tomcat-4.0 working with Cocoon-2.0B2. Thanks Joseph Rajkumar === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Logs? Error Pages?
Quoting [EMAIL PROTECTED]: Hi again, While I'm learning cocoon, the page cocoon returns most often is Document contains no data. My questions is: Is there any way at all of finding out what went wrong? Where are the error logs? -- the logs I can see do not contain any information about my errors. They are in webapps/cocoon/WEB-INF/logs Is it possible to have cocoon return an error page when there is an error, not just when tags are malformed, or something is improperly nested? Is this kind of error logging a development/deployment option? Yes, in the handle-error element in the sitemap. Giacomo I may have missed the point as I can't see any other messages asking about logs - obviously most people are getting appropriately detailed error messages when something goes wrong. Are there logs that tell you what went wrong during processing? Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please tell me where the tags content/title/para/page are defined
Quoting Antony Stace [EMAIL PROTECTED]: Hi Folks I am very ner to cocoon, about 3 days and have a few questions. One of the example files in the cocoon distribution, simple.xsp Uses the tags, content title para page I cannot seem to find a style sheet which defines what these tags are. Where are they defined? Look at the sitemap.xmap! There is a map:match pattern=xsp/* which shows you where to find the stylesheet. Giacomo At the moment I am just serving this page with map:match pattern=testpage map:generate type=serverpages src=docs/samples/testpage.xsp/ map:serialize/ /map:match Can someone please tell me whats going on. Cheers Tony XXXSOURCE FILE FOLLOWSXXX ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:log=http://apache.org/xsp/log/2.0; page log:logger name=xsp-sample filename=xsp-sample.log/ log:debugProcessing the beginning of the page/log:debug titleA Simple XSP Page/title content paraHi there! I'm a simple dynamic page generated by XSP (eXtensible Server Pages)./para paraI was requested as the URI: bxsp-request:get-uri as=xml//b/para paraThe following list was dynamically generated:/para ul xsp:logic ![CDATA[ for (int i=0; i3; i++) { ]] li Item xsp:expri/xsp:expr /li ![CDATA[ } ]] /xsp:logic /ul xsp:element xsp:param name=namexsp:exprP.toLowerCase()/xsp:expr/xsp:param xsp:attribute name=alignleft/xsp:attribute i This paragraph was dynamically generated by logic embedded in the page /i /xsp:element para Request parameter name as XML: xsp-request:get-parameter name=name default=Not provided as=xml/ /para para Request parameter name as String: xsp-request:get-parameter name=name default=Not provided/ /para xsp-request:get-parameter-values name=name/ xsp-request:get-parameter-names/ para Header user-agent as XML: xsp-request:get-header name=user-agent as=xml/ /para para Header user-agent as String: xsp-request:get-header name=user-agent/ /para xsp-request:get-header-names/ paraBrought to you by Cocoon2 at xsp:exprnew Date()/xsp:expr./para /content log:debugProcessing the end of the page/log:debug /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please tell me where the tags content/title/para/page are defined
On Wed, 19 Sep 2001, Antony Stace wrote: Thanks for the reply. Looking at the sitemap.xml file shows [snip] map:match pattern=xsp/* map:generate type=serverpages src=docs/samples/xsp/{1}.xsp/ map:transform src=stylesheets/dynamic-page2html.xsl map:parameter name=view-source value=docs/samples/xsp/{1}.xsp/ /map:transform map:serialize/ /map:match [snip] On inspection of the file stylesheets/dynamic-page2html.xsl This stylesheet does a xsl:include to the simple-page2html.xsl where those elements are handled Giacomo there are no definitions for the tags content title para page Where are these tags defined? Cheers Tony Giacomo Pati wrote: Quoting Antony Stace [EMAIL PROTECTED]: Hi Folks I am very ner to cocoon, about 3 days and have a few questions. One of the example files in the cocoon distribution, simple.xsp Uses the tags, content title para page I cannot seem to find a style sheet which defines what these tags are. Where are they defined? Look at the sitemap.xmap! There is a map:match pattern=xsp/* which shows you where to find the stylesheet. Giacomo At the moment I am just serving this page with map:match pattern=testpage map:generate type=serverpages src=docs/samples/testpage.xsp/ map:serialize/ /map:match Can someone please tell me whats going on. Cheers Tony XXXSOURCE FILE FOLLOWSXXX ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:log=http://apache.org/xsp/log/2.0; page log:logger name=xsp-sample filename=xsp-sample.log/ log:debugProcessing the beginning of the page/log:debug titleA Simple XSP Page/title content paraHi there! I'm a simple dynamic page generated by XSP (eXtensible Server Pages)./para paraI was requested as the URI: bxsp-request:get-uri as=xml//b/para paraThe following list was dynamically generated:/para ul xsp:logic ![CDATA[ for (int i=0; i3; i++) { ]] li Item xsp:expri/xsp:expr /li ![CDATA[ } ]] /xsp:logic /ul xsp:element xsp:param name=namexsp:exprP.toLowerCase()/xsp:expr/xsp:param xsp:attribute name=alignleft/xsp:attribute i This paragraph was dynamically generated by logic embedded in the page /i /xsp:element para Request parameter name as XML: xsp-request:get-parameter name=name default=Not provided as=xml/ /para para Request parameter name as String: xsp-request:get-parameter name=name default=Not provided/ /para xsp-request:get-parameter-values name=name/ xsp-request:get-parameter-names/ para Header user-agent as XML: xsp-request:get-header name=user-agent as=xml/ /para para Header user-agent as String: xsp-request:get-header name=user-agent/ /para xsp-request:get-header-names/ paraBrought to you by Cocoon2 at xsp:exprnew Date()/xsp:expr./para /content log:debugProcessing the end of the page/log:debug /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action vs. Request
Quoting Tobias Luikard [EMAIL PROTECTED]: Hi, this isn't the problem. In the Action I try to set XMLString as seen. But when I try to read it in the XSP with the following statement it's empty (I get EGAL as result): xsp-request:get-parameter name=XMLString default=EGAL/ You are reading the Parameter XMLString not the Attribute. Giacomo When I call the pipeline in my Browser like: http://localhost:8080/cocoon/XMLDB_EVAL/XMLTest.html?TestString=ABCDEFG The ABCDEFG apperars in the XSP Site (in the response in the Web-Browser) but the System.out.println only prints null. So it seems there are different independent request objects. Any other hint? Tobias Christian Schmitt wrote: Hi, in your Action source code you are doing: request.setAttribute(XMLString, XMLString); ^ but then System.out.println(request.getAttribute(TestString)); ^^ May be that's the problem?! Hth, Christian On Mon, Sep 17, 2001 at 11:59:38AM +0200, Tobias Luikard wrote: Hi all, its me again. I tried to write a Action which adds a Attibute to the request. But somehow a different request is used. When I try to access a request attibute its null. When I add a attibute, its null in the XSP Site... Has anyone a hint? Thanks By Tobi P.S. I added my sitemap.xmap and the actor ?xml version=1.0? !-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Tobias Luikard (Exxcellent) -- map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- === Components -- map:components map:generators default=file map:generator label=content name=file src=org.apache.cocoon.generation.FileGenerator/ map:generator label=content name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator/ /map:generators map:transformers default=xslt map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storetrue/use-store use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db /map:transformer /map:transformers map:readers default=resource map:reader name=resource src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer name=links src=org.apache.cocoon.serialization.LinkSerializer/ map:serializer mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer/ /map:serializers map:selectors default=browser/ map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcherFactory/ /map:matchers map:actions default=XMLProducer map:action name=XMLProducer src=de.exxcellent.cocoon.acting.XMLActionTest/ /map:actions /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern= map:redirect-to uri=ot.html/ /map:match map:match pattern=ot.html map:generate src=ot.xml/ map:transform src=ot.xsl/ map:serialize/ /map:match map:match pattern=XMLTest.html map:act type=XMLProducer map:generate type=serverpages src=XMLTest.xsp/ map:serialize type=xml/ /map:act /map:match /map:pipeline /map:pipelines /map:sitemap !-- end of file -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ
RE: embedding fonts (FOP and C2)
Quoting Jacob Cantwell [EMAIL PROTECTED]: thanks Giacomo and Colin, i went through the logs again, and picked up that it wasnt finding the font. (i swear it wasn't in the logs before) in my sitemap: user-config src=d:/fop/conf/userconfig.xml/ in my userconfig.xml: font metrics-file=FZZQJW.xml kerning=yes embed-file=FZZQJW.ttf the relative path to the metrics-file and embed-file actually points to my D:\jakarta-tomcat-3.2.2\bin directory which is odd. i moved the files there and it works for my .pfb fonts, i have to do more testing with .ttf fonts though. should i write up a blurb for http://xml.apache.org/cocoon2/pdf-serializer.html about this topic? i would like to contribute to cocoon's documentation in some way. Sure, cool. Maybe we can convice the Fop community to have a way to define a base dir fop looks for those files. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] multiple versus individual pipelines
On Wed, 12 Sep 2001, Jeremy Quinn wrote: Dear All, What is the difference in behaviour between having multiple map:pipeline/s and map:pipeline/s with multiple map:match/s? The map:handle-error element. Technically it is a try/catch block for each map:pipeline/. Giacomo Thanks regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run under JBoss2.4/Tomcat3.2.3
On Tue, 28 Aug 2001, Gianugo Rabellino wrote: Hmmm, on Jboss 2.4 with latest coccon-2 build and IBM jdk1.3 I get this little surprise: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. Why on earth does this thing want to connect to an X-server? Anybody got a fix for this? This is another good candidate for Cocoon FAQs. Batik (used by FOP for image rendering) is using AWT to do some of his work, and AWT under *nix needs to connect to an X server. You might want to look for Xvfb, a virtual X server who does not need any graphic hardware and provides access to X to AWT applications. As an alternative if you don't need Batik or FOP you can take the components out from the sitemap. This is already in the FAQ! Giacomo Ciao, -- Gianugo Rabellino - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon2 + SSL.
Wrong list, Please post to tomcat-users Giacomo Quoting [EMAIL PROTECTED]: I use Tomcat with Cocoon2. But now i need SSL. I've tried with tomcat but i can't. Someone can tell me how to do it properly. I've done all with tomcat papers but it doesn't work well. Some questions: 1) is 8443 is the port to get into.? 2) How can i access to ssl ? https://myhost:8443 or 8080 ( is the port i use in tomcat ). 3) where may i deploy my cert ? thanx in advance. José Blas. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to log from a Java class ?
Quoting Cyril Cambien [EMAIL PROTECTED]: I understand how to log from a xsp file using the log.xsl logicsheet but what is the best way to log information from the Java classes called from my xsp files ? Make them implement Loggable and pass the logger to them xsp:logicyourClassInstance.setLogger(getLogger());/xsp:logic Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: urls mix up
On Fri, 17 Aug 2001, cib wrote: Hi I'm getting a bit mixed up with urls inside Tomcat, each application , Cocoon. Just a few questions - how do I get the sitemap to just point to an index.html page in the same directory ( generator doesn't seem to work with a map:match pattern=* on a file already in html format) (by the way, I'm sure I have read a thread on this but couldn't find it: is there a faq, other from the installation faq on apache site?) Use a Reader (look into the example siteamp.xmap searching for 'map:reader' and 'map:read'. -How do I set up Tomcat to point to cocoon as localhost: actually, I've got http://localhost/cocoon/myfile, and I'd like to have just localhost pointing directly to myfile? I suppose I really can't avoid to install Apache, and run Tomcat as service, instead of my simple Tomcat / Cocoon application. rename the cocoon context directory (in webapps) to ROOT. Giacomo I hope I'll soon be able to answer questions on this mailing list, because for the moment I seem to really make you work a lot. Thanks for your help. Cib France, Bordeaux, xml and gay pride. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another solution for EOL problems
On Sat, 18 Aug 2001, Ovidiu Predescu wrote: I believe the release happens on a Windows box, and as a result all of the text files inside the .tar.gz archive will have the \r\n line terminator. I've run into this problem myself, and never used a release package ever since ;-). Well, the correct way is to have ant do the jobs for you and fix the EOL of those scripts. Giacomo The easiest way for me is to check out the stuff directly from CVS. CVS takes care of line endings automatically, so I don't have to worry about it myself. Regards, - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MS Word serializer
On Fri, 17 Aug 2001, David Brunkow wrote: Can anyone tell me if there are any plans to write an MS Word serializer? I want to conver XML to Word, not Word to XML. Haven't heard anybody will write something like that. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon2 and HP Web Services Platform
Quoting Ovidiu Predescu [EMAIL PROTECTED]: Hi, I just wanted to let you know you can now take a look at HP Web Services Platform (HPWS), which includes a modified version of Cocoon2, as I presented in one the recent emails on cocoon-dev: http://www.hp.com/go/webservices For those of you who have not read the thread of discussion on cocoon-dev ([C2] [2.1-dev] proposed changes to the Source interface), here is a quick introduction. HP, through the Web Services Organization (which I'm part of), is making use of Cocoon2 as _the_ framework for accessing and building Web Services. I always knew that Cocoon2 _is_ the web service platform from the day I proposed to have a logic components called Action even if its current implementation isn't everybodies darling :) As part of the HPWS product, we are actively supporting and enhancing Cocoon2 to suit the needs of Web Services. We are using Cocoon2 to implement business level protocols like ebXML, BizTalk, RosettaNet RNIF, and others. While HPWS is a commercial solution, very much based on Cocoon2, we do plan to incorporate back in the open source all the changes we make to Cocoon2's source code. Sounds very cool and of course you're very welcome. In this release of HPWS, Cocoon2 contains some initial support for accessing Web Services via SOAP. The specific enhancements contain a SOAP and UDDI logicsheet, both developed on top of some powerful abstractions, which I hope to integrate in the C2 main trunk very soon. We have a version running that is able to communicate with SOAP clients as well as normal browsers by an abstraction we call Connectors (implemented as Actions). The Connectors responsability is to accept the client request and transform it into an abstraction so that every client protocol can use the very same service code. The counterpart of Connectors are Responders (implemented as XSP pages and ev. XSLT) that knows the client protocol to transform the abstracted response object to. You can take a look at the changes we've done in the source package that's included with the release. Unfortunately there isn't much documentation on this framework yet, but you can follow the thread of discussions in cocoon-dev mentioned above. Hopefully the complete solution, updated to use the today's Cocoon2 2.1-dev source code, will become available soon. I'm really thrilled by the possibility we have to work with such a great community of Cocoon2 developers and users. If you have any specific questions or concerns please let us know and we'll try to answer them. Yes, i'm proud to be part as well :) Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using action return value in xsp
Quoting Michael Homeijer [EMAIL PROTECTED]: In an action i return a HashMap to the sitemap, one of the elements in this HashMap is a HashMap. My question is, how do I get this second HashMap in an xsp page. From the documentation of the Parameters object, I read that I can only get string parameters from it. How can I pass complex objects from an action to an xsp page? Put those object into the request like request.setAttribute(name, map) and read them in your XSP page like request.getAttribute(name); Giacomo TIA, Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing FileExistSelector
Quoting Michael Homeijer [EMAIL PROTECTED]: In a part of the sitemap I want to check if a requested file exists, if it doesn't i want to return the contents of a default file. Is this the way I should implement something like that or are the easier methods? : map:match pattern=annotation\* map:select type=fileexists map:parameter name=filename value=annotation\{1}/ map:when test=fileexists map:generate src=annotation\{1}/ /map:when map:otherwise map:generate src=annotation\default.xml/ /map:otherwise /map:select map:transform src=annotation.xsl/ /map:match This might be one approach. Another one could be with an Action like this: map:match pattern=annotation/* map:act type=fileexists src=annotation/{1} map:parameter name=default value=annotation/default.xml/ map:generate src={the-file}/ /map:act map:transform src=annotation.xsl/ /map:match the mentioned Action will check for the file and return a Map containing the-file as the key and the filename as its value depending on the existance test (either the value of the source attribute or of the parameter default). Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap in Cocoon 2
On Fri, 20 Jul 2001, Hege Hansbakk wrote: I have a question concerning the sitemap used in Cocoon 2. On Cocoon's web pages there is an example saying the following: map:serializers default=html map:serializer type=html mime-type=text/html src=class:///org.apache.cocoon.serializer.HTMLSerializer doctype-public value=-//W3C//DTD HTML 4.0 Transitional//EN/ doctype-system value=http://www.w3.org/TR/REC-html40/loose.dtd/ preserve-space value=true/ encoding value=UTF-8/ indent value=1/ line-width value=120/ /map:serializer I guess the preserve-space value=true/ tag is supposed to say if spaces should be kept (when set true) or not (when set false). I have tried this in my sitemap, but that tag does not change the output file in any way. Can somebody tell me why? (I do not want any spaces or line breaks in the output) Looking into the HTMLSerializer I've found that the sample you mentioned above does not reflect the current capabilities of the HTMLSerializer. The following configuration options are not implemented: preserve-space line-width I think we should put it into the ToDo list for it to have all available options from the underlying Transformer. I will post this on the dev list as well. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap defaulting type question
On Fri, 20 Jul 2001, Sean wrote: Hello All, I have a question reguarding the cocoon2 sitemap. I want to support something like Tomcat and the Apache web server where users can have either a index.jsp, index.html, or get a directory listing for a directory when requested. So if you have a directory call it foobar and it has an index.jsp file in it the cocoon will generate based on that, if it does not it will look for a index.html file, if that is not present it will do a directory listing. Is something like this possible with the sitemap? No this is not supported (and won't be). You'll need to have to know your URI spaces. Giacomo I figured it would look like this: map:match pattern=**/ map:generate type=jsp src={1}/index.jsp/ map:transform src=stylesheets/webpage/webpage-to-html.xsl/ map:error map:generate src={1}/index.html/ map:transform src=stylesheets/webpage/webpage-to-html.xsl/ map:error map:generate type=directory src={1}/ map:transform src=stylesheets/system/directory-to-html.xsl/ /map:error /map:error map:serialize/ /map:match Is there another pattern I would use to do this via the sitemap other then maybe writing a jsp to do it for me? Thanks, Sean - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, optimized PDF
On Wed, 18 Jul 2001, Darrel Riekhof wrote: We are thinking about using FOP to produce large PDF reports that will be served (possibly through cocoon) to web clients. However, the PDF files that FOP produces are not optimized. So, the reader client will have to download the entire PDF file before viewing the first page. If the PDFs were optimized, then clients could see pages before the whole PDF was on the client. Detail about this at: http://www.adobe.com/support/techguides/acrobat/byteserve/byteservmain.html Is there a way to make FOP produce optimized PDF Files, or a way to produce the files in FOP, then automatically run then through some other (Adobe) product that will optimize them before serving to the clients? You need to ask on the fop mailing list/project but feed back here would be appreciated. Giacomo Darrel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] SOAP - Scanned for virus
Quoting Michael Homeijer [EMAIL PROTECTED]: Hi, If you mean the stuff I sent to the mailing list: it ended up in the cvs bij mistake. They were just meant as an example to show what could be done with soap. In my opinion, an implementation of soap in C2 should not just be a logicsheet, but an extra channel in the interface with cocoon (both serving soap requests and performing soap requests on other servers). This way it should be easier to implement xml based services in a cocoon application instead of only xml based publishing. I think Giacomo has some great ideas on the subject. You can also check my previous posts on the subject. We had to write a C2 app that is able to serve SOAP clients as well as browsers so the approach we've take is that we've put the application logic into beans that are XML'izable themselfs (I've mentioned our toolkit to produce the beans in another mail earlier). The way we do it is that we have ConnectorActions that sits on top of the different URIs to accept the requests. So we ended up with a SOAPConnectorAction and a HttpConnectorAction. The responsability they have is simply build a bean that represents the request either out of the SOAP message of from the GET/POST. This bean is simply used as a Command that is processed by other components/Actions before the final response bean is created. This response bean is depending on the requesting client xml'ized down the pipeline by a BeanSOAPGenerator (very simple) for the SOAP client or processed in an XSP page to present the content together with aggregated stuff (header, navbar, footer, etc.) for the browser clients. Giacomo Greetings, Michael Homeijer -Original Message- From: Berin Loritsch [mailto:[EMAIL PROTECTED]] Sent: vrijdag 13 juli 2001 21:50 To: [EMAIL PROTECTED] Subject: Re: [C2] SOAP - Scanned for virus Drasko Kokic wrote: Berin, Who is the maintainer of the SOAP addition to C2.1 ? Is it possible to extract SOAP part out of the C2.1 and try to make it working on C2.0? I need to implement it rather soon and could just about wait for C2.0 to be released (C2.1 would probably be far too late). I'm not sure. Cocoon 2.1 is simply the same as Cocoon 2.0 with some extra stuff. Try just pulling 2.1 from CVS, and extract what you need. TIA Drasko --- Berin Loritsch [EMAIL PROTECTED] wrote: Drasko Kokic wrote: Uli, have you thought about redesigning the SOAP taglib (logicsheet?) so that it is portable to C2? I would need to have it running fairly soon and am ready to put in some eforts :-) With regards to the auth taglib, I would still suggest that you look into the RequestIntercepter implementation of the Context Based Security spec. It is 100% portable (between C1 and C2 of course :-) I believe the CVS for Cocoon 2.1 has SOAP support using the Axis jar. You may want to verify It was included in Cocoon 2.1 due to its newness and it not being tested yet. As to the Context Based Security spec, do you have a URL? I am interested in looking at it. Drasko --- Uli Mayring [EMAIL PROTECTED] wrote: On Wed, 11 Jul 2001, Berin Loritsch wrote: I think you may already be used to not getting the output stream in Cocoon 1. In Cocoon1 it is actually possible to get the OutputStream, I'm using that in my soap taglib. My auth taglib makes heavy use of redirects (such as redirecting you to the login page, if you try to access a protected page and have not authenticated). So these two taglibs, which I use a lot in my Cocoon1 apps, are not portable to Cocoon2. Back when XSP taglibs first appeared, it was said that their advantage is that implementations can change, the interface remains the same. Of course now that XSP itself works differently, this advantage is gone. It's always a trade-off between backwards compatibility and new features. I'm sorry to hear that the XSP model was not deemed fit to last across different versions of Cocoon - I wonder if it will change again for Cocoon3. Perhaps the answer lies elsewhere: implement XSP as an Avalon block, add some parts of Tomcat, Xerces and Xalan as blocks and I won't need Cocoon anymore to build web applications. That's the beauty of OpenSource, that these things are possible. The objects you seek are all in the Map objectModel passed in to your pages. for XSP, the Request, Context, and Response objects are stored as class variables. Through them, you can get your Session and Cookie objects as usual. other than sendRedirect and getting a reference to the output stream, nothing should be hidden from you. Ok, thanks
Re: Servlet generator, help needed
Quoting Jean-Marc Borer [EMAIL PROTECTED]: Hello guys, I am new to Cocoon, but not to web application development and XML. We are currently evaluating Cocoon to see if it fits out needs. We develop web applications based on servlets. In a MVC (model view controller) model, we expect to use servlets as controllers, Cocoon for the view and we have our own database layer for the model. Our servlets are responsible to produce the XML (from information extracted of the database) and tranmit it to the Cocoon pipeline for the rendition. However our static pages will be written in XML and processed by Cocoon in the usual way. What is the best way to implement this? Subclass the ServletGenerator class and build our owns? No, Cocoon was not build to be used that way. Best is you rewrite your servlet as Actions and put it at the begining of your pipeline definitions in the sitemap. Giacomo Thanks in advance for any help. Cheers, Jean-Marc Borer Solution center Engineer InfoDesign Communications - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Debugging Transform
On Thu, 19 Jul 2001, Marks local account wrote: What is the best way to write a transform that could be inserted at any point in the pipeline to produce a colorized output of the pipe at that stage, ike the view source, only with dynamically generated tags? I don't know what you want to color but there is still the good old LogTransformer which was always a good helper to see what's running down the pipeline. Look at the cocoon.log for its output. Giaocmo So if I was trying to debug this: map:match pattern=test map:generate type=serverpages src=docs/sample.xsp/ map:transform src=stylesheets/t1.xsl/ map:transform src=stylesheets/t2.xsl/ map:serialize/ /map:match I could do something like this: map:match pattern=test1 map:generate type=serverpages src=docs/sample.xsp/ map:transform src=stylesheets/debugcolorize.xsl/ map:serialize/ /map:match map:match pattern=test2 map:generate type=serverpages src=docs/sample.xsp/ map:transform src=stylesheets/t1.xsl/ map:transform src=stylesheets/debugcolorize.xsl/ map:serialize/ /map:match map:match pattern=test3 map:generate type=serverpages src=docs/sample.xsp/ map:transform src=stylesheets/t1.xsl/ map:transform src=stylesheets/t2.xsl/ map:transform src=stylesheets/debugcolorize.xsl/ map:serialize/ /map:match Mark Miller Web Architect Logica - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c2] class loading problem with a jdbc driver
On Thu, 19 Jul 2001, HALLOWELL,KARL (HP-Cupertino,ex1) wrote: I'm having trouble specifying the classpath for a jdbc driver. Here's the entry in my web.xml file for loading the jdbc driver: init-param param-nameload-class/param-name param-value !-- For Oracle Driver: -- oracle.jdbc.driver.OracleDriver !-- For Database Driver: -- org.hsqldb.jdbcDriver /param-value /init-param I get the following exception first thing (no previous entries in the log file) when I start cocoon. Immediately after the (long) load class exception, the log file prints out the full classpath including the jdbc driver (it's /opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/classes12.zip). Why isn't the class being found (it gets found later when I load relevant esql-based xsp pages)? What am I doing wrong? IIRC Tomcat 4 is not loading zip files from the lib directory. I had to unzip and jar it as classes.jar to get it working under TC4. Giacomo Karl Hallowell [EMAIL PROTECTED] DEBUG 46 [cocoon ] (HttpProcessor[8080][4]): Trying to load class: oracl e.jdbc.driver.OracleDriver WARN94 [cocoon ] (HttpProcessor[8080][4]): Could not force-load class: oracle.jdbc.driver.OracleDriver java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46) at org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java: 399) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java, C ompiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav a:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Com piled Code) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Com piled Code) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java, Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Com piled Code) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a, Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Com piled Code) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) DEBUG 332 [cocoon ] (HttpProcessor[8080][4]): Trying to load class: org.h sqldb.jdbcDriver DEBUG 563 [cocoon ] (HttpProcessor[8080][4]): extraClassPath is not absol ute: /opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib/classes12.zi p DEBUG 564 [cocoon ] (HttpProcessor[8080][4]): Using configuration file: / cocoon.xconf INFO566 [cocoon ] (HttpProcessor[8080][4]): Reloading from: jndi:/local host/cocoon/cocoon.xconf DEBUG 1147[cocoon ] (HttpProcessor[8080][4]): New Cocoon object. DEBUG 1148[cocoon ] (HttpProcessor[8080][4]): Using parser: org.apache.co
Re: Servlet generator, help needed
On Thu, 19 Jul 2001, Sergio Carvalho wrote: Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised at how strongly Giacomo discouraged using Cocoon as a presentation engine. I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps, decoupling presentation. Because experience of other projects (jetspeed) using cocoon the other way around as a template/rendering engine failed because of the complexity. The right approach to use cocoon is to have it run as it is and put your logic into components available for use (Actions, Generators or Transformer) or use custom ones like Jsp-/URLGenerator. Giacomo On the other hand, I didn't know about URLGenerator. Living and learning. On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas [EMAIL PROTECTED] wrote: -- Sergio, Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2. Thanks, dims -- Sergio Carvalho --- [EMAIL PROTECTED] If at first you don't succeed, skydiving is not for you - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ./build.sh - permission denied
Quoting raghu [EMAIL PROTECTED]: Hello there, I am unable to build the cocoon2, i downloaded the cocoon-2.0-b1.tar from xml.apache.org, and untarred it in a directory. When i try to build using ./build.sh -Dinclude. i get permission denied, why is it so i am in the root while doing this. Can anybody help. Pleas. bye, raghu Use 'sh ./build.sh -Dinclude. ' Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge multiple files to one XSP-File
On Sun, 8 Jul 2001, C. Gaffga wrote: Hi ! I split up my xsp files to keep them small and for reusebility. With Cocoon 1.8 ist wasn't a problem to merge them BEFORE the xsp-file is translated to a class. I used xinclude. But now with cocoon 2 that is not possible. XInclude works only as a postprocessor. So my question: Is there a way to merge files to one xsp-file before comiling? No, there isn't AFAIK. Giacomo It's urgent. Please help Thanks in advance. Christoph Gaffga - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble starting cocoon2
On Mon, 25 Jun 2001, RAO,YENUGANTI (Non-HP-Cupertino,ex1) wrote: Please could you clear the Bugzilla bug #2319 concerning this issue here? TIA Giacomo Thank you dims, now it is working!! -Rao -Original Message- From: Davanum Srinivas [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 5:20 PM To: [EMAIL PROTECTED] Subject:Re: Trouble starting cocoon2 Please use JDK1.3.1 and see if the problem persists. Thanks, dims --- RAO,YENUGANTI (Non-HP-Cupertino,ex1) [EMAIL PROTECTED] wrote: Hi, I am having trouble in getting started with cocoon2 . My environment is as follows. OS : Windows NT, Java : JDK 1.2.2, Servlet engine : Tomcat 3.2.2. I followed the steps listed in the Installing cocoon2 page. Finally when I tried invoking The cocoon servlet I got DR.Watson error. I have cocoon.log, cocoon.xconf attached. cocoon.xconf cocoon.log Any ideas what is wrong ?. -Rao ATTACHMENT part 2 application/octet-stream name=cocoon.xconf ATTACHMENT part 3 application/octet-stream name=cocoon.log - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2: Pipelines not relative to /cocoon
On Thu, 21 Jun 2001, thomas@jet wrote: Is it possible to have a pipeline mounting a directory outside the cocoon context. something like if I have cocoon in 'd:/foo/cocoon' and having a pipeline mapping in 'd:/bar' as /cocoon/bar. Have you tried it? I don't see anything that will stop you doing so (technically). Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Again ! the sitemap handler's sitemap is not available
On Thu, 21 Jun 2001, Ling Kok Choon wrote: hi friends, I am facing the same problem when i try to start the cocoon 2. I have build and install the cocoon 2 beta version to my system ( windows 98, tomcat 3.2.2 , jdk 1.3.1 ), and i have follow all the step at the install page. But the Cocoon 2 Internal Server Error still occur. I checked the log file, and i found some error happened, but i don't know how to solve it. SO hoping your help. Note : sitemap's error code is at the bottom of this email, (Error number 3). Here is a part of the log file : 1) here i think is the Database connection error, right ? This is due to wrong installation method. You should install C2 directly by using the ant script: build.sh -Dinclude.webapp.libs=yes \ -Dinstall.war=[YOUR-SERVLET-WEBAPPS-DIR] \ install This way the {$install.war} will be replaced with the right installation path. *** 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15320 [cocoon ] (Thread-24): org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: File input/output error: ${install.war}/cocoon/WEB-INF/db/cocoondb.properties snip/ 2) Again a Database connection error, right ? Same reason here *** 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15380 [cocoon ] (Thread-10): URL for Root: file:/D:/jakarta-tomcat-3.2.2/webapps/cocoon/ 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15380 [cocoon ] (Thread-24): org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: File input/output error: ${install.war}/cocoon/WEB-INF/db/cocoondb.properties snip/ 3) Here is the sitemap error : *** 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15540 [cocoon ] (Thread-10): Making URL from file:/D:/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15540 [cocoon ] (Thread-30): Making URL from file:/D:/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15590 [cocoon ] (Thread-30): UnnamedSelector: ComponentSelector could not find the component for hint: org\apache\cocoon\www\sitemap_xmap 2001-06-21 02:19:08 - path=/cocoon :DEBUG 15590 [cocoon ] (Thread-30): Could not access component for hint: org\apache\cocoon\www\sitemap_xmap java.lang.NullPointerException As you can easily see here that this is a DEBUG message. So don't be concerned about it. It says that there wasn't a sitemap generated already and the system is generating one for you. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HostSelector broken
On Sun, 17 Jun 2001, Andreas Neuenschwander wrote: Hi, I updated today to cocoon2.1-dev version. It seems that the HostSelector sitemap component is broken. With my previous version of cocoon (2.0a7) it worked fine. Can someone fix this problem? A patch would be appreciated. Giacomo andi -- type internal-server-error message Exception in Handler description org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri / embedded exception org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ embedded exception stacktrace org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:162) at org.apache.cocoon.sitemap.Handler.run(Handler.java:214) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile( JavaLanguage.java:203) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:131) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:250) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:159) at org.apache.cocoon.sitemap.Handler.run(Handler.java:214) at java.lang.Thread.run(Thread.java:484) exception org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ path-info stacktrace org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache/cocoon/www/sitemap_xmap.java:1820: Type expected. if (hostSelect(selector_host_N15E_expr, objectModel, emptyParam)) { ^ at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:246) at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:161) at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:168) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) at org.apache.cocoon.Cocoon.process(Cocoon.java:328) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:474 ) at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:4 30) at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:2 86) at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1087) at com.mortbay.HTTP.HttpServer.service(HttpServer.java:662) at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:457) at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:317) at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:99) at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:254) at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:601) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: /tmp/JettyContext36400.tmp/org/apache
RE: How 2 serve a simple .html File?
On Mon, 18 Jun 2001, Gary Clark wrote: For purely static content, you should use a web server (apache comes to mind :) since it will be less resource intensive and much faster. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Mariano Kamp [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 8:55 AM To: [EMAIL PROTECTED] Subject:How 2 serve a simple .html File? Hi there, how do I server static content like images and html files with cocoon? This stuff is not generating any xml?! So how can it be integrated in the sitemap? Look at the samples that comes with Cocoon 2 (Readers) Giacomo Mariano - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie API question
On Mon, 18 Jun 2001, Chad La Joie wrote: I am evaluating the use of Caccoon 2 and have a basic question about the First of all: this project is called Cocoon. API. Thus far I've really likes what I have seen but I am curious as to whether it is possible access Caccoon in some other way then HTTP. You need to implement the interfaces located in org.apache.cocoon.environment to fit into another Environment that HTTP. The http subpackage therein can be used aas a sample on how to do that. The sitemap engine interacts only with the Environment object provided by the surrounding environment. The actually implemented sitemap component based on the interfaces Matchers, Selectors, Actions, Generators, Transformers and Serializers may be environment dependant but the contracting Interfaces to build them are not. As I understand it right now, the Matcher maps an HTTP request to a certain set of tasks to be pipelined. Most people think this is a key element but it is in fact more general then that. We actually have only those two URI-Matchers (wildcard and regexp) as implementations. In fact you can write a matcher that matches anything youd like it to match. the same is true for Selectors as well. I'd like to be able to call a function within my program and do the same thing. Right now it seems as if my only option is to create some sort of HTTP proxy class, which I don't really want to do, to interact with Caccoon. Can some help me? Thanks. I don't understand what you'd like to do, sorry. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WHAT IS WRONG??
On Thu, 18 Jun 1998, jyoti wrote: even i had tried many times to unsuscribe .. If you are subscribbed from another mail address than the one you are using now try to write to [EMAIL PROTECTED] where yourname=yourold.dom is your old email address with the '@' replaced by '=' Giacomo - Original Message - From: Pankaj Malhan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 16, 2001 4:19 AM Subject: WHAT IS WRONG?? I WANT TO UNSUSCRIBE AND I AM NOT ... WHAT TO DO/?? __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c1-c2] Is it a must to create a war file ... etc
On Thu, 14 Jun 2001, Christopher Kohlhaas wrote: Arno Illmann [[EMAIL PROTECTED]] wrote: |C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoonset CP=C:\Programme |\java\jdk\lib\tools.jar;.\lib\ant_1_3.jar;.\lib\ant_1_3-optional.jar;.\lib\xerce |s_1_4_0.jar;.\lib\xalan-2.1.0.jar |Kein Speicherplatz mehr im Umgebungsbereich -(Not enough memory in environment) faq question Windows 95/98 tells me that I don't have enough environment- memory? /question answer This is another neat feature from DOS- times. To increase enviroment-space add the following line to your config.sys (and restart): shell=c:\command.com /E:4096 /P /answer /faq Thanks for the faq entry. I've commited it right away. Question to the Cocoon-Devolpers: The variable CP in the build.bat is used only once in the script. Can't we get rid of the variable and cut and paste it directly in th excute command? That lengthen this command but reduces the chance of an Not-Enough-Enviroment-Space-Error. You might be right concerning the Not-Enough-Enviroment-Space-Error but that line then look really uglly and is quite long. And I can tell you that sooner or later some smart developer here will split it again :) Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Wrapper Error - C2.1dev + Tomcat4.0b5
On Thu, 14 Jun 2001, Lajos Moczar wrote: Well, I'm working with Linux and TC4.0 almost exclusively and don't have faced your problem. Can you tell my when this error happens (which link on the C2 sample/welcome page) is giving the error you get. Giacomo Howdy all: I running Tomcat 4.0.b5 (binary distribution) and Cocoon 2.1dev on both Windows 98 and Linux RedHat 6.2. On Windows, I unzip Tomcat, build Cocoon, copy the cocoon.war file over and I'm in business. On Linux, however, I get the following: javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.cocoon.servlet.CocoonServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:797) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) . I've tried adding servlet.jar to Cocoon's web.xml in the extra-classpath init-param, but to no avail. I've also tried adding servlet.jar to the catalina classpath but it didn't help either. Does anyone know what causes this problem in the first place? Thanks in advance. Lajos Moczar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2]: InvalidArgumentException
On Tue, 12 Jun 2001 [EMAIL PROTECTED] wrote: Hi, I've inserted these raws in server.xml: Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context Try using Context path=/cocoon docBase=cocoon debug=0 reloadable=true /Contxt The default directory base is inside the webapps dir. Giacomo for a Cocoon'context in Tomcat 4.0. It doesn't work! This is catalina.out: [root@localhost logs]# more catalina.out Starting service Tomcat-Standalone Apache Tomcat/4.0-m5 java.lang.IllegalArgumentException: Document base webapps/cocoon does not exist or is not a readable directory at org.apache.catalina.resources.FileResources.setDocBase(FileResources.java:159) at org.apache.catalina.resources.ResourcesBase.setContainer(ResourcesBase.java:310) at org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:770) at org.apache.catalina.core.StandardContext.start(StandardContext.java:2887) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:454) at org.apache.catalina.startup.Catalina.start(Catalina.java:677) at org.apache.catalina.startup.Catalina.execute(Catalina.java:618) at org.apache.catalina.startup.Catalina.process(Catalina.java:175) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:134) -- /usr/local/jakarta-tomcat-4.0-m5/webapps/cocoon exists and its permissions seem right. Any idea? Hi, ciao Francesco Francesco Casalena L.U.G. Il Pinguino -- Virgilio Mail - Il tuo indirizzo E-mail gratis http://mail.virgilio.it - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Problem with xinclude
On Tue, 12 Jun 2001, Jörn Heid wrote: I do have a problem with XInclude as a transformer (see below). Besides the problem does anybody know if I can use aggregation for that? I want to generate one xml file from two xml files (none of the must be a XSP)... Sure, have a look on the aggregation samples. Giacomo I used the following in the sitemap: map:transformer name=xinclude src=org.apache.cocoon.transformation.XIncludeTransformer/ .. map:match pattern=**.xml map:generate src={1}.xml/ map:transform type=xinclude/ map:transform src=xsl/page.xsl/ map:serialize/ /map:match and the following xml file page xmlns:xinclude=http://www.w3.org/1999/XML/xinclude; xinclude:include xinclude:parse=xml xinclude:href=../menu.xml/ ... I got the following error (in WEB-INF/logs): ile:/d:/www/N3K/public/company/about_us.xml ERROR 8962[cocoon ] (tcpConnection-6802-0): FileGenerator.generate() java.util.EmptyStackException at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048) at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:220) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:344) and in the browser resource-not-found Any idea? JOERN_HEID - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:[C2] InvalidArgumentException
On Tue, 12 Jun 2001 [EMAIL PROTECTED] wrote: Hi, I've inserted these raws in server.xml: Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context Try using Context path=/cocoon docBase=cocoon debug=0 reloadable=true /Contxt The default directory base is inside the webapps dir. Giacomo Thank you Giacomo, but I've received the same error. Another idea? Another approach is to NOT WRITE ANY Context into your server.xml. Just put the complete war file into the webapps directory. Giacomo Only a doubt: my webapps/cocoon dir has thi permissions (generated by cocoon.war, I suppose) 772481 drwxr-xr-x 11 root root 1024 Jun 12 19:53 cocoon Are they right? This is catalina.out: [root@localhost logs]# more catalina.out Starting service Tomcat-Standalone Apache Tomcat/4.0-m5 java.lang.IllegalArgumentException: Document base webapps/cocoon does not exist or \ is not a readable directory at \ org.apache.catalina.resources.FileResources.setDocBase(FileResources.java:159) at org.apache.catalina.resources.ResourcesBase.setContainer(ResourcesBase.java:310) at org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:770) at org.apache.catalina.core.StandardContext.start(StandardContext.java:2887) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:454) at org.apache.catalina.startup.Catalina.start(Catalina.java:677) at org.apache.catalina.startup.Catalina.execute(Catalina.java:618) at org.apache.catalina.startup.Catalina.process(Catalina.java:175) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:134) -- Regards, ciao Francesco Francesco Casalena L.U.G. Il Pinguino -- Virgilio Mail - Il tuo indirizzo E-mail gratis http://mail.virgilio.it - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Cocoon, .xml not displayed
On Tue, 12 Jun 2001, Mike Thomas wrote: Let me preface by saying I have read the FAQ and searched the archvies, but no luck. When attempting to view .xml files via Cocoon-Tomcat I get a 404 error. The Tomcat install itself serves up the other pages and seems to work ok(/cocoon context is visible etc). So, you are using Cocoon 2, rigth? Have you tried the samples? Giacomo I deleted the parser.jar so that xerces would be alone in the classpath. I also tried changing the properties parm to be a fully qualified file:// URL, but no success. I also tried changing the debug levels in Tomcat and Cocoon, again without success. TIA, Mike. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Newbie question again
Quoting Aleksey Globets [EMAIL PROTECTED]: Ok, I will try to ask in another way. If I plan to create two contexts in Tomcat pointed to different directories and to use Cocoon within it. So how I can use it? Do I need to copy and rename /cocoon directory or something else? Yes. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding dynamically element
On Sun, 10 Jun 2001, Samuel ARNOD-PRIN wrote: I can not answer correctly to your question... but logically there should be a way to do something like this : No, there is no logic in there. An XSP page is a generator, point. A C2 pipeline has only one generator. Transformers cannot produce or be transformed into xsp pages. This is not the concept. Giacomo map:match pattern=**.xml map:generate src={1}.xml/ map:transform src=myfile.xsp.xsl map:generate type=serverpages src=myfile.xsp.xsl/ /map:transform map:serialize/ /map:match otherwise, look in the MAP dtd or schema ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2 and Avalon
Quoting Ulrich Mayring [EMAIL PROTECTED]: Hi folks, now that the beta is out, what is the relation of Cocoon2 and Avalon? We already use Avalon here for other stuff, can we just install Cocoon as a block or do we still need Tomcat? So far C2 is not a Block. You still need Tomcat (IIRC Tomcat 4 can be build as a Block). The relation to Avalon is that C2 uses the framework and excalibur. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Problem starting up new C2 beta
Quoting Alexander Weinmann [EMAIL PROTECTED]: I am quite sure that I don't have any duplicate versions of avalon or other jars in the classpath. If still think it is a general problem with the avalon/excalibur jars included in the dist. ... Though: If others DO NOT have the problem, It must be may local installation ... So: Did somebody manage to start up C2beta as it comes out of the box from the download directory? Yes, I can confirm that the C2 beta 1 is running out of the box on a NT box with Tomcat 4 (current cvs) Giacomo -Ursprüngliche Nachricht- Von: Fred Tsang [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Juni 2001 11:42 An: '[EMAIL PROTECTED]' Betreff: RE: Problem starting up new C2 beta Hi Alexander, take a look at the following forwarded email response from Berin Loritsch at Apache. If you have the same setup as me, this should do the trick: == Fred Tsang wrote: Sorry, My environment is: Tomcat 3.2.1 JDK 1.3.1 Solaris 8 I've placed all the jar files from WEB-INF/lib into my $TOMCAT_HOME/lib folder, and removed any duplicates from previous versions. I'll try removing the avalon jars from the lib folder, but I'm a little skeptical. If cocoon can't find the classes, how will it operate? thanks for the tip! That was your whole problem! Cocoon 2 is designed to work like servlets are supposed to work: plug and play. COCOON 1 TO COCOON 2 MIGRATION Cocoon 1 forces you to place all the jars in the Tomcat lib directory, this was unnavoidable at the time but it was because of XSP compilation. Cocoon 2 discovered how to be able to compile XSP without moving the jars out of the servlet context lib directory. 1) Remove all unnecessary/conflicting jars from $TOMCATH_HOME/lib 2) Replace $TOMCAT_HOME/lib/{xerces/parser jar} with the version of Xerces that comes with Cocoon 2. 3) LEAVE ALL COCOON 2 JARS IN ${context}/WEB-INF/lib cheers, Fred -Original Message- From: Alexander Weinmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 9:06 AM To: Cocoon-Users (E-Mail) Subject: Problem starting up new C2 beta Hello Cocooners! I am getting back an old problem when starting up the new C2 beta distribution: Package Naming problems in Avalon: In the log I have: ERROR 1201[cocoon ] (Thread-24): Error compiling sitemap java.lang.NoClassDefFoundError: org/apache/avalon/logger/AbstractLoggable at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.avalon.excalibur.component.DefaultComponentFactory. newInstance(De faultComponentFactory.java:83) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandl er.initialize( ThreadSafeComponentHandler.java:78) at org.apache.avalon.excalibur.component.DefaultComponentSelector .addComponent( DefaultComponentSelector.java:306) at org.apache.cocoon.components.language.generator.GeneratorSelec tor.addGenerat or(GeneratorSelector.java:75) at org.apache.cocoon.components.language.generator.GeneratorSelec tor.addGenerat or(GeneratorSelector.java:71) at org.apache.cocoon.components.language.generator.GeneratorSelec tor.select(Gen eratorSelector.java:57) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.select( ProgramGeneratorImpl.java:261) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.load(Pr ogramGeneratorImpl.java:145) at org.apache.cocoon.sitemap.Handler.run(Handler.java:224) at java.lang.Thread.run(Thread.java:484) I am quite sure that the class name should be org/apache/avalon/framework/logger/AbstractLoggable Is it sure that the Avalon and Excalibur jars included in the dist work well together? abaXX TECHNOLOGY AG Alexander Weinmann Development Engineer Training [Address] Forststrasse 7, 70174 Stuttgart, Germany [Phone] +49-(711)-61-41-6 - 1541 [Fax] +49-(711)-61-41-6 - [E-mail] mailto:[EMAIL PROTECTED] [Internet] http://www.abaXX.com http://www.abaxx.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: AW: AW: Problem starting up new C2 beta
On Thu, 7 Jun 2001, Alexander Weinmann wrote: Have you left any jars in the java extension directory? Just a thought. Giacomo -Ursprüngliche Nachricht- Von: Giacomo Pati [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Juni 2001 14:41 An: [EMAIL PROTECTED] Betreff: Re: AW: Problem starting up new C2 beta Quoting Alexander Weinmann [EMAIL PROTECTED]: I am quite sure that I don't have any duplicate versions of avalon or other jars in the classpath. If still think it is a general problem with the avalon/excalibur jars included in the dist. ... Though: If others DO NOT have the problem, It must be may local installation ... So: Did somebody manage to start up C2beta as it comes out of the box from the download directory? Yes, I can confirm that the C2 beta 1 is running out of the box on a NT box with Tomcat 4 (current cvs) Giacomo So it must be my installation! But I am stuck! I use Tomcat 3.2 on Windows 2000, and I am sure having removed all conflicting jars from $TOMCAT_HOME/lib. Any ideas why I still have this package naming problem, that seem to originate in an org.apache.avalon.excalibur class? -- I don't understand that. I successfully installed C2 several times from CVS But as my employee has closed the CVS port, I am forced to get the dist running ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Cocoon2 Beta 1 Release
The Apache Cocoon team are proud to announce the first beta release of the Apache Cocoon2 XML sub project: Apache Cocoon is a 100% pure Java publishing framework that relies on W3C technologies to provide web content. The Apache Cocoon project aims to change the way web information is created, rendered and served. The Apache Cocoon paradigm is based on the fact that document content, style and logic are often created by different individuals or working groups. Apache Cocoon aims for a complete separation of the three layers, allowing the three layers to be independently designed, created and managed, reducing management overhead, increasing work reuse and reducing time to market. Apache Cocoon2 is a complete rewrite of the Apache Cocoon1 XML publishing framework that is supposed to remove all those design constraint that emerged from the Apache Cocoon1 experience. This release marks API stability of the project. The next release will primarily focus on documentation. The Cocoon team - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: Apache Cocoon2 Beta 1 Release
On Wed, 6 Jun 2001, Marco Spinetti wrote: Great You are great!! I'm proud to be a Cocoon User list member. Where can I download the beta release ? From the CVS ? Does exists a binary version? Oops, forgot to mention it in the announcement. It's at the usual location: http://xml.apache.org/dist/cocoon Giacomo Marco - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 06, 2001 1:50 PM Subject: Apache Cocoon2 Beta 1 Release The Apache Cocoon team are proud to announce the first beta release of the Apache Cocoon2 XML sub project: Apache Cocoon is a 100% pure Java publishing framework that relies on W3C technologies to provide web content. The Apache Cocoon project aims to change the way web information is created, rendered and served. The Apache Cocoon paradigm is based on the fact that document content, style and logic are often created by different individuals or working groups. Apache Cocoon aims for a complete separation of the three layers, allowing the three layers to be independently designed, created and managed, reducing management overhead, increasing work reuse and reducing time to market. Apache Cocoon2 is a complete rewrite of the Apache Cocoon1 XML publishing framework that is supposed to remove all those design constraint that emerged from the Apache Cocoon1 experience. This release marks API stability of the project. The next release will primarily focus on documentation. The Cocoon team - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: R: Apache Cocoon2 Beta 1 Release
On Wed, 6 Jun 2001, Ulrich Mayring wrote: Carsten Ziegeler wrote: Yes and yes. No and yes: The beta is feature-complete including caching and content aggregation. Without having seen it: great work, guys. The only thing missing is even more documentation. Wot no docs? :) Seriously, I think it's really cool that you guys plan to write some docs before writing more code. This puts some real pressure on me to upgrade - up to now I could always say to my boss: ah.. no docs, not feature-complete, Cocoon1 works, ... This was the only reason to state that beta 2 will have mainly more docs to make you upgrande sooner than later ;) We badly need your comments about C2 because you're one of the most critical person around here I know of. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Reloading changed sitemap
On Wed, 6 Jun 2001, Csaba Nagy wrote: Hi cocooners, I'm running cocoon 2 in weblogic 6.0 on Windows 2000, and there's a big problem in that the sitemap is not reloaded if I change it. In my understanding it should be reloaded as soon as it changes. Am I missing something ? Is the sitemap reloading working on other platforms ? If you are using the default setup you might notice that the first request after you changed the sitemap doesn't reflect it. If you wait a few seconds and retry you should see the changes. This is due to the fact that the regeneration of the sitemap class is done in a background thread. Giacomo Thanks, Csaba. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sub-sitemap and redirect
On Tue, 29 May 2001, Sven Kuenzler wrote: In the main sitemap, I have mounted a sub-sitemap like: map:pipeline map:match pattern=sub** map:mount uri-prefix=sub src=sub/ check-reload=yes/ /map:match /map:pipeline In the sub-sitemap, there is this entry map:match pattern= map:redirect-to uri=sub/foobar/ /map:match Now, if I request /cocoon/sub, I get redirected to /cocoon/sub/foobar, which is what I want. However, if I request /cocoon/sub/, I get redirected /cocoon/sub/sub/foobar, which is not found. Is this the desired behaviour? If so, how should I correct my pipelines to get the same result from requesting with or without trailing slash? Thanks for the hint. The pattern of the matchers to the mount element should be sub/**. In the sub-sitemap a redirect should not include the url prefix of the sub sitemap else you cannot relocate the sub sitemap to another url prefix without changing all the patterns in there.. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]