XSP examples not working in Cocoon 1.8.2
When I load the example /xsp/page.xml (First XSP Page and pure content version) I get the folowing error: java.lang.Exception: XSP Java Compiler: Compilation failed for _page.java error: An error has occurred in the compiler; please file a bug report http://java.sun.com/cgi-bin/bugreport.cgi). 1 error at org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java, Compiled Code) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, Compiled Code) at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code) at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) --- I am running: Apache 1.3 Cocoon 1.8.2 ApacheJServ 1.1.1 JDK 1.2.2 My classpath (jserv.properties): wrapper.bin=/usr/local/jdk1.2.2/bin/java wrapper.classpath=/usr/local/jdk1.2.2/lib/tools.jar wrapper.classpath=/var/cocoon/bin/cocoon.jar wrapper.classpath=/var/cocoon/lib/xalan_1_2_D02.jar wrapper.classpath=/var/cocoon/lib/xerces_1_2.jar wrapper.classpath=/var/cocoon/lib/w3c.jar wrapper.classpath=/var/cocoon/lib/xml.jar wrapper.classpath=/var/cocoon/lib/xt.jar wrapper.classpath=/var/cocoon/lib/stylebook-1.0-b2.jar wrapper.classpath=/var/cocoon/lib/turbine-pool.jar wrapper.classpath=/var/cocoon/lib/fesi.jar wrapper.classpath=/var/cocoon/lib/sax-bugfix.jar wrapper.classpath=/var/cocoon/lib/bsf.jar wrapper.classpath=/var/cocoon/lib/bsfengines.jar wrapper.classpath=/var/cocoon/lib/fop_0_15_0.jar wrapper.classpath=/var/cocoon/lib/mysql-connector-java-2.0.14-bin.jar All other examples work great. Any help dealing with my specific setup would be appreciated. Thanks, Marco __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon JBoss examples
Hi! Does anybody know where can I find some examples about using EJB components under JBoss from Cocoon XSP? Thanx. -- Best regards, Denis Svishchev ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon JBoss examples
Hi Denis ! Does anybody know where can I find some examples about using EJB components under JBoss from Cocoon XSP? Where is your problem ? You got all everything to call a EJB, because your just in Java Code ... get a JNDI context, find a home interface and call the bean ... Greetings Andrew __ UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VXML Examples?
Hi all. Is anyone here presently using vxml in conjunction with Cocoon on their site? Or know of anyone doing so? If so, could please show me a live site doing so? Thanks a lot. Daniel _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Call of scratchpad webservices examples using soap:call
Hi all, I'm trying to call web services from org.apache.cocoon.webservices package using AxisRPCReader. The given example of AdminService works and I try to call others services such as the Cocoon-JVM-Memory one. works: soap:call method=AdminService url=rpcrouter m:list xmlns:m=http://xml.apache.org/axis/wsdd// /soap:call doesn't work: soap:call method=Cocoon-JVM-Memory url=rpcrouter getTotalMemory soap:enc/ /getTotalMemory /soap:call It says: ns1:Server.NoService The AXIS engine could not find a target service to invoke! targetService is null Does anybody know how to call such RPC services? 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]
New Riders Cocoon book examples (CD)
I have Cocoon book written by Matthew and Carsten, but I can't find where is my CD. Not at home and not at work place. I was over 50% sure that I copied examples from CD to HDD of my old computer. But now I have only new PC and I can't find examples from backup... ;-( Is it possible to download examples from somewhere ? Happy New Year to all ! P.S: Yes, I now that not all examples works and I must read errata from http://radio.weblogs.com/0103021/categories/bookErrata/ Urmas Ojamäe Haapsalu ESTONIA - 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 beginner's question: Can't get examples to work
Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? 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: XSP beginner's question: Can't get examples to work
Hahn Kurt (CHA) wrote: Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; try insert page here xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting and /page here /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ or xsl:value-of select=./ (if not inserting page tags) instead of xsl:value-of select=greeting/ Regards. Yury. /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? 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] - 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: XSP beginner's question: Can't get examples to work
From: yuryx [mailto:[EMAIL PROTECTED]] Hahn Kurt (CHA) wrote: Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; try insert page here He does not need page here; and his XSLT does not expect it. xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting and /page here /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ or xsl:value-of select=./ (if not inserting page tags) instead of xsl:value-of select=greeting/ Regards. Yury. /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? Hahn, Do sample XSPs work for you? Check sitemap, you must use serverpages generator to process XSPs. Vadim 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: XSP beginner's question: Can't get examples to work
That didn't help (still a blank page). BTW, I believe that the page elements are already contained in the file (xsp:page) -Message d'origine- De : yuryx [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 12. août 2002 15:51 À : [EMAIL PROTECTED] Objet : Re: XSP beginner's question: Can't get examples to work Hahn Kurt (CHA) wrote: Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; try insert page here xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting and /page here /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ or xsl:value-of select=./ (if not inserting page tags) instead of xsl:value-of select=greeting/ Regards. Yury. /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? 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] - 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: XSP beginner's question: Can't get examples to work
I got them working now, I forgot to change to generate-str attribute to serverpages Thx -Message d'origine- De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 12. août 2002 16:05 À : [EMAIL PROTECTED] Objet : RE: XSP beginner's question: Can't get examples to work From: yuryx [mailto:[EMAIL PROTECTED]] Hahn Kurt (CHA) wrote: Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; try insert page here He does not need page here; and his XSLT does not expect it. xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting and /page here /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ or xsl:value-of select=./ (if not inserting page tags) instead of xsl:value-of select=greeting/ Regards. Yury. /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? Hahn, Do sample XSPs work for you? Check sitemap, you must use serverpages generator to process XSPs. Vadim 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] - 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: XSP beginner's question: Can't get examples to work
Two of them work, maybe someone can help to get the third to work: Can anybody confirm or correct the code-sample below? I'm getting no errors if I remove the processing instruction, but the processing instruction seems to cause a resource-not-found-error, although the xsl-file is located in the same subdirectory. ?xml version=1.0? ?xml-logicsheet href=logicsheet.greeting3.xsl? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:greeting=http://duke.edu/tutorial/greeting; greeting greeting:hello-world/ /greeting /xsp:page -Message d'origine- De : Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 12. août 2002 16:44 À : '[EMAIL PROTECTED]' Objet : RE: XSP beginner's question: Can't get examples to work I got them working now, I forgot to change to generate-str attribute to serverpages Thx -Message d'origine- De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 12. août 2002 16:05 À : [EMAIL PROTECTED] Objet : RE: XSP beginner's question: Can't get examples to work From: yuryx [mailto:[EMAIL PROTECTED]] Hahn Kurt (CHA) wrote: Hi, I have a fully functional Cocoon 2.02 installation, and I'm testing some features that I didn't use so far. Right now, I'm working my way through the XSP samples, but they don't work so far. For instance, this XSP (everything is directly copied from the samples) ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; try insert page here He does not need page here; and his XSLT does not expect it. xsp:logic // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = Hello, world!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting and /page here /xsp:page , processed with this XSL: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ html body h1 xsl:value-of select=greeting/ or xsl:value-of select=./ (if not inserting page tags) instead of xsl:value-of select=greeting/ Regards. Yury. /h1 /body /html /xsl:template /xsl:stylesheet should result in an HTML-page showing Hello, World, but I only get a blank page. Does anybofy know how? Hahn, Do sample XSPs work for you? Check sitemap, you must use serverpages generator to process XSPs. Vadim 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] - 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: XSP beginner's question: Can't get examples to work
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Two of them work, maybe someone can help to get the third to work: Can anybody confirm or correct the code-sample below? I'm getting no errors if I remove the processing instruction, but the processing instruction seems to cause a resource-not-found-error, although the xsl-file is located in the same subdirectory. ?xml version=1.0? ?xml-logicsheet href=logicsheet.greeting3.xsl? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:greeting=http://duke.edu/tutorial/greeting; greeting greeting:hello-world/ /greeting /xsp:page http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs p/Attic/logicsheet.xsp?rev=1.5content-type=text/vnd.viewcvs-markup URL relative to the current sitemap CAN NOT be used, as logicsheet is the global object, shared between all sitemaps. Should better be written as: Relative URL CAN NOT be used, as logicsheet is the global object, shared between all sitemaps. Vadim ... - 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]
cann't run sql examples
Hello all, I have a problem to run example cocoon with SQL database. In the : http://localhost:8080/cocoon/welcome page, if i try the simple SQL example, i become a white page. If i uncomment the execute-query in the sql-page-xml, i botain a html page (without the data). When i click on the ESQL example, it works fine : so i think my database connexion is well. What's wrong ? - 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]
SOAP examples
As far as I have seen it, the SOAP examples 'just' call SOAP functions in order to display them as HTML, XML. There's no example of using C2 as a SOAP server, isn't it? What should be done for that? Well, the easiest way to do that is to parse the envelope in an generator. This one will call an internal pipeline of the same name (or uri) as given in the method name. Is there a need for a namespace which simplifies the SOAP result xml? What do you think? Is it as easy as I think? JOERN - 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]
AW: SOAP examples
Just found the examples of Ovidiu Predescu. Sorry for that. I will hit me four times for that. -Ursprüngliche Nachricht- Von: Jörn Heid [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 11. Februar 2002 10:53 An: [EMAIL PROTECTED] Betreff: SOAP examples As far as I have seen it, the SOAP examples 'just' call SOAP functions in order to display them as HTML, XML. There's no example of using C2 as a SOAP server, isn't it? What should be done for that? Well, the easiest way to do that is to parse the envelope in an generator. This one will call an internal pipeline of the same name (or uri) as given in the method name. Is there a need for a namespace which simplifies the SOAP result xml? What do you think? Is it as easy as I think? JOERN - 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]
Help examples simples cocoon
Where I can find examples simple of paginas xml, with cocoon 1.8.2?. Where I can unload them, to analyze his I cosay source?. Where I can find a manual of cocoon 1,8,2, ojala outside in Spanish?. From already thanks for the aid. Good bye. Ivan Andrade M. Punta Arenas. Chile.MSN Photos es la manera más sencilla de compartir e imprimir sus fotos. http://photos.latam.msn.com/Support/WorldWide.aspx - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
FO: Multi - Page Tables Examples
Hi to all! The question is: is it possible to produce multi - page tables with FO? Our tables take 1 to 5 pages. Are there any good examples? Can anybody point me in the right direction? Regards and best wishes, Viktor - 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: FO: Multi - Page Tables Examples
Hi Victor, The question is: is it possible to produce multi - page tables with FO? Yes. Our tables take 1 to 5 pages. Are there any good examples? Just let the table flow ... ;) CU Harald - 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]
AW: Multi - Page Tables Examples
Yes, that is possible. We did it with cocoon and the recent FOP-Releases (although our tables usually do not span more than two pages). The Table header is automatically repeated on every page, works quite well. The reference we used is http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html But, as a limitation of FOP, you have to explicit layout all column widths exactly and put all cell values in fo:block-Elements, or you will get no correct output or no output at all. See FOP-Documentation for this limitations. Stefan -Ursprüngliche Nachricht- Von: Skladov, Victor [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Januar 2002 09:56 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: FO: Multi - Page Tables Examples Hi to all! The question is: is it possible to produce multi - page tables with FO? Our tables take 1 to 5 pages. Are there any good examples? Can anybody point me in the right direction? Regards and best wishes, Viktor - 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]
AW: FO: Multi - Page Tables Examples
Thanks, Harald! I'd like the table head to appear on every page (column headers). Apart from that, the table width varys always - one can have 1 column, the other - 30. As the tables are being produced on the fly, I never know how wide they will be. Can it be automatically adapted? Regards, Viktor -Ursprungliche Nachricht- Von: SunnyDay [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Januar 2002 09:49 An: [EMAIL PROTECTED] Betreff: Re: FO: Multi - Page Tables Examples Hi Victor, The question is: is it possible to produce multi - page tables with FO? Yes. Our tables take 1 to 5 pages. Are there any good examples? Just let the table flow ... ;) CU Harald - 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: AW: FO: Multi - Page Tables Examples
Hi Victor, first: I think this is a question for the FO-list ;) Column headers: AFAIR the table(!!!) header is automatically transfered to a new page. If you define the column names within the tableheader they are used on every new page. ... *think* .. yup (currently I'm in XSLT-mode ;) ) AFAIR the colum width has to be specified! There is(was??) no way to do that automatically, but you should be able to use a XSLT to come after that (count the columns ) CU Harald Skladov, Victor wrote: Thanks, Harald! I'd like the table head to appear on every page (column headers). Apart from that, the table width varys always - one can have 1 column, the other - 30. As the tables are being produced on the fly, I never know how wide they will be. Can it be automatically adapted? Regards, Viktor -Ursprungliche Nachricht- Von: SunnyDay [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Januar 2002 09:49 An: [EMAIL PROTECTED] Betreff: Re: FO: Multi - Page Tables Examples Hi Victor, The question is: is it possible to produce multi - page tables with FO? Yes. Our tables take 1 to 5 pages. Are there any good examples? Just let the table flow ... ;) CU Harald - 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 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]: Logicsheet examples work only partially: help needed
Hi, I'm trying to build a simple custom logicsheet with string conversion functions (sample code attached). Everything works fine as long as I pass parameters for the Java functions as attributes, but not when passing parameters as content of a custom tag. (tried this for several hours and searched the web for more info, no success) I used the docs and examples from: ...\cocoon-2.0\docs\userdocs\xsp\logicsheet-concepts.html and the [C2] Example Taglib from Gary Clark Tue, 19 Jun 2001 08:13:50 -0700 (seems to be a mailing to this list) Can anybody help ?? (Cocoon2.0 / Tomcat4.0.1 / Win2000 / JDK 1.3) Thanks, Friedrich Schuster --- xml code - ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:vstring=http://alysis.de/vstring/1.0; page --- Not OK: logicsheet:vstring content --- vstring:change s=hello odd world oldp=world vstring:param name=newp people /vstring:param /vstring:change --- OK: same function with logicsheet:vstring attributes --- vstring:change s=hello odd world oldp=world newp=people/ --- OK simple --- vstring:xRange/ vstring:msg/ --- OK xsp:logic --- xsp:logic String s2=ViolinStrings.Strings.change(hello welt,welt,old world); /xsp:logic content xsp:exprs2/xsp:expr /content /page /xsp:page xsl-Logicsheet code - ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:vstring=http://alysis.de/vstring/1.0; !-- Top level tag -- xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure // you can put lt;xsp:include statements in here to import Java classes /xsp:structure xsp:logic // put class-level variable declarations and methods here /xsp:logic xsl:apply-templates/ /xsp:page /xsl:template !-- Run initialization code or declare variables before other code runs -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template !-- vstring:change -- xsl:template match=vstring:change xsl:variable name=s xsl:call-template name=get-parameter xsl:with-param name=names/xsl:with-param xsl:with-param name=requiredtrue/xsl:with-param /xsl:call-template /xsl:variable xsl:variable name=oldp xsl:call-template name=get-parameter xsl:with-param name=nameoldp/xsl:with-param xsl:with-param name=requiredtrue/xsl:with-param /xsl:call-template /xsl:variable xsl:variable name=newp xsl:call-template name=get-parameter xsl:with-param name=namenewp/xsl:with-param xsl:with-param name=requiredtrue/xsl:with-param /xsl:call-template /xsl:variable xsl:variable name=start xsl:call-template name=get-parameter xsl:with-param name=namestart/xsl:with-param xsl:with-param name=requiredfalse/xsl:with-param /xsl:call-template /xsl:variable xsl:variable name=maxChanges xsl:call-template name=get-parameter xsl:with-param name=namemaxChanges/xsl:with-param xsl:with-param name=requiredfalse/xsl:with-param /xsl:call-template /xsl:variable xsl:variable name=ignoreCase xsl:call-template name=get-parameter xsl:with-param name=nameignoreCase/xsl:with-param xsl:with-param name=requiredfalse/xsl:with-param /xsl:call-template /xsl:variable !-- non-Strings not implemented! -- !-- tbd: konvertierung andere Var-Typen, Konvertierung spec.Chars ?? -- xsp:logic String vs=ViolinStrings.Strings.change( xsl:copy-of select=$s/, xsl:copy-of select=$oldp/, xsl:copy-of select=$newp/ ); /xsp:logic xsp:exprvs/xsp:expr /xsl:template !-- This is the simple vstring: tag -- xsl:template match=vstring:msg Test message /xsl:template xsl:template match=vstring:xRange xsp:logic String s1=ViolinStrings.Strings.xRange('a','d'); /xsp:logic content xsp:exprs1/xsp:expr /content /xsl:template !-- Utility templates -- !-- -- !-- DO NOT TOUCH -- !-- -- !-- Keep all unknown tags -- xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template !-- START: util templates from Apache Cocoon Logicsheet Concepts -- xsl:template name=get-parameter xsl:param name=name/ xsl:param name=default/ xsl:param name=requiredfalse/xsl:param xsl:variable name=prefix vstring /xsl:variable xsl:variable name=qname xsl:value-of select=concat($prefix, ':param')/ /xsl:variable xsl:choose xsl:when test=@*[name(.) = $name] xsl:value-of select=@*[name(.) = $name]/ /xsl:when xsl:when test=(*[name(.) = $qname])[@name = $name] xsl:call-template name=get
Examples Cocoon 1.8.2
Hello to all. When loading the cocoon examples that are in the directory ESQL.Before anything else not and been able to install Postgresql v.7.1.3, when adding him the option: . / configure --with-java for later instarlar the jdbc. It shows me the following error: Ant es required to build Java Components. But do I when installing Tomcat already install the jakarta-ant, or is it necessary to install it again? That it is necessary to modify to the package? From Already Thank you for the help. Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Examples Cocoon 1.8.2
Ivan: Asegurate que ant esta en tu classpath antes de instalar los ejemplos. Parece que el problem es que el programa no puede encontrar Ant asi que te dice que lo instales. Si es posible manda los errores que aparence en pantalla -- English Translation Make sure that ant is in your classpath before installing the samples. It looks like the install program can't find ant so it's telling you to install it. If it's possible send the errors that are output to your screen Carlos On Sunday, December 9, 2001, at 07:16 AM, Ivan Manuel Andrade Muñoz wrote: Hello to all. When loading the cocoon examples that are in the directory ESQL.Before anything else not and been able to install Postgresql v.7.1.3, when adding him the option: . / configure --with-java for later instarlar the jdbc. It shows me the following error: Ant es required to build Java Components. But do I when installing Tomcat already install the jakarta-ant, or is it necessary to install it again? That it is necessary to modify to the package? From Already Thank you for the help. Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com
Re: Examples Cocoon 1.8.2
seta nt home in the enviornment vairables and then run the ommnad.Since u r running the commend with java so u need ant for compiling essential java classes - Original Message - From: Ivan Manuel Andrade Muñoz To: [EMAIL PROTECTED] Sent: Sunday, December 09, 2001 8:46 PM Subject: Examples Cocoon 1.8.2 Hello to all. When loading the cocoon examples that are in the directory ESQL.Before anything else not and been able to install Postgresql v.7.1.3, when adding him the option: . / configure --with-java for later instarlar the jdbc. It shows me the following error: Ant es required to build Java Components. But do I when installing Tomcat already install the jakarta-ant, or is it necessary to install it again? That it is necessary to modify to the package? From Already Thank you for the help. Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Examples Cocoon 1.8.2
download the driver for Postgresql from jdbc.postgresql.org and put it in the classpath and then try - Original Message - From: Ivan Manuel Andrade Muñoz To: [EMAIL PROTECTED] Sent: Saturday, December 01, 2001 10:29 PM Subject: Examples Cocoon 1.8.2 Hello to all. When loading the cocoon examples that are in the directory ESQL, when executing esql.xml shows me the following error: Error loading driver.org.postgresql.Driver:java.lang.RuntimeException: ... That I have to make to see these examples? As I solve these problems? From already thank you, for their help. Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>
Examples Cocoon 1.8.2
Hello to all. When loading the cocoon examples that are in the directory ESQL, when executing esql.xml shows me the following error: Error loading driver.org.postgresql.Driver:java.lang.RuntimeException: ... That I have to make to see these examples? As I solve these problems? From already thank you, for their help.Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Examples Cocoon 1.8.2
Hello to all. When loading the cocoon examples that are in the directory ESQL, when executing esql.xml shows me the following error: Error loading driver.org.postgresql.Driver:java.lang.RuntimeException: ... That I have to make to see these examples? As I solve these problems? From already thank you, for their help.Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Examples Cocoon 1.8.2
Title: Re: Examples Cocoon 1.8.2 Do you have the DBs JDBC drivers on your lib directory or your classpath? A search on google gave me this website to start searching: http://jdbc.postgresql.org/ From: Ivan Manuel Andrade Muoz [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 01 Dec 2001 13:59:20 -0300 To: [EMAIL PROTECTED] Subject: Examples Cocoon 1.8.2 Hello to all. When loading the cocoon examples that are in the directory ESQL, when executing esql.xml shows me the following error: Error loading driver.org.postgresql.Driver:java.lang.RuntimeException: ... That I have to make to see these examples? As I solve these problems? >From already thank you, for their help. Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com http://go.msn.com/bql/hmtag_itl_ES.asp - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail:
Re: More Examples plea
Dear Alex I suggest that you create one XML Document per novellist and one XML Document per photo. Then you use XInclude or XLink to connect the novellist XML with the corresponding photos. There is an XInclude Transformer shipped with Cocoon2. Concerning CMS (Content Management System) you have to wait till X'mas. All the best Michael Alex McLintock wrote: Hi folks, This is a plea for more simple examples of how and when to use Cocoon. I've gone through the documentation for 2.0rc2 and get most of the details - I think. I have for example taken the slashdot news example and created a new page which displays news from my slashcode site http://news.DiverseBooks.com/diversebooks.xml What I'm missing is the big picture. For instance I'm a bit worried by Cocoon's lack of a content management system so that document authors can add documents to the system in a structured and traceable way, but I suppose a separate one could be bolted on and use the file system as the interface between the two systems Anyway Take for example my problem which I am using to learn Cocoon. I have a bunch of photos of novelists which I am turning into a website and hopefully pdf booklet. (I am doing this for a literary non-profit organisation so do volunteer help :-) I have very little data at the moment other than the picture, location, approx date photo taken, who took the photo, copyright holder (typically the photographer), but in the future I'd like to link to a bibliographic database, link to reviews of their work (some of which are on my sites, but may also involve a wider list of reviews elsewhere) and so on. It seems natural to me to put all this info in an xml file, or files (plural) so that I can use xsl/xslt to create html pages, and fo/pdf pages for each author. My problem now is how to best structure this info. A lot of the info is specific to the photo - and at the moment I only have one photo per novelist. If I stick to one photo per novelist and one xml file per photo, I then have one xml file per page and I believe I can set this up in Cocoon2 with some fiddling of the sitemap file and one or two xsl files in the pipeline. But is that the right way about it? Should all the info be in seperate xml files or just one big one? (That would be harder on the sax parser presumably). How do I cope with the situation where I have more than one photo of the same novelist? Should I have xml files for each novelist, and xml files for each photo and use *both* of them in FileGenerators to create a page? How do I list the pages available? Would I have to create a separate list in a database or is there an easy way of indexing all the xml files presumably if there was just one xml database it would be easy to list all the novelists Newbie advice welcome. Alex McLintock - 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: More Examples plea
Hi, Dear Alex I suggest that you create one XML Document per novellist and one XML Document per photo. Then you use XInclude or XLink to connect the novellist XML with the corresponding photos. There is an XInclude Transformer shipped with Cocoon2. Concerning CMS (Content Management System) you have to wait till X'mas. what do you mean with until X'max. Is there a CMS in development for C2? best regards Max - 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: More Examples plea
Concerning CMS (Content Management System) you have to wait till X'mas. what do you mean with until X'max. Is there a CMS in development for C2? What about: http://webeditor.sourceforge.net Did you try it? * Tomás Espeleta - http://www.digival.es * * Those who know don't talk. * Those who talk don't know. - 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: More Examples plea
Yes, there is a CMS in development for C2, but you have to wait till X'mas (December 24-25, 2001). All the best Michael what do you mean with until X'max. Is there a CMS in development for C2? best regards Max - 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: More Examples plea
Michael Wechner wrote: Yes, there is a CMS in development for C2, but you have to wait till X'mas (December 24-25, 2001). Hey, that's not fair, I won't wait until then. Please enlighten us or just give us a hint. Are you refering to xps? Carsten All the best Michael what do you mean with until X'max. Is there a CMS in development for C2? best regards Max - 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 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: More Examples plea
Yes, it is a refactored XPS based on Cocoon2. We wanted to get a few things done before we release it. The plan is the following: -Writing an Authenticator- and Authorizer-Action which are calling the AccessController of XPS. -Rebuilding the URL-space within Cocoon2: Authoring, Staging, Production/Live -Writing Read- and Write-Actions for the editors Xopus and HTMLFormEditor, which are calling the RevisionController of XPS -Writing something to connect to the WorkflowManager -Creating a nice sample publication (NYTIMES) and a tutorial how to create your own publication. By the way: Where do I set the flag for automatic class reloading for classes within webapps/cocoon/WEB-INF/classes ??? Thanks a lot Michael Carsten Ziegeler wrote: Michael Wechner wrote: Yes, there is a CMS in development for C2, but you have to wait till X'mas (December 24-25, 2001). Hey, that's not fair, I won't wait until then. Please enlighten us or just give us a hint. Are you refering to xps? Carsten All the best Michael what do you mean with until X'max. Is there a CMS in development for C2? best regards Max - 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 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]
More Examples plea
Hi folks, This is a plea for more simple examples of how and when to use Cocoon. I've gone through the documentation for 2.0rc2 and get most of the details - I think. I have for example taken the slashdot news example and created a new page which displays news from my slashcode site http://news.DiverseBooks.com/diversebooks.xml What I'm missing is the big picture. For instance I'm a bit worried by Cocoon's lack of a content management system so that document authors can add documents to the system in a structured and traceable way, but I suppose a separate one could be bolted on and use the file system as the interface between the two systems Anyway Take for example my problem which I am using to learn Cocoon. I have a bunch of photos of novelists which I am turning into a website and hopefully pdf booklet. (I am doing this for a literary non-profit organisation so do volunteer help :-) I have very little data at the moment other than the picture, location, approx date photo taken, who took the photo, copyright holder (typically the photographer), but in the future I'd like to link to a bibliographic database, link to reviews of their work (some of which are on my sites, but may also involve a wider list of reviews elsewhere) and so on. It seems natural to me to put all this info in an xml file, or files (plural) so that I can use xsl/xslt to create html pages, and fo/pdf pages for each author. My problem now is how to best structure this info. A lot of the info is specific to the photo - and at the moment I only have one photo per novelist. If I stick to one photo per novelist and one xml file per photo, I then have one xml file per page and I believe I can set this up in Cocoon2 with some fiddling of the sitemap file and one or two xsl files in the pipeline. But is that the right way about it? Should all the info be in seperate xml files or just one big one? (That would be harder on the sax parser presumably). How do I cope with the situation where I have more than one photo of the same novelist? Should I have xml files for each novelist, and xml files for each photo and use *both* of them in FileGenerators to create a page? How do I list the pages available? Would I have to create a separate list in a database or is there an easy way of indexing all the xml files presumably if there was just one xml database it would be easy to list all the novelists Newbie advice welcome. Alex McLintock - 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: Request Generator examples
Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; xsl:template match=/ html head titleRequest Test/title /head body bgcolor=#ff h1Request Test/h1 xsl:apply-templates/ /body /html /xsl:template xsl:template match=request:requestHeaders h3Request Headers/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:requestParameters h3Request Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:configurationParameters h3Configuration Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:header lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template xsl:template match=request:parameter lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template /xsl:stylesheet Hope it helps. Lajos galatea.com Luca Morandini wrote: Folks, has any of you been able to use Request Generator ? I tried hard to extract parameters (say, the host name) from a request generator's result via XSL... to no avail: has anyone had more luck (or expertise) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - 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: Request Generator examples
Lajos, thanks for you reply. Actually, my error was not putting the namespace tag request: in front of my XPatch elements. Since I've put it into the stylesheet header I, wrongly, supposed it ot be redundant. Hence, I've transformed: xsl:template name=get-request-parameter xsl:param name=name/ xsl:value-of select=/page/all-parameters/request/requestParameters/parameter[@name=$name ]/value/ /xsl:template which didn't work, to: xsl:template name=get-request-parameter xsl:param name=name/ xsl:value-of select=/page/all-parameters/request:request/request:requestParameters/reque st:parameter[@name=$name]/request:value/ /xsl:template which works :) Thanks again, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Re: Request Generator examples Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; xsl:template match=/ html head titleRequest Test/title /head body bgcolor=#ff h1Request Test/h1 xsl:apply-templates/ /body /html /xsl:template xsl:template match=request:requestHeaders h3Request Headers/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:requestParameters h3Request Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:configurationParameters h3Configuration Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:header lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template xsl:template match=request:parameter lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template /xsl:stylesheet Hope it helps. Lajos galatea.com Luca Morandini wrote: Folks, has any of you been able to use Request Generator ? I tried hard to extract parameters (say, the host name) from a request generator's result via XSL... to no avail: has anyone had more luck (or expertise) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - 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 the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JPEG and PNG examples
Hi all, Can anyone provide an example of a working svg2jpeg and/or svg2png transformation? I have what looks right, cocoon isn't giving any errors. but nothing useful is arriving at the client. No examples included with cocoon but I'm hoping that someone would have tried this by now. Thanks in advance. Phil - 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]
Where is the database for the sql examples in the example Cocoon App
Hi Can someone please tell me where the database is which is used in the example Cocoon Application. The one which is used in the Simple SQL ESQL and Protected Area examples. I gather the database engine is hsqldb.jar, but I cannot find the data which the examples seem to access. Cheers Tony - 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]
esql logicsheet, insert, update and delete, examples
Hi, does anybody have any examples where you insert, update and delete records in databases, using xsp and esql logicsheet? /AM - 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: esql logicsheet, insert, update and delete, examples
I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) does anybody have any examples where you insert, update and delete records in databases, using xsp and esql logicsheet? - 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: esql logicsheet, insert, update and delete, examples
- Original Message - From: JEULIN Olivier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 3:43 PM Subject: RE: esql logicsheet, insert, update and delete, examples I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) I would does anybody have any examples where you insert, update and delete records in databases, using xsp and esql logicsheet? - 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] --- Ausgehende Mail ist zertifiziert virenfrei. Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de). Version: 6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 2001-07-18 - 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: esql logicsheet, insert, update and delete, examples
I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) I would OK, then: this an old file I made to test something in the xml fragment I read from the DB, and I've changed a few things between the working version and this one. It's a kind of draft, so don't take it too seriously Anyway, the queries were OK when I first tested this file, and that's what you're looking for. Olivier ?xml version=1.0 encoding=iso-8859-1? ?cocoon-process type=xinclude? ?cocoon-process type=xsp? ?xml-logicsheet href=xsp/fragmentation-xsp.xsl/? ?cocoon-process type=xslt? ?xml-stylesheet href=xsl/page.xsl type=text/xsl? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:auth=http://ulim.cocoonhost.com/auth; xmlns:request=http://www.apache.org/1999/XSP/Request; xmlns:session=http://www.apache.org/1999/XSP/Session; xmlns:foo=http://localhost/foo; xmlns:common=http://localhost/common; xmlns:fragmentation=http://localhost/fragmentation; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:util=http://www.apache.org/1999/XSP/Util; xmlns:xinclude=http://www.w3.org/1999/XML/xinclude; xsp:structure xsp:includelocalhost.basket.Basket/xsp:include /xsp:structure xsp:logic public Basket basket; /xsp:logic foo:page include xinclude:parse=xml xinclude:href=authentication-header.xml / xsp:attribute name=xml:langsession:get-attribute name='lang' //xsp:attribute xsp:attribute name=foo:descriptionxsp:expr(Boolean)session:get-attribute name='description' //xsp:expr/xsp:attribute xsp:attribute name=foo:promotionxsp:expr(Boolean)session:get-attribute name='promotion' //xsp:expr/xsp:attribute foo:frag-page xsp:logic if (request:get-parameter name=fragID/ != null) { if (request:get-parameter name=quantity/ != null ![CDATA[]] request:get-parameter name=product/ != null ![CDATA[]] request:get-parameter name=price/ != null ![CDATA[]] request:get-parameter name=promo/ != null ) { try { if (Integer.parseInt((String)request:get-parameter name=quantity/) 0) { // nouvelle commande de ce produit if (session:get-attribute name=basket/ == null) { basket = new Basket(5); } else { basket = (Basket)session:get-attribute name=basket/; } float promo; try { promo = Float.parseFloat((String)request:get-parameter name=promo/); } catch (NumberFormatException exc) { promo = Float.parseFloat((String)request:get-parameter name=price/); } basket.addProduct( Integer.parseInt((String)request:get-parameter name=fragID/), (String)request:get-parameter name=product/, Integer.parseInt((String)request:get-parameter name=quantity/), Float.parseFloat((String)request:get-parameter name=price/), promo ); session:set-attribute name='basket'xsp:exprbasket/xsp:expr/session:set-attribute; !-- esql:connection esql:poolfoo/esql:pool esql:execute-query esql:query replace into basket (user,idtitle, reference, quantity) values ('session:get-attribute name=user /', xsp:exprInteger.parseInt((String)request:get-parameter name=fragID/)/xsp:expr, 'request:get-parameter name=product/', request:get-parameter name=quantity/) /esql:query /esql:execute-query /esql:connection -- } else { // supprime la commande de ce produit !--
Examples
Does anyone have a simple example using Cocoon to create a PDF file for display in a browser from a dynamically created XML document? In the past I have created a dynamic XML document, processed it using a static XSL document using a custom servlet which explicitly named the processor to transform the XML. I am not sure how to use Cocoon to transform my dynamic documents. I have installed Cocoon 2 and integrated it with Resin2.0. Now how to I use Cocoon in my existing application to create new PDF reports? This is a large request, but I just can not seem to get all the pieces to come together. Thanks again, Joy - 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: Yeah, we need (Examples )
Anyone that could supply a short but sweet example for c2, I would also appreciate it! kb --- [EMAIL PROTECTED] wrote: Does anyone have a simple example using Cocoon to create a PDF file for display in a browser from a dynamically created XML document? In the past I have created a dynamic XML document, processed it using a static XSL document using a custom servlet which explicitly named the processor to transform the XML. I am not sure how to use Cocoon to transform my dynamic documents. I have installed Cocoon 2 and integrated it with Resin2.0. Now how to I use Cocoon in my existing application to create new PDF reports? This is a large request, but I just can not seem to get all the pieces to come together. Thanks again, Joy - 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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.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]
AW: XSP/ESQL Examples
Take a look at the attached Cocoon 2 XSP Page. It uses multiple nested queries with case switching, custom ordering etc. I'm not sure if its used as intended from the xsp developers, but it fits perfectly to my problem. -Ursprüngliche Nachricht- Von: Matt Sabourin [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 21. Juni 2001 19:12 An: [EMAIL PROTECTED] Betreff: XSP/ESQL Examples I didn't get any responses to my earlier mail, so I'll try a different route. Can anyone point me to some websites that have examples of XSP/ESQL beyond those provided with Cocoon? Is anyone using this combination on a large scale? I'm specifically looking for some examples with multiple queries, passing data between queries, etc. Does anyone have any comments about Oracle's XSQL / XML products? Good, bad, easy to use, not worth it? tnx -m rs_rubrik.zip - 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]
XSP/ESQL Examples
I didn't get any responses to my earlier mail, so I'll try a different route. Can anyone point me to some websites that have examples of XSP/ESQL beyond those provided with Cocoon? Is anyone using this combination on a large scale? I'm specifically looking for some examples with multiple queries, passing data between queries, etc. Does anyone have any comments about Oracle's XSQL / XML products? Good, bad, easy to use, not worth it? tnx -m == Matt Sabourin Voice: 313.845.2529 Systems EngineerFax: 313.317.6060 Structural Dynamics Research Corp. Pager: 313.201.7741 1555 Fairlane Dr., Suite 300Email: [EMAIL PROTECTED] Allen Park, MI 48101 AlphaPage: [EMAIL PROTECTED] AlphaPage: http://www.myairmail.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]