Re: big ESQL performance problem
On Tuesday, March 4, 2003, at 09:08 AM, Leszek Gawron wrote: Things are not so simple for me because I'm plugging into an existing system (database change is impossible). We struggled with that for about two years before giving up (of course the existing system used the pervasive btrieve api with no database-level constraints and thus there was bad data all over the place..) Second thing is that the same query that works reasonably fast under Squirell JBDC client is a nightmare under cocoon As it was mentioned in a reply on the dev list, try to show the user a subset of the records at a time.. 5500 rows will be pushing a lot of data through the cocoon pipelines and rendering engine of your browser. How large is the resulting HTML file? -pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon user-roles=failure
On Tuesday, November 5, 2002, at 03:11 PM, Phil Shafer wrote: I'm trying to use the user-roles attribute on the cocoon element of cocoon.xconf, but not having any luck. I've followed the FAQ (faq-configure-c2.html) and have: cocoon version=2.0 user-roles=WEB-INF/jtk-component.roles Did you try /WEB-INF/ ? -peter -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC driver for MS SQL Server 2000 with blob support
On Friday, September 27, 2002, at 05:10 AM, Tuomo Lesonen wrote: I'm trying to use the database reader, but the JDBC driver from MS doens't support blob. We can't get one of the commercial (expensive) drivers at this point, and I already tried FreeTDS which doesn't have this either. I have to keep on using SQL Server 2000. :( Any links ? Did you use the jTDS? (http://jtds.sourceforge.net/) Its a fork of the FreeTDS code, may have more support. Thats all the free options I know of. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monday Night: Free POI, lots of Pizza, And all the info you c an take in one night about POI and the Cocoon HSSF Serializer!
On Friday 12 July 2002 10:55 pm, Argyn Kuketayev wrote: I wonder how many ppl do Cocoon on East Coast? If more than 3 then it's enough to have a sort of workshop on Outer Banks some time :) I'm in Jacksonville, FL. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange database problem
On Sunday 30 June 2002 01:24 pm, Leszek Gawron wrote: com.inzoom.adojni.ComException: Current provider does not support returning multiple recordsets from a single execution. in ADODB.Recordset code=0 Type=1 First I thought that it's something wrong with msde provider or jdbc driver but getting back to 2002.04.21 dev snapshot makes the error disappear. The esql logicsheet is now using JDBC features that your driver does not support. You might try the JDBC driver available from microsoft: http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/779/msdncompositedoc.xml or http://makeashorterlink.com/?S10911A21 if the above wraps and doesn't work correctly. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected behavior with imported stylesheets
On Thursday 27 June 2002 09:14 pm, Phil wrote: There was a thread about this some time back and I believe that it's on a to-do list somewhere. Is anyone at apache able to confirm this? Your 'touch' workaround is the only solution that I know of at this time. Anyone have any advances on this? You are correct. There was a thread, its on a TODO, but nothing yet. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation error using JDK 1.4.0: libawt and libXp
On Monday 24 June 2002 01:27 pm, Ryan Hoegg wrote: I am using JDK 1.4.0, Tomcat 4.0.4, and Cocoon 2.0.2. I do not have X installed, and my CATALINA_OPTS environment variable is '-Djava.awt.headless=true'. After building from source, I get errors trying to load the default Cocoon2 site. The stack trace shows an attempt to load an SVGSerializer using batik. The error I get is: org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.0/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory To be sure, I created a servlet that outputs System.getProperty(java.awt.headless); it returns true. Can anyone provide any insight to this situation? Its failing in compiling the sitemap. Perhaps the headless property is for runtime only and doesn't play well at compile-time? I have X installed on my machine so I can't verify that. My best suggestion to you is to attempt to use the interpreted sitemap rather than the compiled one and see how that goes. In WEB-INF/cocoon.xconf at the bottom of the file there are comments indicating how to switch. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation error using JDK 1.4.0: libawt and libXp
On Monday 24 June 2002 04:24 pm, Ryan Hoegg wrote: I appreciate the quick and thoughtful response, Pete. I changed cocoon.xconf to use an interpreted sitemap, and succeeded only in making a change in the error received. It still is asking for libXp.so, but is now buried in other errors. I captured the error from my development server and posted it on my web server here: http://www.hoegg.net/error/cocoon-problem.html It seems to me that there is something fishy about the headless awt support in 1.4.0 when using Batik. Is anyone successfully running Cocoon2 this way? Makes me wonder about how headless you can be. Whether its merely no running X server or no X libraries on the machine at all. It might be the former when you're expecting the latter. As a side note, just wanted to say I am a new user of Cocoon and am looking forward to this approach to dynamic web development. Thanks to all the developers for a great framework. Welcome! :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon or Axkit?
On Tuesday 18 June 2002 05:08 am, markus jais wrote: does anybody have experiece with both Axkit and cocoon? I used AxKit around with 1.0 was just released. The biggest thing, are you more comfortable in perl or java? -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Practice for shared information lookup? Modules?
On Thursday 06 June 2002 11:45 am, Geoff Howard wrote: I thought of defining a singleton class with public getSubsiteID(page-layoutID) methods, etc. but thought there was a more cocoon way of doing this that would make the availibilty more general. There is, create a new component! Define a role (interface) and your generators/actions can then implement Composable and you can then do componentManager.lookup() to retrieve the component. Add your custom component to cocoon.xconf ala: component-instance class=your.class role=your.role/ -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Practice for shared information lookup? Modules?
On Thursday 06 June 2002 01:01 pm, Geoff Howard wrote: I can certainly play with this solution - Do I need to define the role anywhere else? I had thought there was a ?.roles file somewhere. The role attribute on the component-instance tag will suffice. The other choice is to create your own roles file (follow syntax of cocoon.roles) and add an attribute to the root element of cocoon.xconf named user-roles containing the path to your custom roles file. This sounds a lot like Input Modules though - have I totally misunderstood them? Maybe not, but I'm not up-to-speed on the Input Modules stuff. If the existing Input Modules are akin to what was discussed on -dev last week, then yes you might be able to do that. Congrats on the approval for comitting by the way. thanks! -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parser Interface
On Wednesday 05 June 2002 04:11 pm, [EMAIL PROTECTED] wrote: I am looking for the Parser interface contained in the package: org.apache.avalon.excalibur.xml If anyone can help in this pursuit it would be greatly appreciated! Are you using a Cocoon distribution downloaded from the website? Where did your avalon-excalibur.jar come from? -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parser Interface
On Wednesday 05 June 2002 04:47 pm, [EMAIL PROTECTED] wrote: Peter, It came from the cocoon-2.0.2-src distribution off the download with the date 11-Jan-2002 03:20 14M Should I be taking from some place else? See if the binary distribution has the correct jar. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple XSL Transformers
On Tuesday 04 June 2002 02:05 pm, Vadim Gritsenko wrote: From: Diana Shannon [mailto:[EMAIL PROTECTED]] On Tuesday, June 4, 2002, at 01:48 PM, Vadim Gritsenko wrote: Start from TraxTransformer (search for xslt-processor-role) in Cocoon 2.0.3, or TraxTransformer (search for transformer-factory) in Cocoon 2.1; and follow from there. Does this mean it's possible, Vadim, or that Jason should try it to make it work in this way? If it's possible, I'd like to add it to the FAQ for xslt topics. I think it's possible also I have not tried. It is possible. I used the xslt-processor-role variant on 2.0.2 a few months back to test XSLTC. It went like this (on 2.0.3, change as needed for SAXON) Add new component to cocoon.xconf: component role=org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=core.xslt-processor parameter name=use-store value=true/ parameter name=transformer-factory value=org.apache.xalan.xsltc.trax.TransformerFactoryImpl/ /component And a new transformer to your sitemap: map:transformer name=xslt-xsltc src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db xslt-processor-roleorg.apache.cocoon.components.xslt.XSLTProcessor/XSLTC/xslt-processor-role /map:transformer -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple XSL Transformers
On Tuesday 04 June 2002 02:19 pm, Jason Foster wrote: It is possible. I used the xslt-processor-role variant on 2.0.2 a few months back to test XSLTC. It went like this (on 2.0.3, change as needed for SAXON) It's the change as needed that's currently the problem. All of the references I've found involve people dropping in the Saxon jar. I'm still looking for the proper class to include as the transformer-factory, as suggested by Vadim. com.icl.saxon.TransformerFactoryImpl -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon problems
On Tuesday 04 June 2002 02:59 pm, Spectron International, Inc. wrote: ComposerAction-MyAction-MyLocale. Why is it giving me a ClassCastException? Has anything changed in the way generators and actions are made? Faw PS: The error is the following: DEBUG (2002-06-04) 14:39.23:601 [sitemap](/cocoon/msim/BatchSummary) SocketListener-2/ExcaliburComponentSelector: generators: ComponentSelector could not access the Component for hint: batch java.lang.ClassCastException: com.spectron.msim.generators.BatchSummary at org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(Default C omponentHandler.java:116) Does your generator implement the Generator interface (org.apache.cocoon.generation.Generator)? That line in DefaultComponentHandler is attempting to cast your Generator as a Component, which will succeed if you extend the cocoon Generator interface (which has Component at the base of its supertype heirarchy. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple XSL Transformers
On Tuesday 04 June 2002 05:17 pm, Jason Foster wrote: Looks like the system is simply picking up Saxon regardless of the value of transformer-factory. Any suggestions as to how to proceed? All of my changes have been to sitemap.xmap, not to cocoon.xconf (like anyone really knows the difference! ). Are you using the HEAD branch from CVS (2.1) or the 2_0_3 branch? If you're using 2_0_3, you need to follow the pieces I sent earlier. If you're using HEAD, there's probably a bug somewhere but I can't help any further since I'm using 2_0_3. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
On Wednesday 22 May 2002 03:24 am, Konstantin Piroumian wrote: Btw, I don't think that replacing XMLResourceBundle with a HashMap will improve perfomance much in the long run, because the values are stored in a HashMap on the first use, so there should be no much difference. Agreeed. One of our main problems was the first use though. In development it would take a minute or two to fully translate our menu file (large chunk-o-javascript) with the XMLResourceBundle based approach. While some of the abstractions of the XMLResourceBundle are nice, it isn't really neccessary to parse an XPath each time a value is retrieved. I parse the i18n dictionaries at startup and store the key/values in an unsynchronized hashmap and the transformer flies now. Perhaps we can abstract out an interface for the I18nTransformer to talk to a catalogue/dictionary source so the XMLResourceBundle usage is optional? I'd love for my changes to the I18nTransformer to be able to make it back to the main trunk. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
On Wednesday 22 May 2002 09:08 am, Konstantin Piroumian wrote: As I've said, really cool abstractions (a Bundle and not XMLResourceBundle) were never been finalized and remained in Avalon scratchpad. Right, I looked at it and it was more complex than I was needing at the time. Did you use the 'cache-at-startup' configuration parameter? I was sure that it was for exactly the same thing, though my information can be our of date, hadn't a look at it for a long time. Also, I can remember some Hashtables there, they should be replaced by HashMaps too. Yes, I did. It just moves the speed hit around a bit :) Also due to how we use the I18nTransformer, we pass our content through multiple times (2-3) with the first stage generating lots of misses, also expensive time-wise. Yes, that would be fine! I think that the best thing would be to separate dictionary handling from the transformer at all and use either a custom source, say: transform src=i18n:db:/catalogue/messages / or transform src=i18n:xml:/catalogue/messages /, or configure it like an SQL connection and use a short name of it for the transformer configuration/parameterization: transformer ... bundle-factoryxml/bundle-factory /transformer or something like that. What do you think? I'd also recommend you to look at the i18n stuff in the Avalon scratchpad. That sounds very good. The Excalibur Bundle pieces would be one example of a factory. P.S. Unfortunately, I can help only with comments/suggestions for now because of (as usual) a limited time. me too. this is all going on my TODO tho :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: handling errors occuring in aggregate
On Wednesday 22 May 2002 12:52 pm, Charles Yates wrote: ideal solution: I would like the map:handle-errors output to occur within the document element so that the resulting page would not contain two documents. Don't use aggregation. Make your pipeline something like File Generator - XSLT to wrap in document/ and add X/CInclude line for menu - X/CInclude transformer to include menu. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
On Tuesday 21 May 2002 11:50 am, Michael Zehrer wrote: I'm using I18n just for simple translations, no number, date, currency formatting and just one substitution. My log level is already ERROR. So nothing real special here. If I take out the I18n transformation, everything is quite ok, if it's in the cpu load is very high after a little while and pipeline processing takes very long. It is very slow. I would recommend optimizing your pipelines for cachability to the I18nTransformer is not executed on each request. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
On Tuesday 21 May 2002 02:44 pm, Torsten Curdt wrote: Ages ago I proposed some changes on having a more abstract resource bundle (we'd like serve our from db) which has a last modified stamp so we can easily implement cacheable... but time you know ;-) I have 1/2 that :) We have bundles on disk that are our system translations and bundles in the DB that are user-defined that layer on top of the system ones. I haven't implemented last-modified support yet since I don't need it, but it wouldn't be bad. This would be a major(!) improvement... we haven't yet (and wouldn't) use the i18n transformer under the current circumstances. I'll try and package it up sooner :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Saxon and xsp
On Tuesday 07 May 2002 01:29 pm, Omar Alos wrote: works with Xalan, but when I try with Saxon, java generated file is not correct. Nodes are not generated all commands this.contentHandler.startElement like this.contentHandler.startElement(,title,title,xspAttr); are missing. I only have I believe this was just fixed in CVS: http://www.mail-archive.com/cocoon-users@xml.apache.org/msg10163.html -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating DOM based XML generators
On Monday 22 April 2002 01:36 pm, Simon Brooke wrote: I have a *lot* of classes which implement this interface.To plug them into Cocoon I need to generate SAX events and currently I don't. Obviously generating SAX events as the document is being built is going to be quicker than building a document tree and then tree-walking it to generate the SAX events, so if I decide that Cocoon is the right road to go down I've got a lot of rewriting to do. But as a quick fix, does someone have a class which implements org.apache.cocoon.generation.Generator, and which (in its generate() method) walks a DOM tree constructed by something else? It would save me a lot of grief. Look at the org.apache.cocoon.xml.AbstractSAXFragment which uses org.apache.cocoon.xml.dom.DOMBuilder to easily convert a org.w3c.dom.Node to SAX2 events. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: directorygenerator and no size attribute
On Monday 22 April 2002 02:25 pm, Frank Ridderbusch wrote: Is there any particular reason, that the directorygenerator does not include a size attribute, so that I can see the file size in the produced XML or is it simply, that it has not yet been felt necessary? Probably the latter, the original author never needed it and thus it was never implemented. Should be trivial to do so. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Small annoyance with xslt transformer caching
On Monday 22 April 2002 03:07 pm, Stephen Ng wrote: If foo.xslt xsl:import's bar.xslt, Cocoon doesn't check to see if bar.xslt has changed. Is there a way in the sitemap to explicitly specify that foo.xslt depends on bar.xslt? Not at this time. Cocoon doesn't know that bar.xslt is even used by foo.xslt until foo.xslt is run for the first time. It should be possible to modify the caching behavior of the XSLT transformer to take into account imported and included files. (Its on my internal TODO list as this bugs the hell outta me too). I can give you a rough outline of how I was planning to fix if you want to do it :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on extending AbstractAction
On Wednesday 10 April 2002 01:18 pm, Nick Airey wrote: * Not defining a lifestyle at all means that an instance will be created, used, and destroyed every time it is needed. This is probably not very efficient. oh not probably, its not very efficient at all :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Editing, compiling, running Cocoon under debugger?
On Thursday 28 March 2002 08:42 pm, Rob Jellinghaus wrote: I am a large fan of IDEA (http://www.intellij.com/idea) and I am well on the way to having a Cocoon project running under IDEA. IDEA rules!! :) When you rebuild classes, where do you set your Ant ${build.dir}? Do you have your build system output the classes directly to %CATALINA_HOME%/webapps/cocoon/WEB-INF/classes? Or do you rebuild the entire war and have Tomcat re-extract it each time you make a change? (surely not!) I have the build go to WEB-INF/classes, and thus tomcat doesn't need to be restarted as it notices that the class files have changed and reloads the webapp. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bizarre SQUID Cocoon PDF caching issue - any brainwaves?
On Thursday 14 March 2002 06:55 am, Stuart Roebuck wrote: One of the many odd things is that, when I changed the file extension I retained the application/pdf mime type, so if you download in a recent browser it happily realises that the .txt file is really a PDF and opens it with no problem (*but not* when it ends in .pdf!). Anyway, thanks for spending time searching out those links for me. I will keep bashing my head with various blunt objects and see if anything comes out. egads, you do have a brain twister there. I'm guessing there is nothing in your squid conf if you do a 'grep pdf' or 'grep acro'? -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bizarre SQUID Cocoon PDF caching issue - any brainwaves?
On Wednesday 13 March 2002 08:17 pm, Stuart Roebuck wrote: +-+ | THIS IS DOING MY HEAD IN - ANYONE GOT A BRAINWAVE ? ... | +-+ tips from stefano well applied! I've got Cocoon behind Squid - as a proxy / 'acceleration' server. is http://www.squid-cache.org/mail-archive/squid-users/200102/0972.html your problem? if so maybe http://www.squid-cache.org/mail-archive/squid-users/200109/0028.html if not, what is the content-type, is that changing when you change extensions? what happens to a .txt with an application/pdf ? -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon v2 article @ xml.com by Stefano
http://www.xml.com/pub/a/2002/02/13/cocoon2.html -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLTC....
On Wednesday 30 January 2002 02:16 pm, Vadim Gritsenko wrote: From: Lewis, Andrew J [mailto:[EMAIL PROTECTED]] Has anyone here done any work with XSLTC with Cocoon 2? Have not heard anything about it for a long time... Correct me if I'm wrong, but seems that nobody working on this. It was donated to Xalan: http://xml.apache.org/xalan-j/xsltc_usage.html -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon vs AxKit
On Thursday 17 January 2002 10:05 am, Matt Sergeant wrote: It's the other way around: AxKit is much more akin to Cocoon2. We had a sitemap concept before they did, and while we still allow xml-stylesheet PI's, it's not using the Cocoon1 reactor pattern that is so difficult to oops, my bad. AxKit had more power under the hood than I realized :) I only ever used PI's to direct the flow. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ComposerGenerator - what is composed?
On Wednesday 02 January 2002 11:48 am, you wrote: What will the ComponentManager a Composable Generator is composed with contain/provide? Is there a way to setup this by myself? It will contain the components defined in the cocoon.xconf. You can add your own components in there using the component-instance class=your.class role=your.role/ tag, or by defining a role in your own custom roles file, adding a user-roles attribute to the root cocoon tag in cocon.xconf and using the roles just like the internal roles. It might be helpful to read some of the avalon documentation, since the component manager is all avalon stuff. http://jakarta.apache.org/avalon -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Employing, maintaining, version upgrades
On Wednesday 26 December 2001 09:33 am, you wrote: For applicators of Cocoon2; what is the recommended method for creating multiple projects based on Cocoon? I currently create sibling project folders to xml-cocoon2 and customize the projects build.xml to locate Cocoon components and maintain a unique webapp folder for each project. There are times when the projects become broken when I cvs update the xml-cocoon2 folder and then I need to search for obsolescence in my projects which can be a daunting task at times. What project layout is best? Where should I break between Cocoon2 and Cocoon2 based projects? We have a Cocoon2-based project here. In my project source tree I have root | +- build/ | +- source/ | +- web/ | + WEB-INF/ | + lib/ And more, but that's the guts really. web is our version of the cocoon2 webapp folder, source is our personal source tree, and build is where we build the code. I don't sync with Cocoon proper on a regular basis, but when I do I: 1) Get latest of the Cocoon source 2) compile as: build -Dinclude.webapp.libs=yes webapp javadocs 3) copy the contents of the generated webapp/WEB-INF/lib into my corresponding folder 4) manually update my cocoon.xconf and logkit.xconf to match whatever new constructs/log targets have been added. Thus the cocoon.jar that I am using is always local to my project in its web/WEB-INF/lib directory (and same with all of the other jars that Cocoon depends upon). It has worked out well for us. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Employing, maintaining, version upgrades
On Wednesday 26 December 2001 01:00 pm, you wrote: Wouldn't it be better to keep you xslt, xml (and all things that you don't want or need the user to access) underneath WEB-INF? This way you keep things more secure. Keep things like css or js (things that need to be downloaded) in the docroot. Good point :) I'll try to remember that next time I'm moving a bunch of files around in my project. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Speed Problem
On Thursday 13 December 2001 01:12 pm, you wrote: We are determining now, whether to use a powerful server application like Cocoon 2 for flexible web/wap/etc. output or not. The only real problem to me is the speed of cocoon. Does somebody have any experience if and (if yes) how Cocoon 2 could be made more efficient in the qay of needing time? I'd like to get to know some ways to make it more performant as it is much to slow for our purposes (just world wide web output) yet. cache cache cache! that makes a huge difference. Also if using tomcat be sure to set reloadable=FALSE for your context. That can literaly shave a second or two off each request under load. There have been quite a few threads on cocoon-dev on this topic recently though, I would suggest checking the archives as well. http://marc.theaimsgroup.com is a good one. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IBM-jdk-1.3 and cocoon2
On Tuesday 11 December 2001 09:25 am, you wrote: Does anyone here run cocoon2 with ibm-jdk-1.3? under ibm-jdk the javac compiler won't initialize (org.apache.cocoon.components.language.programming.java.Javac). I had some classpath issues with IBM's JDK 1.3 under linux. I've switch to Blackdown and its fine. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Search Engines
On Friday 07 December 2001 07:48 am, you wrote: ALSTOM COMPANY CONFIDENTIALITY MESSAGE : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. You do know that this list is archived on the web, and thus they are stored and disclosed to the world. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect after Generation/Transformation
On Thursday 29 November 2001 12:02 pm, you wrote: I look for a possibility to redirect the processing of a resource in C2 after a generator- and a transformer-call to another resource, the obvious solutions would be map:redirect-to or map:read at the end of the resource. I think of something like this: map:match pattern=** map:generate src=statistics.xml/ map:transform type=statistics/ map:redirect-to uri=barrier/{1}/ /map:match But both alternatives do not work after generator- and transformer-calls. Do I oversee something ? Or do I have to implement an action... I would recommend implementing an action and calling the action before the generator. Once you start the SAX stream, you may no longer be able to redirect, depending on whether or not the client has started to receive content yet. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accepting Data From The Web and storing it.
On Tuesday 20 November 2001 05:12 pm, you wrote: Is it not possible to write XSP (java) to write back to the file? Yes, it is possible to modify the XSP documents that are on disk. I think having an XSP document being self-modifying might be a bit odd, so I would segregate out the modifying bit into a separate component, but it should work. I would not recommend modifying the documents in place, rather modifying a copy and then replacing the original XSP when done. You don't want any funky concurrency issues to arise. Also I don't know how your application works, but if you ever release a new version/update it you might not want to overwrite XSP documents that users modified. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Documentation
On Sunday 18 November 2001 05:15 pm, you wrote: My question is: is there any documentation on cocoon2 available? or could s.o. tell me how i can bring my xml-files to work? i'm confused about the sitemap.xmap. That's the only docuementation I have found, other than the source... There's a lot of documenation that needs to be written. If you like, ask more specific questions, and we can collect the questions and answers to use as the start of a users guide. What do you want to do with your xml documents, any what area of the sitemap are you starting with? -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .NET vs. Cocoon
On Friday 16 November 2001 01:48 pm, you wrote: However another alternative has presented itself in the form of .NET which has gained some momentum. As far as my knowledge goes with .NET I still find Cocoon to be a superior solution to the problem than .NET. Has anyone done any comparisons between the two platforms that they are willing to share? Any information is greatly appreciated. What pieces of .NET will be comparable to Cocoon? It sounds like you are looking for a client device-indepent publishing solution? I've seen bits and pieces on the asp.net forms, but nothing specifically relating to wireless devices. The main (and imho *huge*) advantage that Cocoon has is that it is open source software. You can customize it to meet your needs 100%, all the way down to the core which is not something that you will be able to do with .net. Although if you give some more details on what piece of .NET you are looking at it might help with better answers. Comparing Cocoon to .NET is like comparing the Java platform to a single win32 application. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transformers vs. Generators
On Thursday 15 November 2001 11:50 am, you wrote: Okay, one piece of theoratical question. If I want to use xml data output from a bunch of EJBs (JBoss+Cocoon stuff), shall I better write a Transformer or a Generator for getting the data? I'd vote for Transformers, which looks for xml tags in a source xml like customer-data/, and replaces it with the business data coming from EJBs, which gets rendered by an other (eg. the default XSLT) Transformer right after. Is that the correct way handling the situation? That works, but exception handling that way can be a pain because you can only throw a SAXException once the transformer gets going. I recently refactored my project to use a lot of transformers, I think its more manageable that way. I have a transformer that inserts data similar to your need, and it works by loading the data in the setup() method, and then spitting it out once the appropriate tag is seen. I like that approach because if there is an error loading the data I can throw a ProcessingException and there is the chance for a nice error page to be shown to the user. Once the SAX stream starts going, an exception could result in a 1/2 rendered page for the client, not good IMHO. So my suggestion to you would be to see if you can load your customer data in the setup() of a transformer, and then only serialize it once the tag you are looking for is encountered. I hope that makes sense :) -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transformers vs. Generators
On Thursday 15 November 2001 12:58 pm, you wrote: Can you handle situations using this approach where the data changes meanwhile? Does the setup() runs only once at Cocoon initialization or it runs once at every page request? setup() is called for each request. If you need to do stuff just 1x ever, you can make your transformer Initializable and you can do that in the initialize() method. Thanks for the pieces of advice, no problem. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transformers vs. Generators
On Thursday 15 November 2001 03:13 pm, you wrote: Peter, exactly where had you put your own Transformers? I've tried to put it in my own package (not in org.apache.cocoon.transformation), jar-ed it correctly, dropped the jar into Cocoon's main WEB-INF/lib/, configured it in the sitemap, and got a ClassNotFoundException. Do I have to use the cocoon.transformation package for my Transformators, or where should I put it to let Cocoon to use it? Thats pretty much what I did over here. One debugging check is to look at the start of the cocoon.log and in there it enumerates its classpath that it built from the lib directory. Make sure your jar is listed in there as a starting point in debugging. If the jar is there and you still have the error, email me the stack trace. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generators.. was: Re: SV: What is Cocoon good for???
On Wednesday 14 November 2001 03:47 am, you wrote: For data from other sources, I've been moving towards making java objects that are XMLizable, and having a generator that just calls .toSAX on them. -pete Maybe a stupid question... but: why? Do you really gain in performance, or in architecture design? (I mean comparing this to util:include-file from XSP or Xinclude) More from the design standpoint. We're working on creating a web-based application here, and we have a single XML document that describes menus and different lists of data the user can display (defining columns, sorts, etc). At server startup this file is parsed and two types of objects are created from it, menu objects and list objects. To spit out a piece of the menu, I have a generator that looks up the appropriate menu node, and then calls toSAX on it, generating the event stream. While I could use XSP for this, the overhead of recompiling the XSP isn't worth it. My generator class is very simple. I guess other sources needs to be qualified a bit. If you are loading XML that can be represented via a URI, then the methods that you mention work fine. But if you want to generate XML from sources that cannot be represented as an URI, a generator is the way to go, imho. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generators.. was: Re: SV: What is Cocoon good for???
On Tuesday 13 November 2001 02:53 pm, you wrote: having code within your XSP page that reads XML from some external source (outside the page) and outputting it Seems to me like that type of code is best done as a separate generator of its own. Others agree? disagree? I agree. I only use XSP for instances where I want to use logicsheets. Otherwise I use the file generator if I want to sent a plain XML document that is on disk. For data from other sources, I've been moving towards making java objects that are XMLizable, and having a generator that just calls .toSAX on them. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: numeric entities
At 11:19 AM 8/30/2001 -0700, you wrote: Because netscape 4.x does not support several character entities (e.g. ldquo;), I would like to restrict the html output of my xslt scripts to only numeric entities when processing xml. Is there any method for doing this as an xslt or configuration parameter. What version of Cocoon are you using? Are you having trouble doing this now? Are you using the named entities in your code currently? Did you try switching to using the numeric ones in your code? -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon error
At 11:56 AM 8/30/2001 -0700, you wrote: - Publishing Engine could not be initialized. java.lang.RuntimeException: Exception when creating org.apache.cocoon.processor.xsp.XSPProcessor : java.lang.NoSuchMethodError: See http://xml.apache.org/cocoon/faqs.html#faq-normalize at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.init(Compiled Code) --- If you bothered to goto the webpage indicated, you would read: I get a java.lang.NoSuchMethodError when running XSP. What's wrong? This happens because Cocoon needs a DOM Level 2 implementation and you probably have a DOM Level 1 included in your classpath before xerces.jar. So, place the xerces.jar archive that comes with Cocoon before all the other jar packages in your classpath. Some servlet engines, such as Tomcat, construct a CLASSPATH automatically based on all the jar files in a lib directory. In this case, you may need to rename the jar file containing the DOM Level 1 (xml.jar or parser.jar) to something like zzz.jar to force it to come last, or even move it out of the lib directory altogether. If even that doesn't work, also check that there is no XML parser in your JDK's lib/ext or jre/lib/ext directories. If there is, remove it. Unfortunately, some servlet engines require DOM Level 1 to be ahead of DOM Level 2 in the CLASSPATH - conflicting with Cocoon! There is no known workaround for this problem (but see the next question) - please let us know at [EMAIL PROTECTED] if you find one. -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2B2 changes in error reporting.
In beta1 of Cocoon 2, if a ProcessingException was thrown, I would see the full cascading stack trace printed out in the error page and in the cocoon.log. Now I only get the first exception in the cascade, and the rest of the cascade is printed to the tomcat console. Was this a deliberate change? Thanks. -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URGENT help needed:from all Cocoonites
At 09:23 PM 7/23/2001 -0700, you wrote: 1)Can I bundle Cocoon with our company product and sell it ? Yes. Be sure to read http://xml.apache.org/dist/LICENSE.txt though. 2)Can I develop applications using Cocoon and make money ? I don't know, can you? :) If you make a good application that people want to buy, cocoon won't stop you! 3)How can I be assured that Ill get support if I get into some problem while working with Cocoon ? MY ANSWER: there is this mailing list which helps you 24hrs a day unlike those companies which charge you HUGE amounts,this is free peer-peer support. As it was mentioned before, you aren't guaranteed anything from this list. If you have a problem on a weekend for instance, you are probably less likely to get an immediate response as i'm sure some folks only read the list at the office. 4)Which version of Cocoon should i use in my company ? MY ANSWER:Use Cocoon 1.8.2 bcoz there are many who have used this and people have exhausted all the possible problems with 1.8.2 and so quick help is easily available from the cocoon-archives. I'd recommend cocoon2. That is where all the development effort is going and some really interesting work is being done there. Depends on the projected lifetime of your project. 5)Can anyone suggest other possible questions?Some of you might have already delivered seminars on Cocoon. the Why use cocoon question. I got that here from the phb's. 6)Where is Cocoon heading towards ?Does such technologies get recognition from the W3c.org and be declared as Standards ?Can I say that Cocoon would soon be declared a Standard? probably not. I think cocoon lets you easily operate on your standards-compliant-xml data, and makes its pretty easy to inter operate with other systems via xml, but it isn't really a standard in and of itself. 7)Did anyone do any work using Cocoon+VoiceXml ? I have not, but it is on the board as something to do down the road. 8)Are there any competing frameworks to Cocoon ?I couldnt find any on Google. There is AxKit (http://axkit.org) which is similar to cocoon1 but in perl. I believe somebody posted about a similar java toolkit here in the past, check the archives. 9)Does anyone of you have slides which I can use as reference,apart from the slides that I make ? There are some slides on the cocoon2 site that a developer from HP made that gives a high level overview of cocoon2. hope this helps :) -peter -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Docs, Docs, Docs....
At 03:03 PM 7/17/2001 -0700, you wrote: Can everyone please take some time to contribute to the docs? This will be really helpful for C2-Beta2. Can we create a list of areas that need improvement? I'd love to contribute but i'd like to know where help is needed :) -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms handling with cocoon
At 05:58 PM 6/28/2001 +0200, you wrote: applikation which deals with a lot of forms of business oriented data which is provided by ejb's from a web app server like jboss or weblogic. We have the forms for order processing, masterdata handling etc. We need a lot of input fields, field checking against dynamic data, changing navigation between pages. I don't know of any public projects that are using cocoon in the manner in which you describe, but my company is using C2 as the basis for our applications, and there are others in this group that are doing the same. -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you build your XSLs?
At 05:13 PM 6/19/2001 +0400, you wrote: Problems with XML Spy begin when you are editing XSP pages - you have to write all that Java code as text and you have no syntax highlighting, no code insight and all other things that makes Java programming easier with IDEs. Are there any editor which support XSP/JSP like mixed syntax? Not that I know of. We use XML Spy here for our XML/XSLT/XSP work. I've been following the trend that the logicsheets that are shipped with C2 use, which is to move most of the java code into a class module with static methods, and just put simple function calls in the logicsheet. That way you can write your class module in your favorite java IDE with all the bells and whistles, and you have minimized the amount of java code in your logicsheet. If you find that you do have an overwhelming need to put a decent amount of java code directly into the logicsheet, maybe JBuilder 5 has support for that. I know that they do ship a version of C1 with the program, and maybe it had support for XSP. As a last resort you could always use a JSP editor, and use the JSP syntax for editing, and then change the JSP code-marker tags to the XSP tags when you save the file. I think that'd be a PITA though. As a last resort, if you want to invest a small amount of time into making a solution for yourself, would be to check out the Multiple Major Modes package for Emacs (http://mmm-mode.sourceforge.net/). I'm sure Emacs has good support for Java code and XML (syntax highlighting for sure, but I'm uncertain about code insight-type features), and using the MMM package you can have multiple modes active in a single buffer. It was original designed for use with the HTML::Mason perl package, which uses markers like %perl and /%perl to delimit code sections. I'm sure you could modify it to check on xsp:logic and xsp:expr. With about 30m of work I was able to get it to work decently with XPathScript, a perl-and-XML language for the AxKit project. Hope this helps :) -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]