Sendmail attachment : cocoon:/// - why 3 /s ?
Hi , Been trying to get sendmail attachments work with cocoon:// protocol and just cannot get attachments served by subsitemaps to work - only main sitemaps pipeline seem to work ... and that with "cocoon:/// " - three slashes Has anyone got attachments working thru subsitemaps and if yes why 3 slashes ?? version :Cocoon-2.1.4-dev of a week or so back. BRgds, Sandhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sendmail attachment : cocoon:/// - why 3 /s ?
That is the problem. Cannot navigate to a subsitemap from root : Using this : the error is : SAXException: org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: samples/test -- this seems to be misssing a "/" in front ?? Yes, cocoon/samples/test returns a perfect html page in the browser. So am able to use any pipe in the main sitemap with cocoon:// AND cocoon:/// but none in subsitemaps. Any help very appreciated. Sandhu - Original Message - From: "Joerg Heinicke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 06, 2004 7:27 AM Subject: Re: Sendmail attachment : cocoon:/// - why 3 /s ? > In theory it should be 1 and 2 slashes. 1 for relative to current > sitemap, 2 for root sitemap. 3 is really strange. But if really only 3 > slashes and root sitemap are working you can navigate back to the > subsitemap, which is of course less than suboptimal ... > > Joerg > > On 05.01.2004 17:09, [EMAIL PROTECTED] wrote: > > > Hi , > > > > Been trying to get sendmail attachments work with cocoon:// protocol and > > just cannot get attachments served by subsitemaps to work - > > only main sitemaps pipeline seem to work ... and that with "cocoon:/// " > > - three slashes > > > > Has anyone got attachments working thru subsitemaps and if yes > > why 3 slashes ?? > > > > version :Cocoon-2.1.4-dev of a week or so back. > > > > BRgds, > > Sandhu > > > ----- > 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: Sendmail attachment : cocoon:/// - why 3 /s ?
Thanks Joerg ,Christian for your trying to help...much appreciated. Yes am using XSP but really the sendmail_xsp.xml in samples/mail/sendmail/ gives same error for subsitemaps. ..but as you say it is strange no one else has this error - or no one tried this ?? Sandhu - Original Message - From: "Christian Haul" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 1:41 PM Subject: Re: Sendmail attachment : cocoon:/// - why 3 /s ? > Joerg Heinicke wrote: > > I have never used it myself, but I know that some are using it through > > reading mails on this list. I searched the archives a bit and nobody > > complains about a similar error, for everybody cocoon: with 1 and 2 > > slashes seem to work. > > > > Where are the people having sendmail with internal cocoon pipeline > > attachements working? Christian, do you have any experience with this? > > Not really. All the work on attachments had been triggered by requests > on the list or were patches provided by others (that I might have worked > on a little ;-) > > Basically, it just uses the normal source resolving procedures that can > be found anywhere in cocoon. So, this shouldn't be a problem showing > only with sendmail. > > It appears that Sandhu is using the logicsheet. Mmmh, could be related > to XSP then. Maybe a wrong resolver is used?? > > Sorry, I don't have the time to look into this in depth. > > Chris. > > ----- > 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]
Authentication framework problem
Hi all! I have a problem with the authentication framework. I have the user information (in this case username/password and other info) in a remote MySQL database, for which I have already set a connection pool in Cocoon (2.1.3). I have two ways for doing such user authentication: 1) writing a simple action that checks the user parameters (username/password) provided through a web form, with those stored in the database. Here the problem, for me, is to write java code that reuse the connection pool set for other pipelines (but at a transform level). I have no idea... 2) customize the authentication resource, to use the existing authentication framework. But Where can I add the custom code that queries my database? Do I Have to change only the AuthAction class? Please give some hint, or better (If you can) some code example. Thank you a lot, and... sorry for my english ;-) Bye, Nesto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication framework problem
Hi all! I have a problem with the authentication framework. I have the user information (in this case username/password and other info) in a remote MySQL database, for which I have already set a connection pool in Cocoon (2.1.3). I have two ways for doing such user authentication: 1) writing a simple action that checks the user parameters (username/password) provided through a web form, with those stored in the database. Here the problem, for me, is to write java code that reuse the connection pool set for other pipelines (but at a transform level). I have no idea... 2) customize the authentication resource, to use the existing authentication framework. But Where can I add the custom code that queries my database? Do I Have to change only the AuthAction class? Please give some hint, or better (If you can) some code example. Thank you a lot, and... sorry for my english ;-) Bye, Nesto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:AW: Authentication framework problem
Thank you Jens, but I have some doubts about this pipeline >From : "Jens Maukisch" [EMAIL PROTECTED] > > 2) customize the authentication resource, to use the existing > authentication framework. But Where > can I add the custom code that queries > my database? Do I Have to change only the AuthAction class? > This should help you: > http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105289531706378&w=2 > > kind regards > Jens This is the pipeline from the linked document: The XML document loaded by the generator contains the complete list of the users of the portal with all the information (from the Portal sample of Cocoon). If I want to replace the static xml document with an XSP that loads the same data from a database, what I have to load? 1) Do I have to select all the users of the portal everytime? (NO, I hope! What if I have 1000 or more users???) 2) In the case I can use request parameters I select from the database only the information about the current user, but this is possible only in the login step; when the user navigates internal pages of the portal I suppose I don't have the username/pasword in the request. So the doubt is: What I have to select from the database to create the XML ...? With other words: my XSP has to select form database with which parameters?? I hope I have explained the problem in an understandable way ;-) Thank you for your answer! Bye, Nesto --------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange: BlobSource cannot access Datasource
Hello All, Please, help, because I'm really out of ideas here.. The thing is, when I try to use a blob: protocol (from the BlobSource component), I keep getting an Exception during source resolving.: org.apache.excalibur.source.SourceException: Cannot get datasource 'DBGES' At first I thought there was something wrong with the datasource definition, but if I use the DBGES pool in a XSP serverpage, or in a SQL transformer, it works flawlessly, so the datasource definition is correct. In my previous project it worked flawlessly.. Does anybody know what may i be doing wrong? Thanks all, Nacho Jimenez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
serialize without namespace
How can I remove namespaces from my xml files? The Cocoon FAQ say in: <http://cocoon.apache.org/2.1/faq/faq-serializers.html#faq-N1004C> "... You could generalize this approach by using the serializer's configuration method to declare namespaces to be excluded." But checking the serializer's documentation I couldn't find anything about this. I tried in the sitemap's serializer configuration with yes and with yes But none of them works. What does the FAQ really mean? -- [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: serialize without namespace
Joerg Heinicke wrote: [...] How can I remove namespaces from my xml files? The Cocoon FAQ say in: <http://cocoon.apache.org/2.1/faq/faq-serializers.html#faq-N1004C> "... You could generalize this approach by using the serializer's configuration method to declare namespaces to be excluded." [...] What does the FAQ really mean? The section in the FAQ starts with "One approach is to extend your serializer component and override the startPrefixMapping and endPrefixMapping methods to do nothing." This means you subclass an existing serializer. It's Java, not just configuring some options. Thanks for clarification. Maybe a good reason for starting to learn Java. The second option "Another approach is to use an interim transformation step in your pipeline with a stylesheet described here." is much easier, only the link is no longer pointing to the correct anchor: That is what I am presently using. And it's only task is to remove xmlns from *only* the root element in order to turn proper xhtml into proper html and turn http://www.w3.org/1999/xhtml";> ... into ... Since html serializer already does some conversions - e.g. remove trailing slashes from empty elements - I expected this step to be done by it as well. So it looks to me as if I should try to work on the serializer. http://cocoon.apache.org/2.1/faq/faq-xslt.html#faq-N10075 http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces Topic "5.) OmitNsTransformer" of the latter sounds promising too. Think I will check it first. Thanks again for your attention! -- [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: serialize without namespace
Peter Lerche wrote: [...] Make an extra serializer step in your pipeline and put this XSLT script into it. [...] Hi Peter, thanks for your hint. To work with an extra stylesheet is what I am presently doing. But my intention was to get rid of that intermediate step and to understand the FAQ's proposal regarding the serializer's configuration. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie: Transformer chaining?
Hi all, I am trying (without much luck), to implement a simple 2-step transformation. The first step to provide the XSLT transformation, the second is to look for empty table cells () and insert a space in them. Can any experienced Cocoon'ers explain how to do this? Here's my sitemap setup: And here's the snippet I'm trying to use to do the table fix (which just gives me a concatenated string of all element values): Thanks a bunch, David Benoff mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't instantiate multiple nodesets on same stylesheet?
Hi all, Not sure whether this is as-designed or not (the archives had nothing), but I'm seeing some strange behavior when using more than one xalan:nodeset($myvariable) statement in the same page. My stylesheet declares two RTF's as variables, and I convert each one to nodesets for display. The problem is that only the first nodeset gets rendered properly. The second one is always null. I can switch them around and the first one always is fine, and the second is always null (using count() also shows zero nodes). Strange... Any tips would be appreciated. Is there some special trick to using multiple nodesets? My details: Tomcat 4.1.24 LE Cocoon 2.1m2 JDK 1.4.1 Rendering with default XSLT transformer/Xalan (tried several versions) Thanks, David Benoff mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tutorial
Hi, i try to run the tutorial and every time i get an exception : Original exception : org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:164) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLimitingPool.java:629) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.newPoolable. to work around the problem i have modified the .xsp file putting there inside the jdbc tags (driver, url ...) just before the connection in the esql tags ; in this it runs ... so i think - the jdbc configuration is right - the jdbc driver is correctly running - i have no compatibility problems between jdks it seems to be only a pool configuration problem. i run with XPpro, Tomcat 4.1.24, jdk 1.4.0_01, cocoon 2.04 from binaries, not ricompiled, MySql 3... thanks a lot Flavio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tutorial
Hi John, thank you, but i think i have modified cocoon.xconf quite a hundred times with always the same result. these are the parameters of my cocoon.xconf located in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF. false jdbc:mysql://localhost/cocoon in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF\lib i put mysql-connector-java-3.0.6-stable-bin.jar and i think it is correctly loaded because in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF\logs\access.log i can see DEBUG (2003-09-12) 18:50.34:413 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Trying to load class: com.mysql.jdbc.Driver and at the next line there are no exception registered. there is another strange thing that happens every time i run the tutorial, and is in the tomcat console : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3231) at java.lang.Thread.run(Thread.java:536) i don't know if this is related to my problem ... during the installation i have copied in C:\jakarta-tomcat-4.1.24\common\endorsed the files : xalan-2.3.1.jar, xercesImpl-2.0.0.jar, xml-apis.jar from \cocoon directory\web-inf\lib , renaming the old ones in xercesImpl_jar.old and xmlParserAPIs_jar.old. thank you Flavio > > i try to run the tutorial and every time i get an exception : > > > > Original exception : > > org.apache.avalon.excalibur.datasource.NoValidConnectionException: > > No valid JdbcConnection class available at > > > org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance > > (JdbcConnectionFactory.java:164) at > > org.apache.avalon.excalibur.pool.ResourceLimitingPool.. > > Have you got the jars containing the jdbc drivers for MySql in the > /WEB-INF/libs directory? > > > to work around the problem i have modified the .xsp file putting > > there inside the jdbc tags (driver, url ...) just before the > > connection in the esql tags ; in this it runs ... so i think > > The url, password etc go in /WEB-INF/cocoon.xconf, eg for > sqlserver: > > > > > > false > jdbc:microsoft:sqlserver://:1433 > sacopy > password > > > > > > > --------- > 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]
You cannot lookup components on a disposed ComponentLocator
Hi all , Can anyone give me a pointer for this error - has it been fixed .. As someone on the list also found - error only comes up in pages with frames- one frame shows ok other this error - on refresh error could be either frame. TIA , Sandhu Trace: java.lang.IllegalStateException: You cannot lookup components on a disposed ComponentLocator at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT reeBuilder.java:393) at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP rocessor.java:401) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:320) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:596) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tutorial - MySQL - NoValidConnectionException: No valid JdbcConnection class available
Hi John, sorry but this is not the solution ... i modified my cocoon.xconf as you suggested but the error is still the same. Anyway i always use mysql in standalone mode without specifing the port number, i think it takes the default port. I am not expert in using cocoon, but i think that the problem depends from other things, like, maybe, the version of tha avalon framework or something like this ... I say so because, trying to work around the problem, i put these same configuration tags in the .xsp file, just before the esql:connection, and this runs ; i know that isn't the right place but runs ... this means that the datasource tags are right and driver connection works, isn't it ?? Thanks a lot Flavio > Flavio wrote: > > jdbc:mysql://localhost/cocoon > > This looks wrong. Surely the url for the jdbc db must be > ://:, eg > jdbc:mysql://localhost:3306 > > I think 3306 is the port for MySQL. MS SQLServer uses 1433. > > John > > > ----- > 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: tutorial - MySQL - NoValidConnectionException: No valid JdbcConnection class available
Hi Stefan, you was right :-) I installed excalibur-datasource-1.1.1.jar and it runs. Thanks a lot Flavio > Flavio, > > if you have tried all the reasonable things and doublechecked your settings (which I > think you have from previous posts on this thread), it's most likely to be a version > problem. I ran into the same problem when I upgraded from MySQL 4.0 to 4.1 and had > to replace my old mysql-jdbc-connector by version 3.08. What helped me was getting > the (by then) most recent version 1.1.1 of the excalibur datasource-jar from their > website and replacing the old one in the WEB-INF/lib folder. > Also, there are (or at least there used to be) two versions of cocoon-2.0.4, one for > JVM 1.2,1.3 and one for JVM 1.4. The excalibur datasource component is different in > the two. Since you are using the binary version, have you doublechecked you got the > right one? > > For reference, my system: > tomcat 4.1 > jdk 1.3 > mysql 4.1 > mysql-jdbc-connector 3.0.8 > excalibur datasource 1.1.1 > > Hope this is of any help. Unfortunately I don't know too much about cocoon internals > and dependencies myself. > Stefan > > [EMAIL PROTECTED] schrieb am 15.09.03 10:39:43: > > Hi John, > > sorry but this is not the solution ... i modified my cocoon.xconf as you suggested > but the error is still the same. > > Anyway i always use mysql in standalone mode without specifing the port number, i > think it takes the default port. > > I am not expert in using cocoon, but i think that the problem depends from other > things, like, maybe, the version of tha avalon framework or something like this ... > > I say so because, trying to work around the problem, i put these same configuration > tags in the .xsp file, just before the esql:connection, and this runs ; i know that > isn't the right place but runs ... this means that the datasource tags are right and > driver connection works, isn't it ?? > > Thanks a lot > > Flavio > > Flavio wrote: > > > jdbc:mysql://localhost/cocoon > > > > This looks wrong. Surely the url for the jdbc db must be > > ://:, eg > > jdbc:mysql://localhost:3306 > > > > I think 3306 is the port for MySQL. MS SQLServer uses 1433. > > > > John > > > > > > ----- > > 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] > > > > ______ > Bestes Testergebnis: Stiftung Warentest Doppelsieg fur WEB.DE FreeMail > und WEB.DE Club. Nur fuer unsere Nutzer! http://f.web.de/?mc=021182 > > > ----- > 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]
different upload-dirs for different applications
Hi, I have 2 applications accessing one cocoon (using different paths of course). Both apps need to upload Files. Is there any way to make cocoon save the incoming files in different directorys? I have seen the single-Directory solution but that does not fit my needs. Any help is highly appreciated! peter mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re:re: different upload-dirs for different applications
first -- pleast excuse my bad quoting. mail2web does not support better. :( i'm still getting crazy trying to upload files into different directorys. i did the solution as offered in the answer below. i inserted the example into the standard cocoon configuration (retrieved from cocoon.war). perhaps 1st the code. --[sitemap.xmap begin] .. ... -[end of sitemap.xmap]-- i also changed the needed entrys in web.xml. the "class de.my.cocoon.uploadSplitter" is quite the same than the example given on wiki (and below). it works, it produces anoter file every time i upload something. (i do not save the uploaded file yet.) problem is: i still get this error after uploading the file: "Resource not found No pipeline matched request: uploadFileFromUser org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: uploadFileFromUser" and the following stacktrace [just first 3 lines..] org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: uploadFileFromUser at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:168) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) .. anyone can help me with a slightly longer explaination or a resource where i can read (and understand it)? best regards and thanks a lot! peter --[old mails]-- you need to create an action that has some logic in it which determines the application trying to save the file (eg make the applications pass a unique parameter in the request or so) From the wiki (http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction) public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par) throws Exception { //use the request object below to get the additional request parameter Request request = ObjectModelHelper.getRequest(objectModel); FilePart filePart = (FilePart) request.get("uploaded_file"); File file = ((FilePartFile)filePart).getFile(); getLogger().debug("Uploaded file = " + file.getCanonicalPath()); // here you can open an InputStream on the file or whatever // you may also want to delete the file after using it return Collections.EMPTY_MAP; } action can be defined in the sitemap as following ...... [EMAIL PROTECTED] wrote: >Hi, > >I have 2 applications accessing one cocoon (using different paths of >course). Both apps need to upload Files. Is there any way to make cocoon >save the incoming files in different directorys? > >I have seen the single-Directory solution but that does not fit my needs. > >Any help is highly appreciated! > >peter > > mail2web - Check your email from the web at http://mail2web.com/ . --------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: different upload-dirs for different applications
hi, i did the changes you purposed (changing the sitemap and/or returning null)but it had no effect. the upload class still get's called, but i also still get the same exception. the thing i want to have is: i upload the file and then cocoon sends me to some other site -- static or dynamic i don't mind. best regards! peter ps: still bad quoting. sorry. --- Original Message: - From: Jorg Heymans [EMAIL PROTECTED] Date: Tue, 30 Sep 2003 12:46:27 +0200 To: [EMAIL PROTECTED] Subject: Re: different upload-dirs for different applications did you try to move the generator and reader within the action itself ? your sitemap syntax seems a bit strange should be when your returning a map at the end of your action then the rest of the pipeline inside the map will get executed, return null if this is not desired. Hope this helps Jorg [EMAIL PROTECTED] wrote: >first -- pleast excuse my bad quoting. mail2web does not support better. :( > >i'm still getting crazy trying to upload files into different directorys. i >did the solution as offered in the answer below. i inserted the example >into the standard cocoon configuration (retrieved from cocoon.war). > >perhaps 1st the code. > >--[sitemap.xmap begin] > > > src="de.my.cocoon.UploadSplitter"/> >.. > > > > > > > > > > > > > > > > > > > > > >... > >-[end of sitemap.xmap]-- > >i also changed the needed entrys in web.xml. > >the "class de.my.cocoon.uploadSplitter" is quite the same than the example >given on wiki (and below). it works, it produces anoter file every time i >upload something. (i do not save the uploaded file yet.) > >problem is: i still get this error after uploading the file: > >"Resource not found >No pipeline matched request: uploadFileFromUser > >org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: >uploadFileFromUser" > >and the following stacktrace [just first 3 lines..] > >org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: >uploadFileFromUser > > at >org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipe l >ineNode.java:168) > > at >org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.inv o >keNodes(AbstractParentProcessingNode.java:108) > > >.. > >anyone can help me with a slightly longer explaination or a resource where >i can read (and understand it)? > >best regards and thanks a lot! > >peter > > > > > >--[old mails]-- >you need to create an action that has some logic in it which determines >the application trying to save the file (eg make the applications pass a >unique parameter in the request or so) > > From the wiki >(http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction) > >public Map act(Redirector redirector, SourceResolver resolver, > Map objectModel, String source, Parameters par) >throws Exception >{ > //use the request object below to get the additional request parameter >Request request = ObjectModelHelper.getRequest(objectModel); >FilePart filePart = (FilePart) request.get("uploaded_file"); > >File file = ((FilePartFile)filePart).getFile(); >getLogger().debug("Uploaded file = " + file.getCanonicalPath()); > // here you can open an InputStream on the file or whatever >// you may also want to delete the file after using it >return Collections.EMPTY_MAP; > >} > >action can be defined in the sitemap as following > >logger="my.logger.filestore"/> > > > >.. > > > > > >[EMAIL PROTECTED] wrote: > > > >>Hi, >> >>I have 2 applications accessing one cocoon (using different paths of >>course). Both apps need to upload Files. Is there any way to make cocoon >>save the incoming files in different directorys? >> >>I have seen the single-Directory solution but that does not fit my needs. >> >>Any help is highly appreciated! >> >>peter >> >> >> >> > > > >mail2web - Check your email from the web at >http://mail2web.com/ . > > > >---
Re: different upload-dirs for different applications
juppi! :) did the trick! thanks a lot! none the less: i use cocoon 2.1.1. really thankful! peter ps: we'll see when the next problem turns up.. :) - Original Message: - From: Jorg Heymans [EMAIL PROTECTED] Date: Tue, 30 Sep 2003 13:41:16 +0200 To: [EMAIL PROTECTED] Subject: Re: different upload-dirs for different applications did you have a look at core.log in WEB-INF/logs, often the error can be found less cryptical in there mind that in your case, the action should always return a Map, not null otherwise the rest of the action will be skipped, resulting in an incomplete pipeline. erhm, could you maybe also try which version of cocoon are you using? rgds jorg [EMAIL PROTECTED] wrote: >hi, > >i did the changes you purposed (changing the sitemap and/or returning >null)but it had no effect. the upload class still get's called, but i also >still get the same exception. > >the thing i want to have is: i upload the file and then cocoon sends me to >some other site -- static or dynamic i don't mind. > >best regards! > >peter > >ps: still bad quoting. sorry. > >--- > >Original Message: >- >From: Jorg Heymans [EMAIL PROTECTED] >Date: Tue, 30 Sep 2003 12:46:27 +0200 >To: [EMAIL PROTECTED] >Subject: Re: different upload-dirs for different applications > > >did you try to move the generator and reader within the action itself ? >your sitemap syntax seems a bit strange > > > > > > >should be > > > > > > >when your returning a map at the end of your action then the rest of the >pipeline inside the map will get executed, return null if this is not >desired. > >Hope this helps >Jorg > >[EMAIL PROTECTED] wrote: > > > >>first -- pleast excuse my bad quoting. mail2web does not support better. :( >> >>i'm still getting crazy trying to upload files into different directorys. i >>did the solution as offered in the answer below. i inserted the example >>into the standard cocoon configuration (retrieved from cocoon.war). >> >>perhaps 1st the code. >> >>--[sitemap.xmap begin] >> >> >> >src="de.my.cocoon.UploadSplitter"/> >>.. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>... >> >>-[end of sitemap.xmap]-- >> >>i also changed the needed entrys in web.xml. >> >>the "class de.my.cocoon.uploadSplitter" is quite the same than the example >>given on wiki (and below). it works, it produces anoter file every time i >>upload something. (i do not save the uploaded file yet.) >> >>problem is: i still get this error after uploading the file: >> >>"Resource not found >>No pipeline matched request: uploadFileFromUser >> >>org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: >>uploadFileFromUser" >> >>and the following stacktrace [just first 3 lines..] >> >>org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: >>uploadFileFromUser >> >> at >>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pip e >> >> >l > > >>ineNode.java:168) >> >> at >>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.in v >> >> >o > > >>keNodes(AbstractParentProcessingNode.java:108) >> >> >>.. >> >>anyone can help me with a slightly longer explaination or a resource where >>i can read (and understand it)? >> >>best regards and thanks a lot! >> >>peter >> >> >> >> >> >>--[old mails]-- >>you need to create an action that has some logic in it which determines >>the application trying to save the file (eg make the applications pass a >>unique parameter in the request or so) >> >>From the wiki >>(http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction) >> >> public Map act(Redirector redirector, SourceResolver resolver, >> Map objectModel, String source, Parameters par) >> throws Exception >> { >> //use the request object bel
Re: different upload-dirs for different applications
returning a bit of help perhaps: i could not solve the problem by myself because: [1] dummy thing: i supposed that the HTML-FORM-ACTION "upload" was a standarized thing i should not change. i was wrong of course. [2] harder: i supposed -- since all examples i found did that -- that the generator "request" was necessary in some way. so i did not dare to remove that. perhaps those two points could be mentioned in the wiki.. thanks a lot! peter Original Message: - From: Geoff Howard [EMAIL PROTECTED] Date: Tue, 30 Sep 2003 07:45:26 -0400 To: [EMAIL PROTECTED] Subject: Re: different upload-dirs for different applications [EMAIL PROTECTED] wrote: > first -- pleast excuse my bad quoting. mail2web does not support better. :( ... > > > > > > > This pipeline is not valid. 1) You either use a reader or generator-[transformer*]-serializer but not both. That's probably why you get the error about no pipeline matching -- it means no valid pipeline. So: is a step better. But: 2) Your pipeline will send success.html whether upload-files action succeeds or not. So: Is probably better. You of course have to create a failure.html. Remember: if an action returns any Map (even an empty one) this tells the sitemap to execute the nested pipeline fragments if any. If a complete pipeline is found within it (a reader is a complete pipeline), pipeline assembly is fixed without moving on. If null is returned from the action, only non-nested fragments are assembled into the final pipeline. You must take care to ensure that a complete valid pipeline is assembled no matter what different actions signal. Remember also: actions along with matchers and selectors are executed before generation begins during pipeline setup. Geoff ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mail2web - Check your email from the web at http://mail2web.com/ . ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NEWBIE: Cannot connect to MySQL db
> Joe Williams wrote: > > > When using an XSP to connect to a MySQL database, I get an error, according > > to my WEB-INF/log/error.log: > > > > "Could not get the datasource > > org.apache.avalon.excalibur.datasource.NoValidConnectionException No valid > > JdbcConnection class available at > > org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance > > (JdbcConnectionFactory.java:185)" > > > > I am running Cocoon 2.0.4, Tomcat 4.1.18, and Apache 2 on Red Hat 8.0, > > with MySQL 4.0 > I had the same problem due to the wrong version of excalibur-datasource*.jar ; check it in your $catalina-home$\webapps\cocoon\web-inf\lib, the latest should be excalibur-datasource-1.1.1.jar. I made this upgrade and it works Hope this helps Flavio > > --------- > 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]
Tranformation of a session´s parameter
I have installed Cocoon 2.2.1 and tomcat 4.1.27 running under jdk1.4. I´ve got a question about what should i do to transform a XML parameter that I´ve obtained from an action and that I´m trying to tranform. I´m obtaining the next error message: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException The session-attr generator is the SessionAttributeGenerator. I suppose the problem is that the generator produces DOM and the transformer needs SAX... could I make a transformation from DOM to SAX ? Where should I do it (I´m looking to the transformator code, but I don´t know where and how to make the transformation from DOM to SAX) ? Thanks a lot. mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tranformation of a session´s parameter
I have installed Cocoon 2.2.1 and tomcat 4.1.27 running under jdk1.4. I´ve got a question about what should i do to transform a XML parameter that I´ve obtained from an action and that I´m trying to tranform. I´m obtaining the next error message: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException The session-attr generator is the SessionAttributeGenerator. I suppose the problem is that the generator produces DOM and the transformer needs SAX... could I make a transformation from DOM to SAX ? Where should I do it (I´m looking to the transformator code, but I don´t know where and how to make the transformation from DOM to SAX) ? Thanks a lot. mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
variable serialization
Can I use a paremeter for setting the type of serialization that I want at the end of a pipeline ? I would want something like transformationType is a session attribute that I set previosly, the pipeline where I want the variable serialization is under a that has an . I obtain the next error message : org.apache.avalon.framework.configuration.ConfigurationException: Type '{session-attr:tipoTransformacion}' is not defined for 'serialize' at file:/opt/jakarta-tomcat-4.1.27/webapps/cocoon/prueba/sitemap.xmap:179:-1 Could I use an abstract serializer and set up the parameters through session variables ? How I do that ? I've been looking for it to the doc but don't see any hint. Thanks a lot. mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.util.EmptyStackException in C2.1.3
(AbstractProcessingPipeline.java:548) ... 38 more org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.util.EmptyStackException at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.j ava:477) at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:224) at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java: 159) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP ipeline(AbstractProcessingPipeline.java:548) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .processXMLPipeline(AbstractCachingProcessingPipeline.java:196) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:492) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:147) 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 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:176) 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 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:161) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:351) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:304) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:132) 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 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:161) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:351) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:304) at org.apache.cocoon.Cocoon.process(Cocoon.java:640) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.cocoon.servlet.ParanoidCocoonServlet.service(ParanoidCocoonServle t.java:267) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sendmail attachment fails
Hi all, We are facing this problem in Cocoon2.1.3 for attachments using cocoon:// context only . Using context:// works This is the message on browser : {message=An error occured while sending email: Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: SAXException: java.lang.NullPointerException, status=server-error} logs: ERROR (2003-11-18) 14:00.17:484 [sitemap] (/cocoon/samples/mail/sendmail/ls) HttpProcessor[8080][4]/AbstractProcessingPipeline: Unabled to release processing component. org.apache.cocoon.ProcessingException: Unable to remove component from automatic release: no environment available. at org.apache.cocoon.components.CocoonComponentManager.removeFromAutomaticRelea se(CocoonComponentManager.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.release(Abs tractProcessingPipelin.java:206) at org.apache.cocoon.components.source.impl.SitemapSource.reset(SitemapSource.j ava:488) at org.apache.cocoon.components.source.impl.SitemapSource.recycle(SitemapSource .java:508) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.release(Sitema pSourceFactory.java:113) at org.apache.excalibur.source.impl.SourceResolverImpl.release(SourceResolverIm pl.java:308) Same result for sendmail action and logicsheet when trying cocoon:// Any pointers greatly appreciated. TIA, Sandhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
User-Agent String in cocoon
Does coccon have a framework with look at the user-agent string and deliver different content based on user-agent string? Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User-Agent String in cocoon
Can you please point me to an example or documentation of that feature? Thank you. --- Bob Harner <[EMAIL PROTECTED]> wrote: > On 1/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > Does coccon have a framework with look at the > > user-agent string and deliver different content > based > > on user-agent string? > > > > Thank you. > > Yes, that's one of the original features of Cocoon > -- the browser > selector -- controlling which part of a pipeline is > executed and > producing varying output based on aspects of the > user agent string. > > ----- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL for nested sql result
> I need some advice for writing a xsl for a nested sql result. > the source file is > > > > test > > > 111 > > > 11 > > > 1 > > > 0 > > > > > > > > > > > > I want the result as 0/1/11/111, Ok, Toby was faster than me, and actually I like his solution better. Nevertheless, here is a non-recursive solution to your problem. You can insert the following snippet somewhere in your stylesheet, where a node containing your outermost class_name element is the context node: / If you want to be more typesafe, use "descendant::rowset/row/class_name" in the first select attribute instead. Regards, Michael ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CForms] Caching of suggestion-lists?
Hi, after sorting out tons and tons of problems, I finally managed to get my suggestion lists context-sensitive. Now if someone selects a country in one suggestion-list the zip-codes of the second suggestion list are filtered for that country. Everything works fine except one thing: If for example I set the country to ‘D’ for Germany and enter a zip code ‘642’ then correctly all German zip codes starting with ‘642’ are shown. If I switch to ‘E’ for Spain and start entering ‘642’ then the German codes are shown again only when entering a value not used till now a new ajax suggestion-list reload is done (Had a tcp monitor in between so I could see that nothing is happening). How can I turn off this caching of suggestion-lists? (Yes the content is generated by a “nonchaching” pipeline – just in case you wanted to ask this now ;) ) Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
XSL transrormers with use-request-parameters and caching [was: sitemap chaining]
Hi Folks! I'm not too familiar with cocoon any more, since I haven't been using it for a while. (Still one of my favorite projects though!) I'm also not an expert on caching in cocoon, but I wonder if the following problem couldn't be overcome technically: Ard Schrijvers wrote: > I am becoming a little evangelistic here about the > true in the > components declaration, but never never never ever ever ever use > true: set it to > FALSE !!! > > [...] > > If a crawler comes by with /foo/bar?tfwewq=21r123rwedewqf and the > tfwewq=21r123rwedewqf is added by the crawler, and you use > true, you will end > up with cache entries containing tfwewq=21r123rwedewqf So the problem here is, that all parameters in the request are used for caching. However, only those parameters used in the XSL stylesheet could possibly change the outcome of the transformation. As far as I know, these are exactly the parameters, which are declared as global parameters in the stylesheet. Even though I don't know which components play together when building and accessing caches, that should be limited to parameters really used in the stylesheet. I mean, the components responsible for caching have to check for changes of the stylesheet anyway. (Probably just by timestamp?) So anytime the stylesheet changed, they could have a look at it, and find out which parameters are actually relevant for caching. This might slow down the first use of a stylesheet quite a lot, but it should fix the above caching issues. I haven't looked at the details yet. But I think an implementation of the above shouldn't be too hard. Or am I missing something? Anyway, if you think it might be useful, I could investigate the topic further. (But I don't know how much time I can spend on that right now.) On the other hand, even today, one can use the use-request-parameters stuff for development. That's useful, because stylesheet parameters may change frequently while work is being done on them. However, for productive use I can only second what Ard said. At least for now. Regards, Michael ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Abuse of div and span
> We must agree to differ - a pet peeve of mine is that people use HTML as > a data structure language rather than as a page mark up language (cf > TeX) :-) . HTML has absolutely nothing to do with data structuring [...] -1 (to follow Mark's notation :-) > The problem is that while HTML undoubtedly has some structural > information such as paras, headings, lists etc., these are about the > only ones it has. Not to forget tables, when they are used to represent tabular data. (Of course, more often they are used for style purposes only.) Then there are also structural inline elements, like strong, em, cite, code, etc... > It also mixes in pure style constructs such as italic > (which tell you nothing about the structure and why they are italic). This is not true for modern HTML versions (HTML 4.0 strict, XHTML 1.0 strict, XHTML 1.1), which do not contain style constructs like italic or bold. And I guess Jason wouldn't suggest to use i or b? > To be really useful we need to have extra structural tags in the HTML > such as author, date, version, footnote, inline note, citation ... Of course, many of those things would be useful in some situations. But why should the lack of those elements prevent you using the structural elements which actually exist? I guess for most typical web pages, those existing structural are virtually sufficient to write good structural markup. > [...] > > btw I did look at Firefox output with no style and it looked fine. I > agree you could not see the headings (they looked like paras) but it > certainly was not unreadable. Ok, that's good for you. But with no additional effort, you could make headings, lists, etc visible in this view. Such structural markup would also carry its meaning, if viewed in Lynx or on a mobile device without CSS capabilities. And it'd definitely increase accessibility. A good example of using structural markup, is implementing menus as nested lists of hyperlinks. With no additional CSS, or when viewed in Lynx, they simply appear as a textual list of items. But with a few lines of CSS and maybe two Java-Script statements you can make them appear as nice drop-down menus. (I used to have a link to a site where this is demonstrated, but it appears to be broken.) Sorry, for intervening in this off-topic discussion. But I do have an opinion on this one, and I feel compelled to share it. Regards, Michael ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection not closeing ater sending result of pipeline
Hi, I am currently working on integrating a secondary system to our Cocoon based application. For this we have a pipeline using a request in a multipart http request to do some processing and use a cocoon-pipeline for sending the result. Everything is working fine except for one thing. Even if Cocoon sends the response in far under one second, the connection is shut-down and an EOF is sent 20 seconds later. Is there a way to let cocoon not keep connection active after sending the request? It seems that keeping the connection alive is a good thing for serving browsers, but in our case the client is a simple socket-based application. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
AW: Handling non XML structures in pipelines?
Hi Antony, As far as I know it is not possible to deal with non XML data in Pipelines. Since they are XML Pipelines and Sax events are passed from one pipeline element to the next, I can’t see any way to do what you want. On the other Side I don’t see the point of doing this anyway. You wouldn’t be able to do any transformations. So I would recommend simply to build your own reader for your non Xml content. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf Von: Antony Grinyer [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 22. September 2006 14:46 An: users@cocoon.apache.org Betreff: Handling non XML structures in pipelines? Hi all, Our scenario is simple, we have a service that returns some strings in a comma delimited format and we’d like to use that data in cocoon for various transformations, however is it possible to do something at the generator stage to convert this string into XML or does the source of the generator (e.g. file, stream) have to be in an XML format in the first place i.e. editing our service application to return XML is the only option? I guess what we’re asking is whether cocoon can handle non XML formatted data? We do not want our service to depend on the client as to what structure we return, such as XML. Many thanks in advance, Ant
AW: Handling non XML structures in pipelines?
Oh gee ... I think it's time fort he weekend. I must have totally misunderstood the original question ;) ... simply ignore my last post. Chris -Ursprüngliche Nachricht- Von: Jason Johnston [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 22. September 2006 15:16 An: users@cocoon.apache.org Betreff: Re: Handling non XML structures in pipelines? Antony Grinyer wrote: > Hi all, > > > > Our scenario is simple, we have a service that returns some strings in a > comma delimited format and we'd like to use that data in cocoon for > various transformations, however is it possible to do something at the > generator stage to convert this string into XML or does the source of > the generator (e.g. file, stream) have to be in an XML format in the > first place i.e. editing our service application to return XML is the > only option? > > > > I guess what we're asking is whether cocoon can handle non XML formatted > data? We do not want our service to depend on the client as to what > structure we return, such as XML. Yes, a generator can generate its XML output (SAX events) from any source. There are already several generators shipped with Cocoon (see the org.apache.cocoon.generation package) which parse non-XML sources into XML events. In fact there's already a CSVGenerator which you could use or adapt to your needs. ----- 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]
AW: Scheduler with name 'Cocoon' already exists.
I usually get that error, if one of the components in the cocoon.xconf fail to start. Then Cocoon seems to retry configuring everything and when coming to the scheduler it crashes, because it was already configured. Usually I could find more information in the cocoon.log Chris -Ursprüngliche Nachricht- Von: Kamal Bhatt [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. September 2006 02:01 An: users@cocoon.apache.org Betreff: Re: Scheduler with name 'Cocoon' already exists. George V. Prascharuk wrote: > Hello everybody. > > Please, help me. > > I have a cocoon-2.1.7 under Tomcat 5.0.28. > Make sure you don't have two versions of tomcat running. This sometimes happens when I don't shutdown tomcat. > I try to use OpenJMS. Then i put the openjms-0.7.7-alpha-3.jar into > the WEB-INF/lib after Cocoon (or Tomcat) restart i have an a error in > initialization. > > Here this error. > --- > Initialization Problem > > Message: Scheduler with name 'Cocoon' already exists. > > Description: > org.apache.avalon.framework.configuration.ConfigurationException: cannot > create a quartz scheduler > > Sender: org.apache.cocoon.servlet.CocoonServlet > > Source: Cocoon Servlet > > cause > > org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists. > > request-uri > > /cocoon/ > > full exception chain stacktrace > > org.apache.avalon.framework.configuration.ConfigurationException: cannot > create a quartz scheduler > at > org.apache.cocoon.components.cron.QuartzJobScheduler.initialize(QuartzJobScheduler.java:324) > at > org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) > at > org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:277) > at > org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108) > at > org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522) > at > org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561) > at > org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282) > at > org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) > at > org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1391) > at > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http
[CForms & Dojo] no tag handler registered for type: dojo:cformsform when seting debugAtAllCosts param
Hi, I am currently working on perfectioning my onchange submit stuff for the suggestion-lists. Unfortunately as soon as I set “djConfig.debugAtAllCosts = true;” the suggestion-lists break with this strange error message: “no tag handler registed for type: dojo:cformsform” Without this option dojo loads all other js-files asynchronously and I cannot access them inside any java-script debugger. Any ideas why this could be? I don’t know if this is important, but I am currently working on the CVS version … I think this is 2.1.10. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
AW: cocoon best editor ?
Hi Maurizio Well I can simply tell you what I use: Eclipse 3.2.1 with the following (partially commercial) plug-ins - Oxygen (For XML/XSL/XQuery editing/deguging/profiling) - Aptana (For HTML / _javascript_ editing) - Subclipse (Subversion Client) - Sysdeo Tomcat plug-in (For Debugging) - Ant (For buiding ;) ) I’m pretty satisfied with this, even if a little more Tool-Support especially with CForms would be nice ;) Hope this helps, Chris Von: maurizio [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 4. Oktober 2006 20:46 An: users@cocoon.apache.org Betreff: cocoon best editor ? Greetings. I am wondering which is the most used/preferred editor for Cocoon developing. I do like ViM over anything else, but i was (unsuccessfully) looking for a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good around ? -- Thanks, Maurizio How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
AW: Pipeline result in a flowscript?
Hi Florian, I created a utility flowscript function I have been using for the last year without problems. This executes a cocoon pipeline (or any other resource available) and returns a Dom with the result. So if you want anything other than Xml results, you will have to modify it. function loadDocument(uri) { // AE: cocoon:// var parser = null; var source = null; var resolver = null; try { parser = cocoon.getComponent(DOMParser.ROLE); resolver = cocoon.getComponent(SourceResolver.ROLE); source = resolver.resolveURI(uri); if (source.getClass().getName().equals("org.apache.cocoon.components.source.impl.SitemapSource") == false) { print("Warning: loadDocument received an incorrect URI:"); print("" + source.getClass().getName()); } var is = new InputSource(source.getInputStream()); is.setSystemId(source.getURI()); return parser.parseDocument(is); } finally { if (source != null) resolver.release(source); cocoon.releaseComponent(parser); cocoon.releaseComponent(resolver); } } Hope this helps. Regards, Chris -Ursprüngliche Nachricht- Von: Dev at weitling [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. Oktober 2006 18:01 An: Users at Cocoon Betreff: Pipeline result in a flowscript? Hi! What's the best way to get the result of a pipeline for further processing in a flowscript? Something like String s = cocoonmagic.getPipelineResult("mypipe"); cocoon.processPipelineTo looks a little bit like overkill with its bean and stream parameters. Or: Effectively I just want to get one value from a JDBC connection. Just one lonely integer... Thx, Florian ----- 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]
AW: cocoon best editor ?
Hi K ;) Well I usually setup my projects as Tomcat Projects (An option I get from the sysdeo Tomcat Plugin). Here the plugin configures my server.xml or context-xml to mount my external directory in Tomcat and I can really easily debug my Java components. Since Oxygen nicely integrates with Eclipse, it's easy to edit everything. Unfortunately it is hard to debug individual Steps of the pipelines, so I usually insert an in the desired position (Was a good day I found out that a serialize doesn't have to be at the end of a pipeline definition) and save away the result using the browser "Save As..." function and debug the transformation using oXygens debugger. I use no code assist for my sitemaps. When using Aptana it offers my syntax highlighting in my flowscripts, unfortunately it doesn't recognize any flowscripts mounted in parallel. So don't expect it to know your utility-functions and variables in your utils.js ;) Hope this helps Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht----- Von: Kaj Kandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Oktober 2006 00:45 An: users@cocoon.apache.org Betreff: Re: cocoon best editor ? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, just out of curiosity. Anybody out there using Eclipse WTP (Web Tools Project)? It offers HTML, and XML support pretty well. Also, how do you set up your projects? How do you set up a Cocoon sitemap (+xslt) project? Do you edit directly in the web-server's webapp space? Has anybody used the WTP servers and deployment? Or do you use Export to get your stuff into the server for testing? I'm just looking for your best practices. K maurizio wrote: > Greetings. > > I am wondering which is the most used/preferred editor for Cocoon > developing. > > I do like ViM over anything else, but i was (unsuccessfully) looking for > a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good > around ? > > -- > Thanks, > Maurizio > > > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call > rates. > <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com> - -- [EMAIL PROTECTED] http://conficio.blogspot.com/ | We teach software one screencast at a time | http://www.conficio.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) iD8DBQFFNVqSRDUvrJRNjTARAoSNAJ9VwyJkSwNf9mW+N33xI6S5QH38sACfSVUr 2srJgDhcNJ3XByV8BCvEYY4= =Agqn -END PGP SIGNATURE----- ----- 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]
AW: inner functions and continuations...
Hi Jörn, Even if this might not help you, we use local functions just the way you initially wanted to without any problems. Maybe it's a bug in the HEAD version? Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Jörn Nettingsmeier [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Oktober 2006 00:01 An: users@cocoon.apache.org Betreff: inner functions and continuations... hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase() { var someLocalVar; function foo() { ... } foo(); sendPageAndWait("/some/pipeline"); foo(); } the second call to "foo" results in an error ("foo is undefined"). so it appears that those functions are not stored with the continuation. is this expected behaviour? so i changed the function declaration to var foo = function() { ... } it seems to work - the function is still available after the continuation. is this the correct approach? for the record, i'm using cocoon 2.1 (svn HEAD) with sun java 1.5 on linux/x86_64. regards, jörn ----- 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]
AW: JSON
Hi Maurizio, How about simply using an XSLT? This is the way the suggestion-list does it. There is a file cocoon-forms-block.jar#org\apache\cocoon\forms\resourses\selection-list2json.xsl in the forms block. Just have a look at that. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Maurizio P. [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Oktober 2006 00:01 An: users@cocoon.apache.org Betreff: JSON Greetings to all. I would like to do a 'simple' JSON communication between browser and server flowscript (without using all these nice dojo's widgets). I mean, is it possible for example to make a simple Array in flowscript and send it in JSON to javascript running into browser, that asked it? I can do it in PHP and i know it must be possible also in Cocoon (dojo does much more!!), but still dunno how to do it. Is there an easy way or am i obliged to look for the ajax-block's java files, try to understand what the hell it does, cutting down all unwanted stuff, recompile and deploy as new generator? Let u know i am not an expert of Cocoon. Thanx 2 all who will help -- Regards, Maurizio - 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]
AW: Loading a configuration file from a jar
Hi Omar Try using the classloader to load your properties file from the classpath (if you drop it in the classes directory or another jar-file) try { is = Configuration.class.getClassLoader().getResourceAsStream("config.xml"); } catch (Exception e) { } The other way would be to use a relative path. As I recall all relative paths are relative to the WEB-INF directory of your webapp. (I hope I'm correct with this) I have used both ways successfully. I wouln't recommend using absolute paths and load resources entirely outside your application since some Servlet containers might restrict access to those files and maybe the user, the servlet engine is running under has no access to any files outside. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Omar Adobati [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 15:45 An: users@cocoon.apache.org Betreff: Loading a configuration file from a jar Good Morning, I have developed a jar file and I need to load some configuration parameters from a .properties file placed outside of the jar itself. The jar file is under $cocoon/WEB-INF/lib directory and the .properties file too. Now, the problem is that my own class (that extends the java.util.Properties class) can't locate the properties file. Here is the code I'm actually using: public ConfigUtility(){ super(); File configFile = new File("/nptl.im.properties"); try{ configURL = configFile.toURL(); }catch (Exception ex){ ex.printStackTrace(); } //do some other useful stuff } I'm running cocoon 2.1.18 with tomcat 5.5.x and JDK 1.5 Thanks for your help :) -- Omar Adobati ----- 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]
AW: Antw: AW: cocoon best editor ?
Hi Martin Thanks for that great tip :) Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Martin Geissler [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 16:30 An: users@cocoon.apache.org Betreff: Antw: AW: cocoon best editor ? Hello, have a look to http://wiki.apache.org/cocoon/DebuggingWithViews to debug individual Steps of the pipeline. Regards Martin >>> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Donnerstag, 19. Oktober 2006 16:02 >>> Hi K ;) Well I usually setup my projects as Tomcat Projects (An option I get from the sysdeo Tomcat Plugin). Here the plugin configures my server.xml or context-xml to mount my external directory in Tomcat and I can really easily debug my Java components. Since Oxygen nicely integrates with Eclipse, it's easy to edit everything. Unfortunately it is hard to debug individual Steps of the pipelines, so I usually insert an in the desired position (Was a good day I found out that a serialize doesn't have to be at the end of a pipeline definition) and save away the result using the browser "Save As..." function and debug the transformation using oXygens debugger. I use no code assist for my sitemaps. When using Aptana it offers my syntax highlighting in my flowscripts, unfortunately it doesn't recognize any flowscripts mounted in parallel. So don't expect it to know your utility-functions and variables in your utils.js ;) Hope this helps Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -----Ursprüngliche Nachricht- Von: Kaj Kandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Oktober 2006 00:45 An: users@cocoon.apache.org Betreff: Re: cocoon best editor ? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, just out of curiosity. Anybody out there using Eclipse WTP (Web Tools Project)? It offers HTML, and XML support pretty well. Also, how do you set up your projects? How do you set up a Cocoon sitemap (+xslt) project? Do you edit directly in the web-server's webapp space? Has anybody used the WTP servers and deployment? Or do you use Export to get your stuff into the server for testing? I'm just looking for your best practices. K maurizio wrote: > Greetings. > > I am wondering which is the most used/preferred editor for Cocoon > developing. > > I do like ViM over anything else, but i was (unsuccessfully) looking for > a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good > around ? > > -- > Thanks, > Maurizio > > > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call > rates. > <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com> - -- [EMAIL PROTECTED] http://conficio.blogspot.com/ | We teach software one screencast at a time | http://www.conficio.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) iD8DBQFFNVqSRDUvrJRNjTARAoSNAJ9VwyJkSwNf9mW+N33xI6S5QH38sACfSVUr 2srJgDhcNJ3XByV8BCvEYY4= =Agqn -END PGP SIGNATURE- --------- 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] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: inner functions and continuations...
Hmmm ... if I have a look at my code here I think that could be it. The functions I am using are all defined inside a while-loop ... so every time they are executed, the js-interpreter seems to redefine them. Maybe that is why I don't have to assign the functions to a variable. Thanks for that tip. I will add that to my personal wiki, so hopefully I will not run into these problems ;) Regards, Chris -Ursprüngliche Nachricht- Von: Geert Josten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 20:31 An: users@cocoon.apache.org Betreff: RE: inner functions and continuations... I am not sure, but I somehow recall that the execution thread is not literally saved, but that the variables in the context are saved and restored and that the function is re-executed, but with a special flag that makes it jump to the position where the previous request left off.. So I think saving the function in a (local) variable is sensible. Kind regards, Geert > Drs. G.P.H. Josten Consultant Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > Van: Jörn Nettingsmeier [mailto:[EMAIL PROTECTED] > Verzonden: zaterdag 14 oktober 2006 15:22 > Aan: users@cocoon.apache.org > Onderwerp: inner functions and continuations... > > hi everyone! > > > i'm trying to add local functions to a flowscript in order to > make it more maintainable. > > the code looks like this: > > function executeUsecase() { > > var someLocalVar; > > function foo() { > ... > } > > foo(); > sendPageAndWait("/some/pipeline"); > foo(); > } > > > the second call to "foo" results in an error ("foo is undefined"). > so it appears that those functions are not stored with the > continuation. > is this expected behaviour? > > so i changed the function declaration to > > var foo = function() { > ... > } > > it seems to work - the function is still available after the > continuation. is this the correct approach? > > for the record, i'm using cocoon 2.1 (svn HEAD) with sun java > 1.5 on linux/x86_64. > > > regards, > > jörn > > > > > ----- > 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]
AW: Cocoon and XML Database
Hi Sébastien Have a look at the eXist project. This is what I am using. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Sébastien Geindre [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 14. Dezember 2006 11:31 An: cocoon-users Betreff: Cocoon and XML Database Hi all, I'd like to use an XML Database to store technical data. It should be an free and open source database. Do you know which DBs i could be interested in ? Is there any integration with cocoon already made ? like cocoon and XIndice Xindice community seems to be 'on vacation', is the product valuable ? Do you know graphical interface with these DB ? Thanks for your answers. Sébastien - 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: upload widget hangs a form in IE6
Hi Alberto I remember similar problem in 2.1.9. I do not have the solution, but... when in the form template : and the upload widget is disabled I found similar problem, try to remove state="disabled". Bye, Alessandro Alberto Brosich ha scritto: Is there a known issue with upload widget and internet explorer in cocoon 2.1.10? I have a multipage form (2 pages) with an upload widget in page 2. model definition: template definition: When I try to submit the form a dialog shows the message "No response data found". In cocoon 2.1.9 works all fine and in firefox too (2.1.9 and 2.1.10). The upload sample in cform cocoon samples works fine too. Any suggest? Thanks in advance Alberto - 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]
Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server
Hi, I am currently working on deploying a cocoon application in WLS 9.2 unfortunately I am quite new to WLS and am having big trouble getting the application to run. Is there anything I have to keep in mind when deploying on WLS 9.2? The application worked like a charm on tomcat for quite some time, but we are migrating because of increased application load. Regards, Christofer Dutz <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Question on Ajax and continuations
Hi Gary, Well I think your problem is because of this: When you call sendPageAndWait or showForm cocoon generates a continuation. When doing an on-change action no new Id is generated (al least I haven't seen any Server to Client communication indicating this) ... as soon as you press your browsers back button you get a continuation which lies more in the past than you intended to ... unfortunately I have no solution for your problem. Maybe just knowing why it doesn't work makes you feel better ;) Regards, Christofer Von: Gary Larsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. März 2007 15:46 An: users@cocoon.apache.org Betreff: Question on Ajax and continuations I just have a question on Ajax processing to help me understand what's happening. I'm using 2.1.9. Here's the scenario: - an on-change listener set values on a form - form is submitted - back button on browser - the values are no longer set When setting values directly on the form the values are still set when returning from the submit. When Ajax is turned off the values also remain set. I don't consider this a real problem considering the benefits of Ajax. Is this normal behavior or could I be doing something wrong? Thanks, gary
AW: Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server
Hi, after having a more detailed look at the deployment of WebLogic applications I found out that my problems weren't related to Rhino, but to logging. The reason is the same though. I remember having similar problems with a JBoss project some time ago. The solution was telling JBoss to separate the classpath of the server from that of the application. This was the solution here too. By adding the following a file called "weblogic.xml" to the WEB-INF directory all problems were solved and Cocoon works like a charm now J http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd";> true Regards, Christofer Dutz Von: Gabriele Columbro [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. März 2007 13:01 An: users@cocoon.apache.org Betreff: Re: Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server Hi Christofer, the problem of deploying Cocoon under Weblogic arises when using Flowscript and Mozilla Rhino classes, because Weblogic embeds in its weblogic.jar rhino classes, thus not allowing override of such classes with Cocoon modified version that you find in WEB-INF/lib folder (not even using the element in the WEB-INF/weblogic.xml file). The solution I adopted, following suggestions on the list, is to pull down both Cocoon and Rhino sources in order to change org.mozilla package name to something different (the de facto standard for this seems to be org.nozilla ;-) ) so that it does not clashes with weblogic shipped rhino classes. For a more accurate description of the problem please refer at [1] while you can find cocoon+rhino sources here [2]. Please double check that the current rhino version is still the one I pointed you to, as my work was referred to Cocoon 2.1.9. Follows a script that once ran with the cocoon (or the rhino) folder as first argument will perform the replacement: #!/bin/bash # findNReplace.sh # Find and replace useful to pull down Cocoon and Rhino sources to work on weblogic # NB: must be applied to both cocoon and rhino sources for proper usage # Author: Cocoon user list ;-) # # Parameters: # $1 = directory in which cocoon/rhino installation can be found # DIR=$1 cd $DIR # Using sed replaces all occurences of org.mozilla --> org.nozilla backing up old versions in "filename.moz-old" for lsFile in `find . -type f -exec grep -q org.mozilla {} \; -print` ; do echo "Editing "$lsFile mv $lsFile $lsFile.moz-old sed -r 's/org(.)mozilla/org\1nozilla/g' $lsFile.moz-old > $lsFile diff $lsFile.moz-old $lsFile done # Renames directories in order to make packages match for lsDir in `find . -type d -name mozilla` ; do echo "Renaming "$lsDir" "`dirname $lsDir`/nozilla mv $lsDir `dirname $lsDir`/nozilla done ~ HTH, Gab [1] http://www.planetcocoon.com/node/2443?PHPSESSID=7759547ab7c39b11fa439097c062da65 [2]http://svn.cocoondev.org/repos/rhino+cont/trunk/rhino1_5R4pre On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I am currently working on deploying a cocoon application in WLS 9.2 unfortunately I am quite new to WLS and am having big trouble getting the application to run. Is there anything I have to keep in mind when deploying on WLS 9.2? The application worked like a charm on tomcat for quite some time, but we are migrating because of increased application load. Regards, Christofer Dutz --------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Eng. Gabriele Columbro Consultant at Sourcesense Italy ----- work: [EMAIL PROTECTED] private: [EMAIL PROTECTED] mobile: (0039)3201612846 yahoo: g.columbro gtalk: [EMAIL PROTECTED] AIM: gabrielecolumbro - "Keyboard not found. Press F1 to continue" -
AW: Open pipeline in new window
Hi Gary, Well I interpret your question in that way, that you would like to decide server-side, if a popup is created or not (Since you mention the client-side way to do this). We had a similar problem in one of our applications. We solved it this way: 1. Add a hidden field to the base-page. 2. Add a small JavaScript that checks, if the field contains a value, if it does it opens a popup with the hidden fields content as url. 3. Let the JavaScript be executed onLoad of the html page. 4. In the server-side logic, you can now decide, if a popup is to be opened or not, just by setting the value of the hidden field. You could even make this work with several pop-ups just by making the fields content a little more complex Hope this helps, Chris Von: Gary Larsen [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 23. März 2007 23:31 An: users@cocoon.apache.org Betreff: Open pipeline in new window HI, I there some way to programatically add the equivilent to into a pipeline so the the result is serialized to a new browser window? Thanks, gary
JavaFlow and try blocks inside try-catch-finally blocks
Hi, This weekend I was working on learning how to use JavaFlow instead of Flowscript (I like to debug in Eclipse). I ran into some really strange Problems when migrating my database code. As soon as I added the try-catch-wrapped close statements into the finally block of an SQL query-code. I get really cryptic error messages from a weird apache engine ;) I added a workaround, that isn't really a workaround (didn't want to catch "Throwable"). Any Ideas? One idea I had, was to add a second class and only to use the JavaFlow class as entry-point and to use a utility class for all the complicated fun-stuff. Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf, München <>----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Transform the output of the ValidationReportTransformers in XSL
Hi, I am having a problem that is totally driving me nuts (Cocoon 2.1.10): I am using the ValidationReportTransformer to create a report why a validation of an xml-document failed. I nicely outputs a report with a nice little xmlns attribute ... this is driving me nuts: http://apache.org/cocoon/validation/1.0";> cvc-minLength-valid: Value 'Dutz' with length = '4' is not facet-valid with respect to minLength '6' for type '#AnonType_namekontaktladeraumangebot'. cvc-type.3.1.3: The value 'Dutz' of element 'name' is not valid. cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_plzfreiladeraumangebot'. cvc-type.3.1.3: The value '' of element 'plz' is not valid. cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_ortfreiladeraumangebot'. cvc-type.3.1.3: The value '' of element 'ort' is not valid. cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_landfreiladeraumangebot'. cvc-type.3.1.3: The value '' of element 'land' is not valid. cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'. cvc-type.3.1.3: The value '' of element 'fahrzeugtyp' is not valid. As soon as this xmlns-attribute is there no XSL transformation seems to work. For example: If I simply want to replace the root element "report" with a "test" element, this xsl should do the job: http://apache.org/cocoon/validation/1.0"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0"> Unfortunetly the "/report" doesn't match and the pure text is copied to the output. If I change it to " http://apache.org/cocoon/validation/1.0"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0"> At least the test is copied. The only transformation that works is: http://apache.org/cocoon/validation/1.0"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0"> Could someone tell me why this is that way and how I can convince the validation-report transformer to stop adding the namespace stuff to the output? Well at the moment I got everything to work, by modifying the Transformers code, but that can't really be the optimal solution. Regards, Christofer Dutz [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf, München <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
Hi Reinhard, No offence, but this looks really ugly ... what is the intention of generating output that requires that type of hack? Regards, Chris -Ursprüngliche Nachricht- Von: Reinhard Poetz [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. März 2007 17:31 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL [EMAIL PROTECTED] wrote: [snip] > Could someone tell me why this is that way I think that the match rules apply to empty namespaces and not the default namespace. > and how I can convince the validation-report transformer to stop adding the > namespace stuff to the output? > > Well at the moment I got everything to work, by modifying the Transformers > code, but that can't really be the optimal solution. this might help, though haven't tested it: http://apache.org/cocoon/validation/1.0"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0"> -- Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc --------- 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]
AW: E-mail threading
References: Acdv0r0CqyE5TEy0TSuKklRElz0RCg== Well I hope this makes your email-Programs notice which thread I am posting to. The problem is that our company uses an Exchange server. I know I could access it using POP or IMAP, but I would throw overboard the other integration-features we are using quite intensively. Having a look at the general problem, it would be much easier to make the mailing-list program deal with this problem. It could simply check which headers are set and set the corresponding missing header. No big deal to that. Chris -Ursprüngliche Nachricht- Von: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. März 2007 20:16 An: users@cocoon.apache.org Betreff: Re: E-mail threading Grzegorz Kossakowski napisał(a): > > As side note: Shouldn't we put big, fat warning somewhere that e-mails > not following basic Internet standards are likely to frustration off and > can be ignored in the end by the rest of subscribers? Arghh, I meant: Shouldn't we put big, fat warning somewhere that e-mails not following basic Internet standards are likely to *trigger* frustration off and can be ignored in the end by the rest of subscribers? -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> thread-index: <[EMAIL PROTECTED]> Any Other? ;) Hi Bertrand, Well I have to admit, this is the first time I have come in contact with this type of namespace-assignment. I am used to the way of assigning a prefix to a namespace. Well ... I guess you never stop learning ;) And I certainly revert my opinion about this being a hack ... but not the "ugly" ... I'll stick to that ;) Maybe it would be good to adjust the output of the transformer to include a real prefix, since all others Cocoon components I have come in contact with do it that way? Or is it because I always include a prefix to my input? Chris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bertrand Delacretaz Gesendet: Montag, 26. März 2007 18:30 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL On 3/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ...No offence, but this looks really ugly ... what is the intention of > generating output > that requires that type of hack?... No offense, but calling the use of namespaces in XML a "hack" is slightly..well...funny ;-) -Bertrand ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
Yeah ... that's exactly what I meant :) Well the code is pretty easy to change, since I fixed my problem be removing it completely ;) Well I never worked with default-namespaces up till then (and I use Xml and Xsl quite intensively for the last 8 Years). The only question is, what the prefix should be? Would be easy to adapt (take about 5 Minutes to wrap-up a patch). Chris PS: I tracked down my threading problem to Outlook 2007 in combination with an exchange-server that fetches it's mail using some sort of pop-fetcher (giving every mail new IDs). I'll remove myself from this list with my company account and register with my private one ... maybe that helps. And if it doesn't, I'll simply create a new account and use a different Mail-Client just for Mailing-Lists. -Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bertrand Delacretaz Gesendet: Dienstag, 27. März 2007 18:45 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ...Maybe it would be good to adjust the output of the transformer to include > a real prefix, > since all others Cocoon components I have come in contact with do it that way? > Or is it because I always include a prefix to my input?... Ah, see what you mean now, it's the setting of a default namespace that bothers you, instead of a prefixed namespace. IMHO it doesn't make much of a difference, only (and it's probably what got you) it's easier to miss than a prefixed one. I don't know how to change it in this particular case, haven't looked at the code. -Bertrand ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aggregator Bug?
I found that aggregating with an xhtml file puts a ">" before it when there is a doctype declaration in the file. So, the following sitemap with a simple xhtml file like this http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> Hallo Hi there! will give the following result with a surplus ">" at the beginning of line 3. >http://www.w3.org/1999/xhtml";> Hallo Hi there! Is this a bug or did I misconfigure something? -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xslt ignore attributes
Kirk Storer wrote: I am including an xhtml document in my page using the following which works fine with a plain old tag. However, if the html tag contains an xmlns attribute it doesn't work. How can I get the xslt to reconize the html tag even though it has attributes. This works without any further declaration of namespaces. -- HTH [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exclude String from RegexpHostMatcher
How can I exclude a certain character string from a match? I am using the RegexpHostMatcher for redirecting virtual hosts to their own directories. No problem so far. Now, in order to keep Cocoon's samples and docs in $Cocoon-Home, I want to exclude "cocoon" from this match. I searched for a suitable expression [1] and tried the following But I am only getting this error message: org.apache.avalon.framework.component.ComponentException: Invalid pattern '(.*(?!cocoon)):(.*)' for matcher at line ... That's what I don't understand. How can I fix it? Thanks for your attention [1] <http://www.zvon.org/other/PerlTutorial/Output/example23.html> -- [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exclude String from RegexpHostMatcher
Jorg Heymans wrote: Did you switch the map:match to use regexp instead of wildcard? No. But to "regexphost" instead. I added the following line to the section: Do I have to change the "src" attribute to "factory"? I can't see this anywhere in Cocoon's sitemap. so should work. indeed works (for other expressions) I've never actually used this but this is how i would expect it to work. If it still fails then you should test your regexp first outside of cocoon in a POJO What is a "POJO"? Any url for me where i can do this test? Thanks for your help. -- [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xslt ignore attributes
Joerg Heinicke wrote: On 18.05.2004 14:11, [EMAIL PROTECTED] wrote: This works without any further declaration of namespaces. But me understands this as an ugly hack working around the capabilities and restrictions of XML. It doesn't look very pretty, I know. But it seems to be the easiest way to avoid copying unwanted namespaces to the output. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SOLVED] String replacement within the sitemap?
Philipp Burkert wrote: [...] When you want to replace something within your request URI you can use: Hi! Your solution sounds very interesting, but I can't get it working. How do you integrate that line in your sitemap? I tried putting it inside and expected the following snippet to put 'foobar' behind the original request and generate from {1}foobar. Could you please give an example how to use your solution? -- Kind Regards [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SOLVED] String replacement within the sitemap?
Joerg Heinicke wrote: The solution you need looks probably like Thanks Joerg, for the hint. But for the concatenation you don't need it: That's true. I chose 'concat' to just have a stupid example. -- Thanks again [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exclude String from RegexpHostMatcher
Joerg Heinicke wrote: On 18.05.2004 15:11, [EMAIL PROTECTED] wrote: so should work. indeed works (for other expressions) The working of different expressions depend on the regexp implementation in use. In Cocoon it's either Apache Jakarta RegExp, Apache Jakarta Oro or Sun JDK RegExp. For the matcher the Jakarta RegExp package is in use: http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/cocoon/matching/AbstractRegexpMatcher.java?rev=1.4&view=markup [1] <http://www.zvon.org/other/PerlTutorial/Output/example23.html> While Jakarta Oro claims Perl5 compatibility Jakarta RegExp does not. If you need Perl5 compatibility you probably have to write your own matcher. Thanks a lot for clarification. I guess I will stick to the standards. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SOLVED] String replacement within the sitemap?
Joerg Heinicke wrote: > The solution you need looks probably like > > > > > Works fine so far. But, how can I access the individual parts of a pattern="*/*/**" Is there something like src="{?:concat(substring-after(1, '/') ? How could I find the right syntax? -- [EMAIL PROTECTED] ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SOLVED] String replacement within the sitemap?
Philipp Burkert wrote: Hej, But, how can I access the individual parts of a pattern="*/*/**" Is there something like src="{?:concat(substring-after(1, '/') ? hm, that is exactly the case that is not directly possible. If you read my last posting in this thread you see that I used the substring-after and substring before to retrieve something like the pattern from the request URL. I am affraid you have to do the same and can not use it directy. Couldn't get the exact point from earlier postings. Now it turns out very clear. Thanks for your attention. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I remove line feed in my XML output
MAHE Vincent FTRD/DIH/REN wrote: Hello, I have a pipeline which produces XML output with Cocoon. I would like to remove useless line feed in the output stream in order to have a beautiful indented XML file. How is it possible ? For instance, when I have this : Hello World I would like to have this as output : Hello World Maybe this will help you ... <http://www.xml.com/pub/a/2001/11/07/whitespace.html> -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : How can I remove line feed in my XML output
MAHE Vincent FTRD/DIH/REN wrote: Thanks to all of you. I've put the following XSL stylesheet in my pipeline in order to remove namespaces (XSP, I18N, ...) and useless line feed and it works fine except that I lose the indentation of the tags. Your problem isn't very much related to Cocoon. But it is to XSL. If you like to try something ... <http://www.azureus.com/xml/art_prettyprinting_xml.htm> -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResourceReader and charset information
How can I tell ResourceReader to put a certain charset in the http header? charset="utf-8" <== This doesn't work. How can I get it? mime-type="text/css"> ... -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ResourceReader and charset information
Leszek Gawron wrote: Guessing it shoud be encoding="utf-8" instead of charset Doesn't work either:-( -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTMLSerializer and empty 'xmlns' attributes
Matt Walter wrote: I'm using the following: FileGenerator -> XSLTTransfomer -> XHTMLSerializer Each time is encountered, the Serializer places an empty "xmlns" attribute in the first tag it outputs, for example: All subsequent tags are fine until is encountered again, at which point I get the empty 'xmlns' attribute again. Though this doesn't bother me, I've been asked to see if I can prevent this from happening. Any ideas? With this little of information it is hard to say. Could you post a simplified stylesheeet and source-xml that demonstrates the problem? Or better, put them on a server and post the link. -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregation - or is it? How do I combine multiple streams of SAX events?
Jeff Jones wrote: I have a set of XSP/ESQL based pipelines that generate XML documents from an Oracle database. Essentially I'm using them as a sort of customized SQL/XML bridge, and I've been very happy with Cocoon for that purpose so far. (I'm using Cocoon 2.1.4 on Linux, but will upgrade to 2.1.5 at some point.) Now I'd like to combine several of those individual XML documents into a single document. I know there are many possible approaches - map:aggregate, CInclude transformer, XInclude, taglibs, etc, etc. I've read through the online docs and the Cocoon Wiki, but I haven't found anything that makes sense yet. What makes this more challenging are the following restrictions: 1. There's not one static list of sub-documents to include - it's based on the request, with a mapping that changes fairly frequently, so I'd rather not put it in my sitemap if I can easily avoid it. Mapping to frequently changing sources can be done using Cinclude. From sitemap.xmap you may call transformer with parameters from request like here: === === And this is "includes.xsl" putting together pieces from pipeline along with pieces from changing source like === xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:ci="http://apache.org/cocoon/include/1.0";> index.html index.html select="//*[local-name()='head']/*"/> select="links/*"/> select="//*[local-name()='body']/*"/> === HTH -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: initial setup and virtual hosts
For Beginners it might be easier to follow some standard procedure like <http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1.4EasyInstallation>. From that point it's easy to add HostMatcher to the pipeline and let your http://VirtHost:/ be served from any place in your file system. Ask for details if you like. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to avoid »xml:space="preserve"«
How can I make XML serializer _not_ to put attribute »xml:space="preserve"« into some elements like "pre" or "style"? What I get is: hello But I want to get: hello -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto suppress cinclude namespace
Hi there, I am trying to cinclude elements with xhtml namespace. http://www.w3.org/1999/xhtml"/> In fact, it adds my desired namespace to the resulting element, but there always remains Cinclude's namespace: »xmlns:ci="http://apache.org/cocoon/include/1.0"« How can I make cinclude _not_ to put it's own namespace to the result? -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto suppress cinclude namespace
Steve Schwarz wrote: Hi, Take a look at: http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces I think there was also other discussion about this in the last month or so if you search the mail archives(?). Hi Steve, thanks for your attention. Removing the surplus namespace afterwards is what I am doing right now. My idea was to avoid it by configuring CincludeTransformer instead of having an extra step for just only stripping namespace after transformation. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto suppress cinclude namespace
Joerg Heinicke wrote: On 17.06.2004 11:36, [EMAIL PROTECTED] wrote: Removing the surplus namespace afterwards is what I am doing right now. My idea was to avoid it by configuring CincludeTransformer instead of having an extra step for just only stripping namespace after transformation. Though it should be possible to filter out this particular namespace declaration it can lead to invalid XML, when you have additional elements in the cinclude namespace that are not handled by cincludetransformer. Additionally the namespace handling is a very dangerous field for such optimizations as it is highly processor and processor version dependent, so Cocoon has to take care for the weakest one. Joerg Hi Joerg, I try to understand the part of »invalid XML« but it seems to be a quite complicated matter. Could you please give me an example what you mean by »additional elements in the cinclude namespace«? Is it additional elements in my 'cincluded' content or something else? From the API documentation about CincludeTransformer, I knew that I can wrap cincluded content in a new element and even define the namespace of this wrapping element. I clearly understand that CincludeTransformer needs cindlude namespace in the _input_ to recognize the elements to be processed. But as CincludeTransformer during transformation completely replaces those elements with the cincluded content, I don't see any reason why cinclude namespace should be copied to the _output_. Thanks for your help -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL doubt
Oro smith wrote: I have an xsl which begins like this: http://www.w3.org/1999/XSL/Transform"; xmlns:page="http://apache.org/cocoon/paginate/1.0"; I also have tags inside xsl. The xsl is used to generate wml. however when the wml is generated every br tag has an xmlns associated with it. http://apache.org/cocoon/paginate/1.0";> How can this be removed? If you are generating wml, what about setting standard namespace to wml as well? http://www.wapforum.org/2001/wml"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:page="http://apache.org/cocoon/paginate/1.0";> -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Http header
Oro smith wrote: How can the http response header generated by cocoon be examined?? Try telnet. [EMAIL PROTECTED]:~> telnet cocoon.apache.org http Trying 209.237.227.195... Connected to cocoon.apache.org. Escape character is '^]'. HEAD / HTTP/1.0 Host: anyhost Connection: close HTTP/1.1 200 OK Date: Wed, 30 Jun 2004 15:06:09 GMT Server: Apache/2.0.50 (Unix) Last-Modified: Wed, 30 Jun 2004 13:56:05 GMT ETag: "2da7895-28a1-50b6c740" Accept-Ranges: bytes Content-Length: 10401 Cache-Control: max-age=86400 Expires: Thu, 01 Jul 2004 15:06:09 GMT Connection: close Content-Type: text/html; charset=ISO-8859-1 Connection closed by foreign host. [EMAIL PROTECTED]:~> HTH -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Supplying parameters to HTML serialize
Colin Paul Adams wrote: I am trying to set the DTD and encoding on serialization. I coded the following in the pipeline: -//W3C//DTD HTML 4.01//EN "http://www.w3.org/TR/html4/strict.dtd"; UTF-8 yet I still get Transitional DTD and latin-1 meta tag. What am I doing wrong? You have to put 'UTF-8' twice. One for mime-type http header and another for encoding of the document. -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd yes yes UTF-8 yes -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple HTML page output
Lincoln Mitchell wrote: Hi all, I have a web site generated by cocoon but need to have cocoon output all HTML as files to a directory. These resulting files will then be but on the server (unfortunately Cocoon cannot be used on this server). wget -m http://localhost:8080/cocoon/... -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with CSS and Cocoon 2.1
Stéphane MESTRE wrote: Hello, After an XSL transformation in Cocoon, I would want to apply an CSS stylesheet on the XHTML document. The style is not apply in the Cocoon's XHTML generate document but if I use my XML development environment (Cooktop), the result is correct and the document's style is good. I tried several solutions and it was never good. In the XHTML document : Relative path : href="default.css"/> Absolute path : In the header of XSL stylesheet : Absolute path : /default.css"?> Relative path : Thank you for your help Are you using a reader? <http://wiki.apache.org/cocoon/ServingStaticFiles?action=highlight&value=css> -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with CSS and Cocoon 2.1
[EMAIL PROTECTED] wrote: Try out "mime-type" is not an attribute of "link". The correct one is "type". <http://www.w3.org/TR/html4/struct/links.html#edef-LINK> -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with CSS and Cocoon 2.1
[EMAIL PROTECTED] wrote: Well, it works for me... So i thought you might check if it works for you !! Let me know if this helps !! Maybe, because in a reader it has to be named "mime-type"? -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site navigation and cocoon pipelines, help!
[EMAIL PROTECTED] wrote: Hi, I'm running around in circles here and cannot think of an elegant solution. I hope someone can help. Situation: my project is all in a subdirectory with subsitemap of /cocoon under Tomcat. In fact I renamed /cocoon to /ROOT so my project's homepage is under This makes http://localhost:8080/ link to Cocoon, right? http://localhost:8080/myproject/. I cannot use relative urls to the various pages, since I have a menubar on each page, and I also don't want to include the full directorypath (including the projectname). So I added a baseurl tag to the html-output. I think you need to use a HostMatcher or a HostSelector. Recently I made an installation with several subdirectories that are served as virtual hosts. So I have: http://cocoon:8080/ served from /opt/VirtHosts/cocoon http://virthost1:8080/ /opt/VirtHosts/virthost1 http://virthost2:8080/ /opt/VirtHosts/virthost2 http://virthost3:8080/ /opt/VirtHosts/virthost3 First part of this configuration is described in: <http://wiki.apache.org/cocoon/Cocoon2_2e1_2e4EasyInstallation>. In sitemap.xmap of /opt/cocoon, I have put the HostMatcher uri-prefix=""/> directly at the very beginning of the main . This matcher should be defined in the components section before. ... ... Maybe you can use this example to find a solution for your own configuration. Although mine is Linux, it should work with Windows as well. -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: coconn in tomcat
Jan Kohnert wrote: Hello List, I m new with Tomcat and Cocoon, so sorry for my newbie question. I searched the FAQa and the list (also some forums), but I found nothing concerning my problem. Maybe the problem is just to 'newbeeish' :) I m trying to get Cocoon run with Tomcat. Windows or Linux (or something else)? Therefor I ve copied Cocoon into the Tomcat Webapps folder . So what did you copy? The cocoon.war file or cocoon webapp? When starting Tomcat I get Cocoon on the managin site of the list of installed applications. the applivcation available status is set to "false" You need not use Tomcat's Manager App, not even Tomcat's Admin App. Simply drop cocoon.war or cocoon webapp into Tomcat's webapp directory and start your browser with http://localhost:8080/cocoon/ If you use the .war file Tomcat should auto-expand it. HTH -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serialization encoding problem
Z.Z. wrote: Hi All, I use Cocoon 2.1.5.1 in Linux environment. Character set of my xmls is utf-8. All of setting is utf-8 (web.xml, sitemap.xmap, xsls...) When I see source of my generated htmls, character set is utf-8. But in body all of accented char is made by acuted (á ...). Accented chars In head section is correct, only in body are wrong. in head: [...] Any special reason for not using xml serializer for html? = . -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd UTF-8 yes -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd yes yes UTF-8 yes = The second one is designed to omit XML declaration in order to force M$IE into standards compliant mode. And it has *twice* utf-8, one in mime-type for the HTTP header and one in UTF-8 for serializing the output. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory Generator - Absolute Path
Harald Wehr wrote: I want the DirectoryGenerator output the full absolute path of every file in a directory but didn't get to manage it. What parameters do I have to provide in the sitemap? Example: Directory to generate: /home/harald/temp |_1.xml |_2.xml The output of the generator should contain the following Is this somehow possible with the generator or do I have to take an additional stylesheet to get what I want? You have to do it with your own xslt. If you have your links in a structure with and you could use <http://home.arcor.de/plsdontreply/concat-menulink.xsl>. It's a modification of something I've found in Cocoon's samples. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon url
beyaNet wrote: Hi, I am running cocoon version 2.1.5.1 on tomcat 5.027 hooked off apache 2.0.50. At the moment, with mod_jk2 I have my url as http://www.mysite.com/cocoon/nextlevel. how do I adjust the settings in apache so that I can have http://www.mysite.com/nextlevel 1. make www.mysite.com be a virtual host in Cocoon <http://wiki.apache.org/cocoon/VirtualHostingHostMatcher> 2. configure sitemap.xmap of directory "www.mysite.com" for "nextlevel" -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon url
Rocky S wrote: Hi, Few days back I have upgraded Tomcat from 4.1.29 to 5.0.25 ... When I deploy the war file in Tomcat 5.0.25 , and tried to login into which war file? the web page using username and password , the control passes over to which web page? BTW: Don't hijack threads! -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serialization encoding problem
Zidarics Zoltan wrote: Hi All, Sorry it doesn't help me :-( What's the reason for wanting to use HTML serializer (instead of XHTML), Do you definitely need empty elements like instead of ? I have also tried several times to get real Unicode characters from HTML serializer but without success. Maybe it's not designed to. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mime type for use with Konqueror
Colin Paul Adams wrote: I am attempting to use the brwoser selector to serve up xhtml pages as mime-type xhtml+xml where the browser accepts that type, or text/html The correct one is "application/xhtml+xml". [...] What happens, is that if I type the URL in the Konqueror location field, it accepts the page, but if I try to navigate via a hyperlink, it prompts me to download or cancel, and XHTML family document. Sounds like the same confusion that I had with KDE mime-type setting. Set 'embedding' according to <http://home.arcor.de/plsdontreply/kdemimexhtml.png> and Konqueror should let you even navigate through the pages. HTH -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon url
beyaNet wrote: Hi, I have amended my worker2.properties file so that requests made to /cocoon are redirected to tomcat/webapps/cocoon. How do I amend this Requests made to anyHost?/cocoon ? files so that all requests made to http://www.mysite.com/ use tomcat/webapps/cocoon/mysite as the root folder? II have included my Set up pipeline in tomcat/webapps/cocoon to use the HostMatcher or HostSelector to mount subsitemap of tomcat/webapps/cocoon/mysite current workers2.properties file so you can amend. No idea about workers2.properties. Sorry. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mime type for use with Konqueror
Colin Paul Adams wrote: >>>>>> "[EMAIL PROTECTED]" == [EMAIL PROTECTED] <[EMAIL PROTECTED]> writes: > > > > > [EMAIL PROTECTED]> Sounds like the same confusion that I had with KDE > [EMAIL PROTECTED]> mime-type setting. > > [EMAIL PROTECTED]> Set 'embedding' according to > [EMAIL PROTECTED]> <http://home.arcor.de/plsdontreply/kdemimexhtml.png> and > [EMAIL PROTECTED]> Konqueror should let you even navigate through the pages. > > Unfortunately, I cannot read the German, so i cannot work out what you > are selecting here. I have changed the image. Select the upper radio button which says "Datei in eingebettetem Betrachter anzeigen". > I only see one option - Konqueror. > And Konqueror simply says it can't handle that type. That's KDE and mime! -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using an External Javascript file (My FIRST question ... so I hope someone can help !)
George Singer wrote: Problem using an External Javascript file in an XSL stylesheet (My FIRST question ... hope someone can help !) The xsl fragment below, shows a simple bit of inline javascript, which works fine (when commenting tags are removed ). HOWEVER, when I try to put the inline stuff inside an external file (add.js in this case), the file is ignored. What does that mean? Is "add.js" supplied by Cocoon and can you display it in your browser? If not, are you using a reader for supplying "add.js" like I've searched around, some people suggest adding a space using:   Why? // this function uses the DOM to bring focus to the Shirt_Number textbox: Why don't you use tabindex attribute? -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using an External Javascript file (My FIRST question ... so I hope someone can help !)
George Singer wrote: Volkmar Thanks for the reply. The problem is simple. I have a Javascript file which works if included in my XSL in full. However, when I replace it with an external file, containing EXACTLY the same details, Cocoon cannot find it (despite the inclusion of the reader below). But you can serve external css files and images using a reader? My question is, how do I make Cocoon use the file add.js ?? Cocoon cannot "use" a javascript file, it can only "read" it by a reader and send it to the browser. Handling external *.js files by a reader is the same way as handling any other text file like text/css or text/plain or images like image/png. If not, are you using a reader for supplying "add.js" like > > yes I am And if you point your browser to "add.js"? Does Cocoon say it cannot find the ressource "add.js"? Did you try with Telnet to get the HTTP header for "add.js"? I've searched around, some people suggest adding a space using:   Why? *** I do not know ? I just tried it as a last resort > is ok. Leave it empty. // this function uses the DOM to bring focus to the Shirt_Number textbox: Why don't you use tabindex attribute? what does it do ? It makes element with tabindex="1" be the first in taborder. <http://www.w3.org/TR/html4/interact/forms.html#adef-tabindex> -- Volkmar W. Pogatzki --------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problems
FREDERIC MOSER wrote: Hi, I've got some encoding problems using the xhtml serializer, I don't really understand . (I use Mozilla on Win XP and my editor is set to use UTF-8) Part 1: --- I've got the following stylesheet: -- http://www.w3.org/1999/XSL/Transform";> plop Monographie ééé ... -- If I use : , everything work but the browser detect my encoding as IS0-8859-1 (because we can't encode HTML 4.01 as UTF-8 I guess??) Did you check in the components section of your sitemap.xmap how the serializers are configured? To supply HTML using UTF-8 you could use -- logger="sitemap.serializer.html" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer"> -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd yes yes UTF-8 yes -- -- Volkmar W. Pogatzki ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]