Réf. : RE: Xinclude + cocoon pseudo protocol
Sorry the problem is that the stylesheet doesn't seem to be able to interpret the xinclude command. here is the IE error message I get : La page XML ne peut pas être affichée Impossible d'afficher l'entrée XML en utilisant la feuille de style XSL. Corrigez l'erreur, puis cliquez sur le bouton Actualiser ou réessayez ultérieurement. Un seul élément de niveau supérieur est autorisé dans un document XML. Erreur de traitement de la ressource http://localhost:8080/ome-xinc/gogo/. Ligne 6, Position 4 xinclude:include xmlns:xinclude=http://w3.org/2001/XInclude; href =xincludetest/foo base=cocoon:// ---^ sorry, the message is in french. I don't know if it is the stylesheet or if it is a bad declaration of the xinclude command. I can send a piece of my sitemap and my stylesheet. Thanks Vadim Gritsenko vadim.gritsenko@vePour : [EMAIL PROTECTED] rizon.net cc : Objet : RE: Xinclude + cocoon pseudo 04/03/2002 23:49 protocol Veuillez répondre à cocoon-users From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Hi, I need to perform some inclusions into an XSL stylesheet using the cocoon pseudo-protocol. what i've tried to do is have two pipelines in my sitemap. The main pipeline generates a XML file, which is transformed with an XSL stylesheet, then serialized into XML. In the stylesheet, i'm trying to include some XML which is coming from the second pipeline. xsl:template match=whatever xinclude:include base=cocoon:/ href=xincludetest// /xsl:template My second pipeline is matching this pattern xincludetest. it is generating a foo XML stream from a foo XML file then serializes it in XML too. I just want to try to get this foo XML stream into my stylesheet. The aim of this test is to be able to call a XMLDB query on a XMLDB database through this second pipeline. if anybody could help :)) ... you just forgot to mention what's the problem, otherwise I sure help would be under way ;) Vadim Tin - 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: Merging Cocoon2 and a webapp, same context
OK, I have news with my problem: http://localhost:8080/examples/cocoon works fine, actually, but every other URL in the form http://localhost:8080/examples/cocoon/foobar seems to be resolved by Tomcat instead of Cocoon with its sitemap!!! So for every request I get Apache Tomcat/4.0.1 - HTTP Status 404. How can I force Cocoon resolving in place of Tomcat's??? I thought that a servlet mapping with the URI /cocoon was enough... but apparently not! At 18:02 04/03/02 +0100, Olivier Rossel wrote: Florent =?iso-8859-1?Q?Soulière?= wrote: Hi folks! I seeked in the mailing-list archive, but I did not found how to make cocoon and a webapp using servlets share the same session context. I am using Tomcat 4.0.1 and Cocoon 2.0.1. Everything used to work well till I started to try the merge. Now the detailed situation: For the try, I wanted to merge Cocoon2 and Tomcat's webapps/example application. I included all the necessary files from cocoon directory (conf files, lib files, log directory), and checked every conf file for any manual modification. I dropped webapps/cocoon/WEB-INF/web.xml content into webapps/examples/WEB-INF/web.xml, while changing cocoon's URI from / to /cocoon. And here is the result: - Tomcat starts properly with no error msg, and cocoon initialization lines are displayed as usual - when I type http://localhost:8080/examples/cocoonhttp://localhost:8080/examples/cocoon in my web browser, I get a resource not found error After several tests around this problem, it appears in the logs that Cocoon forgets the examples/cocoon part of the URL during the URI resolving... So what is the problem? does anyone know? Thank you in advance. Florent Soulière @ T-Systems May be you should try the URL: http://localhost:8080/examples/cocoon/ (with the slash). Or add a pattern in the sitemap that matches the string . BTW, the sitemap receives the substring of the URL that is AFTER the context name. - 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]
AW: cocoon 1.8 and jre 1.4
Marcel Stoer wrote: hi all is it possible to run cocoon with jre 1.4? the cocoon version is the one shipped with jbuilder 6 (comes with tomcat 4.0.1, too). on the index.html claims to be version 1.8. what steps do i have to take to configure my system? do i maybe have to download/use the most recent binaries available? There aren't any more recent binaries. well, actually i thought of cocoon 2.0.1. will it work with tomcat 4.0.1 and jdk 1.4?? There are some issues with API changes that make Cocoon 1.8.x incompatible with JDK 1.4. The first that comes to mind are the JDBC 3.0 changes. thanks marcel - 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: my svg does not work in cocoon 2.0.1
On Tue, 5 Mar 2002, marco wrote: I was using cocoon 2.0.0, tomcat 4.0.1, jdk1.3.1_01 in Windows 98, the svg2png serializer works fine, but the svg graphics becomes blank after I upgraded the cocoon to 2.0.1. Hi marco, I had a similar problem. Check your namespaces are specifically declared in the SVG xml. Also, are there any errors in the logs at all? Andrew. -- Andrew SavoryEmail: [EMAIL PROTECTED] Managing Director Tel: +44 (0)20 8553 6622 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order.Web:www.luminas.co.uk - 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: my svg does not work in cocoon 2.0.1
Andrew Savory wrote: On Tue, 5 Mar 2002, marco wrote: I was using cocoon 2.0.0, tomcat 4.0.1, jdk1.3.1_01 in Windows 98, the svg2png serializer works fine, but the svg graphics becomes blank after I upgraded the cocoon to 2.0.1. Hi marco, I had a similar problem. Check your namespaces are specifically declared in the SVG xml. Also, are there any errors in the logs at all? Andrew. In you stylesheet try like next: xsl:template match=graph svg:svg width=200 height=15 xmlns:svg=http://www.w3.org/2000/svg; ^--- svg:g style=stroke: black; stroke-width: 2px; svg:line x1=5 y1=5 x2=8 y2=5/ svg:line x1=5 y1=5 x2=5 y2=15/ /svg:g svg:text x=10px y=10px style=font-family:sans; font-size:15px; fill: #0086b2; text-anchor:start; test text /svg:text svg:g style=stroke: black; stroke-width: 2px; svg:line x1=195 y1=5 x2=192 y2=5/ svg:line x1=195 y1=5 x2=195 y2=15/ /svg:g svg:text x=190px y=10px style=font-family:sans; font-size:15px; fill: #0086b2; text-anchor:end; tes2 text /svg:text /svg:svg /xsl:template Regards. Yury. - 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]
[C2] XSPCookieHelper does not set domain?
We have a problem with XSPCookieHelper in an XSP file, the domain is not set, (the www.servername.com in the example below) so we can't read the cookie back easily from another page. The domain is actually set to the name of the sitemap entry calling the xsp file. If we had a sitemap entry called adduser/ then that would be the name of the cookies domain. Example: XSPCookieHelper.addCookie(objectModel, testname, testvalue, comment, www.servername.com, 10 * 365 * 24 * 60 * 60, , , 1); Regards, Rune Sandnes, Trondheim, Norway - 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]
XHTML DOCTYPE - HTML vs. html
Sorry if this has been answered somewhere, but I have searched the FAQ, several mailing list archives and other sites, and have tried to figure this out myself for several hours. So finally I give up and hope that somebody on the list can help me. I want to use Cocoon to generate XHTML pages that pass the validation test at W3C. Unfortunately, Cocoon (or rather, the XML Serializer in Xerces, if I understand the interdependencies correctly) always emits a doctype declaration likes this: !DOCTYPE HTML PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd while the W3C validator insists on having one like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd i.e., html in lower case. In my sitemap.xmap I have the following definition: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemDTD/xhtml1-transitional.dtd/doctype-system omit-xml-declarationtrue/omit-xml-declaration encodingISO-8859-1/encoding indent1/indent /map:serializer Any help (or pointer to documentation) would be greatly appreciated. Thank you. -- Stefan Tilkov, [EMAIL PROTECTED] innoQ Deutschland GmbH, Harkortstraße 21-23, D-40880 Ratingen, Germany Phone: +49 2102 771 620 Mobile: +49 170 471 2624 Fax: +49 2102 771 601 - 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: XHTML DOCTYPE - HTML vs. html
From: [EMAIL PROTECTED] Cocoon (or rather, the XML Serializer in Xerces, if I understand the interdependencies correctly) always emits a doctype declaration likes this: !DOCTYPE HTML PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd while the W3C validator insists on having one like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd i.e., html in lower case. Is the main tag in your document HTML or html ? In xhtml HTML is not valid: ref uri=http://www.w3.org/TR/xhtml1/#diffs; XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. li and LI are different tags. /ref -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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]
Local characters in request params
Hello, Still need of your help. Any advice would be gratefully appreciated. Thank you. == Could you, please, help me? Is it possible to perform a request via Cocoon 2.01 using xmldb protocol if xpath contains local characters, for example 'é' (or %E9 or eacute;). It seems that such characters are translated to escaped codes (like eacute;) and dbXML (I use dbXML 1.0b4 Mustard) doesn't decode them. Pieces of a pipeline: map:match pattern=getx/** map:generate src=cocoon:/xmldb/db/data/bdl/data/Lubrifiants/?xpath=//Lubrifiant[natureLubrifiant='pâte']/ map:serialize name=xml/ /map:match map:match pattern=getx1/** map:generate src=cocoon:/xmldb/db/data/bdl/data/Lubrifiants/?xpath=//Lubrifiant[natureLubrifiant='p%E2te']/ map:serialize name=xml/ /map:match returns collection:results query=//Lubrifiant[natureLubrifiant='pacirc;te'] resources=0 xmlns:collection=http://apache.org/cocoon/xmldb/1.0/ Meantime, such data exist in db and could be reviewed by means of gopher's xpath query interface. Moreover, such patterns without local codes (ex.: natureLubrifiant='huile soluble') work fine. For info:I didn't change a configuration of xmldb protocol and patterns, just copied main sitemap.xmap provided in cocoon.war and added my patterns. Thank you in advance. Roman - 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]
Livesite
Hello, A new cocoon 2 web site has been developped by our french company Easance in 3 languages (French, English and japanese) and postgresql database: http://www.bethe1.com This web site is the worldwide employment specialist in FASHION, BEAUTY and selective RETAIL.. Best regards Patrick Montier - Technical director - 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]
Session management.
I want to enable a session anytime a new user arrives on a given page, si I can use the ReadDOMSession/WriteDOMSession later in the website. Is there an action to simply enable a session. No validation, no nothing, just a session opened. It seems that I can use the HttpRequest.getSession() to enable it, but it supposes that i code a XSP. I am newbie at session management, and hope you can help. - 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: Merging Cocoon2 and a webapp, same context
Florent Soulière wrote: OK, I have news with my problem: http://localhost:8080/examples/cocoon works fine, actually, but every other URL in the form http://localhost:8080/examples/cocoon/foobar seems to be resolved by Tomcat instead of Cocoon with its sitemap!!! So for every request I get Apache Tomcat/4.0.1 - HTTP Status 404. How can I force Cocoon resolving in place of Tomcat's??? I thought that a servlet mapping with the URI /cocoon was enough... but apparently not! You need an explicit rule in the sitemap that matches completely the substring of the URL that is after the context name. Something like map:match pattern=** map:read src={0} type=text/html/ map:match For that you will probably use wildcards (* and **). Have a look at the default sitemap for an explanation. - 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: XHTML DOCTYPE - HTML vs. html/Possible solution
Nicola Ken Barozzi [EMAIL PROTECTED] wrote on 05.03.2002 12:08:34: Is the main tag in your document HTML or html ? Thanks for the answer, but it's html, and the W3C validator explicitly comlains about the doctype declaration. If I change HTML to html in the doctype decl of the saved copy of the generated XML, it validates OK. But I have played around a little bit more, and have changed my sitemap.xmap entry to be map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemDTD/xhtml1-transitional.dtd/doctype-system omit-xml-declarationtrue/omit-xml-declaration encodingISO-8859-1/encoding indent1/indent /map:serializer i.e., I use the XMLSerializer instead of the HTMLSerializer - and now I get the right doctype declaration! (I also get the line ?xml version=1.0 encoding=ISO-8859-1? as the first line of the document. I thought I could prevent this with omit-xml-declarationtrue/omit-xml-declaration, but this doesn't seem to be the case. Is this a problem?) But is this the right way to do it? If so, does it deserve an FAQ entry? I can't imagine that I'm the only Cocoon user who wants to generate XHTML and validate the documents (or am I?). Stefan In xhtml HTML is not valid: ref uri=http://www.w3.org/TR/xhtml1/#diffs; XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. li and LI are different tags. /ref -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: Merging Cocoon2 and a webapp, same context
I found it! Here is the workaround. I hope this will help other developers: In the WEB-INF/web.xml file of the application, use the following in the servlet-mapping section: the URL-pattern must be /cocoon/* instead of /cocoon. You can also replace the word cocoon by anything else you want. Have fun, and tell me if I am wrong... At 13:26 05/03/02 +0100, you wrote: Florent Soulière wrote: OK, I have news with my problem: http://localhost:8080/examples/cocoon works fine, actually, but every other URL in the form http://localhost:8080/examples/cocoon/foobar seems to be resolved by Tomcat instead of Cocoon with its sitemap!!! So for every request I get Apache Tomcat/4.0.1 - HTTP Status 404. How can I force Cocoon resolving in place of Tomcat's??? I thought that a servlet mapping with the URI /cocoon was enough... but apparently not! You need an explicit rule in the sitemap that matches completely the substring of the URL that is after the context name. Something like map:match pattern=** map:read src={0} type=text/html/ map:match For that you will probably use wildcards (* and **). Have a look at the default sitemap for an explanation. - 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: XHTML DOCTYPE - HTML vs. html/Possible solution
[EMAIL PROTECTED] schrieb: Nicola Ken Barozzi [EMAIL PROTECTED] wrote on 05.03.2002 12:08:34: Is the main tag in your document HTML or html ? Thanks for the answer, but it's html, and the W3C validator explicitly comlains about the doctype declaration. If I change HTML to html in the doctype decl of the saved copy of the generated XML, it validates OK. It seems that the HTMLSerializer and even the XHTMLSerializer classes in Xerces still have 'HTML' hardcoded :-( -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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]
Might have a Problem with Caching (xsp/xsl)
Hello, we are using Cocoon 2.0.1, Tomcat 4.0.2, JDK 1.3.1 and try to develop something with XSP using external Java-Classes to access Databases and performs some Calculation. The two files (I know, there are a few things that can be done in a better way, like xsp:include in example.xsl ...) show our problems and are an extract of a larger file. We are using the example.xsl as a logicsheet and setup everything in cocoon.xconf, inserted the required fields in sitemap.xmap to match example.xsp with the serverpages-gererator (Can provide the files if neecessary). Basically, all this works, especially the output of our database-request is stored in msg and printed on the screen: OUTPUT: file:///home/vorms/lomobjects/lo/vorms/tp3/author/stefanvoss_1_1.0.xml We have to problems: 1: There seems to be some kind of caching in a way we do not want. We assume that the xsp is compiled to a generator whenever we change something in one of the files and reload the page in a browser (we tried 5 browser, all have the same problem). E.g., these files produce the output above. If we change something in the xsl-file (like the file:// in foo://, the pages in the browser do not change. Furthermore, even a restart of cocoon (and tomcat) sometimes are not working either. Strange to say, it works sometimes but we could not discover any pattern. The question is: How do we prevent a caching and force a recompilation of the xsp-pages whenever we have a reload in the browser. 2: We want to set a xsl:variable to the value of the variable of msg being part of the xsl:logic. Using this structure, it seems that the xsp:expr is not evaluated and therefore not working. Is there any way to do this. xsl:variable name=toInsert xsp:expr msg /xsp:expr /xsl:variable The reason for this solution is that we want to include another file with xsl:apply-templates select=document($toInsert) / and within document it is not allowed to use xsp:expr. Thanks for your help Torsten - example.xsp - ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:vormsexample=http://www.vorms.org/xsl; xsp:structure xsp:includeDBInterface/xsp:include /xsp:structure vormsexample:page title Simple Example /title vormsexample:torsten identifier=LOM/ /vormsexample:page /xsp:page - example.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:vormsexample=http://www.vorms.org/xsl; xsl:template match=vormsexample:page page xsl:apply-templates/ /page /xsl:template xsl:template match=vormsexample:torsten xsp:logic DBInterface dbinterface = new DBInterface(); dbinterface.establishConnection(jdbc:mysql://134.169.75.183/vorms,vorms,vorms); String msg = file:// + dbinterface.getURIForLM(LO_VORMS_TP3_AUTHOR_STEFANVOSS_1_1); /xsp:logic xsp:expr msg /xsp:expr xsl:variable name=toInsert xsp:expr msg /xsp:expr /xsl:variable xsl:apply-templates select=document($toInsert) / /xsl:template xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template /xsl:stylesheet -- __ __ _ OO\| O__ O\__/O / O /O O\ / O O | -.oOOo--oOOo.- Torsten Reiners Tel:++49-531-3913214 [EMAIL PROTECTED]Fax:++49-531-3918144 http://server3.winforms.phil.tu-bs.de/~treiners TU Braunschweig Abteilung Allgemeine Betriebswirtschaftslehre, Wirtschaftsinformatik und Informationsmanagement Abt-Jerusalem-Str.7 38106 Braunschweig, Germany Other EMails: [EMAIL PROTECTED] [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]
Help Cocoon 2.0 - Oracle8 DB connection problems...
Hi, my system PC1 win2000,Tomcat4.0,jdk1.3 end data souce is PC2 Oracle8 ERROR CONNECTION org.apache.cocoon.ProcessingException description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. In log(Cocoon2)\cocoon.log01 ERROR : DEBUG (2002-03-05) 13:06.47:944 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Setting up the sitemap. DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Sitemap location = sitemap.xmap DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Checking sitemap reload = true DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Reloading sitemap asynchron = true DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Starting database server DEBUG (2002-03-05) 13:06.56:567 [cocoon ] (Unknown-URI) Unknown-thread/AbstractPool: org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: No more data to read from socket at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:411) at oracle.jdbc.ttc7.TTCInBuffer.getByte(TTCInBuffer.java:94) at oracle.jdbc.ttc7.TTIMsg.unmarshalSB1(TTIMsg.java:1085) at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:603) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:168) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:103) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Thank's Luca Morandini for help in web.xml end cocoon.xconf !-- Prova Prova Prova Prova Prova Prova Prova Prova Prova -- map:match pattern=visualizza/* map:generate type=serverpages src=visualizza/{1}.xsp/ map:serialize/ /map:match !-- Prova Prova Prova Prova Prova Prova Prova Prova Prova -- Bye Thank's Giuseppe __ Abbonati a Tiscali! Con Tiscali By Phone puoi anche ascoltare ed inviare email al telefono. Chiama Tiscali By Phone all' 892 800http://byphone.tiscali.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]
Help Cocoon 2.0 - Oracle8 DB connection problems...
Hi, my system PC1 win2000,Tomcat4.0,jdk1.3 end data souce is PC2 Oracle8 ERROR CONNECTION org.apache.cocoon.ProcessingException description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. In log(Cocoon2)\cocoon.log01 ERROR : DEBUG (2002-03-05) 13:06.47:944 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Setting up the sitemap. DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Sitemap location = sitemap.xmap DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Checking sitemap reload = true DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Reloading sitemap asynchron = true DEBUG (2002-03-05) 13:06.47:955 [cocoon ] (Unknown-URI) Unknown-thread/Cocoon: Starting database server DEBUG (2002-03-05) 13:06.56:567 [cocoon ] (Unknown-URI) Unknown-thread/AbstractPool: org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: No more data to read from socket at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:411) at oracle.jdbc.ttc7.TTCInBuffer.getByte(TTCInBuffer.java:94) at oracle.jdbc.ttc7.TTIMsg.unmarshalSB1(TTIMsg.java:1085) at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:603) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:168) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:103) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Thank's Luca Morandini for help in web.xml end cocoon.xconf !-- Prova Prova Prova Prova Prova Prova Prova Prova Prova -- map:match pattern=visualizza/* map:generate type=serverpages src=visualizza/{1}.xsp/ map:serialize/ /map:match !-- Prova Prova Prova Prova Prova Prova Prova Prova Prova -- Bye Thank's Giuseppe __ Abbonati a Tiscali! Con Tiscali By Phone puoi anche ascoltare ed inviare email al telefono. Chiama Tiscali By Phone all' 892 800http://byphone.tiscali.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]
Re: Might have a Problem with Caching (xsp/xsl)
From: Torsten Reiners [EMAIL PROTECTED] The question is: How do we prevent a caching and force a recompilation of the xsp-pages whenever we have a reload in the browser. See: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101289497109955w=2 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101353757800807w=2 2: We want to set a xsl:variable to the value of the variable of msg being part of the xsl:logic. It's not possible, if I understand correctly. XSPs are handled as marcos. All XSL is resolved at compile time, while logic at execution time. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: XHTML DOCTYPE - HTML vs. html/Possible solution
From: Johannes Koch [EMAIL PROTECTED] [EMAIL PROTECTED] schrieb: Nicola Ken Barozzi [EMAIL PROTECTED] wrote on 05.03.2002 12:08:34: Is the main tag in your document HTML or html ? Thanks for the answer, but it's html, and the W3C validator explicitly comlains about the doctype declaration. If I change HTML to html in the doctype decl of the saved copy of the generated XML, it validates OK. It seems that the HTMLSerializer and even the XHTMLSerializer classes in Xerces still have 'HTML' hardcoded :-( I've filed a bug report for this issue. Thank you and Stefan for pointing this out :-) http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6878 -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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]
Optional parameters
Hi all, I've got something like : map:match pattern=D*/*.xml map:generate src=D{1}/{2}.xml/ map:match type=request pattern=lang map:transform src=doc.xsl map:parameter name=lang value={1}/ /map:transform map:serialize type=html/ /map:match /map:match In my sitemap. But I'm not sure that lang - optional parameter of doc.xsl - has been sent by the URL, and : URL like xxx.xml?lang= = ok URL like xxx.xml = ressource not found error = How can I manage optional request parameters in the sitemap ? Many thanks, Olivier - 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: HOWTO: jdk1.4
is it just me, or did the 1.4 JDK introduce a lot of grief here REQUIRING changes to the jre/lib directory? Or is there another way to make this work? -- From: Matt Williams[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 12:14 AM To: [EMAIL PROTECTED] Subject: HOWTO: jdk1.4 Hi, Sorry I havent introduce myself, I will do so when im not so tired ;-) Those wanting to use cocoon2 on windows with jdk1.4 do the following: - Download Tomcat Binary(LE) and install - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps - Launch Tomcat - When the WAR has been extracted Shut Tomcat Down - make a directory 'endorsed' in $JAVA_HOME/jre/lib - copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory - copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - clear out everything under $CATALINA_HOME/work/localhost - start tomcat - buy me a beer Those wanting to use cocoon2 on *nix with jdk1.4 do the following: - Do the same as the windows guys are doing - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true' - start tomcat - buy me 2 beers Can someone with commit access to the cvs add that headless stuff Thanks, Matt Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text. I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs - 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: Optional parameters
If you use the transformer xsl with pass the parameter to the xslt, is not necessary to declare the parameters and use the match. Prove this: map:match pattern=D*/*.xml map:generate src=D{1}/{2}.xml/ map:transform src=doc.xsl map:parameter name=use-request-parameters value=true/ map:transform/ map:serialize type=html/ /map:match The tag map:parameter name=use-request-parameters value=true/ send to xslt all the parameters from the url or the post request. See the cocoon documentation for other examples. Olivier Boulanger wrote: Hi all, I've got something like : map:match pattern=D*/*.xml map:generate src=D{1}/{2}.xml/ map:match type=request pattern=lang map:transform src=doc.xsl map:parameter name=lang value={1}/ /map:transform map:serialize type=html/ /map:match /map:match In my sitemap. But I'm not sure that lang - optional parameter of doc.xsl - has been sent by the URL, and : URL like xxx.xml?lang= = ok URL like xxx.xml = ressource not found error = How can I manage optional request parameters in the sitemap ? Many thanks, Olivier - 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] begin:vcard n:Adrover;Bartomeu x-mozilla-html:FALSE org:UIB;Servei de Càlcul i Informatizació version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya fn:Baromeu Adrover end:vcard - 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]
xinclude and request object
I have an xsp page which uses the request object to get a handle on request parameters, cookies etc. called directly this works fine. called using xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=xxx.xml xml:base=cocoon:/ / it doesn't have scope of the original request. any ideas on how to fix this? cheers, mooch. The information in this Internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorized. Any views or opinions presented are solely those of the author and do not necessarily represent those of TWI, TWIi, IMG, PCC, NOW or any of their affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] and delete this email immediately. - 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éf. : RE: Xinclude + cocoon pseudo protocol
Hi Tin, First check the XInclude namespace you're using. The correct namespace is : xmlns:xi=http://www.w3.org/2001/XInclude; Once you've added an xi:include element, you have to process it with another transformer (the XIncludeTransformer) because the default XSLTTransformer can only process elements in the XSL namespace (such as xsl:template, xsl:if, and so on). This means that you must add in your pipeline a second map:transform element, just after the first one : map:transform type=xinclude/ where xinclude is the name of the XIncludeTransformer declared in the map:components/map:transformers section of your sitemap : map:transformer name=xinclude logger=sitemap.transformer.xinclude src=org.apache.cocoon.transformation.XIncludeTransformer/ Unfortunately, I don't know whether the XIncludeTransformer can use the cocoon:/ context. When you have an IE error message, try to view the source of the page with the Affichage/Source menu of your browser. It's very useful when you want to see what has been produced. Cheers, Matthieu -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 5 mars 2002 09:50 Objet : Réf. : RE: Xinclude + cocoon pseudo protocol Sorry the problem is that the stylesheet doesn't seem to be able to interpret the xinclude command. here is the IE error message I get : La page XML ne peut pas être affichée Impossible d'afficher l'entrée XML en utilisant la feuille de style XSL. Corrigez l'erreur, puis cliquez sur le bouton Actualiser ou réessayez ultérieurement. Un seul élément de niveau supérieur est autorisé dans un document XML. Erreur de traitement de la ressource http://localhost:8080/ome-xinc/gogo/. Ligne 6, Position 4 xinclude:include xmlns:xinclude=http://w3.org/2001/XInclude; href =xincludetest/foo base=cocoon:// ---^ sorry, the message is in french. I don't know if it is the stylesheet or if it is a bad declaration of the xinclude command. I can send a piece of my sitemap and my stylesheet. Thanks - 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: XHTML DOCTYPE - HTML vs. html
On Tue, 5 Mar 2002 [EMAIL PROTECTED] wrote: I want to use Cocoon to generate XHTML pages that pass the validation test at W3C. Unfortunately, Cocoon (or rather, the XML Serializer in Xerces, if I understand the interdependencies correctly) always emits a doctype declaration likes this: !DOCTYPE HTML PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd while the W3C validator insists on having one like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd This works for me -- map:serializer name=xhtml mime-type=text/html src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.1//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd/doctype-syst em omit-xml-declarationno/omit-xml-declaration encodingUTF-8/encoding indent1/indent -- Akber Choudhry Dyanet Inc. http://www.dyanet.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]
DataSourceComponent - questions
Hi, I just read Using Databases in the Cocoon 2 documentation, and I have some questions concerning the code template for the use of the DataSourceComponent: 1. What kind of object is datasource? It is casted to DataSourceComponent, but of which class is it really? Is it an org.apache.avalon.excalibur.datasource.JdbcDataSource when I use a JDBC connection? 2. How do I // perform SQL code here? I guess that in the case of a JDBC connection, I will use the JDBC methods of myConnection to perform inserts, selects, etc., but I'm not sure. 3. It is said that my class needs to implement the Avalon Composer Interface, but I can't find it in the Avalon API. Thanks a lot in advance, Tilman - 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]
Using Cocoon components from within another application
Does anyone have any pointers relating to using Cocoon components from within another application (i.e., an in-house application), in a non-servlet based fashion? Our aim is to produce a reporting application that takes fairly but structured XML, formats it according to various user configurable rules, and then renders it in any one (or more) of a number of outputs (primarily HTML, XML, and PDF) for display and printing. It would be a neat app if we could get it up and running, and so far, Cocoon is one possible architecture. In particular, I 'd like to know about 1) Servlet dependence (I would like to minimise this in order to make the app EJB based) 2) Performance (needs to be good, as volume would be big) 3) Restrictions (technical or otherwise that might knock this on the head) 4) Configurability (flexibility of the app from a reporting perspective is one of our key requirements) 5) Integration with other Java / XML related technologies such as FOP, SVG, Batik, etc 6) Sourcing data (primarily) from a Sybase SQL database. 7) Any other area u think might be relevant Any thoughts, ideas etc are very welcome. Thanks, Colm ** This message is sent in confidence for the addressee only. The contents are not allowed to be disclosed to anyone other than the addressee. Unauthorised recipients must preserve this confidentiality and should please advise the sender immediately of any error in transmission. ** - 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]
SQL Transformer after XSL with copy-of
Hi, I have a problem with SQL transformer and XSL copy-of tag. I already read something similar in the mail archive but I didn't understand if the problem has a solution. I set up a simple test case for the problem, this is the recipe: you need an xml source file (copy.xml) like this: - myQuery select * from actor /myQuery and an xsl file (copy.xsl): --- xsl:template match=myQuery page xmlns:sql=http://apache.org/cocoon/SQL/2.0; xsl:copy-of select=./ execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query isstoredprocedure=false xsl:value-of select=./ /query /execute-query /page /xsl:template /xsl:stylesheet -- and the match element in sitemap.xmap: --- map:match pattern=copy map:generate src=path-to-copy/copy.xml/ map:transform src=path-to-copy/copy.xsl/ map:transform type=sql map:parameter name=use-connection value=personnel/ /map:transform map:serialize type=xml/ /map:match --- Of course you need also the correct configuration for the datasource and a table actor on your db. Now, if I access the cocoon/copy url on my system (w2k+tomcat3.3+cocoon2.0.1+mysql) I get a very long exception (you can find it below). If I comment out the sql transformer step in sitemap I get in the browser a correct xml document. If I comment out the copy-of tag in the xsl, cocoon returns me the correct query result. So, seems that the problem is in the some strange conflict between copy-of/sqlt... Can someone confirm my supposition? Is this problem solved? (If yes sorry for the time wasted!) Thanks, Vittorio Original exception : java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:) at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:182) at org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:331) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process(Abstract EventPipeline.java:118) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:149) at org.apache.cocoon.www.sitemap_xmap.matchN104AD(sitemap_xmap.java:6282) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3019) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2444) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:797) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) Original exception : java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3174) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:49) at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230) at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato r.java:1146) at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch (XMLDocumentScanner.java:1499) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:182) at org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:331) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process(Abstract EventPipeline.java:118) at
Re: Using Cocoon components from within another application
From: O'Flaherty, Colm [EMAIL PROTECTED] Does anyone have any pointers relating to using Cocoon components from within another application (i.e., an in-house application), in a non-servlet based fashion? Cocoon is made to be used in any environment, because it relies on an abstraction, the interface (obviously called) Environment. Currently there is a command-line version and a servlet version, but you can implement your own. In this way, you have *all* features of Cocoon in any environment you wish. Take a look at the existing code for hints on how to proceed. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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]
Help deploying Cocoon 2.0.1 in WebLogic 6.1 SP2 JDK 1.3.1 Solaris 2.8!!!
Folks, I am trying to deploy Cocoon 2.0.1 inside Weblogic 6.1 SP2. I can not get it deploy properly. I followed the instructions on the cocoon and changed cocoon.xconf xslt-processor class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=root.xslt parameter name=use-store value=true/ parameter name=transformer-factory value=org.apache.xalan.processor.TransformerFactoryImpl/ /xslt-processor While deploying, I get a huge stack walkbacks with the root cause being a StringIndexOutofboundsException while trying to resolve manifestname. I have enclosed the stack trace. Questions; 1. Has any one got Cocoon 2.0.1 working inside WL 6.1 SP2? Any help is greatly appreciated? 2. Are you using the WAR file from the distribution or building it yourself? 3. Are there any other changes I am missing?? The above change is the only change I made to cocoon.xconf. Any help is greatly appreciated! Thanks Dora Potluri - Dora Potluri Enterprise Architecture - http://infradev.corp.sprint.com Sprint Phone: 972-405-8005 (Work) Email: [EMAIL PROTECTED] Mar 5, 2002 9:55:41 AM CST Info HTTP [WebAppServletContext(802911,cocoon,/cocoon)] extracting classfiles to /opt/soap_sp1/s1/xa/scripts/config/mydomain/applications/.wlnotdelete_NapiTestServer/WEB-INF/_tmp_war_NapiTestServer_NapiTestServer_cocoon: Mar 5, 2002 9:55:42 AM CST Error J2EE Error deploying application cocoon: Could not load cocoon Mar 5, 2002 9:55:42 AM CST Error Management ApplicationManager starting Config caught throwable java.lang.reflect.UndeclaredThrowableException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Start server side stack trace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469) at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:177) at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3405) at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376) at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862) at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:815) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:163) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy26.addWebDeployment(Unknown Source) at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279) at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233) at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at
Help, Help Please
Hello to all. That he/she makes code piece is it? ?cocoon-process type="xslt"? Thank you to all. Iván Andrade greets them. Descargue GRATUITAMENTE MSN Explorer en http://explorer.yupimsn.com/intl.asp. - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Problem with sitemap
Hi cocoon-users, I have a problem with installing cocoon. When requesting it from my browser it says: Cocoon2 - Internal server error The sitemap handler's sitemap is not available. Please check logs for the exact error. The log file says: HttpProcessor/Handler: Error compiling sitemap java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable ... What can I do? Thank you, - Volker - - 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: Might have a Problem with Caching (xsp/xsl)
From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] From: Torsten Reiners [EMAIL PROTECTED] The question is: How do we prevent a caching and force a recompilation of the xsp-pages whenever we have a reload in the browser. See: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101289497109955w=2 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101353757800807w=2 2: We want to set a xsl:variable to the value of the variable of msg being part of the xsl:logic. It's not possible, if I understand correctly. XSPs are handled as marcos. All XSL is resolved at compile time, while logic at execution time. Ken, You forgot to mention logisheets. AFAIU, he need logicsheet. See http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs p/logicsheet.xsp?rev=1.3content-type=text/vnd.viewcvs-markup Vadim -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: Optional parameters
From: Olivier Boulanger [mailto:[EMAIL PROTECTED]] Hi all, I've got something like : Add couple of lines: map:match pattern=D*/*.xml map:generate src=D{1}/{2}.xml/ map:match type=request pattern=lang map:transform src=doc.xsl map:parameter name=lang value={1}/ /map:transform map:serialize type=html/ /map:match map:transform src=doc-nolang.xsl/ map:serialize type=html/ /map:match In my sitemap. But I'm not sure that lang - optional parameter of doc.xsl - has been sent by the URL, and : URL like xxx.xml?lang= = ok URL like xxx.xml = ressource not found error = How can I manage optional request parameters in the sitemap ? Many thanks, Olivier Vadim - 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: HOWTO: jdk1.4
You can use -Xbootclasspath option (see java -X). Vadim -Original Message- From: Lewis, Andrew J [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:53 AM To: '[EMAIL PROTECTED]' Subject: RE: HOWTO: jdk1.4 is it just me, or did the 1.4 JDK introduce a lot of grief here REQUIRING changes to the jre/lib directory? Or is there another way to make this work? -- From: Matt Williams[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 12:14 AM To: [EMAIL PROTECTED] Subject:HOWTO: jdk1.4 Hi, Sorry I havent introduce myself, I will do so when im not so tired ;-) Those wanting to use cocoon2 on windows with jdk1.4 do the following: - Download Tomcat Binary(LE) and install - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps - Launch Tomcat - When the WAR has been extracted Shut Tomcat Down - make a directory 'endorsed' in $JAVA_HOME/jre/lib - copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory - copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - clear out everything under $CATALINA_HOME/work/localhost - start tomcat - buy me a beer Those wanting to use cocoon2 on *nix with jdk1.4 do the following: - Do the same as the windows guys are doing - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true' - start tomcat - buy me 2 beers Can someone with commit access to the cvs add that headless stuff Thanks, Matt Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text. I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs - 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: Problem with sitemap
You can RTFM. http://xml.apache.org/cocoon/installing/index.html http://xml.apache.org/cocoon/faq.html#faq-24 http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in stalling/index.xml?rev=1.12content-type=text/vnd.viewcvs-markup Vadim -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:58 AM To: [EMAIL PROTECTED] Subject: Problem with sitemap Hi cocoon-users, I have a problem with installing cocoon. When requesting it from my browser it says: Cocoon2 - Internal server error The sitemap handler's sitemap is not available. Please check logs for the exact error. The log file says: HttpProcessor/Handler: Error compiling sitemap java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable ... What can I do? Thank you, - Volker - - 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]
Some Design Help, please
Title: Glacier Hi, I am an absolute newbie to Cocoon. Being from a JSP background, I suspect there are some fundamental differences in the way a database driven web site is designed for Cocoon (with XSP/XML/XSL). Let's say the users enter the site by the way of "index". This page draws its content from several other component pages, namely header, majorTabs, toolBar and contentPage. The requirement is: The active majorTab must be highlighted, each majorTab has a different toolBar associated with it, and the contentPage can be either a static XML file or a database search results page. In the JSP world, I would create an index.jsp page that took in a bunch of request parameters like 'toolBarName', etc., and dynamically include the jsp components specified therein. How would I do something like that in Cocoon? Can one XSP page dynamically include other XSP pages? I would appreciate -any- examples/sample code! Best Regards, Sreedhar Chintalapaty Consultant, PTC 140 Kendrick St., Needham MA 02494 __ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell
[C2] esql:group, esql:member
Hello! has anybody sucessfully used esql:group/esql:member in C2? i looked at the esql.xsl and the group and member templates are not in that taglib. maybe they are not implemented? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08917/pgp0.pgp Description: PGP signature
Re: [C2] esql:group, esql:member
On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote: Hello! has anybody sucessfully used esql:group/esql:member in C2? i looked at the esql.xsl and the group and member templates are not in that taglib. maybe they are not implemented? Perhaps you looked at the wrong version? It should be contained in Cocoon 2.0.1 and above. It certainly is contained in HEAD. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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] esql:group, esql:member
Hello! On Tue, Mar 05, 2002 at 09:55:20PM +0100, Christian Haul wrote: On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote: has anybody sucessfully used esql:group/esql:member in C2? i looked at the esql.xsl and the group and member templates are not in that taglib. maybe they are not implemented? Perhaps you looked at the wrong version? It should be contained in Cocoon 2.0.1 and above. It certainly is contained in HEAD. hmmm, it seems that my version[tm] of c2 is always too old... ;-) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08919/pgp0.pgp Description: PGP signature
RE: HOWTO: jdk1.4
Title: Message I'm running JBoss 2.4.4 with embedded Tomcat 4.0.1 on W2K. Using today's snapshot I followed your instructions, however Ire-built the "cocoon.war" replacing the javac.jar with tools.jar since JBoss deploys and destroys the "war" in a tmp directory. In any case, when I start JBoss (and Catalina) I get the following outputfromthestartup output. I also followed tried the install instructions regarding JBoss 2.4.4 and Tomcat 4.0.1, but I get the same problem. In any case, I am able to bring up the welcome page with "http://localhost:8080/cocoon", however I'm not sure if everything is running as it should. Anyone know what this means? Thanks, Rick [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/cocoon:invoker]: Loading container servlet invoker [INFO,EmbeddedCatalinaServiceSX] invoker: init[INFO,EmbeddedCatalinaServiceSX] jsp: init[ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cocoon]: Servlet /cocoon threw load() exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384) snip [ERROR,EmbeddedCatalinaServiceSX] - Root Cause -java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165) snip -Original Message-From: Matt Williams [mailto:[EMAIL PROTECTED]]Sent: Monday, March 04, 2002 9:15 PMTo: [EMAIL PROTECTED]Subject: HOWTO: jdk1.4 Hi, Sorry I havent introduce myself, I will do so when im not so tired ;-) Those wanting to use cocoon2 onwindows with jdk1.4 do the following: - Download Tomcat Binary(LE) and "install" - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps - Launch Tomcat - When the WAR has been extracted Shut Tomcat Down - make a directory 'endorsed' in $JAVA_HOME/jre/lib - copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory - copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - clear out everything under $CATALINA_HOME/work/localhost - start tomcat - buy me a beer Those wanting to use cocoon2 on *nix with jdk1.4 do the following: - Do the same as the windows guys are doing - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true' - start tomcat - buy me 2 beers Can someone with commit access to the cvs add that headless stuff Thanks, Matt Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text. I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs
RE: Some Design Help, please
You can do this kind of conditional include in Cocoon quite easily. In an xsl script you can use xsl:if to conditionally produce xinclude references to your other xml documents (toolbar, header, etc). Then your pipeline can use the xinclude transformer to process these include elements and actually include the referenced documents together into a single document. -Original Message- From: Sreedhar Chintalapaty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 March 2002 09:39 To: Cocoon Users Subject: Some Design Help, please Hi, I am an absolute newbie to Cocoon. Being from a JSP background, I suspect there are some fundamental differences in the way a database driven web site is designed for Cocoon (with XSP/XML/XSL). Let's say the users enter the site by the way of index. This page draws its content from several other component pages, namely header, majorTabs, toolBar and contentPage. The requirement is: The active majorTab must be highlighted, each majorTab has a different toolBar associated with it, and the contentPage can be either a static XML file or a database search results page. In the JSP world, I would create an index.jsp page that took in a bunch of request parameters like 'toolBarName', etc., and dynamically include the jsp components specified therein. How would I do something like that in Cocoon? Can one XSP page dynamically include other XSP pages? I would appreciate -any- examples/sample code! Best Regards, Sreedhar Chintalapaty Consultant, PTC - 140 Kendrick St., Needham MA 02494 __ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell - 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: Might have a Problem with Caching (xsp/xsl)
Thanks for the hints. Could please post the link to the hello.xsl file so that I can see how it works. Thanks Torsten On Tue, 5 Mar 2002, Vadim Gritsenko wrote: From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] From: Torsten Reiners [EMAIL PROTECTED] The question is: How do we prevent a caching and force a recompilation of the xsp-pages whenever we have a reload in the browser. See: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101289497109955w=2 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101353757800807w=2 2: We want to set a xsl:variable to the value of the variable of msg being part of the xsl:logic. It's not possible, if I understand correctly. XSPs are handled as marcos. All XSL is resolved at compile time, while logic at execution time. Ken, You forgot to mention logisheets. AFAIU, he need logicsheet. See http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs p/logicsheet.xsp?rev=1.3content-type=text/vnd.viewcvs-markup Vadim -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: HOWTO: jdk1.4
I have seen something like this. Follow [SOLUTION] Cocoon with the Tomcat 4.0.3, this should fix this classcastexception. Vadim -Original Message- From: Rick Schwartz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 4:24 PM To: [EMAIL PROTECTED] Subject: RE: HOWTO: jdk1.4 I'm running JBoss 2.4.4 with embedded Tomcat 4.0.1 on W2K. Using today's snapshot I followed your instructions, however I re-built the cocoon.war replacing the javac.jar with tools.jar since JBoss deploys and destroys the war in a tmp directory. In any case, when I start JBoss (and Catalina) I get the following output from the startup output. I also followed tried the install instructions regarding JBoss 2.4.4 and Tomcat 4.0.1, but I get the same problem. In any case, I am able to bring up the welcome page with http://localhost:8080/cocoon;, however I'm not sure if everything is running as it should. Anyone know what this means? Thanks, Rick [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/cocoon:invoker]: Loading container servlet invoker [INFO,EmbeddedCatalinaServiceSX] invoker: init [INFO,EmbeddedCatalinaServiceSX] jsp: init [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cocoon]: Servlet /cocoon threw load() exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3267) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384 ) snip [ERROR,EmbeddedCatalinaServiceSX] - Root Cause - java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:1 83) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocatio nsCache.java:165) snip -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 9:15 PM To: [EMAIL PROTECTED] Subject: HOWTO: jdk1.4 Hi, Sorry I havent introduce myself, I will do so when im not so tired ;-) Those wanting to use cocoon2 on windows with jdk1.4 do the following: - Download Tomcat Binary(LE) and install - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps - Launch Tomcat - When the WAR has been extracted Shut Tomcat Down - make a directory 'endorsed' in $JAVA_HOME/jre/lib - copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory - copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - clear out everything under $CATALINA_HOME/work/localhost - start tomcat - buy me a beer Those wanting to use cocoon2 on *nix with jdk1.4 do the following: - Do the same as the windows guys are doing - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true' - start tomcat - buy me 2 beers Can someone with commit access to the cvs add that headless stuff Thanks, Matt Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text. I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs - 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: Problem with sitemap
On Tue, 5 Mar 2002 15:12:23 -0500 Vadim Gritsenko [EMAIL PROTECTED] wrote: You can RTFM. Yeah you're right, but still ... something changed. http://xml.apache.org/cocoon/installing/index.html http://xml.apache.org/cocoon/faq.html#faq-24 http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in stalling/index.xml?rev=1.12content-type=text/vnd.viewcvs-markup I've building the CVS heads for the last week or so and always have manually deployed the cocoon.war file under /usr/local/httpd/tomcat/webapps/cocoon. Then I usually remove everything under work/localhost and start tomcat by executing cd /usr/local/httpd/tomcat su wwwrun -c sh bin/startup.sh as root with DISPLAY=:0.0 and cocoon came up without problems. But I think something changed in the CVS heads since Saturday or Sunday, since then I also received the below error. For example I can execute su wwwrun -c sh -c 'sh -c gimp' without problems. gimp comes up just fine. So, what is different between gimp and cocoon in this instance? Anyway, with the pja stuff, it works again. Vadim -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:58 AM To: [EMAIL PROTECTED] Subject: Problem with sitemap Hi cocoon-users, I have a problem with installing cocoon. When requesting it from my browser it says: Cocoon2 - Internal server error The sitemap handler's sitemap is not available. Please check logs for the exact error. The log file says: HttpProcessor/Handler: Error compiling sitemap java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable ... What can I do? Thank you, - Volker - - 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] -- MfG/Regards Frank Ridderbusch (frank.ridderbusch (at) gmx.de) - 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: Some Design Help, please
...or you can build up the different pieces using pipelines, later aggregated (using map:aggregate) and finally rendered in HTML using your favorite skin (an XML-to-HTML stylesheet). Well, in my opinion, XSP is not that different from JSP (though, inherenthly better). If I were you, I'd try to make a prototype of my app without using XSP, just to see the potential (and limits) of pure XML/XSL. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Conal Tuohy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:53 PM To: Cocoon Users Subject: RE: Some Design Help, please You can do this kind of conditional include in Cocoon quite easily. In an xsl script you can use xsl:if to conditionally produce xinclude references to your other xml documents (toolbar, header, etc). Then your pipeline can use the xinclude transformer to process these include elements and actually include the referenced documents together into a single document. -Original Message- From: Sreedhar Chintalapaty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 March 2002 09:39 To: Cocoon Users Subject: Some Design Help, please Hi, I am an absolute newbie to Cocoon. Being from a JSP background, I suspect there are some fundamental differences in the way a database driven web site is designed for Cocoon (with XSP/XML/XSL). Let's say the users enter the site by the way of index. This page draws its content from several other component pages, namely header, majorTabs, toolBar and contentPage. The requirement is: The active majorTab must be highlighted, each majorTab has a different toolBar associated with it, and the contentPage can be either a static XML file or a database search results page. In the JSP world, I would create an index.jsp page that took in a bunch of request parameters like 'toolBarName', etc., and dynamically include the jsp components specified therein. How would I do something like that in Cocoon? Can one XSP page dynamically include other XSP pages? I would appreciate -any- examples/sample code! Best Regards, Sreedhar Chintalapaty Consultant, PTC - 140 Kendrick St., Needham MA 02494 __ __ __ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell - 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: HOWTO: jdk1.4
Hi andrew, Dont seem to be any required changes to the jre/lib at all. Maybe you mean the jre/lib/endorsed directory. This isnt so much grief as updating specific classes. I like it this way. Matt -Original Message- From: Lewis, Andrew J [mailto:[EMAIL PROTECTED]] Sent: martes, 05 de marzo de 2002 14:53 To: '[EMAIL PROTECTED]' Subject: RE: HOWTO: jdk1.4 is it just me, or did the 1.4 JDK introduce a lot of grief here REQUIRING changes to the jre/lib directory? Or is there another way to make this work? -- From: Matt Williams[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 12:14 AM To: [EMAIL PROTECTED] Subject: HOWTO: jdk1.4 Hi, Sorry I havent introduce myself, I will do so when im not so tired ;-) Those wanting to use cocoon2 on windows with jdk1.4 do the following: - Download Tomcat Binary(LE) and install - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps - Launch Tomcat - When the WAR has been extracted Shut Tomcat Down - make a directory 'endorsed' in $JAVA_HOME/jre/lib - copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory - copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs - clear out everything under $CATALINA_HOME/work/localhost - start tomcat - buy me a beer Those wanting to use cocoon2 on *nix with jdk1.4 do the following: - Do the same as the windows guys are doing - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true' - start tomcat - buy me 2 beers Can someone with commit access to the cvs add that headless stuff Thanks, Matt Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text. I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs - 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]
beta testing coocon publishing tool
Hi People, My name is Dean McGowan, I have been very busy developing a publishing tool for xml web sites employing apache soap , cocoon2 and tomcat4. I am just about ready to beta test, however I need some live server space to deploy and debug. I am not sure this is the forum to make this request, however I would much appreciate friendly feedback to help me source a willing participant. Regards, Dean McGowan
howto format user input and save to database by default database actions
I am using the DatabaseAddAction to insert user input data into the database, but I cannot format the user input (e.g. uppercase) before saving data into the database or I cannot split one user input field data and save to serveral columns of a table. Please help! - 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]
Form submit to XML
I am working on an application that atleast involves submitting some data in a text box and storing it in a database. I am using the XMLDBTransformer from the scratchpad to do this and storing in Xindice (thanks to Vadim and Christian) Now I have another question. Can anyone recommend what's the best way to get the form submission converted to XML for storage? One way is to use the RequestGenerator on submission to get all the request parameters. Then write an XSL to convert it to the XML format that I desire (which means taking out the request fields). Then I could use the xmldb transformer to save it to xindice. Is it better to use actions for the form submission? That way I could validate the data before storage. Any feedback will be very much appreciated. Best regards, Sam __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! 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]
Re: my svg does not work in cocoon 2.0.1
I have added namespace to the svg tag like thissvg:svg width=200 height=15 xmlns:svg=http://www.w3.org/2000/svg;, but it dose not help even if I restarted the tomcat. Please help :( - Original Message - From: yuryx [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:36 PM Subject: Re: my svg does not work in cocoon 2.0.1 Andrew Savory wrote: On Tue, 5 Mar 2002, marco wrote: I was using cocoon 2.0.0, tomcat 4.0.1, jdk1.3.1_01 in Windows 98, the svg2png serializer works fine, but the svg graphics becomes blank after I upgraded the cocoon to 2.0.1. Hi marco, I had a similar problem. Check your namespaces are specifically declared in the SVG xml. Also, are there any errors in the logs at all? Andrew. In you stylesheet try like next: xsl:template match=graph svg:svg width=200 height=15 xmlns:svg=http://www.w3.org/2000/svg; ^--- svg:g style=stroke: black; stroke-width: 2px; svg:line x1=5 y1=5 x2=8 y2=5/ svg:line x1=5 y1=5 x2=5 y2=15/ /svg:g svg:text x=10px y=10px style=font-family:sans; font-size:15px; fill: #0086b2; text-anchor:start; test text /svg:text svg:g style=stroke: black; stroke-width: 2px; svg:line x1=195 y1=5 x2=192 y2=5/ svg:line x1=195 y1=5 x2=195 y2=15/ /svg:g svg:text x=190px y=10px style=font-family:sans; font-size:15px; fill: #0086b2; text-anchor:end; tes2 text /svg:text /svg:svg /xsl:template Regards. Yury. - 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]
Help - I'm stuck with Cocoon
Hi, I had checked through the site FAQs but found nothing related my problem. Could someone out there, please help me up. I am using Tomcat 4.0.2, I have copied the cocoon.war to the tomcat/webapps directory and restarted the Tomcat server. Attached is the log files in my /webapps/cocoon/web-inf/logs Thanks. Accessing http://localhost:8080/cocoon/ got the following: Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1360) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex caliburComponentManager.java:408) at org.apache.cocoon.Cocoon.configure(Cocoon.java:406) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Help - I'm stuck with Cocoon
I had similar problems. Look in the archives and follow the thread [SOLUTION] Cocoon with the Tomcat 4.0.3 Best Regards, Rick Schwartz -Original Message- From: Ivan Chui [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:23 PM To: [EMAIL PROTECTED] Subject: Help - I'm stuck with Cocoon Hi, I had checked through the site FAQs but found nothing related my problem. Could someone out there, please help me up. I am using Tomcat 4.0.2, I have copied the cocoon.war to the tomcat/webapps directory and restarted the Tomcat server. Attached is the log files in my /webapps/cocoon/web-inf/logs Thanks. Accessing http://localhost:8080/cocoon/ got the following: Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1360) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex caliburComponentManager.java:408) at org.apache.cocoon.Cocoon.configure(Cocoon.java:406) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at
Re: beta testing coocon publishing tool
Hi Dean plse let me know what environment you need and I see if we can help out with the resources that we have. Lam From: Dean McGowan [EMAIL PROTECTED] Subject: beta testing coocon publishing tool Date: Wed, 6 Mar 2002 12:15:19 +1100 To: [EMAIL PROTECTED] Hi People, My name is Dean McGowan, I = have been very busy developing a publishing tool for
HELP, HELP PLEASE
Hello all. That it means or he/she makes this code piece.? Please, explaining the attributes. 1- xsl:processing-instruction name="cocoon-format" type="text/html" /xsl:processing-instruction 2-link rel="stylesheet" type="text/css" href="xx.css" title="Style"/ From already thank you for the help.Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Might have a Problem with Caching (xsp/xsl)
From: Vadim Gritsenko [EMAIL PROTECTED] From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] From: Torsten Reiners [EMAIL PROTECTED] ... 2: We want to set a xsl:variable to the value of the variable of msg being part of the xsl:logic. It's not possible, if I understand correctly. XSPs are handled as marcos. All XSL is resolved at compile time, while logic at execution time. You forgot to mention logisheets. AFAIU, he need logicsheet. See http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs p/logicsheet.xsp?rev=1.3content-type=text/vnd.viewcvs-markup Hmm... I saw a xsl:variable and thought it was in a logicsheet, since logicsheets are xsl files themselves. The thing I note is that he specified xsl:variable name=toInsert xsp:expr msg /xsp:expr /xsl:variable Since xsp:expr is resolved at runtime, the variable will not contain the value of the expression but the java code to get it. Hence my answer. Torsten, it seems I didn't fully understand your question, sorry. Why do you want to include another file with xsl document()? You could use XInclude, CInclude or sitemap aggregation (described in the documentation) and bypass this problem altogether. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - 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]