Upgrading Java
I am wanting to upgrade my Java version from 1.3 to 1.4 in order to keep pace with new software that needs it - however, I have the '1.3 compatible' version of Cocoon installed. Are then any issues in putting in the 1.4 version of Cocoon... can I just overwrite all the jars in the library and restart Tomcat - or is there some obscure and mystical procedure one has to follow? (I dont want to just overwrite my complete Cocoon installation as I have modified files in various places.) Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon JBoss examples
Hi! Does anybody know where can I find some examples about using EJB components under JBoss from Cocoon XSP? Thanx. -- Best regards, Denis Svishchev ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Flow] Acquiring Flow Information from another Pipeline
Now a question for people knowledgeable about Flow: We have a flow script: cocoon.load(resource://org/apache/cocoon/components/flow/javascript/ xmlForm.js); function genericFlowScript(xform) { var bean = { memberOne: default value, memberTwo: more default values } xform.setModel (bean); xform.sendView (collectInfo,collect.xml, function (xform) { var bean = xform.getModel(); }); xform.sendView (confirm,verify.xml); xform.finish (mail,mailAction); } The URI mailAction is matched by a pipeline separate from the flowscript pipeline, since it's dispatched by an XSP rather than an XForm transformer. Unfortunately, I don't see a clear way to hand this off since by breaking out of the flowscript pipeline, I've lost context. Thus, it is not clear to me how one would implement a system where a user fills out a form, the form's contents are processed and sent to a receiver*. I suppose one could call out to Java mail jar from inside the flowscript, but that seems inelegant to me. Bill Humphries http://www.whump.com/moreLikeThis/ * Any flames about open relays and spam-hazards from the sendmail logicsheet will be cheerfuly deleted as I am aware of the issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need help on cocoon and XSP
Hello, I have some little trouble with this XSP script : The aims of this one is to get some POST variables, to build a query, compute it and show the result with XSLT stylesheet. I use cocoon 2.0.4 j2sdk1.4.1_02 But cocoon says that to me : org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling comp_rech_xsp: Line 272, column 8: illegal start of type Line 377, column 58: method valueOf() not found in class java.lang.String Line 0, column 0: 2 errors The script : ?xml version=1.0 encoding=iso-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsl=http://www.w3c.org/1999/XSL/Transform; xsp:structure xsp:includejava.net.*/xsp:include xsp:includejava.util.*/xsp:include xsp:includejavax.servlet.*/xsp:include xsp:includejavax.servlet.http.*/xsp:include /xsp:structure xsp:logic String type_exp=request.getParameter(type); String[] val=request.getParameterValues(select_item[]); String chaine=; int longueur=val.length; // construction de la chaine des conditions requises for (int i=0;ilt;longueur;i++) { chaine=chaine+[livre_tbl.id_livre=meta_+type_exp+_tbl.id_livre+ AND meta_+type_exp+_tbl.id_+type_exp+=\+val[i]+\]; if (ilt;(longueur-1)) { chaine=chaine+ OR ; } }; // construction de la requete String requete=SELECT livre_tbl.id_livre livre_tbl.titre FROM livre_tbl, + meta_+type_exp+_tbl WHERE (+chaine+); /xsp:logic resultat esql:connection esql:poolpolluser/esql:pool esql:execute-query req esql:query xsp:exprrequete/xsp:expr /esql:query esql:results esql:row-results item xsp:attribute name=id esql:get-int column=id_livre/ /xsp:attribute esql:get-string column=titre/ /item /esql:row-results /esql:results /req /esql:execute-query /esql:connection /resultat /xsp:page Does someone could help me ? Alex (sorry for my poor english ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Flow] Acquiring Flow Information from another Pipeline
Thus, it is not clear to me how one would implement a system where a user fills out a form, the form's contents are processed and sent to a you cann call your sendmailaction from the flow : var ret = act(sendmailaction,,{'from':from ...}); hth, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Java
AFAIK the only areas where you are likely to have problems are: 1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on Wiki) 2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is handled. But you can probably work around that by replacing the excalibur- datasource jar with the new one. You shouldn't need to recompile anything. That _should_ be it. Others may choose to correct me. I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much' trouble with it). Regards, Upayavira On 20 Jun 2003 at 8:13, Derek Hohls wrote: I am wanting to upgrade my Java version from 1.3 to 1.4 in order to keep pace with new software that needs it - however, I have the '1.3 compatible' version of Cocoon installed. Are then any issues in putting in the 1.4 version of Cocoon... can I just overwrite all the jars in the library and restart Tomcat - or is there some obscure and mystical procedure one has to follow? (I dont want to just overwrite my complete Cocoon installation as I have modified files in various places.) Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table of contents
Hi all (sorry for my bad english) I'm very newbie in cocoon. But before I very start in this nice framework. I want need to known something. After I read the book (Cocoon developper's handbook Moscar Aston) I think it's possible, but I need a confirmation. I have many files in a directory : News: news1.xml news2.xml . news100.xml and I want to make a table of content of this directory in html a href=news1.xmlAbstract_extract_from_news1.xml/a a href=news2.xmlAbstract..news2.xml/a .. a href=news1.xmlAbstract_extract_from_news100.xml/a For this I think to use aggregation and a xsl style. But I need in the aggregation in a parameter (for xslt) the name of the file. It's possible ? And it's possible to aggregate all file in a directory when it's impossible to known how many files there are in this directory ? Something like use a reg-exp news[0-9]*.xml ? Thanks for adavanced -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. Heure local/Local time: Fri Jun 20 09:51:42 CEST 2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help on cocoon and XSP
Did you already look at the generated java source? ([work-dir]/cocoon-files/org/apache/www/[projek-dirs]/ comp_rech_xsp.java) /leo On Freitag, Juni 20, 2003, at 12:14 Uhr, ntic wrote: Hello, I have some little trouble with this XSP script : The aims of this one is to get some POST variables, to build a query, compute it and show the result with XSLT stylesheet. I use cocoon 2.0.4 j2sdk1.4.1_02 But cocoon says that to me : org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling comp_rech_xsp: Line 272, column 8: illegal start of type Line 377, column 58: method valueOf() not found in class java.lang.String Line 0, column 0: 2 errors The script : ?xml version=1.0 encoding=iso-8859-1? xsp:page language=javaxmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsl=http://www.w3c.org/1999/XSL/Transform; xsp:structure xsp:includejava.net.*/xsp:include xsp:includejava.util.*/xsp:include xsp:includejavax.servlet.*/xsp:include xsp:includejavax.servlet.http.*/xsp:include /xsp:structure xsp:logic String type_exp=request.getParameter(type); String[] val=request.getParameterValues(select_item[]); String chaine=; int longueur=val.length; // construction de la chaine des conditions requises for (int i=0;ilt;longueur;i++) { chaine=chaine+[livre_tbl.id_livre=meta_+type_exp+_tbl.id_livre+ AND meta_+type_exp+_tbl.id_+type_exp+=\+val[i]+\]; if (ilt;(longueur-1)) { chaine=chaine+ OR ; } }; // construction de la requete String requete=SELECT livre_tbl.id_livre livre_tbl.titre FROM livre_tbl, + meta_+type_exp+_tbl WHERE (+chaine+); /xsp:logic resultat esql:connection esql:poolpolluser/esql:pool esql:execute-query req esql:query xsp:exprrequete/xsp:expr /esql:query esql:results esql:row-results item xsp:attribute name=id esql:get-int column=id_livre/ /xsp:attribute esql:get-string column=titre/ /item /esql:row-results /esql:results /req /esql:execute-query /esql:connection /resultat /xsp:page Does someone could help me ? Alex (sorry for my poor english ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table of contents
I'm very newbie in cocoon. But before I very start in this nice framework. I want need to known something. After I read the book (Cocoon developper's handbook Moscar Aston) I think it's possible, but I need a confirmation. I have many files in a directory : News: news1.xml news2.xml . news100.xml There are two ways you can do this: 1) Use a directory generator, which identifies the files in the directory. Use XSLT to prepare this into a form usable by either a CInclude or XInclude transformer, which will include the content from these files. Then use XSLT to strip out only the content you want. 2) Use the XPathDirectoryGenerator, which allows you to get specific XPath nodes out of the files in the directory. I'm not sure if the XPathDirectoryGenerator is available in 2.0.4, or just in 2.1 - I've never actually used it, but if you can find it, it would be your best approach. If you need more explanation, please let me know. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pipeline dependencies
Create a simple selector to check if the file exists, and if it doesn't call pipeline A. David -Mensaje original- De: Ali Mesbah [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 14:10 Para: [EMAIL PROTECTED] Asunto: pipeline dependencies Hi, Is it possible to define pipeline dependencies in the sitemap? Imagine I have two pipelines A and B. Pipeline B has a SourceWritingTransformer and all it does is writing a generated document on the filesystem. Pipeline A has its own generator and transformer but it depends on the document written by B. So A denpends on B. In other words when A is called B has to be called first but the output of A sould be serialized to the browser (and not the output of B). Thanks, Ali -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception when using copy-of
I haven't seen in http://www.apache.org/dist/cocoon/ the existence of Cocoon 2.0.5!!! Does it really exist? What's new? David -Mensaje original- De: Stefan Hilzinger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 17:38 Para: [EMAIL PROTECTED] Asunto: Exception when using copy-of this message had been rejected because of its previous subject, so I send it again. Sorry if you should receive twice as well! hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 jdk 1.4.1_02 os's: windows xpp / suse linux 8.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145) at
RE: Upgrading Java
It's possible, the only different jars are excalibur-database, fop, cocoon and cocoon-scratchpad. I'm even switching JVM by replacing these files, because I work under Unix (latest JVM is 1.3.1) and Windows (latest JVM is 1.4.1 and supports hot code replacement, very useful for debugging). David -Mensaje original- De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: viernes, 20 de junio de 2003 9:38 Para: [EMAIL PROTECTED] Asunto: Re: Upgrading Java AFAIK the only areas where you are likely to have problems are: 1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on Wiki) 2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is handled. But you can probably work around that by replacing the excalibur- datasource jar with the new one. You shouldn't need to recompile anything. That _should_ be it. Others may choose to correct me. I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much' trouble with it). Regards, Upayavira On 20 Jun 2003 at 8:13, Derek Hohls wrote: I am wanting to upgrade my Java version from 1.3 to 1.4 in order to keep pace with new software that needs it - however, I have the '1.3 compatible' version of Cocoon installed. Are then any issues in putting in the 1.4 version of Cocoon... can I just overwrite all the jars in the library and restart Tomcat - or is there some obscure and mystical procedure one has to follow? (I dont want to just overwrite my complete Cocoon installation as I have modified files in various places.) Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception when using copy-of
Cocoon 2.0.5 has not been released yet. It is the version in the CVS repository. AFAIK only bug fixes are included but no enhancements. Those are only part of 2.1 which has not been released too. Reinhard -Original Message- From: Carmona Perez, David [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Exception when using copy-of I haven't seen in http://www.apache.org/dist/cocoon/ the existence of Cocoon 2.0.5!!! Does it really exist? What's new? David -Mensaje original- De: Stefan Hilzinger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 17:38 Para: [EMAIL PROTECTED] Asunto: Exception when using copy-of this message had been rejected because of its previous subject, so I send it again. Sorry if you should receive twice as well! hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 jdk 1.4.1_02 os's: windows xpp / suse linux 8.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod e notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed uceth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/edu ceth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed uceth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed uceth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerIm pl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocumen t(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLP ipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(T raxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknow n Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknow n Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDisp atcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu ment(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX (AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenera tor.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.pro cess(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr ocess(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNo de.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProce ssingNode.invokeNodes(AbstractParentProcessingNode.java:84) at
RE: Exception when using copy-of
I haven't seen in http://www.apache.org/dist/cocoon/ the existence of Cocoon 2.0.5!!! Does it really exist? What's new? It is the current development version of the 2.0 branch, and can only be got directly from CVS. There'll probably be a status.xml file in with it that'll tell you what's new. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pipeline dependencies
As quoted from Upayavira [EMAIL PROTECTED]: Is it possible to define pipeline dependencies in the sitemap? Imagine I have two pipelines A and B. Pipeline B has a SourceWritingTransformer and all it does is writing a generated document on the filesystem. Pipeline A has its own generator and transformer but it depends on the document written by B. So A denpends on B. In other words when A is called B has to be called first but the output of A sould be serialized to the browser (and not the output of B). You could try just including pipeline B in with pipeline A using cocoon:, e.g. map:match pattern=B map:generate... map:transform type=SWT map:serialize type=xml/ /map:match map:match pattern=A map:aggregate element=foo map:part src=cocoon:/B/ map:part src=a-src.xml/ /map:aggregate map:transform... map:serialize... /map:match If you can get pipeline B to cache, then it will only write if the source of that pipeline has changed. Then, if necessary, you can ignore the aggregated output from pipeline B, but it is just there to enforce the dependency. All depends upon the caching of the SourceWritingTransformer. Thanks Upayavira. I think with the current implementation that is the only possible way of doing it. Although it's not efficient (you dont actually want to aggregate), it serves the purpose. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception when using copy-of
you can use : xsl:template match=document xsl:apply-templates select=document(concat('../page/',string(.),'.xml'))/* mode=copy/ /xsl:template xsl:template match=/|*|@*|text() mode=copy xsl:copyxsl:copy-of select=@*/xsl:apply-templates mode=copy//xsl:copy /xsl:template but their is a problem cocoon reindent automatically. the tag xsl:output is ignored and when building your variable $document be carefful not doing it with xsl:variable name=document xsl:value-of select=dir/ xsl:text//xsl:text xsl:value-of select=file/ /xsl:variable but with xsl:variable name=document select=concat(dir,'/',file)/ -Mensaje original- De: Stefan Hilzinger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 17:38 Para: [EMAIL PROTECTED] Asunto: Exception when using copy-of this message had been rejected because of its previous subject, so I send it again. Sorry if you should receive twice as well! hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 jdk 1.4.1_02 os's: windows xpp / suse linux 8.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondo cs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondoc s/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/styleshe ets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/styleshe ets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer .java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc h(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea mSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:164) at
Re: pipeline dependencies
If you can get pipeline B to cache, then it will only write if the source of that pipeline has changed. Then, if necessary, you can ignore the aggregated output from pipeline B, but it is just there to enforce the dependency. All depends upon the caching of the SourceWritingTransformer. Thanks Upayavira. I think with the current implementation that is the only possible way of doing it. Although it's not efficient (you dont actually want to aggregate), it serves the purpose. Another way you can do it is read your original content from disc, then transform it into something like: xml source:write contentBlah/content /source:write contentBlah/content /xml This way you repeat your content twice, once to go into the SWT, and once to go on to the output. Your following transformer then just strips out any nodes in the SWT namespace. Make sense? Can you explain a little more _why_ you want to be writing to disk? That'll help me understand how best you can achieve your requirements. Regards, Upayavira map:match ... map:generate src=original source map:transform src=make_ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon in BEA Weblogic
Hello Ralph, we use BEA WebLogic 5.1 and we also have terrible performance problems and we don't know how to solve them. For example on windows with Apache Tomcat it takes max. 2 minutes to generate an excel report with 3 records and on SUN Solaris with BEA WLS 5.1 it takes aprox. 45 minutes! As I see with 8.1 there are also performance problems! We are desparate and we don't know how to solve this problem! I'm greatful for any ehlp or hints! Thanks Uwe [EMAIL PROTECTED] schrieb: Does anyone have experience with running Cocoon in Weblogic? We are seeing terrible performance just accessing the hello.html in the cocoon sample (1-5 transactions per second). On the same box using Jetty we can get close to 50. This is with Weblogic Server 8.1. Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Uwe Gerger_/_/_/ _/_/ _/_/ BMW AG, TG-53 IT-Technologie _/ _/ _/_/_/_/ _/_/ 80788 Muenchen _/_/_/ _/ _/ _/ _/ _/ _/ Tel: +49 89 382 35687 _/ _/ _/_/ _/_/_/_/ Fax: +49 89 382 49040 _/_/_/ _/_/ _/_/ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pipeline dependencies
As quoted from Upayavira [EMAIL PROTECTED]: Another way you can do it is read your original content from disc, then transform it into something like: xml source:write contentBlah/content /source:write contentBlah/content /xml This way you repeat your content twice, once to go into the SWT, and once to go on to the output. Your following transformer then just strips out any nodes in the SWT namespace. Make sense? Can you explain a little more _why_ you want to be writing to disk? That'll help me understand how best you can achieve your requirements. The thing is I generate a stylesheet in B which is used in A (and in other pipelines): match pattern=B map:generate src=resources/{filename}.xml/ map:transform src=styles/Meta_output.xsl/ map:serialize type=xml/ /map:match Note that the output of B is a stylesheet (say output.xsl). Then the first thing that comes to mind is using the Cocoon protocol to read this output.xsl as the src of the transformer in A: match pattern=A map:generate src=resources/bla.xml/ map:transform src=cocoon:/B/ map:serialize type=html/ /map:match But unfortunately this does not work. (I have posted messages on this matter a few days ago). The output of A is not what it should be at all. So I thought a workaround is to write the output.xsl to file and then read it in A. But then I had the issue of dependencies I hope i have been clear enough. By the way have you ever tried to use cocoon:/ as the src of a Transformer? Thanks, Ali Regards, Upayavira map:match ... map:generate src=original source map:transform src=make_ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pipeline dependencies
The thing is I generate a stylesheet in B which is used in A (and in other pipelines): match pattern=B map:generate src=resources/{filename}.xml/ map:transform src=styles/Meta_output.xsl/ map:serialize type=xml/ /map:match Note that the output of B is a stylesheet (say output.xsl). Then the first thing that comes to mind is using the Cocoon protocol to read this output.xsl as the src of the transformer in A: match pattern=A map:generate src=resources/bla.xml/ map:transform src=cocoon:/B/ map:serialize type=html/ /map:match But unfortunately this does not work. (I have posted messages on this matter a few days ago). The output of A is not what it should be at all. So I thought a workaround is to write the output.xsl to file and then read it in A. But then I had the issue of dependencies I hope i have been clear enough. By the way have you ever tried to use cocoon:/ as the src of a Transformer? Ah. Much clearer now. No you shouldn't use the SWT to do this - you should be able to rely upon Cocoon's caching to worry about that for you. Yes, you can access stylesheets using the cocoon: protocol. No I haven't done it yet, but I will need to do so soon. So, when you say you tried it and it doesn't work, what doesn't work? What happens? Also, what version of Cocoon are you using? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wiki.cocoondev.org - is cocoon based?
hi people i have 2 question about wiki in cocoondev 1. is it powered (served) by cocoon or not 2. is it open source ? i need something like this for documentation in our intranet i want people here to be able to add update ar delete something thnx stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wiki.cocoondev.org - is cocoon based?
-Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 10:41 To: [EMAIL PROTECTED] Subject: wiki.cocoondev.org - is cocoon based? hi people i have 2 question about wiki in cocoondev 1. is it powered (served) by cocoon or not It's JSP Wiki available at www.jspwiki.org So I guess thi is off-topic ! 2. is it open source ? Yes i need something like this for documentation in our intranet I've used it for exactly the same! i want people here to be able to add update ar delete something You can use tomcat to add realm-based login security thnx stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
call webservices using cocoon
Hi, How to call webservices from cocoon? Any examples / links appreciated, Thanks in Advance, shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wiki.cocoondev.org - is cocoon based?
http://wiki.cocoondev.org/Wiki.jsp?page=SystemInfo Reinhard -Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:41 AM To: [EMAIL PROTECTED] Subject: wiki.cocoondev.org - is cocoon based? hi people i have 2 question about wiki in cocoondev 1. is it powered (served) by cocoon or not 2. is it open source ? i need something like this for documentation in our intranet i want people here to be able to add update ar delete something thnx stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get a request parameters as an xml tree?
Hello when i send xhtml = divHello/div i receive parameter name="xhtml" valuelt;divgt;Hellolt;/divgt;/value/parameter and i would like to get this as a node not as a string. Is there an easy way to do this? thanks.
Re: pipeline dependencies
As quoted from Upayavira [EMAIL PROTECTED]: Ali, Have you seen: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets Maybe that'll help. It works indeed. I see what I was doing wrong; In my Meta_output at some places I had something like: xsl:text disable-output-escaping=yes lt;xsl:apply-templatesgt; lt;xsl:with-param name=path select=$root/gt; lt;/xsl:apply-templatesgt; /xsl:text This works if you save the output on filesystem and read it again but not using it directly via Cocoon protocol. The trick is to create elements explicitely instead of using xsl:text: xsl:element name=xsl:apply-templates xsl:element name=xsl:with-param xsl:attribute name=namepath/xsl:attribute xsl:attribute name=select xsl:text$root/xsl:text /xsl:attribute /xsl:element /xsl:element Thanks Upayavira for helping out, Ali Regards, Upayavira On 20 Jun 2003 at 11:16, Ali Mesbah wrote: As quoted from Upayavira [EMAIL PROTECTED]: Another way you can do it is read your original content from disc, then transform it into something like: xml source:write contentBlah/content /source:write contentBlah/content /xml This way you repeat your content twice, once to go into the SWT, and once to go on to the output. Your following transformer then just strips out any nodes in the SWT namespace. Make sense? Can you explain a little more _why_ you want to be writing to disk? That'll help me understand how best you can achieve your requirements. The thing is I generate a stylesheet in B which is used in A (and in other pipelines): match pattern=B map:generate src=resources/{filename}.xml/ map:transform src=styles/Meta_output.xsl/ map:serialize type=xml/ /map:match Note that the output of B is a stylesheet (say output.xsl). Then the first thing that comes to mind is using the Cocoon protocol to read this output.xsl as the src of the transformer in A: match pattern=A map:generate src=resources/bla.xml/ map:transform src=cocoon:/B/ map:serialize type=html/ /map:match But unfortunately this does not work. (I have posted messages on this matter a few days ago). The output of A is not what it should be at all. So I thought a workaround is to write the output.xsl to file and then read it in A. But then I had the issue of dependencies I hope i have been clear enough. By the way have you ever tried to use cocoon:/ as the src of a Transformer? Thanks, Ali Regards, Upayavira map:match ... map:generate src=original source map:transform src=make_ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link Livesites: www.megabag.gr
industrial add trading company of specialized polymer materials lang: EN cocoon 2.0.4 (apache at front with mod_proxy) tomcat 4.1.24 redhat linux jdk 1.4 --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML Parsing + SAX
I don't actually have a file [Wish I did!]. It's a String with the XML inside it that I get as a return value from a static method of a different class. The XML itself is within the String. I could save it to file and then use that but thats not very extensible. Any ideas? - Original Message - From: e nio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 6:41 PM Subject: RE: XML Parsing + SAX I believe a File object can be converted to a URL, look at the toURL() method. --- Carmona Perez, David [EMAIL PROTECTED] wrote: Why don't you use a java.io.StringBufferInputStream? David -Mensaje original- De: Brian Delahunty [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 18 de junio de 2003 17:11 Para: [EMAIL PROTECTED] Asunto: XML Parsing + SAX Hey, I have a String that contains an XML file [not a URL/URI that points to an XML file but the actual XML itself]. I'm tying to use this string in a custom generator to produce sa exents. I'm using this code so far: XMLReader xmlr = XMLReaderFactory.createXMLReader(); xmlr.setContentHandler(this.contentHandler); xmlr.parse( don't know what goes here ); I can't get parse to work with a String. Any ideas? Brian __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML Parsing + SAX
Thanks. That worked perfectly :-D - Original Message - From: Merenidis, Grigorios [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:13 PM Subject: AW: XML Parsing + SAX Hi! try this: XMLReader parser = XMLReaderFactory.createXMLReader(org.apache.xerces.parsers.SAXParser); ContentHandler c1 = new ContentHandler(); ErrorHandler e1 = new ErrorHandler(); parser.setContentHandler(c1); parser.setErrorHandler(e1); parser.parse(new InputSource(new StringReader(your special String!!))); cheers gregori -Ursprüngliche Nachricht- Von: Brian Delahunty [mailto:[EMAIL PROTECTED] Gesendet am: Mittwoch, 18. Juni 2003 17:11 An: [EMAIL PROTECTED] Betreff: XML Parsing + SAX Hey, I have a String that contains an XML file [not a URL/URI that points to an XML file but the actual XML itself]. I'm tying to use this string in a custom generator to produce sa exents. I'm using this code so far: XMLReader xmlr = XMLReaderFactory.createXMLReader(); xmlr.setContentHandler(this.contentHandler); xmlr.parse( don't know what goes here ); I can't get parse to work with a String. Any ideas? Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table of contents
Albert Shih wrote: Hi all (sorry for my bad english) I'm very newbie in cocoon. But before I very start in this nice framework. I want need to known something. After I read the book (Cocoon developper's handbook Moscar Aston) I think it's possible, but I need a confirmation. alright: I send you my solution, maybe it is helpful. (1) first of all the sitemap: map:match pattern=articles/browse.html id=artbrowse map:generate src=user/xml/articles type=directory/ !-- generate cincludes from directory listing -- map:transform src=style/articles/article-cincludes.xsl map:parameter name=article-dir value=user/xml/articles / /map:transform !-- all articles are merged -- map:transform type=cinclude/ !-- and overview is printed as table -- map:transform src=style/articles/article-list.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=html/ /map:match in the /user/xml/articles directory the XML files to be aggregated can be found. (2) article-cincludes.xsl this file is responsible for the aggregation of the documents: ?xml version=1.0 encoding=iso-8859-1 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:dir=http://apache.org/cocoon/directory/2.0; xmlns:ci=http://apache.org/cocoon/include/1.0; xsl:param name=article-dir/ xsl:template match=dir:directory articles xsl:for-each select=dir:file file name=[EMAIL PROTECTED] ci:include src={$article-dir}/[EMAIL PROTECTED] element=included / /file /xsl:for-each /articles /xsl:template /xsl:stylesheet (3) and then there is finally the article-list.xsl I will not post it here because it is rather long and not really interesting for you as it is very depending of the purpose of your documents. however, if you modify the sitemap entry above to this: map:match pattern=articles/browse.html id=artbrowse map:generate src=user/xml/articles type=directory/ !-- generate cincludes from directory listing -- map:transform src=style/articles/article-cincludes.xsl map:parameter name=article-dir value=user/xml/articles / /map:transform !-- all articles are merged -- map:transform type=cinclude/ map:serialize type=xml/ /map:match open the page in the browser, then view the page source; then you see the generated aggregated XML document. It should be of no difficulty for you to write an appropriate XSL file for this result. hope this helps. Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Error] Sendmail Logicsheet and Cinclude
[EMAIL PROTECTED] wrote: I've been stumbling the past couple of days through the sendmail logicsheet and sendmail actions in 2.1-M1. Here's what I'm trying to do: Include generated content (i.e. content produced by a pipeline) into the body of an email sent by sendmail action or logicsheet. This is possible only by using the util logicsheet. The sendmail action has been a deadend, so I've looked at the sendmail logicsheet. Below is mail.xsp, my attempt to implement sending a message Both share the same code, so if one does not work, the other is unlikely to do better. However, mind sharing why the action didn't work out? body created by a pipeline. Please note that I have defined the necessary namespaces in the xsp:page element: sendmail:bodyThe results of processing the pipeline triggered at the uri: workPlanning/contents. are below.br/ !-- NB: the request below has been tested and works when called directly -- cinclude:include src=cocoon://workPlanning/contents element=included / /sendmail:body This does not work as it adds the result of the inclusion to the SAX stream _directed_at_the_client_ while you need to have it as e.g. string to pass to sendmail. The correct solution is to use sendmail:attachment url=cocoon://workPlanning/contents/ to pull in the generated content. AFAIR you could as well do xsp:exprutil:get-source uri=cocoon://workPlanning/contents//xsp:expr I'd appreciate some assistance with this. Once I've found my way around this problem, I'll write up a how-to for the cocoondev.org wiki. Deal! 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wiki.cocoondev.org - is cocoon based?
1. is it powered (served) by cocoon or not no, it is JSPWiki from http://www.jspwiki.org/ 2. is it open source ? yes i need something like this for documentation in our intranet i want people here to be able to add update ar delete something JSPWiki is IMO one of the best wiki implementations around. I think TWiki (http://twiki.org/) still beats it in features but it doesn't look as nice out of the box. -- Bertrand Delacretaz independent consultant, Lausanne, Switzerland http://cvs.apache.org/~bdelacretaz/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Content Aggregation -- Wiki
As I was asked by others, I put a little more concise description of the content-aggregation example to generate a table of content from a list of XML files to the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=ContentAggregationExample I hope this is o.k. and may help. Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wiki.cocoondev.org - is cocoon based?
Bertrand You're right about TWiki - I originally picked JSPWiki in the hope that (in the long-term at least) it could be perhaps linked into Cocoon somehow ... perhaps generating XML from the structured text? I also was not very attracted by the cgi-bin/perl technology used in TWiki. Browsing over to TWiki, I don't see that many features that are lacking in JSPWiki - for example: Structured content: Use TWiki Forms to classify and categorize unstructured web pages and to create simple workflow systems. Access control: Define groups and impose fine grained read and write access restrictions based on groups and users. Application platform: Developers use the TWiki platform to create web-based applications. An example application is the XpTrackerPlugin which allows teams to track Extreme Programming (XP) projects. Managing users: Web based user registration and change of password. seem to be ones missing from JSPWiki but many of the others are present. Is there a more detailed comparison of the two systems available anywhere?? Thanks Derek [EMAIL PROTECTED] 20/06/2003 02:03:03 1. is it powered (served) by cocoon or not no, it is JSPWiki from http://www.jspwiki.org/ 2. is it open source ? yes i need something like this for documentation in our intranet i want people here to be able to add update ar delete something JSPWiki is IMO one of the best wiki implementations around. I think TWiki (http://twiki.org/) still beats it in features but it doesn't look as nice out of the box. -- Bertrand Delacretaz independent consultant, Lausanne, Switzerland http://cvs.apache.org/~bdelacretaz/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] TWiki (was: wiki.cocoondev.org - is cocoon based?)
...Access control: Define groups and impose fine grained read and write access restrictions based on groups and users Can be very helpful in making Wikis accepted by reluctant people, even though you'd probably turn it off after a few weeks of use ;-) ...seem to be ones missing from JSPWiki but many of the others are present... Another cool feature is the drawing applet (http://twiki.org/cgi-bin/view/TWiki/TWikiDrawPlugin) ...Is there a more detailed comparison of the two systems available anywhere??... I don't know. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
woody date extension
Hi, i have a form which contains 2 fields with date entries (ex.:'17.06.2003 13:55'). What are the steps to get woody to: * validate the values against a given dateformat ex. dd.MM. HH:mm * to say in a assertion rule that date2 must be greater than date1 (date1,date2 are the formfields) do i have to create a new Woody Datatype or a new ValidationRule for Datatype String ? thanks in advance Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Error] Sendmail Logicsheet and Cinclude
I saw a thread about attaching a file (possibly url) as an attachment. Will that work for you? I'm going to work on that next week. Maybe we will be able to share some ideas. My requirements are as follows: 1. When user clicks on Send Email button. I have an xml String sent to StreamGenerator, then transformed by xsl-fo and serialized by jfor to rtf and displayed on a screen. 2. The next step is to use sendMail to send the created rtf document as an attachment to an email address. I haven't started to look into it yet. I'm thinking about saving the created rtf in step 1 on the server and then sending it as an attachment. Anyway, more later on this. Charlene -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 7:52 AM To: [EMAIL PROTECTED] Subject: Re: [Error] Sendmail Logicsheet and Cinclude [EMAIL PROTECTED] wrote: I've been stumbling the past couple of days through the sendmail logicsheet and sendmail actions in 2.1-M1. Here's what I'm trying to do: Include generated content (i.e. content produced by a pipeline) into the body of an email sent by sendmail action or logicsheet. This is possible only by using the util logicsheet. The sendmail action has been a deadend, so I've looked at the sendmail logicsheet. Below is mail.xsp, my attempt to implement sending a message Both share the same code, so if one does not work, the other is unlikely to do better. However, mind sharing why the action didn't work out? body created by a pipeline. Please note that I have defined the necessary namespaces in the xsp:page element: sendmail:bodyThe results of processing the pipeline triggered at the uri: workPlanning/contents. are below.br/ !-- NB: the request below has been tested and works when called directly -- cinclude:include src=cocoon://workPlanning/contents element=included / /sendmail:body This does not work as it adds the result of the inclusion to the SAX stream _directed_at_the_client_ while you need to have it as e.g. string to pass to sendmail. The correct solution is to use sendmail:attachment url=cocoon://workPlanning/contents/ to pull in the generated content. AFAIR you could as well do xsp:exprutil:get-source uri=cocoon://workPlanning/contents//xsp:expr I'd appreciate some assistance with this. Once I've found my way around this problem, I'll write up a how-to for the cocoondev.org wiki. Deal! 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mounting, but with shared sitemap?
The mount tag allows sitemaps to be sub-divided, but it also allows the request context (directory and url paths) to be changed. Is there any way to get the cocoon to mount an application directory (i.e. switch context), but still use a common sitemap file? I need a number of virtual hosts all running the same cocoon app, but with different content; like: base-dir sitemap.xmap (a simple virtual host switcher) common.xmap (the file to be mounted for each host-dir) host1-dir host2-dir I get this to work at the moment using symbolic links from the host-dir to the base-dir, but that seems like a hack, and may come to haunt me later - like when I try to deploy this stuff. Any help would be much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.log.Logger.fireEvent
Hallo Cocoonlist, From an html-embeded editor i get html, which i have to clean with tidy(initialised in a xsp-page) When i used this editor for about 20 or 30 times, cocoon dies with the following trace-message. Does somebody has an idea what's going wrong? I use cocoon-2.0.4/tomcat-4.1.12/Suse8.0(linux) java.lang.NullPointerException at org.apache.log.Logger.fireEvent(Logger.java:612) at org.apache.log.Logger.output(Logger.java:587) at org.apache.log.Logger.output(Logger.java:570) at org.apache.log.Logger.fatalError(Logger.java:257) at org.apache.cocoon.sitemap.Handler.checkSanity(Handler.java:256) at org.apache.cocoon.sitemap.Handler.process(Handler.java:219) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Boris
RE: wiki.cocoondev.org - is cocoon based?
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] i need something like this for documentation in our intranet i want people here to be able to add update ar delete something JSPWiki is IMO one of the best wiki implementations around. I think TWiki (http://twiki.org/) still beats it in features but it doesn't look as nice out of the box. There's also CLiki: http://www.cliki.net/CLiki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ArrayIndexOutOfBoundsException when using copy-of to write into a new node
hi, there is an error : use xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ instead of xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ Also, $document is an xsl:param ? About the error I don't know. try to send this to the mulberrytech [EMAIL PROTECTED]. Lionel At 17:12 19/06/2003 +0200, you wrote: hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:340) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:301) at
Re: How to get a request parameters as an xml tree?
Can you tell some more ? Is it from an xsp, or an xsl page ? At 11:53 20/06/2003 +0200, you wrote: Hello when i send xhtml = divHello/div i receive parameter name=xhtml valuelt;divgt;Hellolt;/divgt;/value /parameter and i would like to get this as a node not as a string. Is there an easy way to do this? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
On Fri, 2003-06-20 at 15:36, Upayavira wrote: On 20 Jun 2003 at 15:17, Dominic Chambers wrote: The mount tag allows sitemaps to be sub-divided, but it also allows the request context (directory and url paths) to be changed. Is there any way to get the cocoon to mount an application directory (i.e. switch context), but still use a common sitemap file? snip/ Presumably what you're saying is that you want to be able to mount the common.xmap, but for that sitemap to be able to find out the name of the directory that it was mounted to, so that it can be used in locating other resources? Is that right? Yes. Exactly that. Is that possible? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
Presumably what you're saying is that you want to be able to mount the common.xmap, but for that sitemap to be able to find out the name of the directory that it was mounted to, so that it can be used in locating other resources? Is that right? Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
On Fri, 2003-06-20 at 16:25, Upayavira wrote: Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl Yes, that is very clever, I didn't think of that; that even works if you need to match multiple pages by using two wildcards, like */**.html. but ... With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: map:pipeline map:match pattern= map:select type=host map:redirect-to uri={host}/test.html/ /map:select /map:match /map:pipeline where host was a previously defined HostSelector. Of course it didn't work! Do you know of another way? I kind of need variables, although I would probably think less highly of Cocoon if it provided them: who wants to program in XML? Thanks for your help! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modular database select - session attributes won't fly
Arthur Allen wrote: Thanks Chris for the clarifications. You wrote-- In map:componentsmap:actions//map:components you need to configure the output for the actions, for each one of the database actions seperately. Add outputsession-attr/output This would be the place to disable prepending table name or appending row number to the parameter name. Again, see javadocs for DatabaseAction Your syntax is correct according to the javadocs. I tried it (indeed already had among many other things) and noted no change. I did use other directives in that area to drop indices, which worked fine. Arthur, this is what I did to reproduce the problem: a) fresh checkout from CVS (on 2003-06-20, nothing changed in this particular area so this is not absolutely necessary, anyway, it feels better to be able to refer to a version) b) build.sh clean webapp c) cocoon.sh servlet d) edit build/webapp/samples/databases/mod-db/sitemap.xmap: add outputsession-attr/output to mod-db-add action: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptordatabase.xml/descriptor throw-exceptionfalse/throw-exception outputsession-attr/output /map:action e) edit build/webapp/samples/databases/mod-db/user-list.xsp, add ph3Session Attributes/h3/p p table border=0 tbody xsp:logic{ Enumeration e=request.getSession().getAttributeNames(); while ( e.hasMoreElements() ) { String attribute = (String) e.nextElement(); Object value = request.getSession().getAttribute(attribute); tr td align=rightxsp:exprattribute/xsp:expr/td td=xsp:exprvalue/xsp:expr/td /tr } }/xsp:logic /tbody /table /p near the end of the file, right after request parameters f) fire up mozilla http://localhost:/samples/databases/mod-db/user-list and add a new group guest result: Session Attributes org.apache.cocoon.components.modules.output.OutputModule:groups.gid[0]=1 org.apache.cocoon.components.modules.output.OutputModule:groups.gname[0]=guest g) remove output/ in sitemap.xmap and add select action: map:action name=mod-db-sel src=org.apache.cocoon.acting.modular.DatabaseSelectAction descriptordatabase.xml/descriptor throw-exceptionfalse/throw-exception outputsession-attr/output /map:action plus map:act type=req-params map:parameter name=parameters value=sel-user user.uid/ map:act type=mod-db-sel map:parameter name=table-set value=user/ /map:act /map:act right after the map:match pattern=* h) add another group staff i) add a new user doe, john, jd, staff+guest j) point browser to http://localhost:/samples/databases/mod-db/user-list?sel-user=1user.uid=0 result: Session Attributes org.apache.cocoon.components.modules.output.OutputModule:groups.gid[0]=1 org.apache.cocoon.components.modules.output.OutputModule:user.uname[0]=jd org.apache.cocoon.components.modules.output.OutputModule:user.name[0]=doe org.apache.cocoon.components.modules.output.OutputModule:user.uid[0]=0 org.apache.cocoon.components.modules.output.OutputModule:groups.gname[0]=guest org.apache.cocoon.components.modules.output.OutputModule:user.firstname[0]=john which looks perfectly OK to me. Now, you might not like the prefix org..., to get rid of that, you need to configure session-attr in cocoon.xconf: output-modules component-instance class=org.apache.cocoon.components.modules.output.SessionAttributeOutputModule logger=core.modules.output name=session-attr key-prefix/ /component-instance /output-modules Mmmh, I'm afraid that this is not documented anywhere :-( If you don't like the [0] etc., that *is* documented: add append-rowfalse/append-row to the action's declaration like you did with output/. I noted the output to the logger if that helps: the modules log to Core ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseSelectAction. Using cached configuration for content/xdocs/xbrl/dbDescriptor.xml DatabaseAction: query: SELECT namespace, taxonomyid FROM loadedtaxonomies WHERE label= ? Trying to set column loadedtaxonomies.label from session-attr using getAttribute method Setting column loadedtaxonomies.label [0] usfr-gaap-ci row no. 0 Setting column loadedtaxonomies.label to usfr-gaap-ci Setting column loadedtaxonomies.namespace to http://www.xbrl.org/taxonomy/us/fr/gaap/ci/2002-10-15 Setting column loadedtaxonomies.taxonomyid to 31 HTH 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
AW: mounting, but with shared sitemap?
Hi, maybe this is what you are looking for: map:pipeline map:match pattern=** map:select type=host map:when test=pelzfashion map:mount uri-prefix= src=file:///d:/data/www/pelz-fashion/ check-reload=true/ /map:when map:when test=raffy map:mount uri-prefix= src=file:///d:/data/www/raffy/ check-reload=true/ /map:when map:otherwise map:mount uri-prefix= src=file:///d:/data/www/cocoon/ check-reload=true/ /map:otherwise /map:select /map:match /map:pipeline Hope that helps, Raffy -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Juni 2003 16:31 An: [EMAIL PROTECTED] Betreff: Re: mounting, but with shared sitemap? On Fri, 2003-06-20 at 16:25, Upayavira wrote: Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl Yes, that is very clever, I didn't think of that; that even works if you need to match multiple pages by using two wildcards, like */**.html. but ... With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: map:pipeline map:match pattern= map:select type=host map:redirect-to uri={host}/test.html/ /map:select /map:match /map:pipeline where host was a previously defined HostSelector. Of course it didn't work! Do you know of another way? I kind of need variables, although I would probably think less highly of Cocoon if it provided them: who wants to program in XML? Thanks for your help! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
Dominic Chambers wrote: Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: Try (Cocoon = 2.0.4) map:pipeline map:match pattern= map:redirect-to uri={request:serverName}/test.html/ /map:match /map:pipeline 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon in BEA Weblogic
Thanks. I resolved my problem. The default configuration, even in production mode, has BEA checking every second for changes to the webapp and JSPs. Explicity turning those off drastically improved performance. Ralph At 6/20/2003 02:10 AM, you wrote: Hello Ralph, we use BEA WebLogic 5.1 and we also have terrible performance problems and we don't know how to solve them. For example on windows with Apache Tomcat it takes max. 2 minutes to generate an excel report with 3 records and on SUN Solaris with BEA WLS 5.1 it takes aprox. 45 minutes! As I see with 8.1 there are also performance problems! We are desparate and we don't know how to solve this problem! I'm greatful for any ehlp or hints! Thanks Uwe [EMAIL PROTECTED] schrieb: Does anyone have experience with running Cocoon in Weblogic? We are seeing terrible performance just accessing the hello.html in the cocoon sample (1-5 transactions per second). On the same box using Jetty we can get close to 50. This is with Weblogic Server 8.1. Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Uwe Gerger_/_/_/ _/_/ _/_/ BMW AG, TG-53 IT-Technologie _/ _/ _/_/_/_/ _/_/ 80788 Muenchen _/_/_/ _/ _/ _/ _/ _/ _/ Tel: +49 89 382 35687 _/ _/ _/_/ _/_/_/_/ Fax: +49 89 382 49040 _/_/_/ _/_/ _/_/ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon JBoss examples
Hi Denis ! Does anybody know where can I find some examples about using EJB components under JBoss from Cocoon XSP? Where is your problem ? You got all everything to call a EJB, because your just in Java Code ... get a JNDI context, find a home interface and call the bean ... Greetings Andrew __ UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]