Re: Accessing the output of a modular db action in xsl
On 31.Oct.2002 -- 01:08 PM, [EMAIL PROTECTED] wrote: Is there an example of how to do this available? From XSL? I don't think so. At least not specifically with database actions. There sure is one on accessing request attributes from xsl -- although I don't know off 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Differences in ESQL between Version 2.0 and later?
Can someone please confirm that the esql:group and esql:member tags/functionality was only added *after* version 2.0 of Cocoon - and is there is any simple way to add in this logic to an already installed version (without upgrading the version of Cocoon?) Thanks.
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Martin Holz wrote: On Thursday 31 October 2002 12:03, Jeremy Quinn wrote: But I am even more confused now ;) 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . Does it really store files in $CATALINA_HOME/contentstore? I think, it stores the files in ./contentstore, where . is the current directory, from which you started tomcat. Yes, it is a bit ugly. The path for the FileContentStore should be absolute. Since you usually start tomcat from $CATALINA_HOME, the store directory is $CATALINA_HOME/contentstore accidentally, but you must be carefull to start tomcat always from the same directory. Better change the rootpath in slide.xconf to a fixed location. For the examples, it will be better to use the HSQL DB. I tried that, but doesn't really work until now. Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Differences in ESQL between Version 2.0 and later?
On 01.Nov.2002 -- 10:44 AM, Derek Hohls wrote: Can someone please confirm that the esql:group and esql:member tags/functionality was only added *after* version 2.0 of Cocoon - and Derek, I believe so. You can always look at the cvs entries or simply unpack your cocoon.jar and look at the xsl to make sure. We had a more or less rewrite of the grouping functionality that was definately later. I believe 2.0.3. is there is any simple way to add in this logic to an already installed version (without upgrading the version of Cocoon?) It is relatively self contained. Replacing the Esql*.java and esql.xsl should work. 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: svg2jpeg serialiser error
In my configuration, your proposal does not fix the problem. I've checked the batik jar file, the SVGDocument class file is there. Very strange... -Message d'origine- De : François Quartenoud [mailto:francois;quartenoud.ch] Envoyé : vendredi 1 novembre 2002 08:20 À : [EMAIL PROTECTED] Objet : Re: svg2jpeg serialiser error If there is one help here is the line I use to make the same as you (~line 130 ) map:serializer name=svg2jpeg mime-type=image/jpeg src=org.apache.cocoon.serialization.SVGSerializer parameter name=transcoder value=org.apache.batik.transcoder.image.JPEGTranscoder/ /map:serializer François Quartenoud ___ envie de vins? www.vinsjulesgex.ch envie de boissons? www.halleauxboissons.ch envie de boissons à domicile? www.allo-boissons.ch - 0848 444 111 - Original Message - From: Senhaji [EMAIL PROTECTED] To: Cocoon-Users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 10:05 PM Subject: svg2jpeg serialiser error Hi, I'm playing with Cocoon since one week. I try to run the Gallery sample shipped with the Building XML Applications book with no success. The System: Tomcat-4.0.3, Win2k, Cocoon 2.0.3, JDK1.4.0 When I try to transform the svg.xml document to jpeg image using the svg2jpeg serialiser the following error is thrown: java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1243) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(Unknown Source) at org.apache.cocoon.xml.dom.SVGBuilder.startDocument(SVGBuilder.java:11 8) at org.apache.xalan.transformer.ResultTreeHandler.flushDocEvent(ResultTr eeHandler.java:824) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTre eHandler.java:932) at org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTre eHandler.java:241) at org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(Clo nerToResultTree.java:229) at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:152) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes( ElemApplyTemplates.java:422) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla tes.java:226) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr ansformerImpl.java:2243) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran sformerImpl.java:2069) at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme rImpl.java:1171) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3196) at java.lang.Thread.run(Thread.java:536) any help? Thanks! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Differences in ESQL between Version 2.0 and later?
Thanks Chris I assume one has to have the code base to do this - I only have the binary version and so cannot find any trace of those files... Derek BTW, I have another machine with 2.01 and it *does* have the additional ESQL functionality [EMAIL PROTECTED] 01/11/2002 11:42:51 On 01.Nov.2002 -- 10:44 AM, Derek Hohls wrote: Can someone please confirm that the esql:group and esql:member tags/functionality was only added *after* version 2.0 of Cocoon - andDerek, I believe so. You can always look at the cvs entries or simplyunpack your cocoon.jar and look at the xsl to make sure. We had a moreor less rewrite of the grouping functionality that was definatelylater. I believe 2.0.3. is there is any simple way to add in this logic to an already installed version (without upgrading the version of Cocoon?)It is relatively self contained. Replacing the Esql*.java and esql.xslshould work. 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 theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: Differences in ESQL between Version 2.0 and later?
On 01.Nov.2002 -- 11:58 AM, Derek Hohls wrote: Thanks Chris I assume one has to have the code base to do this - I only have the binary version and so cannot find any trace of those files... The esql.xsl is included in any version. The Esql*.java obviously not. Only the compiled classes. Unpack your cocoon.war. Look in WEB-INF/libs. Unpack cocoon-2.x.jar. Look in org/apache/cocoon/component/language/markup/xsp/java. For CVS, there's a web front-end linked to on xml.apache.org/cocoon To replace the complete esql, you'll need a source distribution. If none is available for your version anymore, you can check out the release tag from anonymous cvs. BTW, I have another machine with 2.01 and it *does* have the additional ESQL functionality [EMAIL PROTECTED] 01/11/2002 11:42:51 On 01.Nov.2002 -- 10:44 AM, Derek Hohls wrote: Can someone please confirm that the esql:group and esql:member tags/functionality was only added *after* version 2.0 of Cocoon - and Derek, I believe so. You can always look at the cvs entries or simply unpack your cocoon.jar and look at the xsl to make sure. We had a more or less rewrite of the grouping functionality that was definately later. I believe 2.0.3. is there is any simple way to add in this logic to an already installed version (without upgrading the version of Cocoon?) It is relatively self contained. Replacing the Esql*.java and esql.xsl should work. 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thursday, Oct 31, 2002, at 13:42 Europe/London, Stephan Michels wrote: 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . then when I restart TomCat, log back into cocoon/samples/slide an I have nothing in the repository. :-} Thats the problem of the MemoryDescriptorsStore, it holds the information in the memory, and it's gone then you shutdown tomcat. So you uncomment the XMLDescriptorStore and change the scope, which I currently use. I fixed the request-param in line 159 of slide/sitemap.xmap I am using this configuration (in slide.xconf): description store name=xml nodestore classname=slidestore.file.XMLFileDescriptorsStore parameter name=rootpath /Users/jermq/Library/TomCat/slide /parameter /nodestore securitystore reference store=nodestore / /securitystore lockstore reference store=nodestore / /lockstore revisiondescriptorsstore reference store=nodestore / /revisiondescriptorsstore revisiondescriptorstore reference store=nodestore / /revisiondescriptorstore contentstore classname=slidestore.reference.FileContentStore parameter name=rootpath /Users/jermq/Library/TomCat/slide /parameter parameter name=versiontrue/parameter parameter name=resetBeforeStartingtrue/parameter /contentstore /store scope match=/ store=xml / /definition When I attempt to login, I now get this exception: java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172 ) at org.apache.cocoon.webapps.authentication.components.AuthenticationManage r.authenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct ion.java:130) etc. Any idea what I am still doing wrong? What does the 'resetBeforeStarting' parameter mean? I assume it resets locks etc. on restart, or is it something more than this? Many thanks regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.OutOfMemoryError
Hello, I've just changed the verstion of Tomcat from 4.04 to 4.1.12 with Cocoon 2.1 dev from a couple of weeks ago and now running into memory problems. The site now runs extremely slow (over 1 min for some pages) spits out: java.lang.OutOfMemoryError no stack trace available. I've looked around the mail archives and tried to follow various suggestions, however, still with no luck. Here is my environment: - Win2K - 96M RAM - Tomcat 4.1.12 - Cocoon 1.2 dev Here is what I've done so far: 1. When I start Windows the TaskManager shows about 60M of available memory. 2. I've added the following line to catalina.bat: set CATALINA_OPTS=-Xmx55m 3. I've changed cocoon.xconf store-janitor heapsize configuration to be equal to 55M (or 57671680): store-janitor logger=core.store.janitor !-- How much free memory shall be available in the jvm -- parameter name=freememory value=100/ !-- Indicates the limit of the jvm memory consumption. The default max heapsize for Sun's JVM is 64Mb -- parameter name=heapsize value=57671680/ !-- How often shall the cleanup thread check memory -- parameter name=cleanupthreadinterval value=10/ !-- Indicates the thread priority of the cleanup thread -- parameter name=threadpriority value=5/ !-- How much percent of the elements of each registered Store shall be removed when low on memory. Default 10% -- parameter name=percent_to_free value=10/ /store-janitor After I've made the changes, I don't seem to get the OutOfMemory exception anymore, but the site still runs extremely slow. The TaskManager shows CPU usage at 100%, which I suspect is due to memory to disk swaps. Do these numbers look right, have I missed anything, or is there anything else I could do? Any help would be really appreciated as the development is completely haulted by this! Thanks, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Fri, 1 Nov 2002, Jeremy Quinn wrote: On Thursday, Oct 31, 2002, at 13:42 Europe/London, Stephan Michels wrote: 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . then when I restart TomCat, log back into cocoon/samples/slide an I have nothing in the repository. :-} Thats the problem of the MemoryDescriptorsStore, it holds the information in the memory, and it's gone then you shutdown tomcat. So you uncomment the XMLDescriptorStore and change the scope, which I currently use. I fixed the request-param in line 159 of slide/sitemap.xmap I am using this configuration (in slide.xconf): description store name=xml nodestore classname=slidestore.file.XMLFileDescriptorsStore parameter name=rootpath /Users/jermq/Library/TomCat/slide /parameter /nodestore securitystore reference store=nodestore / /securitystore lockstore reference store=nodestore / /lockstore revisiondescriptorsstore reference store=nodestore / /revisiondescriptorsstore revisiondescriptorstore reference store=nodestore / /revisiondescriptorstore contentstore classname=slidestore.reference.FileContentStore parameter name=rootpath /Users/jermq/Library/TomCat/slide /parameter parameter name=versiontrue/parameter parameter name=resetBeforeStartingtrue/parameter /contentstore /store scope match=/ store=xml / /definition When I attempt to login, I now get this exception: java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172 ) at org.apache.cocoon.webapps.authentication.components.AuthenticationManage r.authenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct ion.java:130) etc. Any idea what I am still doing wrong? Olivier Billard had a similar problem yesterday, the reason was that he forget to install the jta lib into lib/local If that doesn't solve the problem, try to remove the attribute 'internal-only=true' and retrieve the page /cocoon/samples/slide/authenticate?password=rootname=root It seems that you have a problem to get a the document for authentication. What does the 'resetBeforeStarting' parameter mean? I assume it resets locks etc. on restart, or is it something more than this? 'resetBeforeStarting' means throw all documents and descriptors over board before start. Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Friday, Nov 1, 2002, at 13:16 Europe/London, Stephan Michels wrote: I fixed the request-param in line 159 of slide/sitemap.xmap I am using this configuration (in slide.xconf): snip When I attempt to login, I now get this exception: java.lang.NullPointerException snip Any idea what I am still doing wrong? Olivier Billard had a similar problem yesterday, the reason was that he forget to install the jta lib into lib/local Mine is still there, no warning when I recompiled. If that doesn't solve the problem, try to remove the attribute 'internal-only=true' and retrieve the page /cocoon/samples/slide/authenticate?password=rootname=root It seems that you have a problem to get a the document for authentication. Tried that Hmm, no exception, but also, no document! I just got this back: htmlbody/body/html Then going to /cocoon/sample/slide/content, brought up the login again. I changed the sitemap to use xalan rather than xsltc, (there's a note about it in the sitemap), it made no difference. What does the 'resetBeforeStarting' parameter mean? I assume it resets locks etc. on restart, or is it something more than this? 'resetBeforeStarting' means throw all documents and descriptors over board before start. Oh right! So this will trash my repository, right? Not good ;) regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[doc] New How-To: i18n with XMLForm
A new How-To was just added to the Cocoon cvs. Here are the details: Title: i18n within the XMLForm Framework Author: Mohamed El-Refaey (with German translations provided by Michael Enke) Description: This How-To shows you how to use the i18n for web site internationalization within the XMLForm Framework. Location: xml-cocoon2/src/documentation/xdocs/howto/howto-i18n- xmlform.xml Version: Requires Cocoon 2.1-dev Please check it out and provide any comments or suggestions to the author via the email listed on the How-To or to the Cocoon project via Bugzilla. Thanks Mohamed for your How-To! --- Ready to contribute your own How-To? Check out How-To Author a How-To at: http://xml.apache.org/cocoon/howto/howto-author-howto.html Ready to start a document draft? Check out Cocoon's wiki at: http://www.outerthought.net/wiki/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql:row-count inside esql:row-results
I forget what version you're in, but I found that in 2.0.3 I had to do this: rowcount xsp:expr + _esql_query.rowCount()/xsp:expr /rowcount to get by a long-since-forgotten generator error. Antonio Gallardo Rivera wrote: Is this tag already working? I am having troubles with it. inside row-results I cannot use it. -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the output of a modular db action in xsl
Dont know if this can helps you, but maybe XSP session can help you. Antonio Gallardo. El Viernes, 01 de Noviembre de 2002 02:37, Christian Haul escribió: On 31.Oct.2002 -- 01:08 PM, [EMAIL PROTECTED] wrote: Is there an example of how to do this available? From XSL? I don't think so. At least not specifically with database actions. There sure is one on accessing request attributes from xsl -- although I don't know off head. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
After I've made the changes, I don't seem to get the OutOfMemory exception anymore, but the site still runs extremely slow. The TaskManager shows CPU usage at 100%, which I suspect is due to memory to disk swaps. Can't help you, but if it's swapping then almost certainly you won't peg CPU at 100% (unless you've got some kind of supernatural disk subsystem). If you really only have 96M of Ram on your box it's time to upgrade. That won't even support Win2K decently... I'd start at 512M and go up if you can afford it! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql:row-count inside esql:row-results
I am using 2.1 lastest CVS in XSP. Antonio Gallardo. El Viernes, 01 de Noviembre de 2002 09:13, Jerry Fowler escribió: I forget what version you're in, but I found that in 2.0.3 I had to do this: rowcount xsp:expr + _esql_query.rowCount()/xsp:expr /rowcount to get by a long-since-forgotten generator error. Antonio Gallardo Rivera wrote: Is this tag already working? I am having troubles with it. inside row-results I cannot use it. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing cocoon in Tomcat 4.1.12
Hi All, I'm attempting to install cocoon 1.8 into Tomcat 4.1.12. I've made pretty good progress so far, but have encountered a problem that I haven't been able to get around. Whenever I attempt to access the page http://server:port/cocoon/Cocoon.xml, I receive an error stating that cocoon is unable to load the resource cocoon.properties, and throws a NullPointerException. I've modified tomcat-home/webapps/cocoon/WEB-INF/web.xml to point to ./cocoon.properties in order to get this error. If I use the suggested value of WEB-INF/cocoon.properties, cocoon is still unable to load the resource, but throws a FileNotFoundException. I found a post by Caroline Iux dated 24 Sept 2001 that had the same issue with WebSphere. Her solution, unfortunately, did not work for me. Thanks a lot, Greg Jewell - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
Sorry, it's 196M, not 96M. Still not much, but it had been sufficient enough untill I've upgraded Tomcat to 4.1.12! --- Hunsberger, Peter [EMAIL PROTECTED] wrote: After I've made the changes, I don't seem to get the OutOfMemory exception anymore, but the site still runs extremely slow. The TaskManager shows CPU usage at 100%, which I suspect is due to memory to disk swaps. Can't help you, but if it's swapping then almost certainly you won't peg CPU at 100% (unless you've got some kind of supernatural disk subsystem). If you really only have 96M of Ram on your box it's time to upgrade. That won't even support Win2K decently... I'd start at 512M and go up if you can afford it! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForms and Java
Hi! I've never used XMLForms, but now I'm writting an application that can have or not a web interface. I mean that I need to contemplate at least 2 types of clients: e.g. swing guis and web browsers. So I wrote all the application in Java. When I need to create a html page I only ask the objects to show themselves as xml and then in a servlet apply a TRAX transformation against a xsl file. Now I want to give some flow logic to the application and I think that struts or cocoon are a good way to do it. I red that XMLForms is Struts based. Following the idea of having not web clients, I still need to create some classes to represent the screens or pages and their buttons, fields, and so on. So the instances of this classes have to answer to messages like asXMLForm. The difference between the XMLForm example and my application is that the XMLForm is not a static xml, it must be created on the fly. I don't know if this approach will take me much time or not (what do you think?). On the other hand: to use XMLForm I have to use cocoon (true or false?). If so: how can I tell cocoon to generate a xmlform asking it to a class. Is there a stream generator? If so, please tell me how to use it. Well, sorry for so many questions. I'm trying to decide what would be the best choice. Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using XMLForms with Xindice (through XMLDB Transformer) - ideas?
Hello. I have a working XMLForm. I want to add the generated data in the last step to a Xindice database. I also have the XMLDBTransformer configured and working just fine. In case you haven't heard of the XMLDBTransformer, it takes a XML file or string and works with it. For example, the insert action expects something like this: xindice:query type=create oid=user-id person usernamejohndoe/username email[EMAIL PROTECTED]/email /person /xindice:query Where the information for the person is added to the database. Now, how can I link those? I can think of some possibilities: 1.- Use java code in my custom action, so in the confirm step I could open the connection to Xindice and store the data. 2.- Make the confirm page not a XML page but a XSP one. I could add logic to retrieve the model bean data there and add it to Xindice. 3.- Similar to #2 but I only produce there the needed XML entry for the XMLDB transformer and feed it after processing the XSP. 4.- Develop a new custom transformer. It would get the form data and format it according to the format expected by the XMLDB transformer so it could feed it. 5.- Forget the previous possibilities. Just make a custom XSLT. This will be in the sitemap right after the xmlform transformation. And after that it will feed the XMLDBTransformer. I have serious doubts on what approach I should take. I don't like #1 too much, cause it ties the Form to Xindice implementation. I like #2 or #3 more, cause right now I think #4 is too difficult for me. I tried to code the XSP in #2 and #3 but there's an obvious problem when using the getObjectModel() method, so I should look for a way to retrieve the my form object from the session so this approach is getting complicated.more. I also coded #4, I feel it separates concerns better and it's a good approach from a sitemap's perspective. It does a good job, I can send the code snippet if needed. But I'm not completely satisfied with it. In the example above, I want to validate if the username already exists in the DB and add a violation to the XMLForm if it does, so the user should choose another one. Well, after reading dozens of XMLForm related messages in the archive I think I can understand better when Ivelin says he prefers Java for complex logic and not XSP. I'm thinking of taking #1 approach after all, making a helper bean to query the Xindice database and use it in my action, but though it will make XMLForm- Xindice interactions way easier, I don't like the idea pretty much. I'd be using a transformer into an action and it won't be any clear in the sitemap. Now, with approach #4 you can see clearly you're just chaining transformations and my custom action is DB independent too, and I like it. What do you all think? Would it be so bad? Maybe I'm just being very picky at this...stupid me...I need some sleep... Thanks for reading. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms and Java
[pre-snip] Now I want to give some flow logic to the application and I think that struts or cocoon are a good way to do it. I red that XMLForms is Struts based. [post-snip] From what I've read XMLForms IS NOT based on Struts. Take a look at the thread: XMLForms vs Struts in the archive for this mailing list (the discussion is ongoing). -- Jacob - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms and Java
All right! Now I'm up to date with the XMLForms vs Struts thread. But I still have the same questions (of the previous mail). About XMLForm and Struts: May be I had to say inspired, not based. The XMLForm framework is inspired by Apache Jakarta Struts and W3C XForms. This is from: http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html Thanks. -- Mauro On Fri, 1 Nov 2002, Jacob L E Blain Christen wrote: [pre-snip] Now I want to give some flow logic to the application and I think that struts or cocoon are a good way to do it. I red that XMLForms is Struts based. [post-snip] From what I've read XMLForms IS NOT based on Struts. Take a look at the thread: XMLForms vs Struts in the archive for this mailing list (the discussion is ongoing). -- Jacob - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ Book ] Thoughts on the newer Cocoon book?
Hi everyone, I was just wondering if anyone else has looked at the newer of the Cocoon books entitled, Cocoon 2 Programming: Web Publishing with XML and Java ... I just picked it up last night and I'm working my way through it, and I was wondering what other people thought of it so far. Tony - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon Orion
Title: Cocoon Orion Hi, I'm trying to run C2 in Orion and I get the following error: org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SAXSVGDocumentFactory at org.apache.cocoon.sitemap.Handler.run(Handler.java:290) at java.lang.Thread.run(Thread.java:484) java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SAXSVGDocumentFactory at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at com.evermind._dz.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at com.evermind._dz.findClass(Unknown Source) . . . Cocoon 2.0.3 Orion 1.5.2 Java 1.3 Linux and Windows 2000 Advanced Server Any ideas ? Thanks. Alejandro -Mensaje original- De: Tony Collen [mailto:[EMAIL PROTECTED]] Enviado el: Viernes, 01 de Noviembre de 2002 04:46 p.m. Para: cocoon-users Asunto: [ Book ] Thoughts on the newer Cocoon book? Hi everyone, I was just wondering if anyone else has looked at the newer of the Cocoon books entitled, Cocoon 2 Programming: Web Publishing with XML and Java ... I just picked it up last night and I'm working my way through it, and I was wondering what other people thought of it so far. Tony - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Transformer problem
Hey all, I'm working on developing a SOAPTransformer that behaves very much like the SQLTransformer. In other words, the input XML under my current working namespace should describe a SOAP call (but doesn't really look like a SOAP envelope) and the response will be the result value or the result list. Sometimes however, the result value might be an XML document itself. I can return this document just fine as a string and the xmlConsumer in the transformer just takes the characters and sends them out. But I want to provide the option of passing known XML that is returned from a method through the xmlConsumer so that it becomes and embedded part of the result document. So I use the following code to send it inline into the outgoing SAX event stream: /* Assuming that content is the string variable that is the return value * of the SOAP call and that I've been using super.startElement, * super.endElement and so on up to this point and continuing after I * release the Avalon parser. Also, just FYI, super is of course the * AbstractTransformer. */ Parser parser = (Parser) this.manager.lookup(Parser.ROLE); InputSource source = new InputSource(new StringReader(content)); // XMLConsumer implements both ContentHandler and LexicalHandler. parser.parse(source, super.xmlConsumer, super.xmlConsumer); this.manager.release(parser); I would think that this should work with no problem or give me some sort of parser error during the parsing of the embedded content. Instead, the transformer *SEEMS* to succeed, but constructs the result so that I get the following error in the browser. A name contained an invalid character. Error processing resource 'http://knuth:8080/test-demos/soap-call'. Line 6, Position 176 document xmlns:req=http://xml.apache.org/cocoon/requestgenerator/2.0; xmlns:soap=http://ideal.cecs.missouri.edu/cocoon/transformation/soap/1.0;soap:responsesoap:value?xml version=1.0 encoding=UTF-8? You can see what the problem is with the soap:value starting tag. But why would the parser construct the text in this way? What could possibly be giving me this problem. The log files don't tell me anything about this error, so that's no help. Let me know if anybody has any ideas about this. Thanks! /S -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transformer problem
This person who is a member of your group is no longer at this address. DELETE FROM YOU FILES - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [PATCH QUEUE] Summary November 2 2002
--- This mail is generated automatically using Jakarta Ant. Contents are automatically downloaded from Apache's Bugzilla. --- Please do not reply to this mail. --- *** COCOON PATCH QUEUE UPDATE patches in queue: 18 *** --- 9075:[PATCH] Contribution of SAP R/3(r) connectivity components --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9075 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4 --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 10208:[PATCH]/[RT] Aggregation and Error Conditions (file not foun --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10208 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11533:[PATCH] Replacement for AvalonToCocoonSource --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11549:[PATCH] Replace LogKitManageable through LoggerManageable --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12115:[PATCH]NPE in AbstractCachingProcessingPipeline.java --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12115 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12235:[PATCH] XPathTransformer --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12673:[PATCH] Crawler fix: interpret as index.html --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12673 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12975:[PATCH] POI block --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12975 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 13070:[PATCH] Add a new tag xsp-session:getxml to XSP --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13070 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 13220:[PATCH] build dist-bin broken in HEAD --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13220 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 13247:[PATCH] PNG output of SVGSerializer broken in HEAD --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14012:[PATCH] Inline comment in cocoon.xconf corrected --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14012 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14117:[PATCH] AuthAction fails in sub-requests --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14144:[Patch] add CompressionFilter declaration to web.xml --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW