error:use Xalan in incremental processing mode
Hi, I'm sorry if this question has already been asked before. I've checked out in the archives, but these seem to be available for the moment... I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4 I just would like to perform an XSLT transformation. In this aim, I use the very simple sitemap.xmap (snippet): map:match pattern= map:generator src=participants.xml/ map:transform src=participants.xsl/ map:serialize/ /map:match But, infortunately, I receive the following error message: message Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. description org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors 1))I' ve checked the log file and this gives exactly the same informations as above. 2°)I've ran this transformation via command line, (java.org.apache.xalan.xslt.Process -IN participants.xml -XSL particpants.xsl -OUT participants.html) and it was successfull. So, what I have to do to fix he problem, if possible? Thanks in advance for your responses, Cyril. - 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: error:use Xalan in incremental processing mode
On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote: Hi, I'm sorry if this question has already been asked before. I've checked out in the archives, but these seem to be available for the moment... I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4 I just would like to perform an XSLT transformation. In this aim, I use the very simple sitemap.xmap (snippet): map:match pattern= map:generator src=participants.xml/ map:transform src=participants.xsl/ map:serialize/ /map:match But, infortunately, I receive the following error message: message Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. description org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors not enough information. include a larger portion of the logs. perhaps you have the serverpages generator as default? Try map:generate type=file src=participants.xml/ Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error:use Xalan in incremental processing mode
Hi Chrisitian Thanks for your answer. My default generator was the 'file' one. ?xml version=1.0? !-- minimal sitemap for Cocoon 2 test -- map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- === Components === -- map:components map:generators default=file/ map:transformers default=xslt/ map:serializers default=html/ map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcherFactory/ /map:matchers /map:components !-- === Pipelines === -- map:pipelines map:pipeline map:match pattern= map:generator type=file src=participants.xml/ map:transform src=participants.xsl/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap and the complete error message (no more informations in log) is the following: stack-trace org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:395) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536)and my stylesheet is as below (nothing special except perhaps use of xsl:key?):?xml version=1.0 encoding=iso-8859-1?xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;xsl:output method=html encoding=iso-8859-1/xsl:param name=tri select='nom'/xsl:key name=clé_pays match=/participants/drapeaux/pays use=nom/xsl:template match=/HTMLBODYH2PARTICIPANTS/H2FORM METHOD=GET ACTION=participants1fieldset class=etiquette style=padding: 10px; font-weight:bold; font-family:'Comic Sans MS'; color: #1E94D3 ; border: outset 5px;legend Trier par : /legendinput type=radio name=critere value=titretitre/inputinput type=radio name=critere value=nomnom/inputinput type=radio name=critere value=prénomprénom/inputinput type=radio name=critere value=organismeorganisme/inputinput type=radio name=critere value=payspays/input/fieldsetp/input TYPE=submit NAME=submit value=Soumettre la requête//FORMtable id=listing class=tableparticipanttheadtrth/ththNom/ththPrénom/thth Organisme/ththAdresse/ththTél/fax/email/ththPays/th/tr/thea dtbodyxsl:apply-templates select=//participantxsl:sort select=*[name()=$tri]//xsl:apply-templates/tbody/table/BODY/HTML /xsl:templatexsl:template match=participanttrtdxsl:value-of select=titre//tdtdxsl:value-of select=nom//tdtdxsl:value-of select=prénom//tdtdxsl:value-of select=organisme//tdtdxsl:apply-templates select=adresse/ligne/span class=paysxsl:value-of select=pays//span/tdtdTél : xsl:value-of select=tél/br/Fax : xsl:value-of select=fax/xsl:apply-templates select=e-mail//tdtdimg style=width: 40px; height:30pxxsl:attribute name=titlexsl:value-of select=pays //xsl:attribute!--xsl:attribute name=srcc:\images/xsl:value-of select=/participants/drapeaux/pays[nom = current()/pays]/nom-image /.gif/xsl:attribute--xsl:attribute name=srcc:/images/xsl:value-of select=key('clé_pays',pays)/nom-image/.gif/xsl:attribute/img/td/tr /xsl:templatexsl:template match=lignexsl:value-of select=./br//xsl:templatexsl:template match=e-mail[text()]br/Email : axsl:attribute name=hrefmailto:xsl:value-of select=.//xsl:attributexsl:value-of select=.//a/xsl:template Cyril.- Original Message - From: Christian Haul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 6:17 PM Subject: Re: error:use Xalan in incremental processing mode On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote: Hi, I'm sorry if this question has already been asked before. I've checked out in the archives, but these seem to be available for the moment... I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4 I just would like to perform an XSLT transformation. In this aim, I use the very simple sitemap.xmap (snippet): map:match pattern= map:generator src=participants.xml/ map:transform src=participants.xsl/ map:serialize/ /map:match But, infortunately, I receive the following error message: message Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. description org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors not enough information. include a larger portion of the logs. perhaps you have the serverpages generator as default? Try map:generate type=file src=participants.xml/ Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint
Re: error:use Xalan in incremental processing mode
On 23.Jan.2003 -- 06:38 PM, Cyril Vidal wrote: Hi Chrisitian Thanks for your answer. My default generator was the 'file' one. that does not make sense (at least to me): map:generator type=file src=participants.xml/ but org.apache.cocoon.ProcessingException: Failed to generate program code (this = org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat You are *sure*? Have you tried to restart your container? Are you sure that it is definately *your* sitemap? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error:use Xalan in incremental processing mode
For simplicity, I'm using Cocoon's mount directory. I've created inside directory tuto with the sitemap.xmap I've sent to you, particpants.xml and participants.xsl and I call http://localhost:8080/cocoon/mount/tuto/ (so Tomcat/webapps/cocoon/mount/tuto with inside sitemap.xmap, participants.xml and participants.xsl) For me, it should be OK. In the console, I've got the following: Errors in XSLT Transformation: Warning: File jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c ocoon/components/language/markup/sitemap/java/sitemap.xsl; Line1817; Column34; Sitemap pipeline must have at least one of: map:generate, map: aggregate, map:read, map:mount, map:redirect-to, map:call Fatal: Achèvement dirigé de la feuille de style Maybe it can help, Thanks for your help, Cyril. - Original Message - From: Christian Haul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 6:45 PM Subject: Re: error:use Xalan in incremental processing mode On 23.Jan.2003 -- 06:38 PM, Cyril Vidal wrote: Hi Chrisitian Thanks for your answer. My default generator was the 'file' one. that does not make sense (at least to me): map:generator type=file src=participants.xml/ but org.apache.cocoon.ProcessingException: Failed to generate program code (this = org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat You are *sure*? Have you tried to restart your container? Are you sure that it is definately *your* sitemap? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: error:use Xalan in incremental processing mode
On 23.Jan.2003 -- 07:08 PM, Cyril Vidal wrote: In the console, I've got the following: Errors in XSLT Transformation: Warning: File jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c ocoon/components/language/markup/sitemap/java/sitemap.xsl; Line1817; Column34; Sitemap pipeline must have at least one of: map:generate, map: aggregate, map:read, map:mount, map:redirect-to, map:call Yep. I thought it was wrong copypast. You write map:generator/ but you need to write map:generate/ See, you have omitted crucial information like the message above ;-) HTH Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error:use Xalan in incremental processing mode
It's working much better! Thanks Christian for your attention!! Cyril. - Original Message - From: Christian Haul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 8:03 PM Subject: Re: error:use Xalan in incremental processing mode On 23.Jan.2003 -- 07:08 PM, Cyril Vidal wrote: In the console, I've got the following: Errors in XSLT Transformation: Warning: File jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c ocoon/components/language/markup/sitemap/java/sitemap.xsl; Line1817; Column34; Sitemap pipeline must have at least one of: map:generate, map: aggregate, map:read, map:mount, map:redirect-to, map:call Yep. I thought it was wrong copypast. You write map:generator/ but you need to write map:generate/ See, you have omitted crucial information like the message above ;-) HTH Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]