Re: Dynamic SVG with XSL
What tags are you using to embed the SVG in your HTML? Have you checked the pipeline generating your SVG and have you tried displaying that as XML? >>> [EMAIL PROTECTED] 2005/07/28 01:16 AM >>> hello list, I are generate an document xml and display an part html + image svg. my source code have an fragment of svg (.. ) the browser display none 0 result. only the content html (tables, fonts,etc). the image svg not show the plugins of adobe are install in my browser. how to find an solution. thanks very much. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.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: Dynamic SVG with XSL
On 28.07.2005 01:16, Andres Taborda wrote: hello list, I are generate an document xml and display an part html + image svg. my source code have an fragment of svg (.. ) the browser display none 0 result. only the content html (tables, fonts,etc). the image svg not show the plugins of adobe are install in my browser. how to find an solution. You need a browser understanding embedded SVG. Don't know if there is already one. Otherwise the FragmentExtractorGenerator and -Transformer will help you. We had this topic just two days ago, so search in the archives. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Library names not generated correctly in Eclipse
I must be missing some setup since the build seems to prefix some extra directories. I don't know which java compiler setting I need to set in Eclipse. Compiles fine but will not run under Tomcat I am not sure what these settings do. ide.eclipse.outputdir=${build.root}/eclipse/classes ide.eclipse.export.libs=false Ron SEVERE: Error deploying web application directory cocoon java.lang.NoClassDefFoundError: org/apache/cocoon/servlet/CocoonServlet (wrong name: src/java/org/apache/cocoon/servlet/CocoonServlet) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTMLGenerator for parameter-data
Benjamin Boksa napisał(a): Hi, I am looking for a simple way to transform HTML which came from a form to XML. Is there an easy way to do this (maybe some kind of generator)? If it cames from textarea you would be interested in using ModuleSource[1], but if it cames from file input you should take a look at PartSource[2], both used with HTMLGenerator. Using module source would be like this: [...] I'm not sure about syntax because documentation is poor, maybe some simple investigation in implementation is needed to obtain details. Hope that helps [1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/source/impl/ModuleSource.html [2] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/source/impl/PartSource.html -- g[R]eK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic SVG with XSL
hello list, I are generate an document xml and display an part html + image svg. my source code have an fragment of svg (.. ) the browser display none 0 result. only the content html (tables, fonts,etc). the image svg not show the plugins of adobe are install in my browser. how to find an solution. thanks very much. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTMLGenerator for parameter-data
On Jul 27, 2005, at 3:04 PM, Benjamin Boksa wrote: I am looking for a simple way to transform HTML which came from a form to XML. "HTML which came from a form"...? Can you be a little more specific? —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in forms-field-styling.xsl in svn
On 26.07.2005 13:54, Christoph Hermann wrote: where it should be Becaus using the line above with "-input" cocoon will tell: Invalid submit id (no such widget): upload-input (for a widget called "upload"). Sylvain? It was introduced with http://svn.apache.org/viewcvs.cgi/cocoon/blocks/core/forms/trunk/samples/resources/forms-field-styling.xsl?rev=161264&r1=157119&r2=161264&diff_format=h. The both are indeed different. Should the @id and @name differ? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTMLGenerator for parameter-data
Hi, I am looking for a simple way to transform HTML which came from a form to XML. Is there an easy way to do this (maybe some kind of generator)? Thanks a lot in advance. Regards, Benne PGP.sig Description: Signierter Teil der Nachricht
Re: sitemap error
On 27.07.2005 22:02, Pokuru, Rao wrote: When i change sitemap.xmap, i rebooted the tomcat and tried to access URL. At this point it should generated new sitemap_xmap.java and corresponding class files in the WORK folder, but it doesn't. Are you still using Cocoon 2.0.x? Otherwise there will be no sitemap_xmap.java. The sitemap is interpreted since Cocoon 2.0.4 IIRC. So, i am getting "NO MORE DTM IDs available error" when i tried to access the URL. http://wiki.apache.org/cocoon/NoMoreDtmIdError Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc buld error in Eclipse
Thanks. That did the trick exclude.javadocs=true I kept the documentation turned on and appear to have got the documentation files generated. Ron Joerg Heinicke wrote: On 27.07.2005 22:49, Ron Wheeler wrote: The build failed while trying to generate the javadocs. It looks like the command line is truncated but I am not sure if this is the problem or just a coincidence. Is there an obvious error in my setup? I don't think so. We have the same problem with one of our projects (i.e. not Cocoon) that also has many dependencies and so a big classpath. It's a problem of windows commandline or ant's interface to javadoc. Can I suppress the generation of the javadocs? Yes, copy build.properties to local.build.properties and modify in local.build.properties the two properties concerning javadoc generation at the beginning of the file. Does anything happen after this that I actually need to try out Cocoon? I don't know the order of the build process. It could also be that there are different orders on different machines. Ant resolves the target dependencies. Just switch off Javadoc generation, the rest should work. Joerg - 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: Javadoc build error in Eclipse
In the build.properties, I found the following section. # Build Exclusions #exclude.deprecated=true #exclude.documentation=true #exclude.javadocs=true # Include Java source code into the binary jar files #include.sources-in-jars=true # Include Java source code into separate, source only jar files #include.sources-jars=true It appears that these are the opposite of the defaults so that copying these to the local... and removing the comments will reverse the default behaviour. Is this true for all build.properties entries? ie the commented out values are the opposite of the defaults. By suppressing the creation of the javadocs (exclude.javadocs=true), I was able top get the build to complete successfully. Ron Ron Wheeler wrote: The build failed while trying to generate the javadocs. It looks like the command line is truncated but I am not sure if this is the problem or just a coincidence. Is there an obvious error in my setup? Can I suppress the generation of the javadocs? Does anything happen after this that I actually need to try out Cocoon? Ron javadocs: [javadoc] Generating Javadoc [javadoc] Javadoc execution BUILD FAILED C:\eclipse\workspace\Cocoon\tools\targets\docs-build.xml:264: The following error occurred while executing this line: C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:613: Javadoc failed: java.io.IOException: CreateProcess: javadoc.exe -J-Xmx192m -stylesheetfile C:\eclipse\workspace\Cocoon\src\resources\javadoc\javadoc.css -windowtitle "Cocoon API 2.1.7 [July 27 2005]" -splitindex -use -d C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\javadocs -doctitle "Cocoon API 2.1.7" -bottom "Copyright © 1999-2005 The Apache Software Foundation. All Rights Reserved." -classpath C:\eclipse\workspace\Cocoon\tools\lib\ant-contrib-0.6.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-junit.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-launcher.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-trax.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant.jar;C:\eclipse\workspace\Cocoon\tools\lib\easymock-1.1.jar;C:\eclipse\workspace\Cocoon\tools\lib\jing-20030619.jar;C:\eclipse\workspace\Cocoon\tools\lib\junit-3.8.1.jar;C:\eclipse\workspace\Cocoon\tools\lib\qdox-1.5.jar;C:\eclipse\workspace\Cocoon\tools\lib\xmlunit0.8.jar;C:\eclipse\workspace\Cocoon\lib\core\altrmi-common-0.9.2.jar;C:\eclipse\workspace\Cocoon\lib\core\altrmi-registry-0.9.2.jar;C:\ec” - 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: document(...) broken when using xsltc
On 27.07.2005 15:54, Antonio Fiol Bonnín wrote: I have been changing my transforms to execute with XSLTC instead of interpreted Xalan. However, some of them did not work properly, showing erratic behaviour, or even throwing NullPointerException. In most cases (if not all), I have tracked the problem to usage of the document() function to get information from another source document. When this function is used, the context node is lost, and thus strange things happen. When I say "the context node is lost", I mean that AFTER the call to document(): - any xpath expressions I've tried lead to erratic behaviour AND - in some cases, the "flow" of pattern applying gets wrong (usually aborting an apply-templates before applying to all the selected elements, and possibly adding spurious non-empty text nodes on the output). Has anyone also found this problem? If so, is there another solution apart from not using document() or not using xsltc? Is it a xsltc bug, a cocoon bug or not a bug at all? Are you sure you have only retrieved a node using document() and not switched the context to the other document? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc buld error in Eclipse
On 27.07.2005 22:49, Ron Wheeler wrote: The build failed while trying to generate the javadocs. It looks like the command line is truncated but I am not sure if this is the problem or just a coincidence. Is there an obvious error in my setup? I don't think so. We have the same problem with one of our projects (i.e. not Cocoon) that also has many dependencies and so a big classpath. It's a problem of windows commandline or ant's interface to javadoc. Can I suppress the generation of the javadocs? Yes, copy build.properties to local.build.properties and modify in local.build.properties the two properties concerning javadoc generation at the beginning of the file. Does anything happen after this that I actually need to try out Cocoon? I don't know the order of the build process. It could also be that there are different orders on different machines. Ant resolves the target dependencies. Just switch off Javadoc generation, the rest should work. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javadoc buld error in Eclipse
The build failed while trying to generate the javadocs. It looks like the command line is truncated but I am not sure if this is the problem or just a coincidence. Is there an obvious error in my setup? Can I suppress the generation of the javadocs? Does anything happen after this that I actually need to try out Cocoon? Ron javadocs: [javadoc] Generating Javadoc [javadoc] Javadoc execution BUILD FAILED C:\eclipse\workspace\Cocoon\tools\targets\docs-build.xml:264: The following error occurred while executing this line: C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:613: Javadoc failed: java.io.IOException: CreateProcess: javadoc.exe -J-Xmx192m -stylesheetfile C:\eclipse\workspace\Cocoon\src\resources\javadoc\javadoc.css -windowtitle "Cocoon API 2.1.7 [July 27 2005]" -splitindex -use -d C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\javadocs -doctitle "Cocoon API 2.1.7" -bottom "Copyright © 1999-2005 The Apache Software Foundation. All Rights Reserved." -classpath C:\eclipse\workspace\Cocoon\tools\lib\ant-contrib-0.6.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-junit.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-launcher.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant-trax.jar;C:\eclipse\workspace\Cocoon\tools\lib\ant.jar;C:\eclipse\workspace\Cocoon\tools\lib\easymock-1.1.jar;C:\eclipse\workspace\Cocoon\tools\lib\jing-20030619.jar;C:\eclipse\workspace\Cocoon\tools\lib\junit-3.8.1.jar;C:\eclipse\workspace\Cocoon\tools\lib\qdox-1.5.jar;C:\eclipse\workspace\Cocoon\tools\lib\xmlunit0.8.jar;C:\eclipse\workspace\Cocoon\lib\core\altrmi-common-0.9.2.jar;C:\eclipse\workspace\Cocoon\lib\core\altrmi-registry-0.9.2.jar;C:\ec” - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build error using Eclipse
That was it. I had to add the ant-contrib.jar to the Eclipse Ant Preferences runtime list of libraries. Ron Joerg Heinicke wrote: On 27.07.2005 21:14, Ron Wheeler wrote: [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. You obviously need ant-contrib.jar. Joerg - 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]
sitemap error
When i change sitemap.xmap, i rebooted the tomcat and tried to access URL. At this point it should generated new sitemap_xmap.java and corresponding class files in the WORK folder, but it doesn't. So, i am getting "NO MORE DTM IDs available error" when i tried to access the URL. Please advice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build error using Eclipse
On 27.07.2005 21:14, Ron Wheeler wrote: [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. You obviously need ant-contrib.jar. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build error using Eclipse
I am trying to build Cocoon under Eclipse. This is the output that I get from Ant. I have got the Problem window down to 100 warnings - mostly about depricated functions with a few small erors about properties never being referenced and returns not declared. I did not create any local. files nor have I changed anything in the distribution. What have I missed? Buildfile: C:\eclipse\workspace\Cocoon\build.xml init: clean-webapp: [delete] Deleting directory C:\eclipse\workspace\Cocoon\build\webapp init: Overriding previous definition of reference to classpath init-tasks: [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. prepare: [echo] == [echo] Apache Cocoon 2.1.7 [1999-2005] [echo] == [echo] Building with Apache Ant version 1.6.5 compiled on June 2 2005 [echo] -- [echo] Using build file C:\eclipse\workspace\Cocoon\build.xml [echo] -- [echo] Compiler options: [echo] - debug . [on] [echo] - optimize .. [on] [echo] - deprecation ... [off] [echo] == compile-mocks: clover: clover.init: clover.on: compile-core: clover.off: compile-deprecated: compile-tests: compile: prepare-blocks: [copy] Copying 1 file to C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp [xslt] Processing C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\gump.xml to C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml [xslt] Loading stylesheet C:\eclipse\workspace\Cocoon\tools\src\blocks-build.xsl blocks: init: unstable: BUILD FAILED C:\eclipse\workspace\Cocoon\tools\targets\compile-build.xml:244: The following error occurred while executing this line: C:\eclipse\workspace\Cocoon\build\cocoon-2.1.7\temp\blocks-build.xml:373: Could not create task or type of type: if. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'if'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using . - You are attempting to use a task defined using or but have spelt wrong or not defined it at the point of use Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. Total time: 31 seconds to 408:> to 408:> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaFlow: getting the application context
Thanks Thomas, I read your first response and replied to it about a week ago. At first I wasn't sure what you meant by the cocoon "standalone" class but I have been investigating the Avalon framework over the past few days and I'm starting to come to an understanding. I will probably try to implement something like this. Is there any more documentation you could point me to or is Avalon (now Excalibur) pretty much what I need to know? --- Thomas Lutz <[EMAIL PROTECTED]> wrote: > Copy of my answer to your previous posting: > > I am using quite the same environment as you > do...javaflow, jxtemplates, > some custom generators. > > Looking around I found no application object, too, > but :-) maybe the > this concept might help: > > Create a "standalone" cocoon independent class, that > is responsible for > building your items cache. If you implement this > class as a singleton it > would just act like a application object. I don't > think that you need > much synchronizing, so it should be no performance > issue.. it would > behave like the logger. > > This class could either recieve events from your > database, or a > "administration trigger reload webpage", or poll the > database every 50 > hits for new items... > > I don't know how fit you are in java, but that it is > not really hard to > implement, and I think it should work... although I > am not really a java > guru yet :-) . > > HTH, > tom > > footh schrieb: > > >Does anyone know how to get the application context > >from within a javaflow? I'm looking for something > >equivalent to the "cocoon.context" code in a > >javascript-based flow. > > > > > > > > > >Start your day with Yahoo! - make it your home page > > >http://www.yahoo.com/r/hs > > > > > >- > >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] > > Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaFlow: getting the application context
So, I would have my java flow class implement Contextualizable and at some point during the lifecycle, the contextualize method will be called. But will a ServletContext be passed? I'm a little shaky as to what I'm supposed to do within this method. --- Bart Molenkamp <[EMAIL PROTECTED]> wrote: > For Java components to get the context, you need to > implement the > Contextualizable interface from Avalon. > > Bart. > > > -Oorspronkelijk bericht- > > Van: footh [mailto:[EMAIL PROTECTED] > > Verzonden: woensdag 27 juli 2005 6:17 > > Aan: users@cocoon.apache.org > > Onderwerp: JavaFlow: getting the application > context > > > > Does anyone know how to get the application > context > > from within a javaflow? I'm looking for something > > equivalent to the "cocoon.context" code in a > > javascript-based flow. > > > > > > > > > > > Start your day with Yahoo! - make it your home > page > > http://www.yahoo.com/r/hs > > > > > > > - > > 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] > > __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html -2- xhtml - 2- xsl - fo
Hallo. Again. My results page from a cform has an url like http://localhost:8080/cocoon/test/6267201137490a377a5f79257a3810544b391352.continue i'm trying to use a genarator like to pass the html page to xhtml and then i already have a xsl to pass to this xhtml to xsl-fo. The problem is i keep getting (Access is denied) error. Thanks Joerg und Holger for your time. M.Thermos On 7/26/05, Joerg Heinicke <[EMAIL PROTECTED]> wrote: > On 26.07.2005 19:55, Michael Thermos wrote: > > > I just found a new html2xhtml(from docbook project) file which seems > > to be working. The problem i stated previously i believed was dued to > > calling a new pipeline before finishing the application control flow > > with cocoon.sendPage(cocoon.sendPage("test-success-pipeline.jx", > > bizdata);) > > As already written in the original thread there is no need or even use > for a html2xhtml stylesheet. You only need a HTMLGenerator. I really > wonder what this stylesheet is about. > > Joerg > > - > 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: Dynamic SVG bar graph
Derek and every one, Thanks for your kind help. Finally, I got it by using , which links the SVG source to my html file. Here is my sample code: step1 end to step 1 step2 Jarry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication Framework: Separate pipelines required for public versus private?
Our site is very data driven. Because we didn't think it mattered, and it was simple, we designed it so the same pipeline is used for all pages (with a few exceptions). So the sitemap currenlty doesn't know and doesn't care whats public and private. The database contriols what pages are public and private. We are just now looking into authentication and I am worried that the separation of public and private pages need to occur in the sitemap in order for this to work and therefore, having the same pipeline for both is proving to be problematic. As it stands now, if I was to put an authentication handler around my pipeline that handles all pages, then all pages that match to that pipeline will be treated as private. I do not know if its possible to use the Cocoon authentication framework and still have the same pipeline deal with public and private pages. Does anyone know? _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
document(...) broken when using xsltc
Hello, I have been changing my transforms to execute with XSLTC instead of interpreted Xalan. However, some of them did not work properly, showing erratic behaviour, or even throwing NullPointerException. In most cases (if not all), I have tracked the problem to usage of the document() function to get information from another source document. When this function is used, the context node is lost, and thus strange things happen. When I say "the context node is lost", I mean that AFTER the call to document(): - any xpath expressions I've tried lead to erratic behaviour AND - in some cases, the "flow" of pattern applying gets wrong (usually aborting an apply-templates before applying to all the selected elements, and possibly adding spurious non-empty text nodes on the output). Has anyone also found this problem? If so, is there another solution apart from not using document() or not using xsltc? Is it a xsltc bug, a cocoon bug or not a bug at all? Thank you very much. -- Antonio
Re: Multiple Cocoon instances in tomcat.
Aurélien DEHAY wrote: Upayavira wrote: Aurélien DEHAY wrote: Hello. I am running 2 cocoon webapps in Tomcat. The libs are all in $TOMCAT_HOME/common/lib, so the WEB-INF/lib of each webapp is empty. There is a problem, I found in the log file of a webapp the activity (like cron block) of the other webapp. Is anyone else has ever experienced the same problem? Thank you for any response. Well, if any of the Cocoon classes use statics, you'll get problems - i.e. where you expect there to be one value per webapp, there is in fact just one value. Really, I would advise against putting libraries into common/lib, unless you know exactly what those libraries do. Ok. In fact, I just wonder how to reduce the memory footprint of each Webapp, that's why I put all the packages in common/lib. I've seen Ugo's mail (28/10/2004), I was thinking it was the good solution. Have you built your Cocoons with only the blocks that you actively use? Also, look in /lib/optional. There are quite a few jars in there that are there because they are needed by multiple blocks, but that doesn't mean that your blocks need them. You could remove them all from your WEB-INF/lib, and re-add them until your app works again! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Cocoon instances in tomcat.
Upayavira wrote: Aurélien DEHAY wrote: Hello. I am running 2 cocoon webapps in Tomcat. The libs are all in $TOMCAT_HOME/common/lib, so the WEB-INF/lib of each webapp is empty. There is a problem, I found in the log file of a webapp the activity (like cron block) of the other webapp. Is anyone else has ever experienced the same problem? Thank you for any response. Well, if any of the Cocoon classes use statics, you'll get problems - i.e. where you expect there to be one value per webapp, there is in fact just one value. Really, I would advise against putting libraries into common/lib, unless you know exactly what those libraries do. Ok. In fact, I just wonder how to reduce the memory footprint of each Webapp, that's why I put all the packages in common/lib. I've seen Ugo's mail (28/10/2004), I was thinking it was the good solution. Regards. -- Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Cocoon instances in tomcat.
Aurélien DEHAY wrote: Hello. I am running 2 cocoon webapps in Tomcat. The libs are all in $TOMCAT_HOME/common/lib, so the WEB-INF/lib of each webapp is empty. There is a problem, I found in the log file of a webapp the activity (like cron block) of the other webapp. Is anyone else has ever experienced the same problem? Thank you for any response. Well, if any of the Cocoon classes use statics, you'll get problems - i.e. where you expect there to be one value per webapp, there is in fact just one value. Really, I would advise against putting libraries into common/lib, unless you know exactly what those libraries do. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Cocoon instances in tomcat.
Hello. I am running 2 cocoon webapps in Tomcat. The libs are all in $TOMCAT_HOME/common/lib, so the WEB-INF/lib of each webapp is empty. There is a problem, I found in the log file of a webapp the activity (like cron block) of the other webapp. Is anyone else has ever experienced the same problem? Thank you for any response. Best regards. -- Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accepting XML Post
Le 27 juil. 05, à 11:53, Stewart, Gary a écrit : ...So I suppose my question is how do you access the body of a POST request?.. Use the StreamGenerator. -Bertrand smime.p7s Description: S/MIME cryptographic signature
RE: Flowscript and file uploads
Janet Yvan wrote... > I have to upload files (icons) within CForms. Then, I have to put them > in a directory of mines to be accessed as resources. > I think I have to do this within my flowscript, but I didn’t find the > API on the website. > Do anybody have tried something like this ? You may find what you are looking for in the upload example distributed with Cocoon (URL http://yourserver/samples/blocks/forms/upload). It contains flowscript handling the uploaded file. Basically what you need to do is copy the uploaded file from its temporary location to the directory where you want it to be. This is no different from copying any other file. One last thing, make sure you have set "enable-uploads" to "true" in Cocoon's web.xml (default is "false"): enable-uploads true But I assume you have already done this. Niels
Accepting XML Post
Hi people, I'm currently working on some XForms data client side (I also plan on integrating Chicoon later) and posting to a Cocoon server. The post works ok (I tested on a basic xsp request diagnosis page). The content type seems correct (application/xml) and the post seems to work ok. Now I've actually got stuck trying to access the body of the post (hopefully an XML document) and then processing that within the cocoon framework. So I suppose my question is how do you access the body of a POST request? Thanks in advance, Gary ** The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaFlow: getting the application context
For Java components to get the context, you need to implement the Contextualizable interface from Avalon. Bart. > -Oorspronkelijk bericht- > Van: footh [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 27 juli 2005 6:17 > Aan: users@cocoon.apache.org > Onderwerp: JavaFlow: getting the application context > > Does anyone know how to get the application context > from within a javaflow? I'm looking for something > equivalent to the "cocoon.context" code in a > javascript-based flow. > > > > > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > - > 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: Sleepycat DBXML and Cocoon
Ivan Bogouchev / Иван Богушев schrieb: Hello, > I think that I need a transformer because I embed the values of > different queries into a template xml wich is generated by the file > generator. Just an idea: You can write an XQuery script which returns the results you need and use this in/from another cocoon pipeline (i.e. cinclude) or such. Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sleepycat DBXML and Cocoon
Hi,On 7/27/05, Christoph Hermann <[EMAIL PROTECTED]> wrote: Ivan Bogouchev / Иван Богушев schrieb:Hi,> did anyone proceed with such an integration?>> Recently I've come across a great article [1] about the integration of> Sleepycat's BDBXML and Cocoon. Does it have to be Sleepycat XML DB or could you also use eXist? The major reason is that I need to access the db from both Java and C++, not at the same time though. The second is performance. The db is 4500 documents with total size of about 500MB. I really didn't deepen into that, but when I tried eXist against it, it first rejected some of the documents and further it seemed to take too long for simple queries. I successfully integrated eXist into cocoon and you can also access thedocuments via the xmldb://-protocol. There is also a transformer (which i never got working) but actually one does not neet this (imho). I think that I need a transformer because I embed the values of different queries into a template xml wich is generated by the file generator. There are some Articles about eXist and Cocoon in the wiki, have a look: http://wiki.apache.org/cocoon/EXistInCocoonhttp://wiki.apache.org/cocoon/EXistAsBlockhttp://wiki.apache.org/cocoon/CformsExistAndFlow Thanks for the links. regards,-- --van--
Re: JavaFlow: getting the application context
Copy of my answer to your previous posting: I am using quite the same environment as you do...javaflow, jxtemplates, some custom generators. Looking around I found no application object, too, but :-) maybe the this concept might help: Create a "standalone" cocoon independent class, that is responsible for building your items cache. If you implement this class as a singleton it would just act like a application object. I don't think that you need much synchronizing, so it should be no performance issue.. it would behave like the logger. This class could either recieve events from your database, or a "administration trigger reload webpage", or poll the database every 50 hits for new items... I don't know how fit you are in java, but that it is not really hard to implement, and I think it should work... although I am not really a java guru yet :-) . HTH, tom footh schrieb: Does anyone know how to get the application context from within a javaflow? I'm looking for something equivalent to the "cocoon.context" code in a javascript-based flow. Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - 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]
Flowscript and file uploads
Hi all. I have to upload files (icons) within CForms. Then, I have to put them in a directory of mines to be accessed as resources. I think I have to do this within my flowscript, but I didn’t find the API on the website. Do anybody have tried something like this ? Thanks a lot in advance. Yvan JANET