AW: How can I make a validation !
Maybe try this: xsp:logic String Test = request.getParameter(EMP_DEP); if (Test != null) { xsp:content Your esql ... xsp:content } /xsp:logic -Ursprüngliche Nachricht- Von: Gustavo Mejia [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 19. Juni 2001 01:04 An: [EMAIL PROTECTED] Betreff: Re: How can I make a validation ! Wichtigkeit: Hoch Hi everyone !! Now my problem is: I know that my variable EMP_DEP is null, and I don't know why is passing to the connection section.and if I add one line with: System.out.println( enter + request:get-parameter name=EMP_DEP/); before star the connection, just appear enter. Do you know why ?? here my code ! xsp:logic if (request:get-parameter name=EMP_DEP/ != null) { esql:connection esql:driversun.jdbc.odbc.JdbcOdbcDriver/esql:driver esql:dburlJDBC:ODBC:SQL/esql:dburl esql:usernameuser/esql:username esql:passwordpassword/esql:password esql:execute-query esql:queryinsert into Departamento values( esql:parameter type=stringrequest:get-parameter name=EMP_CLVE//esql:parameter, esql:parameter type=stringrequest:get-parameter name=EMP_DEP//esql:parameter ) /esql:query /esql:execute-query /esql:connection } /xsp:logic But it doesn't work, I got the message : java.lang.Exception: XSP Java Compiler: Compilation failed for _nuevo.java 433: ')' expected. xspParentNode = xspCurrentNode; Could you help me ? do you know what I am doing wrong ? Thanks in advance !! Gustavo Mejia INFOTEC - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sql sample throws blank page...newbie
Hi, have you checked the logfile (by default it is cocoon/WEB-INF/logs/cocoon.log)? I am also wondering how I can extract the exception from an esql query?!?! Mariano I am trying to get the sample sql link from welcome page work..the esql link works fine ... but the sql link throws blank page ( i mean the static content is coming up ) but not the database content.. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2 problem
Hi I had this problem. That's seem to be due to old xerces and xalan library in my path when loading tomcat - Original Message - From: Tobias Florek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 10:28 PM Subject: RE: C2 problem Johnny wrote: blahblahblah error! type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. thats exactly the same problem i have. my server configuration worked with a c2 build from 2001/04/25 and i didnt changed it. the only thing that changed was cocoon. it seems to be an internal cocoon bug. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2 problem
I am new to C2 too, but keeping that in mind ... I always get this message, when I did an inpropriate change to sitemap.xmap. Sometimes I also get this message, when launching cocoon, but it goes away after it is started properly. If there is a syntax error in your sitemap.xmap, the log will tell you some lines above the exception. Mariano On Monday 18 June 2001 10:28 pm, you wrote: Johnny wrote: blahblahblah error! type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. thats exactly the same problem i have. my server configuration worked with a c2 build from 2001/04/25 and i didnt changed it. the only thing that changed was cocoon. it seems to be an internal cocoon bug. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorry to all
Uff... sorry all. I got the wrong reply address and sent the list a mail with a question in Spanish to someone in particular. Won't happen again, Gustavo Wolf -Message d'origine-De: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]Envoy: lundi, 18. juin 2001 18:23: '[EMAIL PROTECTED]'Objet: RE: How can I make a validation ! (No es respuesta a tu pregunta) Hola Gustavo, aprovecho que te puedo escribir en espaol para explicarme mejor y mas rapido. Si no te molesta, quisiera preguntarte algo bien basico, dado que parece que tienes bastante experiencia con cocoon, y yo estoy tratando de empezar (a los golpes). Tengo un servlet que produce un fichero XML luego de consultar una base de datos. Ahora quiero transformar el fichero XMLen PDF. Te parece que seria mejor hacer todo el proceso de adaptacion de mi servlet a Cocoon (paginas XSP, y otras cosas que ignoro todavia), o podria arreglarme con Xalan para la transformacion XSLT y FOP para pasar a PDF? Todo el proceso deberia formar parte de un programa que admite un pedido desde internet, y termina produciendo el PDF file en la pantalla del usuario. Muchisimas gracias por tu tiempo y disculpa la molestia, Gustavo Wolf -Message d'origine-De: Gustavo Mejia [mailto:[EMAIL PROTECTED]]Envoy: lundi, 18. juin 2001 17:48: [EMAIL PROTECTED]Objet: How can I make a validation !Importance: HauteHi everyone !! I am trying to make a validation in order to skip part of my code (I want to skip the connection to my database), I am doing something like this: xsp:logic if (esql:parameter type="string"request:get-parameter name="EMP_DEP"//esql:parameter != nul) { xsp:expr esql:connection esql:driversun.jdbc.odbc.JdbcOdbcDriver/esql:driver esql:dburlJDBC:ODBC:SQL/esql:dburl esql:usernameuser/esql:username esql:passwordpassword/esql:password esql:execute-query esql:queryinsert into Departamento values( esql:parameter type="string"request:get-parameter name="EMP_CLVE"//esql:parameter, esql:parameter type="string"request:get-parameter name="EMP_DEP"//esql:parameter ) /esql:query /esql:execute-query /esql:connection /xsp:expr } /xsp:logic But it doesn't work, I got the message : java.lang.Exception: XSP Java Compiler: Compilation failed for _nuevo.java 433: ')' expected. xspParentNode = xspCurrentNode; Could you help me ? do you know what I am doing wrong ? Thanks in advance !! Gustavo Mejia INFOTEC
Re: Sylvain: was ... RE: broken build?
Paul Nock a écrit : Hmmm... Is your patch correct? I see it's changed to... private boolean isValidName (String name) { if (name != null) { return false; } . I found my stylesheets no longer had xsl:params working properly with the 20010618104654 C1 build. Looking at the code, this would seem to be the correct check: private boolean isValidName (String name) { if (name == null) { return false; } . With the second version, my stylesheets seem to work OK again. Paul You're totally right. That was a typo from me :( It's corrected in CVS the right way now. Thanks and sorry for the incovenience. -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which is the problem?
The compilator say: java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java 2385: Undefined variable: u xspExpr(formatDate(u,1,viewer),document) . End the code is: xsp:logic thresholdlabelThresholds:/label date-headerDate/date-headerpre-alarm-headerPre-alarm Threshold /pre-alarm-headeralarm-headerAlarm Threshold /alarm-header xsp:contentfor(int u = 0; u lt; u++){value datexsp:exprformatDate(u,1,viewer)/xsp:expr/datepre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm/value}/xsp:content/threshold xsp:logic
RE: which is the problem?
I don't know for sure, but I believe that the xsp:content tag is the cause. Try... for(int u = 0; u lt; u++){ xsp:content value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value /xsp:content } J. -Original Message- From: Simone Bortolaso [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 June 2001 08:53 To: [EMAIL PROTECTED] Subject: which is the problem? The compilator say: java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java 2385: Undefined variable: u xspExpr(formatDate(u,1,viewer),document) . End the code is: xsp:logic threshold labelThresholds:/label date-headerDate/date-header pre-alarm-headerPre-alarm Threshold /pre-alarm-header alarm-headerAlarm Threshold /alarm-header xsp:content for(int u = 0; u lt; u++){ value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value } /xsp:content /threshold xsp:logic === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which is the problem?
A xsp:logic is missing before your java code. - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 9:54 AM Subject: RE: which is the problem? I don't know for sure, but I believe that the xsp:content tag is the cause. Try... for(int u = 0; u lt; u++){ xsp:content value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value /xsp:content } J. -Original Message- From: Simone Bortolaso [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 June 2001 08:53 To: [EMAIL PROTECTED] Subject: which is the problem? The compilator say: java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java 2385: Undefined variable: u xspExpr(formatDate(u,1,viewer),document) . End the code is: xsp:logic threshold labelThresholds:/label date-headerDate/date-header pre-alarm-headerPre-alarm Threshold /pre-alarm-header alarm-headerAlarm Threshold /alarm-header xsp:content for(int u = 0; u lt; u++){ value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value } /xsp:content /threshold xsp:logic === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which is the problem?
if i write the same code without for and with variable the compiler says the same things int u = 10; xsp:content value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value /xsp:content } why? - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 9:54 AM Subject: RE: which is the problem? I don't know for sure, but I believe that the xsp:content tag is the cause. Try... for(int u = 0; u lt; u++){ xsp:content value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value /xsp:content } J. -Original Message- From: Simone Bortolaso [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 June 2001 08:53 To: [EMAIL PROTECTED] Subject: which is the problem? The compilator say: java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java 2385: Undefined variable: u xspExpr(formatDate(u,1,viewer),document) . End the code is: xsp:logic threshold labelThresholds:/label date-headerDate/date-header pre-alarm-headerPre-alarm Threshold /pre-alarm-header alarm-headerAlarm Threshold /alarm-header xsp:content for(int u = 0; u lt; u++){ value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value } /xsp:content /threshold xsp:logic === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2: xsp caching
Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? thanks daniel = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? thanks daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page titleA Database Driven XSP Page/title content esql:connection esql:drivercom.informix.jdbc.IfxDriver/esql:driver esql:dburljdbc:informix-sqli://server:port/media360:INFORMIXSERVER=ol_paprika/esql:dburl esql:usernameuser/esql:username esql:passwordpassword/esql:password esql:execute-query esql:queryselect assetid, name, datecreated, lastupdated, keywords, broadcastdate from mc_assetmaster, cr_dctvmeta/esql:query esql:results esql:row-results metadata idesql:get-string column=assetid//id nameesql:get-string column=name//name createesql:get-string column=datecreated//create updesql:get-string column=lastupdated//upd descresql:get-string column=keywords//descr broadesql:get-string column=broadcastdate//broad /metadata /esql:row-results /esql:results /esql:execute-query /esql:connection /content /page /xsp:page ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=page html head titlemyESQL-Page/title /head style body{ font-family: verdana; font-size: 10pt; font-weight: 900; color: #66; } td{ font-size: 9pt; font-weight: normal; } /style body bgcolor=#A7C7DA link=#0086b2 vlink=#00698c alink=#743e75 xsl:apply-templates/ /body /html /xsl:template xsl:template match=title h3xsl:apply-templates select=title//h3 /xsl:template xsl:template match=content table cellpadding=3 cellspacing=2 border=0 tr td bgcolor=#808080font color=#FF9900bAssetID/b/font/td td bgcolor=#808080font color=#FF9900bName/b/font/td td bgcolor=#808080font color=#FF9900bErzeugt/b/font/td td bgcolor=#808080font color=#FF9900bUpdated/b/font/td td bgcolor=#808080font color=#FF9900bFreetext/b/font/td td bgcolor=#808080font color=#FF9900bBroadcast/b/font/td /tr xsl:apply-templates/ /table /xsl:template xsl:template match=metadata tr td bxsl:apply-templates select=id//b /td td xsl:apply-templates select=name/ /td td ixsl:apply-templates select=create//i /td td ixsl:apply-templates select=upd//i /td td ixsl:apply-templates select=descr//i /td td ixsl:apply-templates select=broad//i /td /tr tr td colspan=5 bgcolor=#808080/td /tr /xsl:template /xsl:stylesheet - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Hm.. looks good to me... sure it's no db caching? try a commit; before your query. Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. in cocoon.xconf replace all Caching[Whatever] with NonCaching[Whatever] Hope this helps... - Torsten thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Hello again, I don't think that's an db cahcing issue. because i'm changing the structure of my xsp-file an this will not be seen. i also can change the structure to some not valid one and cocoon will serve the old one without shouting at me :-( maybe some tomcat related error? daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Hm.. looks good to me... sure it's no db caching? try a commit; before your query. Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. in cocoon.xconf replace all Caching[Whatever] with NonCaching[Whatever] Hope this helps... - Torsten thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Sorry, only experienced this in VERY old versions of cocoon. Try to remove the file from the repository then... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: RE: C2: xsp caching Hello again, I don't think that's an db cahcing issue. because i'm changing the structure of my xsp-file an this will not be seen. i also can change the structure to some not valid one and cocoon will serve the old one without shouting at me :-( maybe some tomcat related error? daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Hm.. looks good to me... sure it's no db caching? try a commit; before your query. Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. in cocoon.xconf replace all Caching[Whatever] with NonCaching[Whatever] Hope this helps... - Torsten thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sql sample throws blank page...newbie
java guru [EMAIL PROTECTED] writes: The log file didnt show any error..or may be i am missing it... Anyway, I was using following code(note the esql:error-results) for catching database exceptions.. esql:execute-query esql:queryselect * from department_table1/esql:query esql:results esql:row-results paraesql:get-string column=name//para esql:get-columns/ /esql:row-results /esql:results esql:error-results para this is error /para /esql:error-results /esql:execute-query I'm not sure that * is a good thing. Try putting a column name. -- Aurélien - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you build your XSLs?
OK, Kot, that's a good idea - to integrate XMLSpy with Xalan as transformer - I din't know it's possible - I should try that. Problems with XML Spy begin when you are editing XSP pages - you have to write all that Java code as text and you have no syntax highlighting, no code insight and all other things that makes Java programming easier with IDEs. Are there any editor which support XSP/JSP like mixed syntax? I already installed Stylus, but didn't activate the eval license yet. I played a little with Sylus - it looks much better than it was when I saq it the first time and it supports Xalan-J too. - Original Message - From: Piroumian, Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 8:00 AM Subject: Re: How do you build your XSLs? I personally edit XSL in XMLSpy eval version, the only functionality of XMLSpy I use is XML validation, sp I don't miss a tag or closing bracket or something like that. Otherwise, Notepad is as good a tool for editing XSL. Then I run this XSL in pair with data-containing XML through Web browser through Cocoon and watch the output in Adobe Acrobat. Then I make corrections in XSL and run it again. Why don't you use XML Spy for transformation too? You can setup it to use Xalan as the transformer. IE transformer is supported by default. I use XML Spy 3.5 (registered version) to maintain all the xml, xsl and even html files in the project. Although, it is not a visual XSL editor, it makes XSL programming very convenient by all that automaticaly closing tags, tag hints etc. In parallel, I read : Professional XML by Wrox Publishers Zvon.org website for XSLT and XSL:FO details. If there were an XSL IDE tool, it should take reading of these two sources out of the process (in other words, it should sense XSL and XSL:Fo syntax and prompt for it, like autocomplete words, etc.) To return to your question, I did'nt found anything resembling this imaginary tool, thus I doubt it exists at all. Take a look at the eXelon Styles. It is advertised as The most sophisticated XSLT editor on the market: http://www.stylusstudio.com/eval I doubt anybody will write this kind of tool, since the need in it is not manifesting itself clearly. It's like, hello, we have a new programming language, forget Java, we need tools for it - and it's called XSL. How many people need it? Not 5 or 6 million, like Java or VB developers. I can remeber at least 5 or 6 XSL tools just now and I think you'll find much more tools if search for them. The problem is that XSL was standartized only about 6 months ago. Konstantin Sounds childish today, but will be more obvious in two years or so. Viktor - Original Message - From: Tibi DONDERA [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 5:07 PM Subject: Re: How do you build your XSLs? Yes, what you say makes lots of sense, but still doesn't answer the question... :( How exactly do you write your XSLT files?? Just a thought, though: the basic features of XSLT can be mastered by a non-programmer. It's not that hard. So, IMHO, there can be a tool that can do that too... (master XSLT basic features). - Original Message - From: Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 10:34 PM Subject: Re: How do you build your XSLs? XSL is a programming language in fact. XSL programs scan XML and output something visual or not, Tools that could help should be akin to IDEs like JBuilder. If there is any future for XSL tools, only IDE vendors could creates such tools. So far they do not see wide demand for these I guess. Do I make any sense at all? Viktor - Original Message - From: Tibi DONDERA [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 12:58 PM Subject: How do you build your XSLs? Just wondering... What tools do you use to build your XSL files? Normally, these files should be written by the graphic crew, but I just didn't find any graphician who knows or who is willing to learn XSL. So for now, I just take the Html files these guys are doing, and I manually convert them to XSL... This does not really complies with the separation concept in Cocoon... :( Anybody else has another approach? Tiberiu Dondera - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For
creating logicsheets in C2
hello, I've a question concerning logicsheets and C2: what to put into the cocoon.xconf for the logicsheet to work, cause I can't find it out :(. Any help is welcome, greg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Content Editor for agregation syndication in Cocoon
Dear cocooners I would like to find out if anyone had built a content editor for the agregation and syndication of content in Cocoon. Any tips would be greatly appreciated. Thanks in advanced. Regards, Jessica - This mail sent through IMP: samurai.brel.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you build your XSLs?
At 05:13 PM 6/19/2001 +0400, you wrote: Problems with XML Spy begin when you are editing XSP pages - you have to write all that Java code as text and you have no syntax highlighting, no code insight and all other things that makes Java programming easier with IDEs. Are there any editor which support XSP/JSP like mixed syntax? Not that I know of. We use XML Spy here for our XML/XSLT/XSP work. I've been following the trend that the logicsheets that are shipped with C2 use, which is to move most of the java code into a class module with static methods, and just put simple function calls in the logicsheet. That way you can write your class module in your favorite java IDE with all the bells and whistles, and you have minimized the amount of java code in your logicsheet. If you find that you do have an overwhelming need to put a decent amount of java code directly into the logicsheet, maybe JBuilder 5 has support for that. I know that they do ship a version of C1 with the program, and maybe it had support for XSP. As a last resort you could always use a JSP editor, and use the JSP syntax for editing, and then change the JSP code-marker tags to the XSP tags when you save the file. I think that'd be a PITA though. As a last resort, if you want to invest a small amount of time into making a solution for yourself, would be to check out the Multiple Major Modes package for Emacs (http://mmm-mode.sourceforge.net/). I'm sure Emacs has good support for Java code and XML (syntax highlighting for sure, but I'm uncertain about code insight-type features), and using the MMM package you can have multiple modes active in a single buffer. It was original designed for use with the HTML::Mason perl package, which uses markers like %perl and /%perl to delimit code sections. I'm sure you could modify it to check on xsp:logic and xsp:expr. With about 30m of work I was able to get it to work decently with XPathScript, a perl-and-XML language for the AxKit project. Hope this helps :) -pete -- peter royal - [EMAIL PROTECTED] managing partners, inc. - http://www.managingpartners.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting response headers with XSP
On Tue, 19 Jun 2001, Zeljko Rajic wrote: Hi, I'm currently trying to find out how to set response headers within Cocoon, respectively XSP in general. Reading the Cocoon respectively Cocoon's XSP documentation and FAQs I couldn't find any information about this topic. So I still got some open questions and would appreciate it if somebody could give me some further information or could point me to a resource. My questions are: 1. Where in the XSP document do I have to place the xsp-response:set-header .../ tag? Does it matter where I place this tag? Concerning HTTP, it is necessary to send any header information prior any content/data. Thus, does Cocoon buffer the content/data and then writes header information and content/data in a 'single' run? Having a look at the generated Java source, shows that it generates/fires SAX events and thus makes me wonder how the response headers currently being set!? 2. The same probably applies to cookies, thus the same question for cookies: Where in the XSP document is it allowed to set a cookie using the xsp-cookie:cookie tag? These two questions are really implementation dependant, and belong on Cocoon-Users. My take on it, is that it doesn't matter in AxKit or Cocoon 1, because both use the build a DOM method. It probably matters in Cocoon 2 though. I think the C2 solution is to cache to a certain extent and hope you try and send the header early enough in the XSP file that it just works :-) But I await to be corrected on that. 3. Does any specification exists for XSP? Often it's not possible to say whether some XSP constructs do not work because of wrong usage or because of a bug in Cocoon's XSP implementation. An specification also would allow to build an XSP verifier - or does a verifier already exist? I think an XSP verifier would be very hard to write. Certainly not possible in W3C Schemas. Though perhaps possible in Schematron or RELAX. As for a spec, there is nothing formal as yet. We really need to get around to doing that. The problem though, is that with taglibs the XSP set of tags is infinite, and the way you can put them to use is also infinite. The upshot of this is just about any XML document is a valid XSP document, with the exception of items in the XSP namespace itself, which may have to appear in a certain hierarchy. -- Matt/ /||** Founder and CTO ** ** http://axkit.com/ ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2] Encoding value with I18n
How can I change the encoding value produced by the i18n transformer (by default UTF-8)? In sitemap file I tried map:transformer ... encoding value=iso-8859-1 then encodingiso-8859-1/encoding then map:parameter name=encoding value=iso-8859-1/ etc.. /map:transformer ... even in the map:transform tag NB: the dictionary and xml to translate begin with : ?xml version=1.0 encoding=iso-8859-1? but the xml file is always ?xml version=1.0 encoding=UTF-8? help!!! - Original Message - From: Matt Sergeant [EMAIL PROTECTED] To: Zeljko Rajic [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 4:09 PM Subject: Re: setting response headers with XSP On Tue, 19 Jun 2001, Zeljko Rajic wrote: Hi, I'm currently trying to find out how to set response headers within Cocoon, respectively XSP in general. Reading the Cocoon respectively Cocoon's XSP documentation and FAQs I couldn't find any information about this topic. So I still got some open questions and would appreciate it if somebody could give me some further information or could point me to a resource. My questions are: 1. Where in the XSP document do I have to place the xsp-response:set-header .../ tag? Does it matter where I place this tag? Concerning HTTP, it is necessary to send any header information prior any content/data. Thus, does Cocoon buffer the content/data and then writes header information and content/data in a 'single' run? Having a look at the generated Java source, shows that it generates/fires SAX events and thus makes me wonder how the response headers currently being set!? 2. The same probably applies to cookies, thus the same question for cookies: Where in the XSP document is it allowed to set a cookie using the xsp-cookie:cookie tag? These two questions are really implementation dependant, and belong on Cocoon-Users. My take on it, is that it doesn't matter in AxKit or Cocoon 1, because both use the build a DOM method. It probably matters in Cocoon 2 though. I think the C2 solution is to cache to a certain extent and hope you try and send the header early enough in the XSP file that it just works :-) But I await to be corrected on that. 3. Does any specification exists for XSP? Often it's not possible to say whether some XSP constructs do not work because of wrong usage or because of a bug in Cocoon's XSP implementation. An specification also would allow to build an XSP verifier - or does a verifier already exist? I think an XSP verifier would be very hard to write. Certainly not possible in W3C Schemas. Though perhaps possible in Schematron or RELAX. As for a spec, there is nothing formal as yet. We really need to get around to doing that. The problem though, is that with taglibs the XSP set of tags is infinite, and the way you can put them to use is also infinite. The upshot of this is just about any XML document is a valid XSP document, with the exception of items in the XSP namespace itself, which may have to appear in a certain hierarchy. -- Matt/ /||** Founder and CTO ** ** http://axkit.com/ ** file://||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2] Example Taglib
The attached file contains a simple taglib and includes full install instructions. If someone from the development team would like to, please feel free to add it to the distribution. empty-taglib.xsl Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems empty-taglib.xsl - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: creating logicsheets in C2
Something like this will set it up as a taglib. Put in the same section as the rest of the builtin-logicsheet tags. builtin-logicsheet parameter name=prefix value=taglib/ parameter name=uri value=http://apache.org/empty-taglib/1.0/ parameter name=href value=file:///your/path/empty-taglib.xsl/ /builtin-logicsheet I've just posted an example taglib with full install instructions. Note that 'file:///' (three slashes) is correct for an absolute path name in the href. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Grzegorz Stelmaszek [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 6:17 AM To: [EMAIL PROTECTED] Subject: creating logicsheets in C2 hello, I've a question concerning logicsheets and C2: what to put into the cocoon.xconf for the logicsheet to work, cause I can't find it out :(. Any help is welcome, greg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Encoding value with I18n
If you talk about i18nTransformer from latest C2 (which replaced the old i18n transformer), then it is not intended to specify encodings. It uses encodings from your files and simply replaces i18n text by values from the dictionary. If your XML file is in UTF-8 then the result will be also in UTF-8. If you want to specify other encoding then for your response then, I think, you have to look at the Serializers. If you post your pages I could look at them and try to understand what's the problem. Regards, Konstantin Piroumian. - Original Message - From: matthieu VIDAL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 6:26 PM Subject: [C2] Encoding value with I18n How can I change the encoding value produced by the i18n transformer (by default UTF-8)? In sitemap file I tried map:transformer ... encoding value=iso-8859-1 then encodingiso-8859-1/encoding then map:parameter name=encoding value=iso-8859-1/ etc.. /map:transformer ... even in the map:transform tag NB: the dictionary and xml to translate begin with : ?xml version=1.0 encoding=iso-8859-1? but the xml file is always ?xml version=1.0 encoding=UTF-8? help!!! - Original Message - From: Matt Sergeant [EMAIL PROTECTED] To: Zeljko Rajic [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 4:09 PM Subject: Re: setting response headers with XSP On Tue, 19 Jun 2001, Zeljko Rajic wrote: Hi, I'm currently trying to find out how to set response headers within Cocoon, respectively XSP in general. Reading the Cocoon respectively Cocoon's XSP documentation and FAQs I couldn't find any information about this topic. So I still got some open questions and would appreciate it if somebody could give me some further information or could point me to a resource. My questions are: 1. Where in the XSP document do I have to place the xsp-response:set-header .../ tag? Does it matter where I place this tag? Concerning HTTP, it is necessary to send any header information prior any content/data. Thus, does Cocoon buffer the content/data and then writes header information and content/data in a 'single' run? Having a look at the generated Java source, shows that it generates/fires SAX events and thus makes me wonder how the response headers currently being set!? 2. The same probably applies to cookies, thus the same question for cookies: Where in the XSP document is it allowed to set a cookie using the xsp-cookie:cookie tag? These two questions are really implementation dependant, and belong on Cocoon-Users. My take on it, is that it doesn't matter in AxKit or Cocoon 1, because both use the build a DOM method. It probably matters in Cocoon 2 though. I think the C2 solution is to cache to a certain extent and hope you try and send the header early enough in the XSP file that it just works :-) But I await to be corrected on that. 3. Does any specification exists for XSP? Often it's not possible to say whether some XSP constructs do not work because of wrong usage or because of a bug in Cocoon's XSP implementation. An specification also would allow to build an XSP verifier - or does a verifier already exist? I think an XSP verifier would be very hard to write. Certainly not possible in W3C Schemas. Though perhaps possible in Schematron or RELAX. As for a spec, there is nothing formal as yet. We really need to get around to doing that. The problem though, is that with taglibs the XSP set of tags is infinite, and the way you can put them to use is also infinite. The upshot of this is just about any XML document is a valid XSP document, with the exception of items in the XSP namespace itself, which may have to appear in a certain hierarchy. -- Matt/ /||** Founder and CTO ** ** http://axkit.com/ ** file://||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in
RE: Problem building cocon 2 with tomcat 3.2.2
Marco I think that the problem is javax.naming.* : where is this packge? javax.naming is part of J2EE; you can get this from the Sun web site. Of course, this is supplied if you are running EJB in an appserver. HTH, -Scott - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Default UTF-8 vs. iso-8859-1 encoding in HTML output
I'm a relatively new to Cocoon and XSLT, but I've verified that this problem is specific at least to Cocoon 2.1-dev (from the beginning of June so forgive me if this has been fixed in the most recent CVS) by doing a comparative test using the same XML and XSL files with the Perl XML::LibXSLT module. The problem is this line in the XSL transformed HTML output: META http-equiv=Content-Type content=text/html; charset=UTF-8 Cocoon (or rather I'm guessing it might be Xalan, because I couldn't find any place to change this in the Cocoon configuration files, but I could have missed it.- I just grepped the various terms I was looking for on the Cocoon directory) insists on setting the charset to UTF-8 even when I change the output line in my XSL file: xsl:output method=html indent=yes encoding=iso-8859-1 / The Perl XML::LibXSLT module (using gnome's LibXSLT) on the other hand changes the META tags charset attribute based my changes to the xsl:output encoding attribute which seems to be the correct way to handle it. This wouldn't be that big a deal, but I'm running into a problem with applying CSS font styles in the Macintosh version of Netscape (4.75) It appears to be a problem with Netscape's support for UTF-8 (I can set font sizes, weights and other styles, but it will not display san-serif fonts when the META tag's charset attribute set to UTF-8!? The problem goes away when it's set to iso-8859-1) To see evidence of this for yourself just take a look some of he Cocoon2 examples that include an xsl:output encoding attribute in their xsl files in the Mac version of Netscape (4.7*) and compare it to Internet Explorer on the Mac or PC. Any pointers or suggestions on where to find out more about fixing or configuring this would be appreciated. Also I apologize if this is a known issue with Xalan, or if this belongs on the Xalan list rather than the Cocoon list. Thanks in advance eirik begin:vcard n:Dentz;Eirik tel;work:212-455-9830 x-mozilla-html:TRUE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;3 fn:Eirik Dentz end:vcard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default UTF-8 vs. iso-8859-1 encoding in HTML output
Hope I'm not wasting anyone's time with this, but I found the solution to my question/problem and wanted to post it for the benefit of anyone who might be struggling with this or a related issue. The answer was actually in the sitemap documentation (my apologies for not reviewing it prior to posting my question. The last time I looked at the documentation on the xml.apache.org/cocoon2/, there wasn't nearly so much there. My deepest gratitude to all those who've been working on the documentation.) I did have to make a small change to the example provided under the Serializers section of the sitemap doc. The Serializers example on the xml.apache.org/cocoon2/sitemap.html page uses the value attribute of the encoding element like this: encoding value=UTF-8/ I had to change it to: encodingiso-8859-1/encoding I also had to set the use-store element to false like this: map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storefalse/use-store While that resolved my immediate problem, my new question is how to configure Cocoon2 so it will use the xsl:output encoding attribute in my style sheet rather than having to hard set it in the sitemap? Though maybe I'm missing the point and Cocoon2's sitemap is designed to handle this? Thanks again for this amazing application and to all of those working on the documentation. eirik eirikdentz wrote: I'm a relatively new to Cocoon and XSLT, but I've verified that this problem is specific at least to Cocoon 2.1-dev (from the beginning of June so forgive me if this has been fixed in the most recent CVS) by doing a comparative test using the same XML and XSL files with the Perl XML::LibXSLT module. The problem is this line in the XSL transformed HTML output: META http-equiv=Content-Type content=text/html; charset=UTF-8 Cocoon (or rather I'm guessing it might be Xalan, because I couldn't find any place to change this in the Cocoon configuration files, but I could have missed it.- I just grepped the various terms I was looking for on the Cocoon directory) insists on setting the charset to UTF-8 even when I change the output line in my XSL file: xsl:output method=html indent=yes encoding=iso-8859-1 / The Perl XML::LibXSLT module (using gnome's LibXSLT) on the other hand changes the META tags charset attribute based my changes to the xsl:output encoding attribute which seems to be the correct way to handle it. This wouldn't be that big a deal, but I'm running into a problem with applying CSS font styles in the Macintosh version of Netscape (4.75) It appears to be a problem with Netscape's support for UTF-8 (I can set font sizes, weights and other styles, but it will not display san-serif fonts when the META tag's charset attribute set to UTF-8!? The problem goes away when it's set to iso-8859-1) To see evidence of this for yourself just take a look some of he Cocoon2 examples that include an xsl:output encoding attribute in their xsl files in the Mac version of Netscape (4.7*) and compare it to Internet Explorer on the Mac or PC. Any pointers or suggestions on where to find out more about fixing or configuring this would be appreciated. Also I apologize if this is a known issue with Xalan, or if this belongs on the Xalan list rather than the Cocoon list. Thanks in advance eirik - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:How can I make a validation !
Hi everyone, I got it, the problem was when I tried to compare with null, I don't know why Cocoon doesn't recongnize the condition if (Test !=null), could this be a bug ?, in other to make it works I change to: xsp:logic> String Test; Test = request.getParameter("EMP_DEP"); if (Test.length() !=0) { my_code } /xsp:logic> See you. Gustavo Gustavo Mejia wrote: Hi Pal, Thanks, I also tried this, with no good results, still passing to the code, that I need to skip. :( any other Idea is very wellcome !! Thanks !! Pal Wester wrote: Why not just use request.getParameter("EMP_DEP") when ur in a javablock...xsp:logic> if ( request.getParameter("EMP_DEP") != null ) { esql:connection> esql:driver>sun.jdbc.odbc.JdbcOdbcDriver/esql:driver> esql:dburl>JDBC:ODBC:SQL/esql:dburl> esql:username>user/esql:username> esql:password>password/esql:password> esql:execute-query> esql:query>insert into Departamento values( esql:parameter type="string">request:get-parameter name="EMP_CLVE"/>/esql:parameter>, esql:parameter type="string">request:get-parameter name="EMP_DEP"/>/esql:parameter> ) /esql:query> /esql:execute-query> /esql:connection> } /xsp:logic> mvh: Pl Wester hgskoleingenr/programmerer never.no as, stortingsgt 30, 0161 Oslo direkte: 22 01 66 34, 906 900 62 tlf: 22 01 66 34, fax: 22 01 66 21 http://never.no - icq:103476059
passing parameters from XML file to XML file
hi i'm trying to pass parameters from XML file to another XML file, i've checked the FAQ, but all what i found is to pass through URL,but i want to pass a lot of parameters without using URL, please i need help in how to do that, i'm using linux redhat 6.1, Cocoon 1.8.2, ApacheJServ/1.1 over Apache 1.3.11 Thanks for your help = Mohamed Ramzy Zakaria, Graduate Research student School of Computer Science Information Technology Jubilee Campus, Nottingham University Nottingham, UK TEL: 00 44 (0)115 84 66529 MOB: 00 44 (0)7947105251 MOB E-MAIL: [EMAIL PROTECTED] __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running c2 on linux with x11 for svg
Hi., Anybody, luck with running c2 from linux box..with svg...my server is complaining that it couldn't connect to display:0.0..Someone suggested to run with Xvfb..but it didnt help Anyone succeeded with this please..step-by-step details Thanks Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The sitemap handler's sitemap is not available
Hi all, I installed Tomcat 3.2.2 and Cocoon2, the Tomcat works well (http://localhost:8080) but Cocoon2 not, it gave me the error message of The sitemap handler's sitemap is not available. I did delete jaxp.jar and copied xerces-1.4.0.jar and changed parser.jar to zparser.jar as suggested. When I search the archive list, I found similar problem and suggestions was use Tomcat 4. So I installed Tomcat 4.0 beta 5. Again I changed the class path in web.xml which make servlet.jar visible to Cocoon2 in web.xml before building cocoon.war. After I run the Tomcat and Cocoon, I still got similar error message of The sitemap handler's sitemap is not available. My Linux box is Red Hat 7.1 and I installed JDK 1.3.1 and setup the JAVA_HOME and path accordingly. I actually need a server side xslt process tool. I tried AxKit since most of my code is perl but unfortunately I can not get Sablotron for I can not get http://www.gingerall.com/ for some reasons(host down?). Then I turn to Cocoon2. Look like this is not a easy task either. Anybody get a clue, Thanks a million in advance! Guangzu Here's error message from Tomcat 3.2.2 and Tomcat 4.0 beta 5. Tomcat 3.2.2 org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:178) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:95) at org.apache.cocoon.Cocoon.process(Cocoon.java:328) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Tomcat 4.0 beta 5. org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:178) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:95) at org.apache.cocoon.Cocoon.process(Cocoon.java:328) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:254) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:194) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:255) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:484)
Blue Oxygen - Cimande Project using Cocoon 1.82
Dear All, I create a content management system using XSP, the XML descriptor (I called this content descriptor) can generate HTML form, try it. It is work in several computer. I need a lot of contributor to test this. This will be a serious project for me. I need your feedback of my idea (XML based Content Management System), and may be this can contribute open source project, esp cocoon. This script support - Session. Thanks for tips in mailing list and the sample of this session. - 1 XSP with 2 XSL, I try 2 XSP, but performance drop. Still question. XSP is not component development. See my file descriptor.xsp.xml in directory xsl in my cimande.war. - Support upload, but using jspSmartUpload ( I will move to maybeupload or any opensource project -- need help also). - access to MySQL JDBC 2.04 Problem: - not support cocoon 2.1-dev, because I still cannot install cocoon 2.1-dev. Help!!! You can download the source code (free).. in my web site, in blueoxygen.org, and email me for question and problem. I need your feedback, because I still cannot used eqsl, and database polling (I create my own database layer bean). I don't know how to use Turbine in my XSP. Sorry this is not pure XSP, several of the script is still using JSP, because I still got a lot of problem, and need help to solve that. But, I think this is good sample of complex XSP. Have a nice day. Regards, Frans Thamura __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]