Working Systems
We' ve installed Cocoon under the following environment: Operating System:Solaris7 (SPARC) Web Server: Apache 1.3.20 Servlet Engine: Tomcat 3.2.1 JVM: JDK 1.2.1 Greetings Patrick _ Patrick Breitenbach Tel:+49-931-45229-32 PASS ConsultingFAX:+49-931-45229-900 Application Development GmbH WWW:www.pass-consulting.com Max-Planck-Straße 13 Mobil: +49-170 8057447 97204 Hoechberg EMail: [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: Using auth taglib
Sorry I'm not very expert with Java: How do you encode session params as request params? Read the servlet API and look for request.getParameter, request parameters are what comes after a regular URL, for example www.domain.com/index.xml?param=value I made the wrong question. I know what is request.getParameter, and what are request parameters. But my problem is that: the values of auth:group and auth:role are stored in a database, how can I do to make them usable from my XSL file? Thanks, Ciao Matteo cheers, Ulrich - 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 getting started
Hi no Im not, because I only copied the war file to tomcat_home/webapps/cocoon.war there is no tomcat_home/webapps/cocoon Do I have to create it ? Sorry, but I only worked with C1 and JServ before. daniel --- Luca Morandini [EMAIL PROTECTED] schrieb: Dnaiel, Are you sure you're editing the files contained in tomcat_home/webapps/cocoon/ ? Hi as I reported I was happy to be able to install Cocoon2. I did this using the instructions on the Cocoon site. For getting in touch with the new architecture of it I tried to change/edit some of the given examples. I was wandering because nothing happens. If I restart Tomcat and recall der cocoon url the sites look like before. :-( what am I doing wrong? I only changed some entries in stylesheets. I'm sure that this has to change the appearance of the samples-site, but it wont. installing Cocoon I build the war-file and copied it as instructed by the manual to TOMCAT_HOME/webapps. do I have to do this everytime I change something in my code? it would be very kind of you helping me .. 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]
Cocoon with Ldap
When i try to acces Ldap Server , it gives me this error Wed Jun 13 15:57:57 GMT+05:30 2001:I ServletContext-General *.xml: initException: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'o=ireason.com,uid=rdesantis,ou=people'using renderer org.apache.fop.render.pdf.PDFRendererusing element mapping org.apache.fop.fo.StandardElementMappingusing element mapping org.apache.fop.svg.SVGElementMappingbuilding formatting object treesetting up fontsformatting FOs into areas[1]rendering areas to PDFwriting out PDF with this code ldap-defsldap-server name="ireason.com"initializercom.sun.jndi.ldap.LdapCtxFactory/initializerldap-serverurlldap://reason2.ireason.com:389//ldap-serverurl/ldap-serverldap-querydefs name="standard" default="yes"//ldap-defsldap-query server="ireason.com" ldap-searchbase="o=ireason.com,uid=rdesantis,ou=people" defs="standard"msisdnlist=* /ldap-query what does this msisdnlist stands for ? whereas this data i get when i run java program to get ldap details uid=rdesantis, ou=people, o=ireason.comfirstname = Robertlastname = DeSantisuid = RDeSantislocation = san jose.california.us.northamericarole = nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 408.393.4341pager = 408.393.4341fax = 408.555.1212
Fw: Cocoon with Ldap
- Original Message - From: Janesh Vasudeva Sent: Wednesday, June 13, 2001 4:13 PM Subject: Cocoon with Ldap When i try to acces Ldap Server , it gives me this error Wed Jun 13 15:57:57 GMT+05:30 2001:I ServletContext-General *.xml: initException: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'o=ireason.com,uid=rdesantis,ou=people'using renderer org.apache.fop.render.pdf.PDFRendererusing element mapping org.apache.fop.fo.StandardElementMappingusing element mapping org.apache.fop.svg.SVGElementMappingbuilding formatting object treesetting up fontsformatting FOs into areas[1]rendering areas to PDFwriting out PDF with this code ldap-defsldap-server name="ireason.com"initializercom.sun.jndi.ldap.LdapCtxFactory/initializerldap-serverurlldap://reason2.ireason.com:389//ldap-serverurl/ldap-serverldap-querydefs name="standard" default="yes"//ldap-defsldap-query server="ireason.com" ldap-searchbase="o=ireason.com,uid=rdesantis,ou=people" defs="standard"msisdnlist=* /ldap-query what does this msisdnlist stands for ? whereas this data i get when i run java program to get ldap details uid=rdesantis, ou=people, o=ireason.comfirstname = Robertlastname = DeSantisuid = RDeSantislocation = san jose.california.us.northamericarole = nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 408.393.4341pager = 408.393.4341fax = 408.555.1212
SV: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor
Is this correctly understood? -- Dreamweaver creates HTML like this: table cellspacing=2 trtdmy:dynaimcContentName//tdtdmy:dynaimcContentPhone//td/tr /table And your XSLT render this to something like: table cellspacing=2 trtdPaul/tdtd/td/tr trtdAnn/tdtd3332/td/tr .. /table How do you do that? Gets the parents and so I XSLT? - You wrote: ..but this changes with C2) which calls application logic Java code either directly through xsp:logic or using specialized logicsheets. C1 calls application logic in Java directly doesnt it? It is possible to have your own logicsheets in C1 so I really does not understand the difference here? I know the sitemap can centralize Processing Instructions (PI) in C2 and that is not possible in C1 and that can give a better separation. But that has nothing to do with what your are writing. - You also wrote: We also have an XML persistence engine that hides SQL/LDAP/files/Whatever for data access. What is an XML persistence engine? Hides the filename in the URL, or? Well please tell more about this PS: I really like hearing how you made the separation. The reason why I am so interested in the separation is that I am writing the last paper in my education and the subject is separation between layers in webapplications. 3 years ago I worked in a webfirm that mixed the layers and that was a big problem then. I think the problem still remains in a lot of companyes you are the only one I have ever head about that seems to have accomplished this. I agree (se below) to you why the layers should be separate. Another reason for having the layers separate is that you can substitute one or two layers and you have a new application that should suits a new customer. Are you doing that? Thank you ones again :-) /Bjarne -Oprindelig meddelelse- Fra: Sylvain Wallez [mailto:[EMAIL PROTECTED]] Sendt: 13. juni 2001 11:56 Til: [EMAIL PROTECTED] Emne: Re: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor Bjarne Jensen a écrit : Well that sounds really interesting congratulations :-) So by maintaining the website like this you have a separation between layout and content. What about seperation between content and program-logic have you also accomplished this? Are there any need for that? Content is generated by XSPs (which was the main way of doing it with Cocoon1, but this changes with C2) which calls application logic Java code either directly through xsp:logic or using specialized logicsheets. We also have an XML persistence engine that hides SQL/LDAP/files/Whatever for data access. This leads to true presentation/logic/persistence separation. And then another question. What if you compute a table (so that you don't know how long it would be) is this also maintained in Dreamweaver or do you have the HTML that makes the TABLE inside the XSLT in that situation? I cant figure out how to maintain a table like this in Dreamweaver only in XSLT. Among our specialized tags, some are structure-oriented. The designer just has to mark the table with the data collection he wants to display, and this generates an xsl:foreach in the resulting XSL, adding rows as necessary and feeding cells with live data (this works not only with tables, but with any repetivite structure : lists, paragraphs, popups, etc). The main ideas behind all this are : - web pages, even if dynamic, should be editable by a web designer (with no programming skills) - turning a static page into a dynamic one shouldn't be destructive : in JSP/ASP/PHP, data access code replaces example data that the designer has put in the page during the design. With our approach, markup identifying the data surrounds (tags) or marks (attributes) the static example data. The benefits are that you can always show your dynamic pages as static ones (just send a bunch of HTML files to your customer to show him what his app looks like) and that a web designer can update the pages with his favorite tool even if they're dynamic (easy maintenance). Thank you very much for your comment :-) WYSIWYG editing is IMO the main feature that's missing for XML/XSL to spread the whole web industry. That's what we're trying to do. /Bjarne -- 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] - 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: EJB, Cocoon, transaction management - need help for overview
Hi I don't know how cocoon helps in transaction management, but i know how you attain it using jboss. In jboss, you include it as part of the deployment descriptor. ramesh Original Message Follows I dont know much about EJB but I have read that EJB has transaction management, distributed transactions, and support for mission-critical applications. My question is how does this fit with Cocoon? Are you putting Cocoon on top of your EJB-application for cache-use and for converting to the format desired. Or can you put most of your program-logic in Cocoon and really dont need EJB? Are there any transaction control in Cocoon? Do you only use Cocoon if you dont need transaction management/control or doesnt the technologies fit together - because it would be to slow or so? Has anyone tried this and made it work well? Thanks for any help that would clear my view of EJB and Cocoon. /Bjarne - 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] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]
SV: EJB, Cocoon, transaction management - need help for overview
Thanks for your reply. So the technologies fits together and preforms ok for practically use? Do you know of any articles or a link that would help me understand how it would be correct to use EJB and Cocoon together? /Bjarne -Oprindelig meddelelse- Fra: RameshBabu R Muthuvel [mailto:[EMAIL PROTECTED]] Sendt: 13. juni 2001 13:04 Til: [EMAIL PROTECTED] Emne: Re: EJB, Cocoon, transaction management - need help for overview Hi I don't know how cocoon helps in transaction management, but i know how you attain it using jboss. In jboss, you include it as part of the deployment descriptor. ramesh Original Message Follows I dont know much about EJB but I have read that EJB has transaction management, distributed transactions, and support for mission-critical applications. My question is how does this fit with Cocoon? Are you putting Cocoon on top of your EJB-application for cache-use and for converting to the format desired. Or can you put most of your program-logic in Cocoon and really dont need EJB? Are there any transaction control in Cocoon? Do you only use Cocoon if you dont need transaction management/control or doesnt the technologies fit together - because it would be to slow or so? Has anyone tried this and made it work well? Thanks for any help that would clear my view of EJB and Cocoon. /Bjarne - 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] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] - 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: Maintaining Cocoon-layout in WYSIWYG-HTML-editor
Bjarne Jensen a écrit : Is this correctly understood? -- Dreamweaver creates HTML like this: table cellspacing=2 trtdmy:dynaimcContentName//tdtdmy:dynaimcContentPhone//td/tr /table And your XSLT render this to something like: table cellspacing=2 trtdPaul/tdtd/td/tr trtdAnn/tdtd3332/td/tr .. /table How do you do that? Gets the parents and so I XSLT? In your example, static example data is replaced by dynamic markup, which is precisely what we wanted to avoid. The augmented html rather looks like this (the datamodel namespace identifies markup related to the application data model). table tr datamodel:for-each=Person tddatamodel:value-of select=NamePaul/datamodel:value-of/td tddatamodel:value-of select=Phone3/datamodel:value-of/td /tr /table Put this in a web browser, and it will be rendered correctly with example data, even if it's in fact a dynamic page ! - You wrote: ..but this changes with C2) which calls application logic Java code either directly through xsp:logic or using specialized logicsheets. C1 calls application logic in Java directly doesnt it? It is possible to have your own logicsheets in C1 so I really does not understand the difference here? No actual difference since a logicsheet always finally gets translated to Java code. We use logicsheets for commonly used features while xsp:logic is used in non-reusable specific needs. I know the sitemap can centralize Processing Instructions (PI) in C2 and that is not possible in C1 and that can give a better separation. But that has nothing to do with what your are writing. Well, it has in a certain way : in C1, the fact that an XSP decides (through PI's) how it is to be rendered is mixing of concerns. With C2's sitemap, you can use a single XSP file to produce content that gets rendered differently (html, wml, pdf, excel, svg, etc) depending on the sitemap-defined context. - You also wrote: We also have an XML persistence engine that hides SQL/LDAP/files/Whatever for data access. What is an XML persistence engine? A component that allows XML data to be read/write/queried in any target persitence mechanism for which we have written an implementation (files, SQL db, LDAP directories, etc). The application doesn't have to know _how_ data is stored. Hides the filename in the URL, or? Well please tell more about this PS: I really like hearing how you made the separation. The reason why I am so interested in the separation is that I am writing the last paper in my education and the subject is separation between layers in webapplications. 3 years ago I worked in a webfirm that mixed the layers and that was a big problem then. I think the problem still remains in a lot of companyes you are the only one I have ever head about that seems to have accomplished this. I agree (se below) to you why the layers should be separate. Another reason for having the layers separate is that you can substitute one or two layers and you have a new application that should suits a new customer. Are you doing that? Yep, separation is a big win in that domain. Some real-life examples : - during the development of a project, the customer (which was providing the database structure) decided to switch from SQLServer to Oracle and change the database model to correct some design flaws of the initial DB (information redundancy, unnecessary join tables and the like). Since we had designed a datamodel according to the application needs and not as a copy of the DB structure, switching to the new DB structure was just a matter of rewriting the datamodel/SQL mapping (a few days), without touching a single line in application code and presentation. - we've built some generic applications in the area of human resources and project management. Just as in the previous example, these are built according an application data model, and not a DB model. Adapting the application to the customer environment is just a matter of persistance configuration (fetch user information from LDAP/Files/SQL tables/..., store data in Oracle/Informix/Access/...) and graphic layout to adapt to the customer's graphic standard. No application change. Thank you ones again :-) /Bjarne -- 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]
PDF generation
Sample files provided by cocooon itself. it just shows blank screen with no data in it. Pls let me know janesh ?xml version=1.0 encoding=UTF-8 standalone=yes? ?xml-stylesheet href=novel-fo.xsl type=text/xsl? ?cocoon-process type=xslt? novel front titleThe Heart of Darkness/title authorJoseph Conrad/author revision-list item Abbreviated and inlined as Cocoon example 6/5/1999 by [EMAIL PROTECTED] /item item XML version 30 November 1997 by David Megginson, [EMAIL PROTECTED] (still needs to be proofread against the printed edition). /item item TEI markup added April 1995 by David Megginson, [EMAIL PROTECTED] /item item Corrections to typos made 6/22/94 by [EMAIL PROTECTED] /item item Original etext came from the Online Book Initiative (OBI) via the Internet Wiretap [obi/Joseph.Conrad/heart.of.darkness.txt] /item /revision-list /front body chapter id=chapt01 titleI/title paragraphThe Nellie, a cruising yawl, swung to her anchor without a flutter of the sails, and was at rest. The flood had made, the wind was nearly calm, and being bound down the river, the only thing for it was to come to and wait for the turn of the tide./paragraph paragraphThe sea-reach of the Thames stretched before us like the beginning of an interminable waterway. In the offing the sea and the sky were welded together without a joint, and in the luminous space the tanned sails of the barges drifting up with the tide seemed to stand still in red clusters of canvas sharply peaked, with gleams of varnished spirits. A haze rested on the low shores that ran out to sea in vanishing flatness. The air was dark above Gravesend, and farther back still seemed condensed into a mournful gloom, brooding motionless over the biggest, and the greatest, town on earth./paragraph paragraphThe Director of Companies was our captain and our host. We four affectionately watched his back as he stood in the bows looking to seaward. On the whole river there was nothing that looked half so nautical. He resembled a pilot, which to a seaman is trustworthiness personified. It was difficult to realize his work was not out there in the luminous estuary, but behind him, within the brooding gloom./paragraph paragraphBetween us there was, as I have already said somewhere, the bond of the sea. Besides holding our hearts together through long periods of separation, it had the effect of making us tolerant of each other's yarns mdash; and even convictions. The Lawyer mdash; the best of old fellows mdash; had, because of his many years and many virtues, the only cushion on deck, and was lying on the only rug. The Accountant had brought out already a box of dominoes, and was toying architecturally with the bones. Marlow sat cross-legged right aft, leaning against the mizzenmast. He had sunken cheeks, a yellow complexion, a straight back, an ascetic aspect, and, with his arms dropped, the palms of hands outwards, resembled an idol. The Director, satisfied the anchor had good hold, made his way aft and sat down amongst us. We exchanged a few words lazily. Afterwards there was silence on board the yacht. For some reason or other we did not begin that game of dominoes. We felt meditative, and fit for nothing but placid staring. The day was ending in a serenity of still and exquisite brilliance. The water shone pacifically; the sky, without a speck, was a benign immensity of unstained light; the very mist on the Essex marsh was like a gauzy and radiant fabric, hung from the wooded rises inland, and draping the low shores in diaphanous folds. Only the gloom to the west, brooding over the upper reaches, became more sombre every minute, as if angered by the approach of the sun./paragraph paragraphAnd at last, in its curved and imperceptible fall, the sun sank low, and from glowing white changed to a dull red without rays and without heat, as if about to go out suddenly, stricken to death by the touch of that gloom brooding over a crowd of men./paragraph paragraphForthwith a change came over the waters, and the serenity became less brilliant but more profound. The old river in its broad reach rested unruffled at the decline of day, after ages of good service done to the race that peopled its banks, spread out in the tranquil dignity of a waterway leading to the uttermost ends of the earth. We looked at the venerable stream not in the vivid flush of a short day that comes and departs for ever, but in the august light of abiding memories. And indeed nothing is easier for a man who has, as the phrase goes, ldquo;followed the seardquo; with reverence and affection, than to evoke the great spirit of the past upon the lower reaches of the Thames. The tidal current runs to and fro in its unceasing service, crowded with memories of men and ships it had borne to the rest of home or to the battles of the sea. It had known and served all the men of whom the nation is proud, from Sir Francis Drake to Sir John
SV: PDF generation
When I run my cocoon-samples it works well. I use the folowing url: http://localhost:8080/cocoon/samples/fo/test-fo.xml?.pdf This includes a table. /Bjarne -Oprindelig meddelelse-Fra: Janesh Vasudeva [mailto:[EMAIL PROTECTED]]Sendt: 13. juni 2001 14:03Til: [EMAIL PROTECTED]Emne: PDF generation Sample files provided by cocooon itself. it just shows blank screen with no data in it. Pls let me know janesh
RE: problems with xsp date
Thanks Jan, that worked. I'm new to xsp as you've probably guessed! Lisa -Original Message- From: Uyttenhove Jan [mailto:[EMAIL PROTECTED]] Sent: 13 June 2001 10:45 To: '[EMAIL PROTECTED]' Subject: RE: problems with xsp date Lisa, first, java.util.Date is included, but java.util.Calendar isn't. Try to include it by adding : xsp:structure xsp:includejava.util.Calendar/xsp:include /xsp:structure second, you should put your xsp:logic block inside your time block So, try this: xsp:structure xsp:includejava.util.Calendar/xsp:include /xsp:structure time xsp:logic Calendar now = Calendar.getInstance(); now.setTime( new Date() ); float hourAngle = (float) now.get( Calendar.HOUR ) / 12 * 360; float minAngle = (float) now.get( Calendar.MINUTE ) / 60 * 360; /xsp:logic hourxsp:exprhourAngle/xsp:expr/hour minutexsp:exprminAngle/xsp:expr/minute /time You can always check the Java code generated by the xsp, this sometimes helps to understand the error. Jan Jan Uyttenhove - Software Engineer - The E-corporation http://www.the-ecorp.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 11:28 To: [EMAIL PROTECTED] Subject: problems with xsp date Hi all I'm trying to create a simple XSP page that gets the current hour and minute and passes it on to a stylesheet. The cocoon docs say XSP automatically generates import statements for the most commonly used Java libraries (including java.util.Date). However when I try run the page I get an error: Type expected. now.setTime(new Date()); Has anybody got any ideas? Here is the relevant part of the page: xsp:logic Calendar now = Calendar.getInstance(); now.setTime( new Date() ); float hourAngle = (float) now.get( Calendar.HOUR ) / 12 * 360; float minAngle = (float) now.get( Calendar.MINUTE ) / 60 * 360; /xsp:logic time hourxsp:exprhourAngle/xsp:expr/hour minutexsp:exprminAngle/xsp:expr/minute /time thanks in advance! Lisa - 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: Tomcat + Cocoon, .xml not displayed
So, you are using Cocoon 2, rigth? Have you tried the samples? No, Cocoon 1.8.2. It is the samples I am trying to use. Any time I click one of the sample .xml files I get the 404. Mike. Giacomo I deleted the parser.jar so that xerces would be alone in the classpath. I also tried changing the properties parm to be a fully qualified file:// URL, but no success. I also tried changing the debug levels in Tomcat and Cocoon, again without success. TIA, Mike. - 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: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor
Hi sorry for my lack of knowledge but what means SV in front of the subject of a mail? where can I find such information so that I don't have to disturb the list again searching such answers. 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]
C2: recommended method for accessing Database, esp. for nested queries?
I'm already using the ESQL. Now I'd like to do nested queries. Somewhat like that QUERY retrieve departments FOR EACH department d retrieve all members of d /FOR EACH /QUERY I've seen the file ../docs/samples/sql/sql-page.xml with the anchestor-value ... tag. Is something similar possible with ESQL? Thanks for any hints. GB - 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]
W2K+IIS 5.0+JDK 1.3.1+Tomcat 3.2.2+Cocoon 1.8.2 Working Succesfully
Hi all, here is the complete description: W2K Server IIS 5.0 (with ISAPI configuration from tomcat documentation) + isapi-redirect.dll (from tomcat download) jdk 1.3.1 Tomcat 3.2.2 (as NT service from tomcat documentation, installed with jk_nt_service from tomcat download) Cocoon 1.8.2 All cocoon examples works fine, all my cocoon projects works fine and all my JSP page works fine. To run Tomcat as NT service you have to add all cocoon jars into wrapper.properties file at the class-path rows, but you have to comment both the parser.jar and the jaxp.jar rows. Thanks all, Pier Paolo. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (urgent)ESQL question
Without looking at all of your code, it is hard to be sure what the problem might be. For instance, how is username declared in your program? The best way to debug these problems is to look at the generated Java code, so that you can easily see where variables are being declared and set and so forth. The generated Java code is in your repository directory, the location of which is defined in your cocoon.properties file. The repository directory basically follows the same hierarchy as your cocoon context, except everything has a leading underscore. -Christopher HI ALL, here i tried to keep esql results into varible and comparing with other variable , but its not working ...plz help me out. xsp:logic String uname=; /xsp:logic esql:connection xsp:logic uname=esql:get-string column=username/; if( username.equals(uname)){ } else { do something} /xsp:logic /esql:connection but always it goes into else loop not going into if loop at all. even i tried trimming the both variables ,even though its not working plz help out.. Advance Thanks Rammi. - 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: rendering PDF only
FOP is a separate project from Cocoon, just used by Cocoon (just as you want to do). Go to the xml.apache.org site and click on the FOP links. Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: rendering PDF only Hi all, I would like to take advantage of cocoon only in rendering xml files into PDF. In fact I would like to embedd fop-0.18.1-dev with a servlet, that servlet must take as parameter a reference to an xml file and display it in pdf format. can anyone tell me which packages in cocoon can I use? Please help me. regards, adel - 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: PDF generation
Are you using IE, by any chance? Try Netscape. If it comes up fine in Netscape, then read the FAQ entry about IE and PDF. -Christopher I have tried all cocoon samples . it generated pdf format but no data in it. Pls explain me the reason i am using weblogic 5.1 janesh Wed Jun 13 17:49:39 GMT+05:30 2001:I ServletContext-General *.xml: init ( test-fo.xml) using renderer org.apache.fop.render.pdf.PDFRenderer using element mapping org.apache.fop.fo.StandardElementMapping using element mapping org.apache.fop.svg.SVGElementMapping building formatting object tree setting up fonts formatting FOs into areas [1] rendering areas to PDF writing out PDF using renderer org.apache.fop.render.pdf.PDFRenderer ( test2-fo.xml) using element mapping org.apache.fop.fo.StandardElementMapping using element mapping org.apache.fop.svg.SVGElementMapping building formatting object tree setting up fonts formatting FOs into areas [2] [3] [4] [5] [6] [7] rendering areas to PDF writing out PDF - 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]
Problem with my query
Hi, I am using Cocoon 1.8.2, and I am trying to run this query, but I don't see any result My code here : ?xml version=1.0? ?cocoon-process type=xsp? xsp:page language=java xmlns:esql=http://www.apache.org/1999/SQL/v2; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:request=http://www.apache.org/1999/XSP/Request; page title=SQL Search Results esql:execute-query esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@MyIP:MyPort:cta/esql:dburl esql:usernameuserID/esql:username esql:passwordPassword/esql:password esql:doc-elementempleados/esql:doc-element esql:row-elementregistro/esql:row-element esql:queryselect * from employee /esql:query /esql:execute-query /page /xsp:page What I got is: oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@MyIP:MyPort:cta userID Password empleados registro select * from employee Could you help me ?? Thanks Gustavo - 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: Tomcat + Cocoon, .xml not displayed
Have you added context to server.xml file? Yes. I can access the context and any non .xml files fine. It is just the xml that does not display. If I change the web.xml file to handle some other bogus type (.yyz for instance) then the .xml is displayed as text in the browser. This leads me to believe that Cocoon is throwing an exception while trying to process the xml file and that is being turned into a 404 error by Tomcat. Any help on increasing the Cocoon debugging is welcome(I have already done so in Tomcat, but no help). I have read the install doc several times, as well as some other tutorials but cannot see where I have gone wrong. I am using Tomcat standalone (No apache). Here is the steps to installing cocoon successfully: http://xml.apache.org/cocoon/install.html#tomcat if you follow this steps with care your cocoon MUST works. - 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]How To aceessing MySQL database?
Hi all. I'm new to this mail list. Two question [I beg your help]. I' running Tomcat 3.2.1 wonderful Cocoon2b01 I tried the ESQL example, after changing driver, dburl, username, password tags and the query. All is OK: I can access MySQL database. The problem is the Simple-SQL example. I tried all i can imagine but i have no result from the page. I still have some doubt on how to well setup cocoon.xconf (into datasource what is bet to put to enable mysql driver?) Output: Hello This is my first Cocoon2 page filled with sql data! Stop. No database results. Can any of you please indicate me what to do to access that way to MySQL database? It'd be so much appreciated by all, I suppose, some sort of tutorial for dummies for the basic use (as database connection) of cocoon2. Another little question: following the example of sub cocoon subdirectory I create a mine folder. All is OK (sitemap, stylesheets, etc..). I copyed the ESQL example modified (the one functioning) in mine dir. but I connot run it (cocoon seems not to find it, but this is when there is an error). On the console where I launched Tomcat (3.2.1) I see a Broken Pipe error: 2001-06-13 03:51:27 - Ctx( /cocoon ): IOException in: R( /cocoon + /MAU/xsp/esql + null) Pipe rotta Can some good soul of you explain me the problem? Excuse my english, many thanx to every one. Mau - 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]
Apache + Tomcat 3.2.2+cocoon 1.8.2
After trying to build (wihout success) cocoon 2 ... I came back to cocoon 1.8.2 ... I followed the installation instruction ... and when I try to access to the cocoon/samples/index.xml file ... I got this answer : Publishing Engine could not be initialized. java.lang.RuntimeException: Error creating org.apache.cocoon.processor.dcp.DCPProcessor: class is not found at org.apache.cocoon.framework.Manager.create(Manager.java:114) at org.apache.cocoon.framework.Router.init(Router.java:80) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.Engine.init(Engine.java:170) at org.apache.cocoon.Engine.getInstance(Engine.java:224) at org.apache.cocoon.Cocoon.init(Cocoon.java:157) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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:479) There is no errors in the Tomcat/logs directory ... Do you have any idea which class file I need to run cocoon ? Thanks Sylvain - 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: Tomcat + Cocoon, .xml not displayed
Hi Mike, I am experiencing the exact same problem. I too get 404 error. But when I try to execute the xml for the first time, it gives me an error saying: exception in preInit org.apache.cocoon.Cocoon not found java.lang.ClassNotFoundException. Do you get the same exception?? That makes me believe that this is a classpath error. Can you tell me what your classpath is? I am using windows 2000 professional. Thanks much, Kaushik. --- Mike Thomas [EMAIL PROTECTED] wrote: Have you added context to server.xml file? Yes. I can access the context and any non .xml files fine. It is just the xml that does not display. If I change the web.xml file to handle some other bogus type (.yyz for instance) then the .xml is displayed as text in the browser. This leads me to believe that Cocoon is throwing an exception while trying to process the xml file and that is being turned into a 404 error by Tomcat. Any help on increasing the Cocoon debugging is welcome(I have already done so in Tomcat, but no help). I have read the install doc several times, as well as some other tutorials but cannot see where I have gone wrong. I am using Tomcat standalone (No apache). Here is the steps to installing cocoon successfully: http://xml.apache.org/cocoon/install.html#tomcat if you follow this steps with care your cocoon MUST works. - 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 - only $35 a year! 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]
Re: Problem with my query
Thanks, I chanche my code to: ?xml version=1.0? ?cocoon-process type=xsp? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; page esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@MyIP:MyPort:cta/esql:dburl esql:usernameUserID/esql:username esql:passwordPassword/esql:password esql:execute-query esql:queryselect * from employee/esql:query esql:results headerheader info/header esql:row-results empleado empnoesql:get-string column=empno//empno lastnameesql:get-string column=lastname//lastname /empleado /esql:row-results footerfooter info/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page And now It works, but now what I wanto to do i to make variable the criteria of my query, yes, something like esql:queryselect * from employee where empno=MY_VARIABLE/esql:query Do you know how can I do that ? Thanks a lot !! Gustavo Luca Morandini wrote: Gustavo, have you already added something like this in cocoon.xconf (under the datasources tag) ? jdbc name=oracle pool-controller min=5 max=10 oradb=true/ dburljdbc:oracle:thin:@localhost:1521:ORA81/dburl userlogin/user passwordpassword/password /jdbc Remember to re-start Tomcat afterwards any change to cocoon.xconf ! Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 (0)744 59 85 1 Office +39 0335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Gustavo Mejia [mailto:[EMAIL PROTECTED]] Sent: mercoledì 13 giugno 2001 16.16 To: [EMAIL PROTECTED] Subject: Problem with my query Importance: High Hi, I am using Cocoon 1.8.2, and I am trying to run this query, but I don't see any result My code here : ?xml version=1.0? ?cocoon-process type=xsp? xsp:page language=java xmlns:esql=http://www.apache.org/1999/SQL/v2; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:request=http://www.apache.org/1999/XSP/Request; page title=SQL Search Results esql:execute-query esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@MyIP:MyPort:cta/esql:dburl esql:usernameuserID/esql:username esql:passwordPassword/esql:password esql:doc-elementempleados/esql:doc-element esql:row-elementregistro/esql:row-element esql:queryselect * from employee /esql:query /esql:execute-query /page /xsp:page What I got is: oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@MyIP:MyPort:cta userID Password empleados registro select * from employee Could you help me ?? Thanks Gustavo - 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: rendering PDF only
Adel, sorry, I don't know Cocoon at the level you want. Best I can offer is you can start by looking at the Javadocs for the Cocoon project (there's a link on the Cocoon docs pages). Good luck. -Christopher Hi Cristopher, I know that fop is responsible of rendering PDF but what I want to do is to write a light cocoon which only displays PDF. Now can you tell me which classes (*.java) shall I consult to write such servlet? regards, adel On Wed, 13 Jun 2001 09:56:22 -0400, [EMAIL PROTECTED] wrote: FOP is a separate project from Cocoon, just used by Cocoon (just as you want to do). Go to the xml.apache.org site and click on the FOP links. Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: rendering PDF only Hi all, I would like to take advantage of cocoon only in rendering xml files into PDF. In fact I would like to embedd fop-0.18.1-dev with a servlet, that servlet must take as parameter a reference to an xml file and display it in pdf format. can anyone tell me which packages in cocoon can I use? Please help me. regards, adel - 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: Apache + Tomcat 3.2.2+cocoon 1.8.2
I had the same problem, so I modified the tomcat.bat, and also my Classpath, checking that all the classes were in Tomcat_Home/lib here is my Tomcat.bat. set _CP=%CP% set _TOMCAT_HOME=%TOMCAT_HOME% set _CLASSPATH=%CLASSPATH% rem - Verify and Set Required Environment Variables - if not "%JAVA_HOME%" == "" goto gotJavaHome echo You must set JAVA_HOME to point at your Java Development Kit installation goto cleanup :gotJavaHome if not "%TOMCAT_HOME%" == "" goto gotTomcatHome set TOMCAT_HOME=. :gotTomcatHome if exist "%TOMCAT_HOME%\lib\servlet.jar" goto okTomcatHome echo Unable to locate servlet.jar, check the value of TOMCAT_HOME. goto cleanup :okTomcatHome rem - Prepare Appropriate Java Execution Commands --- if not "%OS%" == "Windows_NT" goto noTitle set _SECSTARTJAVA=start "Secure Tomcat 3.2" "%JAVA_HOME%\bin\java" set _STARTJAVA=start "Tomcat 3.2" "%JAVA_HOME%\bin\java" set _RUNJAVA="%JAVA_HOME%\bin\java" goto setClasspath :noTitle set _SECSTARTJAVA=start "%JAVA_HOME%\bin\java" set _STARTJAVA=start "%JAVA_HOME%\bin\java" set _RUNJAVA="%JAVA_HOME%\bin\java" rem - Set Up The Runtime Classpath -- :setClasspath set CP=%TOMCAT_HOME%\classes rem Try to determine if TOMCAT_HOME contains spaces rem if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath echo Your TOMCAT_HOME appears to contain spaces. echo Unable to set CLASSPATH dynamically. goto staticClasspath rem:dynClasspath rem set _LIBJARS= rem for %%i in (%TOMCAT_HOME%\lib\*.jar) do call %TOMCAT_HOME%\bin\cpappend.bat %%i rem if not "%_LIBJARS%" == "" goto gotLibJars rem echo Unable to set CLASSPATH dynamically. remif "%OS%" == "Windows_NT" goto staticClasspath rem echo Note: To set the CLASSPATH dynamically on Win9x systems rem echo only DOS 8.3 names may be used in TOMCAT_HOME! rem goto staticClasspath rem :gotLibJars rem echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH. rem Note: _LIBJARS already contains a leading semicolon rem set CP=%CP%%_LIBJARS% rem goto chkClasspath :staticClasspath echo Setting your CLASSPATH statically. if exist "%TOMCAT_HOME%\lib\axerces.jar" set CP=%CP%;%TOMCAT_HOME%\lib\axerces.jar if exist "%TOMCAT_HOME%\lib\zant.jar" set CP=%CP%;%TOMCAT_HOME%\lib\zant.jar if exist "%TOMCAT_HOME%\lib\jasper.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar if exist "%TOMCAT_HOME%\lib\jaxp.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar if exist "%TOMCAT_HOME%\lib\parser.jar" set CP=%CP%;%TOMCAT_HOME%\lib\parser.jar if exist "%TOMCAT_HOME%\lib\servlet.jar" set CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar if exist "%TOMCAT_HOME%\lib\webserver.jar" set CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar if exist "%TOMCAT_HOME%\lib\cocoon.jar" set CP=%CP%;%TOMCAT_HOME%\lib\cocoon.jar if exist "%TOMCAT_HOME%\lib\fesi.jar" set CP=%CP%;%TOMCAT_HOME%\lib\fesi.jar if exist "%TOMCAT_HOME%\lib\sax-bugfix.jar" set CP=%CP%;%TOMCAT_HOME%\lib\sax-bugfix.jar if exist "%TOMCAT_HOME%\lib\w3c.jar" set CP=%CP%;%TOMCAT_HOME%\lib\w3x.jar if exist "%TOMCAT_HOME%\lib\xml.jar" set CP=%CP%;%TOMCAT_HOME%\lib\xml.jar if exist "%TOMCAT_HOME%\lib\xt.jar" set CP=%CP%;%TOMCAT_HOME%\lib\xt.jar :chkClasspath if "%CLASSPATH%" == "" goto noClasspath set CP=%CP%;%CLASSPATH% :noClasspath if not exist "%JAVA_HOME%\lib\tools.jar" goto installClasspath set CP=%CP%;%JAVA_HOME%\lib\tools.jar :installClasspath echo. echo Using CLASSPATH: %CP% echo. set CLASSPATH=%CP% rem - Execute The Requested Command - if "%1" == "start" goto startServer if "%1" == "stop" goto stopServer if "%1" == "run" goto runServer if "%1" == "ant" goto runAnt if "%1" == "env" goto doEnv if "%1" == "jspc" goto runJspc :doUsage echo Usage: tomcat ( ant ^| env ^| jspc ^| run ^| start ^| stop ) echo Commands: echo ant - Run Ant in Tomcat's environment echo env - Set up environment variables that Tomcat would use echo jspc - Run JSPC in Tomcat's environment echo run - Start Tomcat in the current window echo start - Start Tomcat in a separate window echo stop - Stop Tomcat goto cleanup :doEnv goto finish :startServer echo Starting Tomcat in new window if "%2" == "-security" goto startSecure %_STARTJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup :startSecure echo Starting Tomcat with a SecurityManager %_SECSTARTJAVA% %TOMCAT_OPTS% -Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%/conf/tomcat.policy" -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %3 %4 %5 %6 %7 %8 %9 goto cleanup :runServer rem Running Tomcat in this window if "%2" == "-security" goto runSecure %_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup :runSecure rem Running Tomcat with a SecurityManager %_RUNJAVA% %TOMCAT_OPTS% -Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%/conf/tomcat.policy" -Dtomcat.home="%TOMCAT_HOME%"
RE: C2: recommended method for accessing Database, esp. for nested queries?
C1 had a nested connection in its example (part of it is shown below), but I've not tried it with C2. Depending on your needs, a more complex SQL statement may work as well. The major factor is how much information from department_table you want and if it is OK to repeat it with each member. The following is from Cocoon 1.8.3-DEV sample file esql.xml: esql:execute-query esql:queryselect id,name from department_table/esql:query esql:results headerheader info/header esql:row-results department idesql:get-int column=id//id nameesql:get-string column=name//name esql:connection esql:driverorg.postgresql.Driver/esql:driver esql:dburljdbc:postgresql://localhost/test/esql:dburl esql:usernametest/esql:username esql:passwordtest/esql:password esql:execute-query esql:queryselect name from user_table where department_id = esq l:parameter type=intesql:get-int ancestor=1 column=id//esql:parameter /esql:query esql:results esql:row-results useresql:get-string column=name//user /esql:row-results /esql:results Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Götz Botterweck [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 6:00 AM To: [EMAIL PROTECTED] Subject: C2: recommended method for accessing Database, esp. for nested queries? I'm already using the ESQL. Now I'd like to do nested queries. Somewhat like that QUERY retrieve departments FOR EACH department d retrieve all members of d /FOR EACH /QUERY I've seen the file ../docs/samples/sql/sql-page.xml with the anchestor-value ... tag. Is something similar possible with ESQL? Thanks for any hints. GB - 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: Problem with my query
Gustavo, try this: esql:queryselect * from employee where empno= esql:parameterMY_VARIABLE/esql:parameter /esql:query You may need to specify a type, such as esql:parameter type=int, otherwise it will assume a String. -Christopher Thanks, I chanche my code to: ?xml version=1.0? ?cocoon-process type=xsp? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; page esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@MyIP:MyPort:cta/esql:dburl esql:usernameUserID/esql:username esql:passwordPassword/esql:password esql:execute-query esql:queryselect * from employee/esql:query esql:results headerheader info/header esql:row-results empleado empnoesql:get-string column=empno//empno lastnameesql:get-string column=lastname//lastname /empleado /esql:row-results footerfooter info/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page And now It works, but now what I wanto to do i to make variable the criteria of my query, yes, something like esql:queryselect * from employee where empno=MY_VARIABLE/esql:query Do you know how can I do that ? Thanks a lot !! Gustavo - 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: Problem with my query
Thanks Christopher, But now, how can I assign the variable from other XML, how can I pass to the XML with my query ? I really apreciate your hellp ! Gustavo Christopher Painter-Wakefield wrote: Gustavo, try this: esql:queryselect * from employee where empno= esql:parameterMY_VARIABLE/esql:parameter /esql:query You may need to specify a type, such as esql:parameter type=int, otherwise it will assume a String. -Christopher Thanks, I chanche my code to: ?xml version=1.0? ?cocoon-process type=xsp? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; page esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@MyIP:MyPort:cta/esql:dburl esql:usernameUserID/esql:username esql:passwordPassword/esql:password esql:execute-query esql:queryselect * from employee/esql:query esql:results headerheader info/header esql:row-results empleado empnoesql:get-string column=empno//empno lastnameesql:get-string column=lastname//lastname /empleado /esql:row-results footerfooter info/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page And now It works, but now what I wanto to do i to make variable the criteria of my query, yes, something like esql:queryselect * from employee where empno=MY_VARIABLE/esql:query Do you know how can I do that ? Thanks a lot !! Gustavo - 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: adding context
I'm trying to add one more context to my sitemap usinf this syntax: map:match pattern=myown map:generate src=docs/myown/index.xml/ map:transform src=stylesheets/myown/default.html.xsl/ map:serialize/ /map:match Cocoon matchers work somewhat different from what you may be used to from Tomcat contexts and the like. The matcher you wrote matches the URI http://yourhost/cocoon/myown only. (Enter this in your browser and you should get the index.xml page. If you want the page to be accessible as http://yourhost/cocoon/myown/index.xml, try this: map:match pattern=myown/* map:generate src=docs/myown/{1}/ map:transform src=stylesheets/myown/default.html.xsl/ map:serialize/ /map:match HTH, Sven. - 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]
resin + cocoon
Hi I'm a uni student, a beginner... does anyone know where can I get online tutorial / guideline on integrating resin and cocoon ? thank you Arnon - 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]
Transformations to PS
I'm a newbie just beginning to pull together a transformation system (and later, dynamic web component)for my organization. I have started small, working with XSL to create only HTML and PDF formats. Today a coworker asked me about generating Postscript. I blithely answered, of course, thinking that PS comes before PDF. However, now that I think about it, I'm not sure if Cocoon's transformation tools can do this for me. We don't need something formed for the browser or Adobe viewer, but rather something to go straight to the printer without that interim processing. Any ideas? Harriet - 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: Problem with my query
Thanks again, Right, I need to do the first thing that you told me, I tried but with no results, I have something like this: esql:queryselect * from employee where empno=esql:parameterVAR/esql:parameter /esql:query and in my browser the url is: http://localhost/cocoon/servlet/sql/esql.xml?VAR=01; but, doesn't show information. Maybe it is not very difficult, but I really starting with this things. Thanks Gustavo Christopher Painter-Wakefield wrote: Gustavo, you're welcome. There are probably many ways to do what you are asking; you should probably get a book on servlet programming or web application development. Anything that you can do with CGI or servlets you can do (I believe) with XSP and Cocoon. So, for instance, you can pass parameters in the query string (http://myserver.org/cocoon/myquery.xml?empno=1234), or you can store stuff in the session, or you can store stuff in a database, etc. Is there a specific approach you wanted to ask about? -Christopher Thanks Christopher, But now, how can I assign the variable from other XML, how can I pass to the XML with my query ? I really apreciate your hellp ! Gustavo - 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: Problem with my query
Gustavo, you want to use the request taglib, for which there isn't any documentation (hopefully soon there will be). Anyway, try this: esql:query select * from employee where empno= esql:parameter request:get-parameter name=VAR/ /esql:parameter /esql:query You'll need to add a declaration for the request namespace in your xsp:page element, like this: xmlns:request=http://www.apache.org/1999/XSP/Request; I think you will need to take out the quotes on your query string, like this: http://localhost/cocoon/servlet/sql/esql.xml?VAR=01 -Christopher Thanks again, Right, I need to do the first thing that you told me, I tried but with no results, I have something like this: esql:queryselect * from employee where empno=esql:parameterVAR/esql:parameter /esql:query and in my browser the url is: http://localhost/cocoon/servlet/sql/esql.xml?VAR=01; but, doesn't show information. Maybe it is not very difficult, but I really starting with this things. Thanks Gustavo - 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 site broken link
Fixed. Thanks for letting us know. -- dims --- Daniel Pfuhl [EMAIL PROTECTED] wrote: Hi there is an broken link at: http://xml.apache.org/cocoon2/httprequest.html it points to: http://xml.apache.org/cocoon2/images/initialize_Cocoon.png and shuold show an UML sequence diagram 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] = Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! 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]
RE: Transformations to PS
Thanks all, Yes, ghostscript came to mind. Quite honestly, I think my esteemed colleague is just trying to poke holes in this xml stuff. However, he raised a valid question since most of our printers are not capable of printing straight from pdf. Harriet -Original Message- From: Uli Mayring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:23 PM To: 'Cocoon-Users Subject: Re: Transformations to PS rOn Wed, 13 Jun 2001, H. Whitlock wrote: I'm a newbie just beginning to pull together a transformation system (and later, dynamic web component)for my organization. I have started small, working with XSL to create only HTML and PDF formats. Today a coworker asked me about generating Postscript. I blithely answered, of course, thinking that PS comes before PDF. However, now that I think about it, I'm not sure if Cocoon's transformation tools can do this for me. We don't need something formed for the browser or Adobe viewer, but rather something to go straight to the printer without that interim processing. Any ideas? Can't be done out of the box. You either have to write an equivalent to fop, only for generating PostScript instead of PDF (but how to deal with output device specific information??) or you convert the PDF put out by fop to PostScript with some tool (GhostScript, Acrobat Reader etc.) Ulrich -- Ulrich Mayring DENIC eG, Softwareentwicklung - 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]
How can I get Cocoon to return XML+XSL = HTML for all browsers exceptInternet Explorer?
The producer I wrote is returning XML all the time now for me... Also, my producer gets XML straight from my database connection.. it never uses a static XML file. Is there a way around the http://../index.xml?producer=getXMLfromDB format, since I don't ever use the index.xml? Thanks! - 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: Transformations to PS
On Wed, 13 Jun 2001, H. Whitlock wrote: Thanks all, Yes, ghostscript came to mind. Quite honestly, I think my esteemed colleague is just trying to poke holes in this xml stuff. However, he raised a valid question since most of our printers are not capable of printing straight from pdf. It is not necessary to print straight from PDF. You can print via CUPS or use Acrobat Reader or GhostScript to convert the PDF to PostScript or ... In fact no printer can print straight from PDF - at one point there has to be a software that converts the PDF code into a bitmap. Now some printer vendors thought they were clever and integrated that software into their printers - bad idea, because this built-in software is very hard to upgrade, plus you have no influence whatsoever on what it does. So you better rasterize in a place, where you have control. I use CUPS and think everyone should :) Ulrich -- Ulrich Mayring DENIC eG, Softwareentwicklung - 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]
Why is Cocoon returning the XML and not adding in my XSL??? !
It returns: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd; ?xml-stylesheet href=bids-table.xsl type=text/xsl? AUCTIONBLOCK ITEM TITLEVase and Stones/TITLE /ITEM /AUCTIONBLOCK !-- This page was served from cache in 1 milliseconds by Cocoon 1.8.2 -- The stylesheet is there.. Anyone know? Thanks - 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]
Namespace Problem
Hello, can i instruct the XSLT-Processor or the Serializer to remove all namespaces? thanks in advance Martin Kavalar - 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]
Query regarding the name space
Hi, I have a layout file which has page tag and xmls information in it.when i transform to wml the xmls information comes along with it. can this be avoided. eg: wml xmlns:cms=file:/home/emscmf/cmscard id= title=EMS//wml for reference i have attached the layout file and the final formatter(WML) file. The Application uses cocoon,Iplanet and LDAP login.layout final-wml.xsl regards, saravanan login.layout final-wml.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]