Re: html to pdf problem
Isn't the error message straightforward? You are using a master-name twice. I.e. search for the attributes master-name in your FO and rename, when there is one duplicate. Regards, Joerg saikat wrote: Hi, I'm facing problems with converting a html file to pdf format.I'm using cocoon2.0 ,tomcat4.0.3 j2sdk1.4.0 while running the file it is giving following error -- org.apache.cocoon.ProcessingException: Could not read resource file:/C:/jakarta-tomcat-4.0.3/webapps/cocoon/mount/html-pdf/pageTwo.xml: java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name' (page) must be unique across page-masters and page-sequence-masters so please tell me wat to do with regards saikat -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: XMLForm and dates
Hello Jan, Thank you for your reply. Yes, your understanding is right. The problem appears because I want to display the date in the form. But the date in the form isn't really useful and I could cancel the idea to display it. I'm trying to insert/update database with an DatabaseAccess layer written in Java. This layer includes one Java class for each database table and each class has getter, setter and query method to access to the database. But I'm really interested how you do that with XMLForm and modular database actions. Could you provide me some information? Thank you Sylvain -Message d'origine- De: Jan [mailto:juyttenh;pandora.be] Date: mercredi, 13. novembre 2002 20:04 À: [EMAIL PROTECTED] Objet: Re: XMLForm and dates Hi, I'm currently using a combination of XMLForms and modular database actions to insert and update db data. I don't understand what exactly is your problem. Some of my beans contain Date or TimeStamp attributes, containing the current date. I don't need a String representation of the dates, as I don't display the dates, I just need them to be available for update or insert. But if I'm not mistaken, calling a Date using jxpath should invoke toString()... ? The only problem I had was inserting the date or timestamp in the database (datetime column). I'm using the modular database actions, and an InputModule to access the bean in the session. If this is what you're trying to do, you should modify the JDBCTypeConversions, because the most simple mapping (in my case TimeStamp to Types.TIMESTAMP is not provided). But besides that, it works very well. So if you want to display the data, jxpath should take care of the toString() I think. Or am I missing something here? And for the actual database actions: how are you trying to insert/update the database? ESQL, modular database actions? Hope this helps you any further. Feel free to ask more information, perhaps I should write a howto or tutorial about the integration of XMLForms and modular database actions, if anyone is interested and if I find the time for it :-) In the meantime: is anyone working on the (input)modules right now? I think I read something on the mailinglist a while ago, but I don't know what the current status is. To use XMLForms with modular database actions, an XMLFormInputModule is a nice and easy way to work... Jan Ivelin Ivanov wrote: Try the following: Use a Date property with its own getter and setter for the database access. Implement an extra property named dateString. Then write the getter of the property to convert the Date object into String when invoked. Also write a setter to convert a string to a date. The Java DateFormat class can help. http://java.sun.com/j2se/1.3/docs/api/java/text/DateFormat.html In your XMLForm documents refer to the dateString property, instead of the date property. In your Java code, use the date property. Hope this helps. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 8:00 AM Subject: XMLForm and dates Hello, I use XMLForm and I want to put the today date in a form. The problem is that the today date has to be a String because the XMLForm simply display the value of the Bean class attribute. If this value is not a String, the date can't be read! But I want to store the today date in a Date format (because I have a timestamp format in my database). How to store the date in a Date type and display it like a String? How to do this?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authenication FW: Single sign-on to multiple handlers
Hello, I'm figuring out my way through the authentication and portal frameworks and ran into a problem of logging into multiple handlers. It seems that there is no single sign-on to all handlers facility provided by the framework. Here is a scenario. I have three roles of users in the application: guest, user, and admin. The guests are only allowed to view guest pages only, the users are allowed to view guest and user pages and administrators are can view all the pages. If I understand the framework design correctly, I need three handlers: 1. Guest pages handler -- generally I wouldn't need it, as the pages could be unprotected, but the portal framework requires it if I want to be able to change the content and the layout of the homepage based on user/role. 2. User pages handler. 3. Admin pages handler. Now, let's say the administrator comes into the guest pages. He now needs to log into the Guest pages handler. After some browsing around, the administrator now wants to make some changes and clicks on a link to the admin pages. This would now require logging into the Admin pages handler. This is where I'm stuck. Clearly we wouldn't want the administrator to have to log in twice. Has anyone encountered this situation? Is there a facility for doing that provided by the framework? Thanks, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update Orion Web Server - Cocoon Integration Instructions
Updated instructions for integration of Orion Web Server(http://orionserver.com) version 1.5.4 with ApacheCocoon version 2.0.3 can be found at: http://www.candlelightsoftware.com/orion-cocoon.html Also this combination is tested against JDK 1.4.1! Steven P. PunteCandlelight SoftwareBy Candlelight If Necessary![EMAIL PROTECTED] http://www.candlelightsoftware.comDo you Yahoo!? Yahoo! Web Hosting - Let the expert host your site
Re: link rel=
On Tuesday, Nov 12, 2002, at 13:55 Europe/London, Alessio Sangalli wrote: Jeremy Quinn wrote: what I do to deal with this kind of thing is to have a menu.xml structure, that is imported into all my pages via CInclude, then xslt mh, I've never understood the difference between Xinclude and Cinclude... Unfortunately (in 2.1) there are three (?) versions, CachingCIncludeTransformer, CIncludeTransformer and XIncludeTransformer. They all basically do the same job, but have different options. The XInclude on uses the W3c XInclude standard tags and includes the XPointer syntax, the CInclude 'family' use Cocoon-specific tags. (having been provided with the 'id' of the page via the sitemap) makes two structures from the menu.xml, 1) my html navigation 2) the meta links you mention. yes, cool; I would like to prepare accurate documentation about the way my website was built. This could also be a useful how-to for cocoon newbies. If you want to contribute, I'd accept some pieces of code from your xsl-transformations...! Well that is tricky, mine works with my data, I cannot guarantee this even works as it stands my data is more complex than this, I hope the xslt below works properly with the simplified case, it is not tested! My menus look something like this: menu meta titleA Menu/title descthis is a sample/desc /meta titleHome Page/title hrefindex/href item titlePage One/title hrefone/index/href /item item titlePage Two/title hreftwo/index/href item titlePage Two/One/title hreftwo/one/href /item item titlePage Two/Two/title hreftwo/two/href /item /item etc .. /menu This is my xslt for making link/s (in it's present design, it works on the menu/ being the only content). This does not deal with the internal links within documents. xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=res/ !-- 'res' param in the form two/index -- xsl:variable name=me select=//*[href = $res]/ xsl:variable name=mum select=$me/parent::*/ xsl:variable name=psibs select=$me/preceding-sibling::item/ xsl:variable name=fsibs select=$me/following-sibling::item/ xsl:variable name=kids select=$me/item/ xsl:template match=menu xsl:for-each select=$mum link href={href} title={title} rel=Up/ /xsl:for-each xsl:for-each select=$psibs[1] link href={href} title={title} rel=First/ /xsl:for-each xsl:for-each select=$psibs[last()] link href={href} title={title} rel=Prev/ /xsl:for-each xsl:for-each select=$fsibs[1] link href={href} title={title} rel=Next/ /xsl:for-each xsl:for-each select=$fsibs[last()] link href={href} title={title} rel=Last/ /xsl:for-each xsl:for-each select=$psibs link href={href} title={title} rel=Section/ /xsl:for-each xsl:for-each select=$me[1] link href={href} title={title} rel=Section/ /xsl:for-each xsl:for-each select=$fsibs link href={href} title={title} rel=Section/ /xsl:for-each xsl:for-each select=$kids link href={href} title={title} rel=SubSection/ /xsl:for-each /xsl:template /xsl:stylesheet Hope this helps regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: link rel=
On Tuesday, November 12, 2002, at 08:55 AM, Alessio Sangalli wrote: mh, I've never understood the difference between Xinclude and Cinclude... Have you checked: http://xml.apache.org/cocoon/faq/faq-transformers.html#faq-2 Diana - 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]
Build lastest CVS broken: cannot resolve symbol class TestShower
I am using Java 1.4.1_01. The command line was: ./build.sh -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp cocoon-2.1/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/helpers/MirrorRecorder.java:72: cannot resolve symbol symbol : class TestShower location: package helpers import org.apache.cocoon.transformation.helpers.TestShower; ^ 1 error BUILD FAILED Antonio Gallardo - 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]
Caching results of SQL Queries?
Dear All, I have a set of related Tables in MySQL, which are used to build part of a site I am working on. We use SQL because of the related nature of the data, rather than any great need for dynamics. My SQL queries are broken down into 'components' which are CIncluded into my documents from internal pipelines. Usually there are several components that use SQL queries in each document. (It is done this way to isolate the implementation of components from their useage as well as from the main sitemap). The data seldom changes . is there any way I can force the internal pipelines to cache, without using the tricks like browser caching via the 'expires' header on the external pipeline? Thanks for any suggestions. regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon to oracle ?
Dear All, Is it possible to communicate with oracle via cocoon ? Please say me the way to do that ? Thanks.
R: cocoon to oracle ?
Paul, yes indeed. You can use the ESQL tag library or the SQLTransformer to do so, both methods support plain-vaniall SQL and stored procedures. Read the respective doc in the Cocoon site, and ask here only for specific problems, please. Best regards, P.S. Please, use plain text messages next time. Luca Morandini [EMAIL PROTECTED] -Messaggio originale- Da: Dhiman Paul [mailto:dhiman;techna.co.in] Inviato: giovedì 14 novembre 2002 12.48 A: [EMAIL PROTECTED] Oggetto: cocoon to oracle ? Dear All, Is it possible to communicate with oracle via cocoon ? Please say me the way to do that ? Thanks. We are protected from the virus by Norton Antivirus Corporate Edition - 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]
Difference between cocoon: and file:// in map:part
Hi I'm new to cocoon and don't get the difference between map:part src arguments: map:part src=cocoon:/somefile.xml map:part src=cocoon:/anotherfile.xml means that cocoon should join two xml files (taken from some misterious place) But the same happens with this: map:part src=somefile.xml map:part src=anotherfile.xml . which means take two files from filesystem which is clear to me. In my example: map:pipeline map:match pattern= map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/simplemenu2html.xsl/ map:serialize/ /map:match /map:pipeline It works ok, but using ... src=cocoon:content/menu.xml ... instead doesn't (ie the rendered html page is empty). *Why*? BTW, where is map:aggregate component *fully* documented? In main user documentation there is only one example and not all of the attributes are explained (ie strip-root, ne etc). Regards Piotr Legiecki - 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]
R: Difference between cocoon: and file:// in map:part
Piotr, the cocoon: pseudo-protocol doesn't search for files, but for pipelines. With this pseudo-protocol you can build pipelines and call them (more or less as subroutines) from any aggregation. Best regards, Luca Morandini [EMAIL PROTECTED] -Messaggio originale- Da: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl] Inviato: giovedi 14 novembre 2002 13.53 A: [EMAIL PROTECTED] Oggetto: Difference between cocoon: and file:// in map:part Hi I'm new to cocoon and don't get the difference between map:part src arguments: map:part src=cocoon:/somefile.xml map:part src=cocoon:/anotherfile.xml means that cocoon should join two xml files (taken from some misterious place) But the same happens with this: map:part src=somefile.xml map:part src=anotherfile.xml . which means take two files from filesystem which is clear to me. In my example: map:pipeline map:match pattern= map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/simplemenu2html.xsl/ map:serialize/ /map:match /map:pipeline It works ok, but using ... src=cocoon:content/menu.xml ... instead doesn't (ie the rendered html page is empty). *Why*? BTW, where is map:aggregate component *fully* documented? In main user documentation there is only one example and not all of the attributes are explained (ie strip-root, ne etc). Regards Piotr Legiecki - 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] We are protected from the virus by Norton Antivirus Corporate Edition - 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: Difference between cocoon: and file:// in map:part
Piotr, At http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html you should find some answers to your questions. Regards, Reinhard -Original Message- From: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl] Sent: Thursday, November 14, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: Difference between cocoon: and file:// in map:part Hi I'm new to cocoon and don't get the difference between map:part src arguments: map:part src=cocoon:/somefile.xml map:part src=cocoon:/anotherfile.xml means that cocoon should join two xml files (taken from some misterious place) But the same happens with this: map:part src=somefile.xml map:part src=anotherfile.xml . which means take two files from filesystem which is clear to me. In my example: map:pipeline map:match pattern= map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/simplemenu2html.xsl/ map:serialize/ /map:match /map:pipeline It works ok, but using ... src=cocoon:content/menu.xml ... instead doesn't (ie the rendered html page is empty). *Why*? BTW, where is map:aggregate component *fully* documented? In main user documentation there is only one example and not all of the attributes are explained (ie strip-root, ne etc). Regards Piotr Legiecki - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: Difference between cocoon: and file:// in map:part
Luca Morandini wrote: Piotr, the cocoon: pseudo-protocol doesn't search for files, but for pipelines. With this pseudo-protocol you can build pipelines and call them (more or less as subroutines) from any aggregation. I see. So when I want to separate navigation and content (having menu.xml and books.xml) and join them using aggregate, *but* use different xsl files for them I can write something like this: map:pipeline map:match pattern= map:aggregate element=site map:part src=cocoon:/menu.xml/ map:part src=cocoon:/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=menu.xml map:read src=content/menu.xml/ map:transform src=styles/menu.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=books.xml map:read src=content/books.xml/ map:transform src=styles/books.xsl/ map:serialize/ /map:match /map:pipeline Right? Hm. I'm not sure about it. What happens when line map:part src=cocoon:/menu.xml/ is executed? Cocoon jumps directly to pipeline which matches the pattern, makes something there (ie *map:read* (or should I use map:generate?) source xml, *transform* using xsl, *serialize* (is this neccessery here?)) and returns to second map:part. So the joined parts are not xml files anymore but html files? So I can't use map:transform src=styles/menuandbook2html.xsl/ on them anymore and I can't also use map:serialize/ Is it the right way to use aggregate or I have simply missused this feature? And when use separate map:pipeline for matches and when to group this matches under one map:pipeline? I know it looks like completely another question;-) Regards Piotr Legiecki - 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: R: Difference between cocoon: and file:// in map:part
Piotr, -Original Message- From: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl] Sent: Thursday, November 14, 2002 2:36 PM To: [EMAIL PROTECTED] Subject: Re: R: Difference between cocoon: and file:// in map:part Luca Morandini wrote: Piotr, the cocoon: pseudo-protocol doesn't search for files, but for pipelines. With this pseudo-protocol you can build pipelines and call them (more or less as subroutines) from any aggregation. I see. So when I want to separate navigation and content (having menu.xml and books.xml) and join them using aggregate, *but* use different xsl files for them I can write something like this: map:pipeline map:match pattern= map:aggregate element=site map:part src=cocoon:/menu.xml/ map:part src=cocoon:/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=menu.xml map:read src=content/menu.xml/ map:transform src=styles/menu.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=books.xml map:read src=content/books.xml/ map:transform src=styles/books.xsl/ map:serialize/ /map:match /map:pipeline Right? Hm. I'm not sure about it. What happens when line map:part src=cocoon:/menu.xml/ is executed? XML which is produced by the pipelines (called by map:part) will be integrated in your main pipeline. Cocoon jumps directly to pipeline which matches the pattern, makes something there (ie *map:read* (or should I use map:generate?) You *must* use map:generate in this case. A reader is a generator and a serializer in one and usally used for non-xml files like pictures. Therefore it shouldn't be possible to call a pipeline with a reader from a aggregator pipeline. source xml, *transform* using xsl, *serialize* (is this neccessery here?)) and returns to second map:part. I think it's neccessary here because otherwise your pipeline is not valid. As far as I know each pipeline needs one generator/aggregator and one serializer. Between them you can place as many transformers as you need. The serializer in this case will not be called - your pipelines called by map:part retrun sax events and not serialized data. So the joined parts are not xml files anymore but html files? So I can't use map:transform src=styles/menuandbook2html.xsl/ on them anymore and I can't also use map:serialize/ You have to possiblities: 1. Each of the map:part-pipelines returns the xml in the form you need it for your client. But make sure to use the XML serializer and not the html-serizalizer. (map:serialize type=xml/) 2. map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize type=html/ In this case you read your books and your menu directly (without using sub-pipelines) and you only have one stylesheets that transforms your xml in html. Is it the right way to use aggregate or I have simply missused this feature? And when use separate map:pipeline for matches and when to group this matches under one map:pipeline? I know it looks like completely another question;-) Have a look at http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines Regards, Reinhard Regards Piotr Legiecki - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: R: Difference between cocoon: and file:// in map:part
Piotr, Right? Yes :) But don't serialize those parts as HTML, use the XML serializer instead. Hm. I'm not sure about it. What happens when line map:part src=cocoon:/menu.xml/ is executed? Cocoon jumps directly to pipeline which matches the pattern, makes something there (ie *map:read* (or should I use map:generate?) source xml, *transform* using xsl, *serialize* (is this neccessery here?)) and returns to second map:part. Well, pipelines are pipelines, the cocoon: pseudo-protocol is just another way to call them. So the joined parts are not xml files anymore but html files? Parts should be XML to be aggregated, just use the XML serializer. BTW, don't think of them as files, but rather as XML streams. And when use separate map:pipeline for matches and when to group this matches under one map:pipeline? I know it looks like completely another question;-) This has been answered over and over... check the mailing list archives or point your browser to: http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-9 Best regards, Luca Morandini [EMAIL PROTECTED] -Messaggio originale- Da: Piotr Legiecki [mailto:piotrlg;sci.pam.szczecin.pl] Inviato: giovedi 14 novembre 2002 14.36 A: [EMAIL PROTECTED] Oggetto: Re: R: Difference between cocoon: and file:// in map:part Luca Morandini wrote: Piotr, the cocoon: pseudo-protocol doesn't search for files, but for pipelines. With this pseudo-protocol you can build pipelines and call them (more or less as subroutines) from any aggregation. I see. So when I want to separate navigation and content (having menu.xml and books.xml) and join them using aggregate, *but* use different xsl files for them I can write something like this: map:pipeline map:match pattern= map:aggregate element=site map:part src=cocoon:/menu.xml/ map:part src=cocoon:/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=menu.xml map:read src=content/menu.xml/ map:transform src=styles/menu.xsl/ map:serialize/ /map:match /map:pipeline map:pipeline map:match pattern=books.xml map:read src=content/books.xml/ map:transform src=styles/books.xsl/ map:serialize/ /map:match /map:pipeline Right? Hm. I'm not sure about it. What happens when line map:part src=cocoon:/menu.xml/ is executed? Cocoon jumps directly to pipeline which matches the pattern, makes something there (ie *map:read* (or should I use map:generate?) source xml, *transform* using xsl, *serialize* (is this neccessery here?)) and returns to second map:part. So the joined parts are not xml files anymore but html files? So I can't use map:transform src=styles/menuandbook2html.xsl/ on them anymore and I can't also use map:serialize/ Is it the right way to use aggregate or I have simply missused this feature? And when use separate map:pipeline for matches and when to group this matches under one map:pipeline? I know it looks like completely another question;-) Regards Piotr Legiecki - 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] We are protected from the virus by Norton Antivirus Corporate Edition - 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]
Error with Portal and Jboss
Hi All I use teh lastest cocoon from CVS with Jboss 3.0.4 bundled with tomcat 4.1.12. When is log on in the portal sample i receive an error: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151 ) at java.lang.Thread.run(Thread.java:536) and ideas ? Thanx Thorsten - 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]
svg
Hallo, does exists something like a svg2gif-Serializer. Boris
Re: R: Difference between cocoon: and file:// in map:part
Reinhard Poetz wrote: So the joined parts are not xml files anymore but html files? So I can't use map:transform src=styles/menuandbook2html.xsl/ on them anymore and I can't also use map:serialize/ You have to possiblities: 1. Each of the map:part-pipelines returns the xml in the form you need it for your client. But make sure to use the XML serializer and not the html-serizalizer. (map:serialize type=xml/) Here I don't need to transform one xml to another one. I need html as output. 2. map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize type=html/ In this case you read your books and your menu directly (without using sub-pipelines) and you only have one stylesheets that transforms your xml in html. And this is what I don't want (ie one big xsl). I want one xsl for menu (and generally navigation) and one for content, so I will have a few small xsl files vs one big (easier to manage). So I think the second step is the way to go and manage xsl files using one 'main' (here menuandbook2html.xsl) xsl which includes the rest. Sounds reasonably? Thanx Piotr Legiecki - 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]
FW: Coccoon 2.1 and XForms
-Original Message- From: Balint Halasz Sent: Thursday, November 14, 2002 3:55 PM To: '[EMAIL PROTECTED]' Subject: Coccoon 2.1 and XForms Hi, I am new in the list and cocoon as well. In my project XForms may be used. I have read that Cocoon 2.1 supports XForms, however this version only exists as pre-release. I have the following questions: Q1: When the final release of the Cocoon 2.1 will be available? Q2: Does anyone have experience processing XForms withing Cocoon? Thanx, Balint
RE: R: Difference between cocoon: and file:// in map:part
Piotr, Here I don't need to transform one xml to another one. I need html as output. 2. map:aggregate element=site map:part src=content/menu.xml/ map:part src=content/books.xml/ /map:aggregate map:transform src=styles/menuandbook2html.xsl/ map:serialize type=html/ In this case you read your books and your menu directly (without using sub-pipelines) and you only have one stylesheets that transforms your xml in html. And this is what I don't want (ie one big xsl). I want one xsl for menu (and generally navigation) and one for content, so I will have a few small xsl files vs one big (easier to manage). So I think the second step is the way to go and manage xsl files using one 'main' (here menuandbook2html.xsl) xsl which includes the rest. Yes, you can use includes within your stylesheet or you call in map:part sub-pipelines which already return html (of course in xml). I would prefer one stylesheet with includes. Regards, Reinhard Sounds reasonably? Thanx Piotr Legiecki - 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]
AW: Coccoon 2.1 and XForms
Hi Balint! Answer to Q2: We are using XForms with Cocoon 2.1 for around two months and we don´t have any problems. Greetings Michael -Original Message- From: Balint Halasz Sent: Thursday, November 14, 2002 3:55 PM To: '[EMAIL PROTECTED]' Subject: Coccoon 2.1 and XForms Hi, I am new in the list and cocoon as well. In my project XForms may be used. I have read that Cocoon 2.1 supports XForms, however this version only exists as pre-release. I have the following questions: Q1: When the final release of the Cocoon 2.1 will be available? Q2: Does anyone have experience processing XForms withing Cocoon? Thanx, Balint
RE: Coccoon 2.1 and XForms
-Original Message- From: Balint Halasz Sent: Thursday, November 14, 2002 3:55 PM To: '[EMAIL PROTECTED]' Subject: Coccoon 2.1 and XForms Hi, I am new in the list and cocoon as well. In my project XForms may be used. I have read that Cocoon 2.1 supports XForms, however this version only exists as pre-release. I have the following questions: Q1: When the final release of the Cocoon 2.1 will be available? There are plans for an alpha version in the near future but no date. At the moment you have to use a nightly build or to checkout the CVS. I'm developing using cocoon2.1dev without having problems - but of course it depends on the components you use. XMLForms run pretty stable. (I haven't had any problems yet ...). Q2: Does anyone have experience processing XForms withing Cocoon? There is good documentation about XMLForms. Regards, Reinhard Thanx, Balint - 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: Coccoon 2.1 and XForms
Thanks! Thats great! Can you give me some hints from where I can download cocoon version which supports Xforms (ie the one your are using) also some guidelines for the first steps to get it work would be helpful. Balint+ -Original Message- From: Michael Bald [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 4:07 PM To: [EMAIL PROTECTED] Subject: AW: Coccoon 2.1 and XForms Hi Balint! Answer to Q2: We are using XForms with Cocoon 2.1 for around two months and we don´t have any problems. Greetings Michael -Original Message- From: Balint Halasz Sent: Thursday, November 14, 2002 3:55 PM To: '[EMAIL PROTECTED]' Subject: Coccoon 2.1 and XForms Hi, I am new in the list and cocoon as well. In my project XForms may be used. I have read that Cocoon 2.1 supports XForms, however this version only exists as pre-release. I have the following questions: Q1: When the final release of the Cocoon 2.1 will be available? Q2: Does anyone have experience processing XForms withing Cocoon? Thanx, Balint
element use in svg
Hi All! I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg: mean.svg ?xml version=1.0 standalone=no? svg width=600 height=480 xmlns:xlink=http://www.w3.org/1999/xlink; descProduced by GNUPLOT (svg.trm written by Amedeo Farello - [EMAIL PROTECTED])/desc defs circle id=gpDot r=1/circle path id=gpPt0 style=stroke-width:0.222 d=M-1,0 L0,-1 L1,0 L0 1 z/path path id=gpPt1 style=stroke-width:0.222 d=M-1,0 h2 M0,-1 v2/path path id=gpPt2 style=stroke-width:0.222 d=M-1,-1 h2 v2 h-2 z/path path id=gpPt3 style=stroke-width:0.222 d=M0,1.33 L-1.33,-0.67 L1.33,-0.67 z/path path id=gpPt4 style=stroke-width:0.222 d=M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1/path /defs g style=fill:none; stroke:black; stroke-width:1.00 /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,426 L575,426 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,426 L84,426 M575,426 L566,426 /path g transform=translate(67,430) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 4.8/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,358 L575,358 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,358 L84,358 M575,358 L566,358 /path g transform=translate(67,362) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 5/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,289 L575,289 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,289 L84,289 M575,289 L566,289 /path g transform=translate(67,293) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 5.2/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,221 L575,221 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,221 L84,221 M575,221 L566,221 /path g transform=translate(67,225) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 5.4/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,153 L575,153 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,153 L84,153 M575,153 L566,153 /path g transform=translate(67,157) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 5.6/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,84 L575,84 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,84 L84,84 M575,84 L566,84 /path g transform=translate(67,88) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 5.8/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M75,16 L575,16 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M75,16 L84,16 M575,16 L566,16 /path g transform=translate(67,20) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end text 6/text /g /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M77,426 L77,16 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M77,426 L77,417 M77,16 L77,25 /path g transform=translate(77,448) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle text01/02/text /g path d=M95,426 L95,422 M95,16 L95,20 M113,426 L113,422 M113,16 L113,20 /path /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M132,426 L132,16 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M132,426 L132,417 M132,16 L132,25 /path g transform=translate(132,448) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle text02/02/text /g path d=M151,426 L151,422 M151,16 L151,20 M169,426 L169,422 M169,16 L169,20 /path /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M185,426 L185,16 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M185,426 L185,417 M185,16 L185,25 /path g transform=translate(185,448) style=stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle text03/02/text /g path d=M203,426 L203,422 M203,16 L203,20 M221,426 L221,422 M221,16 L221,20 /path /g g style=fill:none; stroke:gray; stroke-width:1.00 path d=M240,426 L240,16 /path /g g style=fill:none; stroke:black; stroke-width:1.00 path d=M240,426 L240,417 M240,16 L240,25 /path g transform=translate(240,448) style=stroke:none; fill:black; font-family:Arial; font-size:12.00;
copy/paste
Hi, let's take cocoon example cocoon/forms/employee from 2.0.3 release, NT, Explorer or Mozilla When I copy from Word the text cou'cou and paste to a texfield ( '/Employee Name'), /after update I will see cou#8217;cou !!! But, if instead you pasting, I'm typing cou'cou the result is correct. Can someone explain me why copy/paste has a differente beheavor than direct typing, and how to avoid such effect ? Thanks. Eric - 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]
developing/installing custom actions without restarting app server?
Hi, all. I'm writing some actions for XMLForms. Everytime I modify the file to make some tests, I have to stop Tomcat, copy the action to the correct subdirectory under WEB-INF/classes and start it again. If not, Tomcat uses the old action. I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? Thanks. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: copy/paste
When you press some keys (like ', , ?) in Word, the keypress is interpreted and translated. ie : if you press after a space, you get a «+NonBreakableSpace, if you type it after another char, you get »+NonBreakableSpace. If you copy/paste l'essai in Word, and then type the same thing, you will get l'essai and then « l'essai » (note that the /apostophe/ is different) Now if you copy/paste the first essai from word, you will get the behaviour you expected. This is the problem, I leave it up to you to find the solution :) HIH, fabien. -Message d'origine- De: Eric BASLEY [mailto:eric.basley;odb.fr] Date: jeudi 14 novembre 2002 16:49 À: [EMAIL PROTECTED] Objet: copy/paste Hi, let's take cocoon example cocoon/forms/employee from 2.0.3 release, NT, Explorer or Mozilla When I copy from Word the text cou'cou and paste to a texfield ( '/Employee Name'), /after update I will see cou#8217;cou !!! But, if instead you pasting, I'm typing cou'cou the result is correct. Can someone explain me why copy/paste has a differente beheavor than direct typing, and how to avoid such effect ? Thanks. Eric - 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] This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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]
command line usage - FINALLY SOLVED
But not as I expected at the beginning. Instead it's much simpler to write all the url inside a file: $ cat url-list http://localhost:8080/cocoon/lirc/index.html http://localhost:8080/cocoon/lirc/tools.html http://localhost:8080/cocoon/lirc/parts.html http://localhost:8080/cocoon/lirc/circuit.html http://localhost:8080/cocoon/lirc/01.html http://localhost:8080/cocoon/lirc/02.html http://localhost:8080/cocoon/lirc/03.html http://localhost:8080/cocoon/lirc/04.html http://localhost:8080/cocoon/lirc/05.html http://localhost:8080/cocoon/lirc/links.html http://localhost:8080/cocoon/lirc/pdfgen and give the following command line: $ wget -nd -i url-list what should I say, it's way too difficult to use cocoon from command line (and not for syntax or semantic problems, but only related to the system setup) so I use it through a command line browser (wget). bye as - 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: developing/installing custom actions without restarting app server?
I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? No, as far as I know there is no way Regards, Reinhard - 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]
AW: Coccoon 2.1 and XForms
Go to Installing on the Cocoon homepage à http://xml.apache.org/cocoon/ There is described how you can install the 2.1 Version or better the latest Version via CVS. After installing cocoon you go to User Guide (navigation menu of the homepage) à press the link web application documentation à and than Form Handling (again in the menu) That´s it! There you find a step by step wizard to install a small example. HTH Michael -Ursprüngliche Nachricht- Von: Balint Halasz [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 14. November 2002 16:11 An: [EMAIL PROTECTED] Betreff: RE: Coccoon 2.1 and XForms Thanks! Thats great! Can you give me some hints from where I can download cocoon version which supports Xforms (ie the one your are using) also some guidelines for the first steps to get it work would be helpful. Balint+ -Original Message- From: Michael Bald [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 4:07 PM To: [EMAIL PROTECTED] Subject: AW: Coccoon 2.1 and XForms Hi Balint! Answer to Q2: We are using XForms with Cocoon 2.1 for around two months and we don´t have any problems. Greetings Michael -Original Message- From: Balint Halasz Sent: Thursday, November 14, 2002 3:55 PM To: '[EMAIL PROTECTED]' Subject: Coccoon 2.1 and XForms Hi, I am new in the list and cocoon as well. In my project XForms may be used. I have read that Cocoon 2.1 supports XForms, however this version only exists as pre-release. I have the following questions: Q1: When the final release of the Cocoon 2.1 will be available? Q2: Does anyone have experience processing XForms withing Cocoon? Thanx, Balint
inserting comment in html
Hi, I'm using cocoon to generate static html for a plain webserver. However this server has a 'counter' which needs the following code inside the html: !--#exec cgi=/cgi-bin/counter.pl-- How can I insert such a string from an xsl trasformation? bye thank you as - 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: developing/installing custom actions without restarting app server?
The only way I know to get round this problem is to actually use jboss rather than tomcat. When a jar/war is deployed in jboss, it automatically removes the previous jar/war. Regards, Cedric -Original Message- From: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Sent: 14 November 2002 16:48 To: [EMAIL PROTECTED] Subject: RE: developing/installing custom actions without restarting app server? I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? No, as far as I know there is no way Regards, Reinhard - 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] -- This e-mail is confidential and is intended for the named recipient only. If you receive it in error please destroy the message and all copies. Kainos Software Ltd. does not accept liability for damage sustained as a result of malicious software (e.g. viruses). Kainos does not accept liability for, or permit, the creation of contracts on its behalf by e-mail, the publication of any defamatory statement by its employees by e-mail, or changes subsequently made to the original message. The Company's registered office is located at 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100. - 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: R: Strings to SAX events
Hi Reinhard, thanks for the last post. I also need to add a string as XML elements into an XSP generator and I used your suggestion (below). It seems to work well, but I have two questions: 1) I've noticed that the API states that the Parser is deprecated. I'm currently using 2.0.3, if I choose to use this method will it effect me being able to move to a newer version of cocoon at some time in the future? 2) When I generate my XML elements it seems that the parser is including the ?xml version=1.0 encoding=UTF-8? header. Is there a way to get the parser not to include it, as it is causing me problems? Thanks in advance! Damian. [EMAIL PROTECTED] wrote: Luca, In a generator I use flowing code within the generate()-Method. Maybe this helps: parser = (Parser)this.manager.lookup(Parser.ROLE); parser.setConsumer(super.xmlConsumer); parser.parse(new InputSource(new StringReader(sb.toString(; Regards, Reinhard - 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]
element use in svg
Hi All! I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg (another sample :))): test.svg: ?xml version=1.0 standalone=no? svg width=10cm height=3cm viewBox=0 0 100 30 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; descExample Use01 - Simple case of 'use' on a 'rect'/desc defs rect id=MyRect width=60 height=10/ /defs rect x=.1 y=.1 width=99.8 height=29.8 fill=none stroke=blue stroke-width=.2 / use x=20 y=10 xlink:href=#MyRect / /svg this is test from http://www.w3.org/TR/SVG/struct.html#UseElement tests in sitemap.xmap: map:match pattern=*.svg map:generate src=work/svg/{1}.svg/ map:serialize type=svg2png/ /map:match But get the error 8-((: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Failed to execute pipeline. More precisely: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: http://xml.apache.org:-1 The URI '' specified on the element use is invalid extra info full exception chain stacktrace Original exception : org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: http://xml.apache.org:-1 The URI '' specified on the element use is invalid at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724) ... I'm sure in my use of use element (I loocked at the specification svg v1.0 on http://www.w3.org/TR/SVG/struct.html#UseElement) Can anyone explain me where I'm wrong :) ? Thanx! -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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: R: Strings to SAX events
Hi Damian, Perhaps it helps : If you are in XSP, the following tags resolve it without java code : ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; ... util:include-expr util:exprxsp:expr yourXMLString /xsp:expr/util:expr /util:include-expr ... Regards, Ludovic - Original Message - From: Damian Chojna [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 6:02 PM Subject: Re: R: Strings to SAX events Hi Reinhard, thanks for the last post. I also need to add a string as XML elements into an XSP generator and I used your suggestion (below). It seems to work well, but I have two questions: 1) I've noticed that the API states that the Parser is deprecated. I'm currently using 2.0.3, if I choose to use this method will it effect me being able to move to a newer version of cocoon at some time in the future? 2) When I generate my XML elements it seems that the parser is including the ?xml version=1.0 encoding=UTF-8? header. Is there a way to get the parser not to include it, as it is causing me problems? Thanks in advance! Damian. [EMAIL PROTECTED] wrote: Luca, In a generator I use flowing code within the generate()-Method. Maybe this helps: parser = (Parser)this.manager.lookup(Parser.ROLE); parser.setConsumer(super.xmlConsumer); parser.parse(new InputSource(new StringReader(sb.toString(; Regards, Reinhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: developing/installing custom actions without restarting app server?
I believe tomcat 4.1 also supports this. -Original Message- From: Cedric Picard [mailto:C.Picard;kainos.com] Sent: quinta-feira, 14 de Novembro de 2002 17:00 To: [EMAIL PROTECTED] Subject: RE: developing/installing custom actions without restarting app server? The only way I know to get round this problem is to actually use jboss rather than tomcat. When a jar/war is deployed in jboss, it automatically removes the previous jar/war. Regards, Cedric -Original Message- From: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Sent: 14 November 2002 16:48 To: [EMAIL PROTECTED] Subject: RE: developing/installing custom actions without restarting app server? I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? No, as far as I know there is no way Regards, Reinhard - 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] -- This e-mail is confidential and is intended for the named recipient only. If you receive it in error please destroy the message and all copies. Kainos Software Ltd. does not accept liability for damage sustained as a result of malicious software (e.g. viruses). Kainos does not accept liability for, or permit, the creation of contracts on its behalf by e-mail, the publication of any defamatory statement by its employees by e-mail, or changes subsequently made to the original message. The Company's registered office is located at 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100. - 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] attachment: winmail.dat- Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.0.3 under JDK 1.4.1
Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) and the dom.jar und sax.jar files (JAXP 1.2). When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - 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: developing/installing custom actions without restarting app server?
Josema Alonso wrote: Hi, all. I'm writing some actions for XMLForms. Everytime I modify the file to make some tests, I have to stop Tomcat, copy the action to the correct subdirectory under WEB-INF/classes and start it again. If not, Tomcat uses the old action. I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? If you are using tomcat 4.1.12 there is a nice GUI ../manager/html/list which allows you to start/stop the applications without taking down the main tomcat server. The compiled files (cache) are in directories that look something like /work/Standard Engine/localhost/ appname. I have stopped an app cleared the work' directories and restarted the app. The package with manager is tomcat4-admin-webapps-4.1.12 (I may not be exact because I switched to another release) - 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 2.0.3 under JDK 1.4.1
Hi Franz, Franz-Josef Herpers wrote: Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) xml-apis.jar is missing. and the dom.jar und sax.jar files (JAXP 1.2). not needed. Did you delete Tomcat work directory? Joerg When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - 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: developing/installing custom actions without restarting app server?
Ouch... Thanks, Reinhard. - Original Message - From: Reinhard Poetz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 5:47 PM Subject: RE: developing/installing custom actions without restarting app server? I'm wondering, is being cached somewhere? Is there a way to install the action and make it work without restarting the server? No, as far as I know there is no way Regards, Reinhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic select boxes in XMLForms?
Hi, all. I tried the XMLForm wizard demo where I see some select boxes created for processor, ram, servlet engine and java version elements in ths system information page. I see the values for those are hard coded in 'system.xml' and I want to create a select box from a DOM Node. I got the following: EquipmentTypes EquipmentType id=player DescriptionDescription of the player type/Description /EquipmentType EquipmentType id=recorder DescriptionDescription of the recorder type/Description /EquipmentType /EquipmentTypes I would like to create a select box (one of the dropdown type) and have: 1.- value of every option element as the EquipmentType/@id 2.- text displayed of every option as the EquipmentType/Description I've tried with a xf:repeat with no luck. I also tried with just one element but no luck either. I guess is something with the stylesheet. The 'xmlform2html.xsl' doesn't seem to check 'ref' attributes on option elements. I guess the solution will be the customization of that stylesheet to my needs...am I right? Thanks. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.0.3 under JDK 1.4.1
Hi Joerg, thanks for the fast reply, but that's not the cause of the problem. I cleaned the work directory and tried to fill the endorsed directory of JDK and Tomcat with nearly every possible combination of files: the original jar files from the Cocoon 2.0.3 distribution the newest jar Version of xalan and xerces, but nothing helps. From the console output I guessed it has something to do with the newest xalan version. But even when i downgrade to the version of Cocoon the error occurs. The stack trace is org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292) at org.apache.cocoon.sitemap.Handler.run(Handler.java:265) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:388) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333) ... 3 more org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:388) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292) at org.apache.cocoon.sitemap.Handler.run(Handler.java:265) at java.lang.Thread.run(Thread.java:536) Franz -Ursprüngliche Nachricht- Von: Joerg Heinicke [mailto:joerg.heinicke;gmx.de] Gesendet: Donnerstag, 14. November 2002 19:24 An: [EMAIL PROTECTED] Betreff: Re: Cocoon 2.0.3 under JDK 1.4.1 Hi Franz, Franz-Josef Herpers wrote: Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) xml-apis.jar is missing. and the dom.jar und sax.jar files (JAXP 1.2). not needed. Did you delete Tomcat work directory? Joerg When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: Strings to SAX events
This should really be a code snippet... Hi Damian, Perhaps it helps : If you are in XSP, the following tags resolve it without java code : ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; ... util:include-expr util:exprxsp:expr yourXMLString /xsp:expr/util:expr /util:include-expr ... Regards, Ludovic - Original Message - From: Damian Chojna [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 6:02 PM Subject: Re: R: Strings to SAX events Hi Reinhard, thanks for the last post. I also need to add a string as XML elements into an XSP generator and I used your suggestion (below). It seems to work well, but I have two questions: 1) I've noticed that the API states that the Parser is deprecated. I'm currently using 2.0.3, if I choose to use this method will it effect me being able to move to a newer version of cocoon at some time in the future? 2) When I generate my XML elements it seems that the parser is including the ?xml version=1.0 encoding=UTF-8? header. Is there a way to get the parser not to include it, as it is causing me problems? Thanks in advance! Damian. [EMAIL PROTECTED] wrote: Luca, In a generator I use flowing code within the generate()-Method. Maybe this helps: parser = (Parser)this.manager.lookup(Parser.ROLE); parser.setConsumer(super.xmlConsumer); parser.parse(new InputSource(new StringReader(sb.toString(; Regards, Reinhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- The heights of genius are only measurable by the depths of stupidity. - 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: R: Strings to SAX events
-Original Message- From: Damian Chojna [mailto:d.chojna;adv.pl] Sent: Thursday, November 14, 2002 6:02 PM To: [EMAIL PROTECTED] Subject: Re: R: Strings to SAX events Hi Reinhard, thanks for the last post. I also need to add a string as XML elements into an XSP generator and I used your suggestion (below). It seems to work well, but I have two questions: 1) I've noticed that the API states that the Parser is deprecated. I'm currently using 2.0.3, if I choose to use this method will it effect me being able to move to a newer version of cocoon at some time in the future? Yep, you are right. I developed the component long time ago ... Please try org.apache.avalon.excalibur.xml.JaxpParser. 2) When I generate my XML elements it seems that the parser is including the ?xml version=1.0 encoding=UTF-8? header. Is there a way to get the parser not to include it, as it is causing me problems? Currently there is a problem with the encoding (always UTF-8 encoding is used) when you use Xalan. As far as I know those problem don't arise if you use Saxon. I don't know how you can remove the processing instruction. Regards, Reinhard Thanks in advance! Damian. [EMAIL PROTECTED] wrote: Luca, In a generator I use flowing code within the generate()-Method. Maybe this helps: parser = (Parser)this.manager.lookup(Parser.ROLE); parser.setConsumer(super.xmlConsumer); parser.parse(new InputSource(new StringReader(sb.toString(; Regards, Reinhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: inserting comment in html
!--#exec cgi=/cgi-bin/counter.pl-- How can I insert such a string from an xsl trasformation? xsl:comment#exec cgi=/cgi-bin/counter.pl/xsl:comment should do it. Regards, Upayavira bye thank you as - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Error with Portal and Jboss
as a endorsement: my OS is win200, JDK 1.4_02 and i compiled cocoon with build -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp also i reviwd all logfiles, but i can't find any error -Ursprüngliche Nachricht- Von: Thorsten Mauch [mailto:mauch;imkenberg.de] Gesendet: Donnerstag, 14. November 2002 15:01 An: '[EMAIL PROTECTED]' Betreff: Error with Portal and Jboss Hi All I use teh lastest cocoon from CVS with Jboss 3.0.4 bundled with tomcat 4.1.12. When is log on in the portal sample i receive an error: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151 ) at java.lang.Thread.run(Thread.java:536) and ideas ? Thanx Thorsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: inserting comment in html
Upayavira wrote: #exec cgi=/cgi-bin/counter.pl should do it. perfect, thank you and sorry for such a stupid question. bye as - 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: link rel=
Jeremy Quinn wrote: yours code is quite different than mine because I use a different approach: this is the xml data I Xinclude in all files: structure chaptertitleIndex/titlehrefindex.html/href/chapter chaptertitleTools/titlehreftools.html/href/chapter chaptertitleParts/titlehrefparts.html/href/chapter chaptertitleCircuit/titlehrefcircuit.html/href/chapter chaptertitle01/titlehref01.html/href/chapter chaptertitle02/titlehref02.html/href/chapter chaptertitle03/titlehref03.html/href/chapter chaptertitle04/titlehref04.html/href/chapter chaptertitle05/titlehref05.html/href/chapter chaptertitleLinks/titlehreflinks.html/href/chapter /structure and this is the xsl code wich generates the link rel things: !-- if this page is not the first, we write link rel=first and link rel=prev -- xsl:if test=not(//structure/chapter[1]/href=$myself) link rel=first href={//structure/chapter[1]/href} title={//structure/chapter[1]/title}/ link rel=prev href={//structure/chapter[href=$myself]/preceding-sibling::chapter[1]/href} title={//structure/chapter[href=$myself]/preceding-sibling::chapter[1]/title}/ /xsl:if !-- if this page is not the last, we write link rel=last and link rel=next -- xsl:if test=not(//structure/chapter[last()]/href=$myself) link rel=last href={//structure/chapter[last()]/href} title={//structure/chapter[last()]/title}/ link rel=next href={//structure/chapter[href=$myself]/following-sibling::chapter[1]/href} title={//structure/chapter[href=$myself]/following-sibling::chapter[1]/title}/ /xsl:if bye! and thank you you example gave me inspiration (is it the correct english word? boh) bye as - 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]
AW: Cocoon 2.0.3 under JDK 1.4.1
Hi again, I solved the problem. The xalan.jar in the endorsed directory of the JDK where too new. If I remove it everything works fine. Now there are no files in my endorsed directory and Cocoon works... Franz -Ursprüngliche Nachricht- Von: Franz-Josef Herpers [mailto:franz-josef.herpers;spmtechnologies.com] Gesendet: Donnerstag, 14. November 2002 19:41 An: [EMAIL PROTECTED] Betreff: Re: Cocoon 2.0.3 under JDK 1.4.1 Hi Joerg, thanks for the fast reply, but that's not the cause of the problem. I cleaned the work directory and tried to fill the endorsed directory of JDK and Tomcat with nearly every possible combination of files: the original jar files from the Cocoon 2.0.3 distribution the newest jar Version of xalan and xerces, but nothing helps. From the console output I guessed it has something to do with the newest xalan version. But even when i downgrade to the version of Cocoon the error occurs. The stack trace is org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.createResource(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.load(ProgramGeneratorImpl.java:292) at org.apache.cocoon.sitemap.Handler.run(Handler.java:265) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.programming.java.JavaLan guage.compile(JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProg rammingLanguage.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.generateResource(ProgramGeneratorImpl.java:388) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.createResource(ProgramGeneratorImpl.java:333) ... 3 more org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error at org.apache.cocoon.components.language.programming.java.JavaLan guage.compile(JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProg rammingLanguage.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.generateResource(ProgramGeneratorImpl.java:388) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.createResource(ProgramGeneratorImpl.java:333) at org.apache.cocoon.components.language.generator.ProgramGenerat orImpl.load(ProgramGeneratorImpl.java:292) at org.apache.cocoon.sitemap.Handler.run(Handler.java:265) at java.lang.Thread.run(Thread.java:536) Franz -Ursprüngliche Nachricht- Von: Joerg Heinicke [mailto:joerg.heinicke;gmx.de] Gesendet: Donnerstag, 14. November 2002 19:24 An: [EMAIL PROTECTED] Betreff: Re: Cocoon 2.0.3 under JDK 1.4.1 Hi Franz, Franz-Josef Herpers wrote: Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) xml-apis.jar is missing. and the dom.jar und sax.jar files (JAXP 1.2). not needed. Did you delete Tomcat work directory? Joerg When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -
Cocoon 2.1 DEV with Jboss 3.0.4/Jboss WEB (jetty) Redirection Problem
Hi No i try to run cocoon with Jboss Web witch is jetty. When i type: http://127.0.0.1:8080/cocoon then I get HTTP ERROR: 404 /documents/index Not Found RequestURI=/documents/index becuase it redirects to http://127.0.0.1:8080/documents/index while: http://127.0.0.1:8080/cocoon/documents/index.html show the correct cocoon page - 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: bad class file exception
Title: RE: bad class file exception That's it. Boy is my face red! Thanks :) -Original Message- From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, 14 November 2002 2:53 PM To: [EMAIL PROTECTED] Subject: Re: bad class file exception McNeil, Shane wrote: Hi, I am attempting to call a custom Java API from an XSP document as follows (simplified)... ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp xsp:structure xsp:includeSIM.Zapi.*/xsp:include Should this line be xsp:includeSIM.ZApi.*/xsp:include instead? It looks like a naming conflict of some kind based on the error message below. /xsp:structure xsp:logic public String getSimDoc() { ZAssociation za = new ZAssociation(localhost:7810); return OK; } /xsp:logic document xsp:exprgetSimDoc()/xsp:expr /document /xsp:page Can anyone tell me why I am getting the following error... Language Exception More precisely: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling getsimdoc_xsp: Line 66, column 4: cannot access class ZAssociation; bad class file (java.lang.RuntimeException: class file: SIM.Zapi.ZAssociation contains wrong class: SIM.ZApi.ZAssociation) Line 66, column 27: constructor ZAssociation(java.lang.String) not found in class SIM.Zapi.ZAssociation Line 0, column 0: 2 errors I can call the API from a standard Java application successfully. Regards, Shane McNeil Analyst Programmer Corporate Document Technologies STANDARDS AUSTRALIA - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
XSP:Expr Question.
Hello everyone. I need some advice reguarding xsp:expr. First, let me give you the scenerio: I am writing a session bean that contains a method whose ouput is xml tags. The intention is to take this output and print it in my xsp document, similarly to JSP out.write(). The problem I am facing is that that data is printed, but the tags are all escaped using lt; and gt; instead of and . Any advice as to what I should do? Thanks in advance! -Scott - 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: svg
Cocoon uses Batik and http://xml.apache.org/batik/svgrasterizer.html says: The provided formats are JPEG, PNG, and Tiff, however the design allows new formats to be added easily. Joerg Boris Althaus wrote: Hallo, does exists something like a svg2gif-Serializer. Boris - 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]
help with proposal: Cocoon docs via Forrest
Would anyone who is interested in Cocoon documentation please help to discuss the proposal to use Forrest to produce the Cocoon documentation. This is being done on the cocoon-docs mailing list. We need your help. Here is the current thread: http://marc.theaimsgroup.com/?l=xml-cocoon-docsm=103655075527503 Please discuss this on cocoon-docs only - we do not want a Cc mess across various mailing lists. --David - 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]
The Sitemap is null
I just found a solution to a nasty intermittent problem with cocoon 2.0.3, so for the sake of posterity (and potential Google searchers) I'm posting it. The exception was this: java.lang.RuntimeException: The Sitemap is null, this should never be!at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:309) at org.apache.cocoon.components.source.SitemapSource.init(SitemapSource.java:198) at org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:96) Once this was thrown, Cocoon was dead. I am running Tomcat 4.1.12-LE, Cocoon 2.0.3 and JDK 1.4.0_01 on Windows XP Basically, something in our code was causing us to throw this exception recurrently, but never in the same exact place. After 2 weeks we still could not isolate any sequence of events to cause it deterministically. I won't go further into our code here, because of its complexity. The solution was to run Tomcat as an NT Service instead of from a startup.bat script in a DOS window. Perhaps someone out there could enlighten me as to why this would have an effect; does NT give services a higher priority in allocating memory? The only previous related post was here: http://mailman.real-time.com/pipermail/cocoon-users/2002-August/021584.html --Greg Weinger - 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]