Question on forms
Hi, I'm trying to build a form in Cocoon. My first question: I'm a complete newbie concerning forms (meaning passing the parameter in GET/POST requests and all that stuff), but I'm getting to know Cocoon better. Should I first work my way through forms in a neutral environnement, or is it not more difficult to start writing them directly in Cocoon, using xsp and actions etc.? My second: In the pipeline below (which I copied from the samples), I couldn't figure out what the parameter name view-source does. In the transformer documentation, there's no reference to this one. Can anybody help me with this? Thanks in advance map:match pattern=forms/* map:generate type=serverpages src=docs/samples/forms/{1}.xsp/ map:transform src=stylesheets/dynamic-page2html.xsl map:parameter name=view-source value=docs/samples/forms/{1}.xsp/ /map:transform map:serialize/ /map:match - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with multiple stylesheet imports (xsl:import)
I'm using the xsl:import-function in some stylesheets, which was OK while I imported just one stylesheet. If I import a second one, I get a nullPointerException error. According to the xsl-specs, importing more than one stylesheets shouldn't be a problem, is this a limitation of Cocoon (I don't think so, since I didn't find anything on this in the mail archives)? Here's the code-snippet: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xmlns:eleTitre=http://etat.geneve.com/eleTitre; xmlns:eleTexte=http://etat.geneve.com/eleTexte; xsl:import href=formattage.xsl/ xsl:import href=fonctions.xsl/!-- Both stylesheets are located in the same subdirectory, and both are imported successfully in different stylesheets, but not together-- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set - 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
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]
Use value from a form: Is Request-Generator what I need?
Hi, I would like to use a value from a HTML-form (post-method) in a query. I guess this is possible in Cocoon, but I can't see how. I was reading the description of the Request-Generator, but I'm not sure if this is what I need. Can anybody give me a general direction where I have to look, or maybe point me to a good example? (I already have a Cocoon-system up and running) 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: i18n
Hi, just a wild guess: If you create (actually re-create, because I think that in a standard Cocoon installation, there is already one) a file messages.xml in the same directory and with the same content as messages_en.xml, would that work? Maybe you'll give it a try. I'm not sure at all, but from the behaviour I observed, the file messages.xml should contain the messages in the default language. Kurt -Message d'origine- De : kavitha ramesh [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 8. juillet 2002 13:59 À : [EMAIL PROTECTED] Objet : i18n Hi, Iam working with i18n in cocoon.I have a page which displays 2 languages English and German.If I go to the Internet Option and change the language to arabic , Iam getting an error Unable to locate resources:message.Now I would like to set the default language as English, whatever language I choose,,How to do that?Please help me,,, Kavitha _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - 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: Refresh Problem Cocoon 2
And sometimes it's your browser that's hanging. In IE under Windows, event emptying the cache has sometimes no effect... -Message d'origine- De : Willy Picard [mailto:[EMAIL PROTECTED]] Envoyé : mercredi, 3. juillet 2002 15:15 À : cocoon-users Objet : Re: Refresh Problem Cocoon 2 Hi. Cocoon does usually not refresh its transformation result when the XML or XSLT file(s) are modified. sometimes a restart of the tomcat server is necessary? what could be the problem? If you are using xsl:import and/or xsl:include and Cocoon 2.0.2 or less, this is an identified bug and it has already been fixed in CVS. Hope it helps! Willy -- Willy Picarde-mail: [EMAIL PROTECTED] Dept. of Information Technology www:http://www.kti.ae.poznan.pl/ The Poznan University of Economics tel:+48 618 48 05 49 Mansfelda 4, 60-854 Poznan, Poland fax:+48.618 48 38.40 - 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]
Nested queries: Only 1 allowed per query?
Nested queries work well, but here, I tried to add a second one, and after many (useless) tries, I'm suspecting that the SQL-transformer doesn't support more than one nested query at once? Below is the query structure, it works fine if I comment out either one of the nested queries. Trying to execute them both results in an empty page. I didn't find any hints on this in the documentation. Did anybody try something like this before? Kurt execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=affairesPV !-- Query goes here-- /query execute-query query name=rapporteurs !-- First nested query goes here-- /query /execute-query execute-query query name=departement !-- Second nested query goes here-- /query /execute-query /execute-query - 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]
i18n problem
This is a fragment of my XML, which is processed through the i18n transformer. Below are the results: They all get translated but one. There are a lot of more of these elements in my document, it seems that they all get translated except this one. I discovered this problem yesterday, the only guess I can make is that the i18n in Cocoon isn't 100% reliable. Can anybody see any other reason why the last one of these four elements wouldn't get translated? All elements are dynamically created, so I really can't see how they can be different...? Kurt affaire_numchrono2002002612/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_texte i18n:textPR-ACT/i18n:text /dec_texte /bloc bloc affaire_numchrono2002002614/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_texte i18n:textPR-ACT/i18n:text /dec_texte /bloc bloc affaire_numchrono2002002617/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_texte i18n:textPR-ACT/i18n:text /dec_texte /bloc bloc affaire_numchrono2002002618/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_texte i18n:textPR-ACT/i18n:text /dec_texte /bloc RESULTS: bloc affaire_numchrono2002002612/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_textePris acte/dec_texte /bloc bloc affaire_numchrono2002002614/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_textePris acte/dec_texte /bloc bloc affaire_numchrono2002002617/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_textePris acte/dec_texte /bloc bloc affaire_numchrono2002002618/affaire_numchrono decision_date21.02.02/decision_date decision_heure17:00/decision_heure dec_texteuntranslated-text/dec_texte /bloc - 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: A little help with aggregation
Right, I want to substitute {1} with '*' from the matcher, which seems to work fine, since the error I'm getting is : Could not get sitemap source http://st-080234:8080/cocoon/mount/AigleK/pv/title/251567.xml. But this URL is working!! In addition to my main matcher, I'm posting now the two part-matchers: The aggregation: map:match pattern=pvDoc/*.pdf map:aggregate element=docComplet map:part src=cocoon:pv/title/{1}.xml/ map:part src=cocoon:pv/{1}.xml / /map:aggregate map:serialize type=xml/ /map:match BTW it doesn't change a lot if I leave just one part, or if I change the order. The error is always the above error for the part that comes first. part 1 matches to: map:match pattern=pv/title/*.xml map:generate src=Queries/raw-query.xml/ map:transform src=Queries/title_odj_query.xsl map:parameter name=var value={1}/ /map:transform map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=Stylesheets/title_ODJ_contents.xsl/ map:transform type=i18n/ map:transform src=Stylesheets/titleOdJFOP.xsl/ !-- -- map:serialize type=xml/ /map:match part 2: map:match pattern=pv/*.xml map:generate src=Queries/raw-query.xml/ map:transform src=Queries/pv_query.xsl map:parameter name=var value={1}/ /map:transform map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=Stylesheets/pv1.xsl/ map:transform type=i18n/ map:transform src=Stylesheets/pv2fo.xsl/!-- -- map:serialize type=xml/ /map:match -Message d'origine- De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Envoyé : vendredi, 7. juin 2002 00:06 À : [EMAIL PROTECTED] Objet : RE: A little help with aggregation From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Hahn Kurt (CHA) wrote: I changed the sitemap a little to make it clearer, it now looks like this: map:match pattern=pvDoc/*.pdf map:aggregate element=pvDoc map:part src=cocoon:/pv/title/{1}.xml element=title ns=http://etat.geneve.com/title/ map:part src=cocoon:/pv/{1}.xml element=pvtexte ns=http://etat.geneve.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match As I mentioned before, the parts called individually work fine. I'm suspecting that maybe the parameter isn't passed correctly. Can somebody confirm (or disconfirm ) if my syntaxe is correct? Wild guess: does map:part src=cocoon:/pv/title/{../1}.xml element=title ... Yes, this is wild... This reminds me once again that we need to document sitemap/matcher/action interactions and how substitutions work better then what we have now... Hint-hint? ;) PS To 'J.': I believe that author of this sitemap snippet wants to substitute {1} with '*' from the matcher, and not with something not shown in this snippet... Because '../1' will bring you one level up - above this matcher. Vadim work? J.Pietschmann - 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: A little help with aggregation/Solution FOUND
Thanks to all, when I finally completed the part mapping with element names and ns-attributes, it worked all of sudden. I didn't see that in the sample aggregation in the sitemap, but it seems this two attributes are needed. Kurt -Message d'origine- De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Envoyé : vendredi, 7. juin 2002 00:06 À : [EMAIL PROTECTED] Objet : RE: A little help with aggregation From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Hahn Kurt (CHA) wrote: I changed the sitemap a little to make it clearer, it now looks like this: map:match pattern=pvDoc/*.pdf map:aggregate element=pvDoc map:part src=cocoon:/pv/title/{1}.xml element=title ns=http://etat.geneve.com/title/ map:part src=cocoon:/pv/{1}.xml element=pvtexte ns=http://etat.geneve.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match As I mentioned before, the parts called individually work fine. I'm suspecting that maybe the parameter isn't passed correctly. Can somebody confirm (or disconfirm ) if my syntaxe is correct? Wild guess: does map:part src=cocoon:/pv/title/{../1}.xml element=title ... Yes, this is wild... This reminds me once again that we need to document sitemap/matcher/action interactions and how substitutions work better then what we have now... Hint-hint? ;) PS To 'J.': I believe that author of this sitemap snippet wants to substitute {1} with '*' from the matcher, and not with something not shown in this snippet... Because '../1' will bring you one level up - above this matcher. Vadim work? J.Pietschmann - 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: A little help with aggregation
right, the slash's were missing as well, thanks -Message d'origine- De : Stephan Michels [mailto:[EMAIL PROTECTED]] Envoyé : vendredi, 7. juin 2002 09:58 À : '[EMAIL PROTECTED]' Objet : RE: A little help with aggregation On Fri, 7 Jun 2002, Hahn Kurt (CHA) wrote: Right, I want to substitute {1} with '*' from the matcher, which seems to work fine, since the error I'm getting is : Could not get sitemap source http://st-080234:8080/cocoon/mount/AigleK/pv/title/251567.xml. But this URL is working!! In addition to my main matcher, I'm posting now the two part-matchers: The aggregation: map:match pattern=pvDoc/*.pdf map:aggregate element=docComplet map:part src=cocoon:pv/title/{1}.xml/ map:part src=cocoon:/pv/title/{1}.xml/ map:part src=cocoon:pv/{1}.xml / map:part src=cocoon:/pv/{1}.xml / Have you forgot the the slash? /map:aggregate map:serialize type=xml/ /map:match BTW it doesn't change a lot if I leave just one part, or if I change the order. The error is always the above error for the part that comes first. part 1 matches to: map:match pattern=pv/title/*.xml map:generate src=Queries/raw-query.xml/ map:transform src=Queries/title_odj_query.xsl map:parameter name=var value={1}/ /map:transform map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=Stylesheets/title_ODJ_contents.xsl/ map:transform type=i18n/ map:transform src=Stylesheets/titleOdJFOP.xsl/ !-- -- map:serialize type=xml/ /map:match part 2: map:match pattern=pv/*.xml map:generate src=Queries/raw-query.xml/ map:transform src=Queries/pv_query.xsl map:parameter name=var value={1}/ /map:transform map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=Stylesheets/pv1.xsl/ map:transform type=i18n/ map:transform src=Stylesheets/pv2fo.xsl/!-- -- map:serialize type=xml/ /map:match - 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]
A little help with aggregation
I'm trying to aggregate two files with the cocoon protocol: map:match pattern=pvDoc/*.pdf map:aggregate map:part src=cocoon:/pv/title/{1}.pdf element=title ns=http://some.thing.com/title/ map:part src=cocoon:/pv/{1}.pdf element=pvtexte ns=http://some.thing.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match where part 1 points to: map:match pattern=pv/*.pdf... and part 2 to: map:match pattern=pv/title/*.pdf Both are working correctly if called directly, but if I insert the above part into the sitemap, I'm getting only errors. Is the way I'm passing the value from the URL correct? I need this parameter for the queries which are executed in the 2 parts. Kurt - 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: A little help with aggregation
Adding the root element to map:aggregate fixed the error, I can now display what once will be the aggregated page. But, I don't get the content of my parts, I just get this: pvDoc title xmlns=http://some.thing.com/title; / /pvDoc I changed the sitemap a little to make it clearer, it now looks like this: map:match pattern=pvDoc/*.pdf map:aggregate element=pvDoc map:part src=cocoon:/pv/title/{1}.xml element=title ns=http://etat.geneve.com/title/ map:part src=cocoon:/pv/{1}.xml element=pvtexte ns=http://etat.geneve.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match As I mentioned before, the parts called individually work fine. I'm suspecting that maybe the parameter isn't passed correctly. Can somebody confirm (or disconfirm ) if my syntaxe is correct? Kurt -Message d'origine- De : Stephan Michels [mailto:[EMAIL PROTECTED]] Envoyé : jeudi, 6. juin 2002 10:06 À : '[EMAIL PROTECTED]' Objet : Re: A little help with aggregation On Thu, 6 Jun 2002, Hahn Kurt (CHA) wrote: I'm trying to aggregate two files with the cocoon protocol: map:match pattern=pvDoc/*.pdf map:aggregate map:part src=cocoon:/pv/title/{1}.pdf element=title ns=http://some.thing.com/title/ map:part src=cocoon:/pv/{1}.pdf element=pvtexte ns=http://some.thing.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match where part 1 points to: map:match pattern=pv/*.pdf... and part 2 to: map:match pattern=pv/title/*.pdf Both are working correctly if called directly, but if I insert the above part into the sitemap, I'm getting only errors. Is the way I'm passing the value from the URL correct? I need this parameter for the queries which are executed in the 2 parts. I hope cocoon:/pv/title/{1}.pdf and cocoon:/pv/{1}.pdf are a xml file??! You should also declare the root element of aggregate. map:aggregate element=the-aggregated-content !-- define your map:parts here -- /map:aggregate - 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: A little help with aggregation
I did some more testing and checked the logs. It's confusing, because the error is: org.apache.cocoon.ProcessingException: Could not get sitemap source http://st-080234:8080/cocoon/mount/AigleK/pv/title/229124.xml BUT:This URL is working if I copy/paste it directly into the browser. I restarted my PC to be sure and have all the cached information removed, the error remains the same. The only good thing is that now I know that my parameter-value is correctly passed. How can Cocoon not find this URL from its sitemap? -Message d'origine- De : Stephan Michels [mailto:[EMAIL PROTECTED]] Envoyé : jeudi, 6. juin 2002 10:59 À : '[EMAIL PROTECTED]' Objet : RE: A little help with aggregation On Thu, 6 Jun 2002, Hahn Kurt (CHA) wrote: Adding the root element to map:aggregate fixed the error, I can now display what once will be the aggregated page. But, I don't get the content of my parts, I just get this: pvDoc title xmlns=http://some.thing.com/title; / /pvDoc I changed the sitemap a little to make it clearer, it now looks like this: map:match pattern=pvDoc/*.pdf map:aggregate element=pvDoc map:part src=cocoon:/pv/title/{1}.xml element=title ns=http://etat.geneve.com/title/ map:part src=cocoon:/pv/{1}.xml element=pvtexte ns=http://etat.geneve.com/pvtexte/ /map:aggregate map:serialize type=xml/ /map:match As I mentioned before, the parts called individually work fine. I'm suspecting that maybe the parameter isn't passed correctly. Can somebody confirm (or disconfirm ) if my syntaxe is correct? Could you find any errors in WEB-INF/logs/error.log, or something else in sitemap.log? - 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: pls confirm: cocoon won't work on OSX
There have been a few OS X users in this forum during the last weeks, AFAIK they had Cocoon working on their systems, but there was an issue with batik. Browse through the May-archives, you should find it there. -Message d'origine- De : Paul Kelly [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 23:51 À : [EMAIL PROTECTED] Objet : pls confirm: cocoon won't work on OSX I've tried the following: Tomcat 4.0.1 w/ cocoon 2.0 Tomcat 4.0.1 w/ cocoon 2.0.2 Tomcat 4.0.4b1 w/ cocoon 2.0 Jetty 4 w/ cocoon 2.0 Tomcat 4.0.4b1 w/ cocoon 1.8 Each time the servlet container works fine, cocoon does not. The only luck I've had is with Murray Todd's old pkg file which is no longer available and is one year out of date. I am about ready to give up. Has anyone out there actually installed cocoon 2 on OS X? That's all I need to know. --paul - 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: Real dumb question - how to concatenate XML files
I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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: Real dumb question - how to concatenate XML files
Well, I don't know if they need to be in any special format, AFAIK a well-formed XML is just what you need. Have a look at the sitemap of your Cocoon installation, there's an example of how aggregation works in practice. -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 08:44 À : [EMAIL PROTECTED] Objet : Re: Real dumb question - how to concatenate XML files yes, this is what was in the FAQ, but I had no idea of what the format of the XML should be. Hahn Kurt (CHA) wrote: I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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]
RE: i18n where to do it?
In my transformations, I'm using the first method below. Thus, the i18n transformer is the last (or second-last) transformer you have to invoke, after having applied any other transformation in a language-neutral way. -Message d'origine- De : Andres, Judith [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 27. mai 2002 10:19 À : '[EMAIL PROTECTED]' Objet : AW: i18n where to do it? Hi, 1) you could invoke the I18nTransformer after you invoke the TraxTransformer. This implies that you use just keys instead of the real text in the stylesheet. This way there would be no need to have the semi-abstract level. 2) you could provide an action that writes the user locale into a sitemap parameter - then you could use this parameter to select the stylesheet map:act type=locale map:transform src=stylesheet_{locale}.xsl/ /map:act Judith -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Sonntag, 26. Mai 2002 13:10 An: [EMAIL PROTECTED] Betreff: i18n where to do it? Hi! I have just been thrown into a Cocoon project. I am still a newbie to Cocoon. One major problem of the project seems to be i18n. This has resulted in XML/XSP pages that describe the html/wml/pdf etc. pages to be produced on a kind of abstract level, but still all the elements which I would normally consider to belong only to the view level are described in the XML pages before XSLT-transformation. E.g. we have tags describing text, drop-down menues, checkboxes and so on on a XML-page which is used to show the contents of the users mailbox. Then we use a XSL stylesheet to transform this XML-page which is describing a HTML page into a HTML page. I argued that this violates the principal of separation of business logic, data and presentation which is in my opinion the most fundamental design principle for multichannel-applications. Also this approach causes redundancy. If we want to change a page (e.g the navigation on this page) we have to change the XSL-stylesheet (which is in reality to be supplied be a design company) and the XML/XSP page. My idea is to have all the i18n issues to be resolved on the XSL-level, e.g. like it is describe in Eric M. Burke: Java and XSLT. Ch 8 with XSL variables and imports. Stuff like You have mail -- Sie haben neue Emails and Drop down boxes are purely view and should not contaminate data and logic. The XML page used for the pages displaying mailbox-content would only contain data: emails email header... /header body ... /body ... My colleagues argue, the have to produce this mixing of data and presentation I have described because the way Cocoon handles i18n using the I18n-Transformer. Isn't there a simple way to tell Cocoon which (language-specific) XSL-stylesheet to use according to the preference the user has chosen or according to the language preference of the browser? Or perhaps have a lanugage-indenpendent XSP-page which produces a language-specific XSL-stylesheet on demand? (looks to be more complicated to be me) Many thanks for any input, Hans - 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]
Very strange Cocoon problem - any help appreciated
I wrote a rather simple Cocoon-application, which retrieves a set of data with SQL transformer and then applies a number of transformations. The SQL query uses just one parameter, passed in the standard Cocoon way. The application is running in this configuration for a couple of months now, but only last Thursday, I noticed that some of my links on the entry page didn't work anymore. I'm just using two match patterns, and each of them is applied to every month of the year (which makes a total of 24 links), so I saw quickly that only 2 links didn't work, and these were the two April-links. They just returned a completely empty page, no tags or text at all. At first, I thought that the parameter for April had changed, but then, if the parameter's wrong, Cocoon still should return something, like this: page xmlns:sql=http://apache.org/cocoon/SQL/2.0; content rowset nrofrows=0/ /content /page. Any wrong number returned me this, and the valid ones were all working, except for April!! Even worse, when I started troubleshooting, and shutting down/starting up Cocoon, the error started switching between months, e.g., all of a sudden April worked again correctly, whereas now, March returned an empty page. I could observe this error-switching a number of times, it is no hallucination, believe me Five minutes ago, April didn't work, I restart Cocoon, April works, all other links as well for how long? Maybe someone can help me with this specific question (while I'm still trying all sorts of things to locate the error): How can it be that Cocoon returns a completely empty page with just one special parameter, if the query is either working with correct parameters or returning the document shown above with incorrect parameters??? Is there a type of DB errors that Cocoon handles this way? - 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 to write '' in a Cocoon query
I'm trying to add this condition to a query(already functional): and OBJET.OBJ_SUPPRIME 'O' I couldn't even write a simple (according to my book: lt), IE 5 won't open the file as soon as I insert the line... Please help.. Kurt - 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 to use a query result in map:aggregate
I feel like I'm missing an important point in Cocoon. I wanna combine different sources, so map:aggregate would be a means of doing that. But one of these sources is a query, which has to be processed through 2 transformers first(resolve the variable and execute the query). But from what I understand, in map:aggregate, both sources have to be static files. Is that right? Kurt - 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]
Possible to use xsl:template in a query?
The stylesheet below is applied to use a parameter (=odjID) with a query. It is actually applied to a dummy XML, which contains no data (this pattern works just the way I want it). The correponding sitemap entry looks like this: map:generate src=Queries/raw-query.xml/ map:transform src=Queries/odj_query.xsl (=The stylesheet below) map:parameter name=var value={1}/ /map:transform map:transform type=sql. Now I'd like to use the same pattern for something else, and this time, the XML (raw-query above) would contain data I'd like to keep. The problem is that wherever in the XSL I insert something like this: xsl:template match=sql:enTete aTagxsl:value-of select=.//aTag /xsl:template I'm getting a NullPointerException error from Cocoon. At one point, the error log said that inserting an xsl:template element was not allowed here, but moving it around in the XSL didn't help. How can I add the information from the XML then? Here's the styleheet, it works perfectly as long as I don't wanna add another xsl:template section... xsl:stylesheet version=1.0 xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=var/ xsl:template match=/ xsl:variable name=odjID xsl:value-of select=$var/ xsl:apply-templates select=sql:enTete/ /xsl:variable page content execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=titreOJ_séance selectto_char(RE.REU_DATE) as reu_dateReunion, to_char(RE.REU_HDEBUT,'hh24:mi') as reu_heureReunion from REUNION RE where RE.OBJ_ID = xsl:value-of select=$odjID/ /query /execute-query /content /page /xsl:template /xsl:stylesheet - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Possible to use xsl:template in a query?
Or would it be better to just execute the query and then aggregate the result with the XML? I thought it was more elegant to do that through an XSL... -Message d'origine- De: Hahn Kurt (CHA) A: '[EMAIL PROTECTED]' Date: 10.05.02 10:55 Objet: Possible to use xsl:template in a query? The stylesheet below is applied to use a parameter (=odjID) with a query. It is actually applied to a dummy XML, which contains no data (this pattern works just the way I want it). The correponding sitemap entry looks like this: map:generate src=Queries/raw-query.xml/ map:transform src=Queries/odj_query.xsl (=The stylesheet below) map:parameter name=var value={1}/ /map:transform map:transform type=sql. Now I'd like to use the same pattern for something else, and this time, the XML (raw-query above) would contain data I'd like to keep. The problem is that wherever in the XSL I insert something like this: xsl:template match=sql:enTete aTagxsl:value-of select=.//aTag /xsl:template I'm getting a NullPointerException error from Cocoon. At one point, the error log said that inserting an xsl:template element was not allowed here, but moving it around in the XSL didn't help. How can I add the information from the XML then? Here's the styleheet, it works perfectly as long as I don't wanna add another xsl:template section... xsl:stylesheet version=1.0 xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=var/ xsl:template match=/ xsl:variable name=odjID xsl:value-of select=$var/ xsl:apply-templates select=sql:enTete/ /xsl:variable page content execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=titreOJ_séance selectto_char(RE.REU_DATE) as reu_dateReunion, to_char(RE.REU_HDEBUT,'hh24:mi') as reu_heureReunion from REUNION RE where RE.OBJ_ID = xsl:value-of select=$odjID/ /query /execute-query /content /page /xsl:template /xsl:stylesheet - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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 to use an aggregator /looking for documentation
Could anyone point to the documentation about how to use aggregators? Are there built-in examples in Cocoon? Kurt - 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]
Returning result from two select statements in one file
I'm developing a Cocoon application wich produces PDF files from a file which is generated by a DB access (Oracle). The problem is the query: The results I should get looks like this: row field1text/field1 ... fieldNtext/fieldN field1FromSecondSelecttext/field1FromSecondSelect ... fieldNFromSecondSelecttext/fieldNFromSecondSelect /row where fieldFromSecondSelect are 0 or more rows which are returned and should be grouped with the main select. In PL/SQL, I could write a stored procedure with a cursor that's returning me the second result set, but what's the way to do that in Cocoon? So far, I succeeded to write a select statement that's returning me all I need, but whenever the sub-select returns more than 1 row, the corresponding result from the main query is returned several times too, like this: row field1text/field1 ... fieldNtext/fieldN field1FromSecondSelecttext/field1FromSecondSelect /row row field1same text again/field1 ... fieldNsame text again/fieldN field2FromSecondSelecttext/field2FromSecondSelect /row row field1same text again/field1 ... fieldNsame text again/fieldN field3FromSecondSelecttext/field3FromSecondSelect /row and so on. This means I would have to sort this multiple fields later, in a XSL, but that doesn't seem a very smart thing to do, I guess. Any suggestions? KH - 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: Returning result from two select statements in one file
That's a good suggestion. I'll try that! -Message d'origine- De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] Envoye : jeudi, 25. avril 2002 11:46 A : [EMAIL PROTECTED] Objet : Re: Returning result from two select statements in one file Salut Kurt, On Thursday 25 April 2002 11:00, Hahn Kurt (CHA) wrote: . . . Example: The first select returns a row, and dependent on the result of that row, a second select returns zero, one ore more rows that should be added to the first returned row (as if they belonged to the result from the first select..). . . . How about chaining two SQLTransformers? 1. first SQLTransformer makes query 2. XSLT transform computes second query based on first results and places it at the right position in XML 3. second SQLTransformer makes sub-query I *think* SQLTransformer leaves the rest of the document intact, in which case this could work and be nicely modularized. -Bertrand - 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: Newbie Please Help
Hi, if you have a proper and standard installation (Cocoon is already working, isn't it?), you should be able to use this example which will probably answer some of your questions: http://www.cocooncenter.org/cc/documents/resources/hot-plugging/index.html . -Message d'origine- De: Patrick Russell [mailto:[EMAIL PROTECTED]] Date: lundi, 22. avril 2002 04:01 À: [EMAIL PROTECTED] Objet: Newbie Please Help I am new to Cocoon and I am trying to transform a simple xml document into a pdf format. Although its seems like I have Cocoon properly installed (JDK 1.4, TOMCAT 4.0.3, Cocoon 2.0.1), I cannot seem to figure were to install my files to serve my pages up correctly. I keep on getting a resource not found error. I performed the following steps: 1. Created the following directories under the cocoon directory within the TOMCAT_HOME/webapps/ directory: test/ content/ resume.xml resume.dtd styles/ resume.xsl sitemap.xmap 2. I copied the sitemap.xmap from the samples directory, deleted the pipelines section and then added my own as follows /map:pipeline /map:pipelines map:match pattern=test/*.pdf map:generate src=content/pqr_resume.xml/ map:transform src=style/pqr_resume.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline /map:pipelines 3. I even tried to add the map to the samples hello-world example, adjusted the map to match the others in the example, and moved my files corresponding locations as the others in the example, but I still get the same error. Any help you could provide would be greatly appreciated! - 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: i18n default language
Hi all, to have a default language which is called automatically if you choose no locale in the URL, I had to modify the source file, e.g I added my default language to the root element, which does the trick. page xml:lang=fr xmlns:i18n=http://apache.org/cocoon/i18n/2.0; Of course, if there's a way I can achieve this without actually writing it to the source files, I would be happy to know about. -Message d'origine- De: Volker Schneider [mailto:[EMAIL PROTECTED]] Date: mercredi, 17. avril 2002 12:57 À: 'Hahn Kurt (CHA)' Objet: RE: i18n problem Hi Kurt, my experience was, that if I don't use the locale parameter, I get the content from messages_de.xml, because I don't have a messages.xml file. But I don't know where the default value de comes from. Regards - Volker - -Original Message- From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 17. April 2002 08:59 To: '[EMAIL PROTECTED]' Subject: RE: i18n problem Hi Volker, thanks for your hints, I'm about to try it out. Just one question: As in the example , I also created a file messages.xml, which will contain the default language. Am I right in thinking that if I don't specify any locale in the URL, Cocoon is supposed to use the translations in this file? Kurt -Message d'origine- De: Volker Schneider [mailto:[EMAIL PROTECTED]] Date: lundi, 15. avril 2002 12:40 À: [EMAIL PROTECTED] Objet: RE: i18n problem Hi Kurt, please see the mails of last friday talking with Konstantin Piroumian about this topic. The documentation is old. You have to do the following: Create 2 Files messages_en and messages_fr. Each file has to look like this: ?xml version=1.0 encoding=UTF-8? !-- CVS $Id: messages_en.xml,v 1.2 2002/01/30 14:56:12 sylvain Exp $ -- !-- English message catalogue file -- catalogue xml:lang=en message key=DeutschlandGermany/message message key=SchweizSwitzerland/message ... /catalogue and the same for french. Make sure the you have defined the filename prefix and the location in the sitemap: map:transformer logger=sitemap.transformer.i18n name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogue-namemessages/catalogue-name catalogue-locationtranslation/catalogue-location /map:transformer Then you can use the tags: ... i18n:textDeutschland/i18n:text ... if you have defined the i18n-namespace. If you want to translate the output of a stylesheet, put it inside the body-tag to avoid syntax errors: ?xml version=1.0 encoding=UTF-8 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xlink=http://www.w3.org/1999/xlink; xsl:template match=/ html xmlns:i18n=http://apache.org/cocoon/i18n/2.0; body ... /body /html /xsl:template match=/ If you have further questions, feel free to ask. Maybe I can help you. Best regards, - Volker - -Original Message- From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Montag, 15. April 2002 12:05 To: '[EMAIL PROTECTED]' Subject: i18n problem I'm trying to reproduce the i18n sample in my application, and can't get it to work. I think I missed one step during setup, maybe someone can help: 1. I created a folder translations, with the files messages.xml and messages_en.xml (this way I didn't have to change the entry in the main Cocoon sitemap) 2. I added a line : i18n:textHello/i18n:text to my .xml-file I want to display, this text should be resolved in my messages.xml file, which contains: entry keyHello/key translation lang=enHello, internationalization!/translation translation lang=frBonjour, internationalization!/translation translation lang=deHerzlich willkommen, Internationalisierung!/translation /entry. 3. The match in my sitemap goes like this: map:generate src=enter.xml/ map:transform type=i18n/ map:transform src=Stylesheets/choices.xsl/ map:serialize type=html/ This gives me as result the line untranslated-text. I tried to add parameters to add to transform type..., as in the documentation: map:transform type=i18n parameter name=available_lang_1 value=en/ parameter name=available_lang_2 value=fr/ /map:transform but this gave a me general sitemap error (Cocoon wouldn't start up anymore). Any ideas? - 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
RE: ResourceReader crash
I don't know if this affects a user. The situation where you have to reload the same page several times normally only occurs if you're developing, doesn't it? At least, until now I thought so. Anyway, if that problem really is caused by the browser, there's not much you can do about it, can you? Kurt -Message d'origine- De: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Date: mercredi, 17. avril 2002 12:09 À: [EMAIL PROTECTED] Objet: Re: ResourceReader crash Hello Kurt, Thank you for your help. Your hint is very interesting and it could be useful for me but what about users of my web application based on the Cocoon? They even aren't aware of these errors because as I've said the browser displays data correctly. Ok, if there is no harm consequence then we could forget about these error messages. Though I'm not sure. Roman Hahn Kurt (CHA) wrote: I'm not sure if I understood everything in your post, but I sometimes have a similar entry in the console, though I didn't pay much attention to it since I'm developing and do sometime try things that could generate errors... Anyway, I always thought it was a browser problem, since it should reload the URL if you hit refresh or re-enter the URL, but many times it doesn't. Maybe at this moment, it severs the connection. If you think taht could be your case as well, try this: someone gave me pretty useful hint: On Windows and IE, Ctrl-[F5] empties the browser-cache, thus ensuring that if you hit Refresh, the page will be loaded again. Does that anything have to do with your problem at all? Kurt -Message d'origine- De: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Date: mercredi, 17. avril 2002 10:45 À: Cocoon users mail list Objet: ResourceReader crash Hello all, Can somebody answer is it a bug of Cocoon (v 2.0.1, server Tomcat 4.01) or not? When browser, in particular IE 5.0 or 5.5, reads some data, in particular css file, several times it sometimes severs the connection if the data are old and cashed (IE does it even reread page every time option is set). Cocoon's servlet after several such requests generates error reports in logs and server console. For example, in sitemap.log it prints at the beginning: ResourceReader: Received an IOException, assuming client severed connection on purpose However after several such messages it begins printing of following messages: DEBUG (2002-04-17) 11:19.02:999 [sitemap.transformer.xslt] (/cocoon/mycss.css) HttpProcessor[8080][3]/TraxTransformer: Using stylesheet: 'file:/W:/jakarta-tomcat-4.0/webapps/cocoon/stylesheets/system/error2html.xs l' in org.apache.cocoon.transformation.TraxTransformer@63de4e, last modified: 1015492495836 And in the server's console: java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer : socket write error at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3174) at java.lang.Thread.run(Thread.java:484) Meantime, no error messages are appears in the browser and it seems to be displaying data correctly. So is it a bug of Cocoon? I've attached a zip archive with some pieces of logs and with files csstest.html, mycss.css and sitemap.xmap with which I've reproduced this error on three different server stations. Thank you for response. Roman - 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]
Still problems with i18n for FRENCH
Hi, sorry to bother again with i18n. Strange thing: I got it working, but only for the languages that are predefined (the ones in the sample). However, I created a messages_fr.xml file for french translations, but calling the ...?locale=fr URL gives me untranslated text again. (whereas the other prefixes do work) Do I have to change the sitemap in order to be able to use fr? Or do I need to add a key for French in messages.xml? Though it seems to me that this file isn't used at all, I'll try to remove it once everything's working as I want it. Thanks for any hints Kurt - 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: Still problems with i18n for FRENCH Solution found
Sorry, it was a stupid fault of mine, I had an french caracter in the messages_fr file which made unreadable for the parser. Problem solved So please ignore my previous messages K. -Message d'origine- De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Date: mercredi, 17. avril 2002 09:35 á: '[EMAIL PROTECTED]' Objet: Still problems with i18n for FRENCH Hi, sorry to bother again with i18n. Strange thing: I got it working, but only for the languages that are predefined (the ones in the sample). However, I created a messages_fr.xml file for french translations, but calling the ...?locale=fr URL gives me untranslated text again. (whereas the other prefixes do work) Do I have to change the sitemap in order to be able to use fr? Or do I need to add a key for French in messages.xml? Though it seems to me that this file isn't used at all, I'll try to remove it once everything's working as I want it. Thanks for any hints Kurt - 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: ResourceReader crash
I'm not sure if I understood everything in your post, but I sometimes have a similar entry in the console, though I didn't pay much attention to it since I'm developing and do sometime try things that could generate errors... Anyway, I always thought it was a browser problem, since it should reload the URL if you hit refresh or re-enter the URL, but many times it doesn't. Maybe at this moment, it severs the connection. If you think taht could be your case as well, try this: someone gave me pretty useful hint: On Windows and IE, Ctrl-[F5] empties the browser-cache, thus ensuring that if you hit Refresh, the page will be loaded again. Does that anything have to do with your problem at all? Kurt -Message d'origine- De: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Date: mercredi, 17. avril 2002 10:45 À: Cocoon users mail list Objet: ResourceReader crash Hello all, Can somebody answer is it a bug of Cocoon (v 2.0.1, server Tomcat 4.01) or not? When browser, in particular IE 5.0 or 5.5, reads some data, in particular css file, several times it sometimes severs the connection if the data are old and cashed (IE does it even reread page every time option is set). Cocoon's servlet after several such requests generates error reports in logs and server console. For example, in sitemap.log it prints at the beginning: ResourceReader: Received an IOException, assuming client severed connection on purpose However after several such messages it begins printing of following messages: DEBUG (2002-04-17) 11:19.02:999 [sitemap.transformer.xslt] (/cocoon/mycss.css) HttpProcessor[8080][3]/TraxTransformer: Using stylesheet: 'file:/W:/jakarta-tomcat-4.0/webapps/cocoon/stylesheets/system/error2html.xs l' in org.apache.cocoon.transformation.TraxTransformer@63de4e, last modified: 1015492495836 And in the server's console: java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer : socket write error at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3174) at java.lang.Thread.run(Thread.java:484) Meantime, no error messages are appears in the browser and it seems to be displaying data correctly. So is it a bug of Cocoon? I've attached a zip archive with some pieces of logs and with files csstest.html, mycss.css and sitemap.xmap with which I've reproduced this error on three different server stations. Thank you for response. Roman - 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: please, please, ... help with SQL transformer
Since nobody else answered, I'll give it a try. I don't know how that works with Access, but your datasource declaration seems incomplete. E.g. here's mine (of course it looks differently because your using JDBC-ODCB for Access, whereas with Oracle, there's a native JDBC-driver): datasources !-- Oracle DB -- jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true / auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userMyUsername/user passwordMyPW/password /jdbc Something else you could try is, in web.xml, comment out the IBM Websphere section, and place your declaration in front of the other one. Can sometimes help in case of a strange classloader problem. Otherwise, give us more info. Check the various logs for that. Or try to use Oracle directly, I think it is easier for Java applications. Did you test your connection in another front-end application? E.g. a small Java program,just to see if it works. Regards Kurt -Message d'origine- De: Jerónimo Molina [mailto:[EMAIL PROTECTED]] Date: mercredi, 10. avril 2002 16:57 À: [EMAIL PROTECTED] Objet: please, please, ... help with SQL transformer Hi all (sorry for my poor english): My name's Jeronimo Molina, and I'm neby with cocoon. I'm trying to work with SQL transformers, for generate an HTML page with data stored in a ACCESS database on my machine (it's my first work with cocoon, so I don't want to do this with ORACLE any other DB). I'm trying to do this at the next steps: 1.- Configure the JDBC-ODBC driver at the web.xml file, by adding sun.jdbc.odbc.JdbcOdbcDriver as shown bellow: init-param param-nameload-class/param-name !-- For IBM WebSphere com.ibm.servlet.classloader.Handler -- !-- For Database Driver -- oprg.hsqldb.jdbcDriver !-- For JDBC:ODBC -- sun.jdbc.odbc.JdbcOdbcDriver /param-value /init-pram 2.- Configure the connection ad the cocoon.xml file as shown bellow: datasources jdbc name=personas dburljdbc:odbc:nombres/dburl /jdbc /datasources Note that nombres is the name of the ODBC I've just created pointing to my access database. 3.- Configure the sitemap.xmap file to use my new connection. I've done this modifying a line: map:match pattern=sql/* map:generate src=docs/samples/sql/{1}.xml/ map:transform type=sql map:parameter name=use-connection value=personas/ /map:transform map:transform src=stylesheets/simple-sql2html.xsl/ map:serialize/ /map:match 4.- I've also modified the sql-page.xml, putting the code query select id,nombre from nombres /query (where nombres is the table name) in order of the query example provided in that file. BUT I don't get the data stored in my access database, and I don't know why. please, can anyone help me? Thanks... Jeronimo. - 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: Hi
Go to www.cocooncenter.org, look for the mini-example. It's very comprehensive. Regards Kurt -Message d'origine- De: Ali, Farhan [mailto:[EMAIL PROTECTED]] Date: jeudi, 11. avril 2002 01:30 À: [EMAIL PROTECTED] Objet: Hi Hi, Can anybody send me multiple samples of xsl along with xml files for generation of PDF's in Cocoon2.0.2 So that i could be see the source code of multiple samples If there is any link of samples than plz send me the url Thanks Farhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, 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] - 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]
Validating an XSL-FO
I'm trying to produce PDF-documents, and I'm really desperate. For a while, I tried to apply some minor changes to a previously working XSL, and all I get since then is the Acrobat message The file is damaged and could not be repaired. However, if I choose xml as ouput instead, everything looks fine to me, I get a well-formed document. Is there a way I can validate such a document? I mean something similar to a compiler, that tells me at least WHERE in the document the error occurred? 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: problem vith sub_sitemap
Hmmm. I'm a newbie, but I managed to mount a subsystem, though I put in the Cocoon-directory, but that shouldn't change much. In my configuration, I didn't point the src= to the sitemap, but only to the directory which contains the sitemap, like: map:pipeline map:match pattern=Kurt/** map:mount uri-prefix=Kurt src=Kurt/ check-reload=yes/ /map:match /map:pipeline So why don't you try that: src=///./site/ instead of src=///./site/sitemap.xmap Regards Kurt -Message d'origine- De: Olivier GUCKERT [mailto:[EMAIL PROTECTED]] Date: mercredi, 3. avril 2002 10:57 À: [EMAIL PROTECTED] Objet: problem vith sub_sitemap Hello I have a problem with sub-sitemap. I want to have a directory for my apps. This directory is : G:\site. So, i add a pipeline in sitemap.xmap, look like this : map:pipeline map:match pattern=transfo/** map:mount uri-prefix=transfo src=///./site/sitemap.xmap reload-method=synchron check-reload=yes/ /map:match /map:pipeline And i create a sub-sitemal in G:\site, look like this : ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; /map:pipelines map:pipeline map:handle-errors map:transform src=stylesheets/system/error2html.xsl/ map:serialize status-code=500/ map:handle-errors map:match pattern=ctwig/basic01-01.xml map:generate type=file src=documents/basic01-01.xml/ map:transform type=xslt src=stylesheets/basic01-01.xsl/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap And when i cold : http://localhost:8080/cocoon/transfo/ctwig/basic01-01.xml I have the folowing message : org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 73, column 25: ';' expected. Line 224, column 8: Invalid expression statement. Line 224, column 17: ';' expected. Line 329, column 12: ')' expected. Line 378, column 17: Identifier expected. Line 492, column 50: ')' expected. Line 497, column 38: ')' expected. Line 503, column 49: ')' expected. Line 0, column 0: 8 errors And i cann anderstand. Cann somebody help me ? - 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 vith sub_sitemap
I was going to write that, too. Since I don't know which components have to be defined (some should be automatically inherited, I think) and which can be omitted, I just edited the sitemap that comes with Cocoon. I think it's easier to strip parts away and see what happens once you get it working. Also, even though I wanted to mount my own subsystem too, I see now that this is not always a good solution, and I'm mounting my sitemaps in the automount directory (Cocoon/mount) now. The advantage is that the systems I'm creating will be portable, I'll be able to mount them without any additional work (no changes in the Cocoon-sitemap at all!) on ANY standard Cocoon installation. You might wanna consider that as well. Regards krut -Message d'origine- De: oystein hauge [mailto:[EMAIL PROTECTED]] Date: mercredi, 3. avril 2002 11:26 À: [EMAIL PROTECTED] Objet: RE: problem vith sub_sitemap Other pages in cocoon still works? If yes, your problem is in the sub-sitemap (g:\site\sitemap.xmap), not the mounting in the main sitemap. There are several typo's in the sitemap. IIRC, some components also has to be specified. Use a sample sitemap and edit it instead. Øystein ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; /map:pipelines map:pipeline map:handle-errors map:transform src=stylesheets/system/error2html.xsl/ map:serialize status-code=500/ map:handle-errors map:match pattern=ctwig/basic01-01.xml map:generate type=file src=documents/basic01-01.xml/ map:transform type=xslt src=stylesheets/basic01-01.xsl/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap And when i cold : http://localhost:8080/cocoon/transfo/ctwig/basic01-01.xml I have the folowing message : org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 73, column 25: ';' expected. Line 224, column 8: Invalid expression statement. Line 224, column 17: ';' expected. Line 329, column 12: ')' expected. Line 378, column 17: Identifier expected. Line 492, column 50: ')' expected. Line 497, column 38: ')' expected. Line 503, column 49: ')' expected. Line 0, column 0: 8 errors And i cann anderstand. Cann somebody help me ? - 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]
Simple XSL problem, but NEED HELP!
I really start losing it, I'm trying to do something very simple for hours, and it just wouldn't work. With an XML document like this: page (root element) content rowset row loj_pt_odj / obj_numero_gctext/obj_numero_gc obj_soustypetext/obj_soustype obj_concattitregc1text /obj_concattitregc1 obj_concattitregc2 / /row .../rowset . /content I'm trying to do some simple transformations. This: xsl:template match=/ listeAffaires xsl:value-of select=//content/ /listeAffaires /xsl:template gives me everything in the original document, and that's OK. However, I replace content with some other element, like xsl:value-of select=//row/ it gives me just an empty tag, although, according to my XSL sources, the operator // can be used to reference as many levels down in the hierarchy as necessary. Can anybody help me out here? - 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: Simple XSL problem, but NEED HELP!
Actually, the problem was something else, somebody else just pointed me to check for different namespaces, and that solved the problem, I needed to reference the elements with their corresponding NS. Thanks -Message d'origine- De: TREGAN Fabien [mailto:[EMAIL PROTECTED]] Date: jeudi, 28. mars 2002 10:45 À: '[EMAIL PROTECTED]' Objet: RE: Simple XSL problem, but NEED HELP! -Message d'origine- De: Andreas Hartmann [mailto:[EMAIL PROTECTED]] Hi, / At least in your example the row tag has no value, so it is absolutely correct that nothing is returned. If you use xsl:value-of, you will only get the value of the matched tag. If you want a copy of all the tag, us xsl:copy. If you need to copy all the tag, attributs, and inner tag, you can use recursive-copy by using a named template and applying your template to the node to be copyed. I think that the template should look like : xsl:template name=copyall xsl:copy xsl:for-each select=@*|node() xsl:call-templates name=copyall/ /xsl:copy /xsl:template hope this works, i've not practiced for a long time :) Greetings, Andreas - 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]
Problems accessing database,
Cocoon 2.01, Tomcat 4.01, Oracle db I can't access my Oracle db, no errors, just this entry in the core log: WARN(2002-03-26) 09:11.01:401 [core] (/cocoon/Kurt/testsxml/HD/base/query.xml) HttpProcessor[8080][3]/LogKitLogger: Could not return Connection java.lang.IllegalStateException: There are no connections in the pool, check your settings. I defined my connection in the sitemap: map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / /map:transform where the connection name points to the following datasource in cocoon.xconf: jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true/ auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userverbalix/user passwordxml/password /jdbc If I try to execute a test query based on this entries, nothing happens, but Cocoon seems to be working in the background (very high CPU usage by java.exe), and I have to force Tomcat to shutdown. The settings in xconf return data when used in a regular Java program. Any ideas what's going 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]
TR: Problems accessing database,
Now I found an additional entry in the access log: DEBUG (2002-03-26) 10:48.43:410 [access] (Unknown-URI) Unknown-thread/CocoonServlet: parent-component-manager was not set - defaulting to null. DEBUG (2002-03-26) 10:48.43:430 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Trying to load class: oracle.jdbc.driver.OracleDriver WARN(2002-03-26) 10:48.43:440 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Could not force-load class: oracle.jdbc.driver.OracleDriver java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) Does anybody why Cocoon can't load the class while the same is working in a Java program? -Message d'origine- De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Date: mardi, 26. mars 2002 10:16 À: [EMAIL PROTECTED] Objet: Problems accessing database, Cocoon 2.01, Tomcat 4.01, Oracle db I can't access my Oracle db, no errors, just this entry in the core log: WARN(2002-03-26) 09:11.01:401 [core] (/cocoon/Kurt/testsxml/HD/base/query.xml) HttpProcessor[8080][3]/LogKitLogger: Could not return Connection java.lang.IllegalStateException: There are no connections in the pool, check your settings. I defined my connection in the sitemap: map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / /map:transform where the connection name points to the following datasource in cocoon.xconf: jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true/ auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userverbalix/user passwordxml/password /jdbc If I try to execute a test query based on this entries, nothing happens, but Cocoon seems to be working in the background (very high CPU usage by java.exe), and I have to force Tomcat to shutdown. The settings in xconf return data when used in a regular Java program. Any ideas what's going 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] - 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: Problems accessing database,
Thanks, I changed a number of configurations, including the Web.xml file, and now it's working! -Message d'origine- De: Sozonnik Andrew [mailto:[EMAIL PROTECTED]] Date: mardi, 26. mars 2002 11:22 À: [EMAIL PROTECTED] Objet: RE: Problems accessing database, First you have to load Oracle driver in WEB-INF/web.xml init-param param-nameload-class/param-name param-value oracle.jdbc.driver.OracleDriver /param-value /init-param -Original Message- From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 11:56 AM To: '[EMAIL PROTECTED]' Subject: TR: Problems accessing database, Now I found an additional entry in the access log: DEBUG (2002-03-26) 10:48.43:410 [access] (Unknown-URI) Unknown-thread/CocoonServlet: parent-component-manager was not set - defaulting to null. DEBUG (2002-03-26) 10:48.43:430 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Trying to load class: oracle.jdbc.driver.OracleDriver WARN(2002-03-26) 10:48.43:440 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Could not force-load class: oracle.jdbc.driver.OracleDriver java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) Does anybody why Cocoon can't load the class while the same is working in a Java program? -Message d'origine- De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Date: mardi, 26. mars 2002 10:16 À: [EMAIL PROTECTED] Objet: Problems accessing database, Cocoon 2.01, Tomcat 4.01, Oracle db I can't access my Oracle db, no errors, just this entry in the core log: WARN(2002-03-26) 09:11.01:401 [core] (/cocoon/Kurt/testsxml/HD/base/query.xml) HttpProcessor[8080][3]/LogKitLogger: Could not return Connection java.lang.IllegalStateException: There are no connections in the pool, check your settings. I defined my connection in the sitemap: map:transform type=sql map:parameter name=use-connection value=aigle_oracle_pool / /map:transform where the connection name points to the following datasource in cocoon.xconf: jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true/ auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userverbalix/user passwordxml/password /jdbc If I try to execute a test query based on this entries, nothing happens, but Cocoon seems to be working in the background (very high CPU usage by java.exe), and I have to force Tomcat to shutdown. The settings in xconf return data when used in a regular Java program. Any ideas what's going 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] - 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: Database connection problem
I'm still a Cocoon beginner, and I just got my db connection working yesterday, and my dburl in datasources looks a bit different, like this: dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl I don't know whether you should replace the //localhost by @localhost? Maybe it's worth a try Regards Kurt -Message d'origine- De: Derek Hohls [mailto:[EMAIL PROTECTED]] Date: mercredi, 27. mars 2002 07:39 À: [EMAIL PROTECTED] Objet: Re: Database connection problem 1) The jdbc driver file is loaded under: WEB-INF/classes/ 2) The xconf file contains: datasources jdbc name=my_connection pool-controller min=5 max=10/ auto-committrue/auto-commit dburljdbc:mysql://localhost:3306/mydbase/dburl userfoo/user passwordbar/password /jdbc /datasources 3) I am not sure what you mean by access.log - I only have cocoon.log and root.log in my WEB-INF/logs directory? The first enty in the cocoon.log has the line: FATAL_E (2002-03-26) 15:31.06:158 [cocoon ] (Unknown-URI) Unknown-thread/JdbcConnectionPool: Excalibur could not create any connections. Examine your settings to make sure they are correct. Make sure you can connect with the same settings on your machine. The root.log has no entries in it at all... Thanks for responding - any comments on the above?? Derek [EMAIL PROTECTED] 26/03/2002 05:11:18 1) You must have jdbc driver file in classpath 2) Check your cocoon.xconf for datasources.../datasources for pool configuration 3) See access.log for message like this DEBUG (2002-03-26) 17:04.45:713 [access] (Unknown-URI) Unknown-thread/Cocoon Servlet: Trying to load class: org.gjt.mm.mysql.Driver - Original Message - From: Derek Hohls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 4:43 PM Subject: Database connection problem When trying to connect to a mySQL database, I get: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. I already have the setting for the driver in the web.xml; init-param param-nameload-class/param-name param-valueorg.gjt.mm.mysql.Driver/param-value /init-param I can also connect to, and 'see' the database with another, front-end program. In fact, the connection AND database were working previously - does anyone know if a mod_rewrite for the site in the Apache server would affect this?? (seems strange, but thats the only major change that has happened on the server that I know about) I have also checked the connection without using the VirtualHost and get the same results... Any ideas as to what else to check? Thanks Derek - 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]
RE: Where i can get detailed information of sitemap and parameters
Once your Cocoon is running, you should be able to get to the detailled explanation simply by clicking on the appropriate links. Or try this: http://localhost:8080/cocoon/documents/userdocs/concepts/sitemap.html. If oyu have a standard installation, it will take you to it. -Message d'origine- De: Sreenivasan N. [mailto:[EMAIL PROTECTED]] Date: vendredi, 22. mars 2002 09:32 À: [EMAIL PROTECTED] Objet: Where i can get detailed information of sitemap and parameters Hi all I was looking into bonebreaker sample site where the sitemap of bonebreaker says map:generate src=documents / {1} / {2}.xml/ what is the meaning of {1} / {2}.xml Is there any guideline or tutorial for sitemap configuration? Regards Sreenivasan. Attitudes are much more important than aptitudes. Nothing is impossible for a willing heart Sreenivasan N. Sony SARD Ext 232 Email. [EMAIL PROTECTED] Per: [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]