RE: New name of the input-module name=URI/...
From: Antonio Gallardo Rivera Thanks Chris. Can I remove it? Yes! Simply use: {request:requestURI} instead or any other property from the Cocoon Request object. Take a look at the input modules sample for almost the complete list of possible values. It's in Cocoon 2.1-dev at: http://localhost:8080/cocoon/samples/modules/ (for Tomcat) Regards, Konstantin Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribiÕ: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. - 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: Cocoon and EJB
I have a logicsheet for EJB somewhere, but was developed for Cocoon 1. If anybody is interested then I can try to find it and send. -- Konstantin Piroumian -Original Message- From: Martin Schimak [mailto:cocoon-users;schimak.at] Sent: Friday, October 25, 2002 6:46 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon and EJB Bruno Collet wrote: I have a doubt whether it is possible (and easy :) to fetch data from EJB (connected to a DB) and produce HTML pages from both XML/XSL documents and these data. Despite Michael Homeijer interesting answers, there were not many responses, and it seems to me there are never a lot when it comes to EJB and Cocoon. As I am also interested, is really nobody out there who knows much more about it...? Are there any resources available focusing on EJB and Cocoon? Many thx in advance, Martin. - 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: Cocoon and EJB
Here is the EJB logicsheet for Cocoon 1 and I think that it can be easily adapted for Cocoon 2. The author is Yvon Pedron ([EMAIL PROTECTED]), but he does not support it any more. -- Konstantin Piroumian -Original Message- From: Martin Schimak [mailto:cocoon-users;schimak.at] Sent: Friday, October 25, 2002 6:54 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon and EJB Piroumian Konstantin wrote: I have a logicsheet for EJB somewhere, but was developed for Cocoon 1. If anybody is interested then I can try to find it and send. If it's not too complicated, yes, please, would be interesting to look into. Martin. -- Konstantin Piroumian -Original Message- From: Martin Schimak [mailto:cocoon-users;schimak.at] Sent: Friday, October 25, 2002 6:46 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon and EJB Bruno Collet wrote: I have a doubt whether it is possible (and easy :) to fetch data from EJB (connected to a DB) and produce HTML pages from both XML/XSL documents and these data. Despite Michael Homeijer interesting answers, there were not many responses, and it seems to me there are never a lot when it comes to EJB and Cocoon. As I am also interested, is really nobody out there who knows much more about it...? Are there any resources available focusing on EJB and Cocoon? Many thx in advance, Martin. - 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] ejb-logicsheet.zip Description: Binary data - 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: Cocoon and EJB
From: Gustavo Nalle Fernandes [mailto:gustavonf;terra.com.br] In J2EE world, cocoon would play the role of the presentation tier, same as struts. In some cases, cocoon would bypass EJBs, to provide read-only data-retrieval (faster than instantiate thousands of bean in memory). What about a ValueObject generator, that by reflection generates sax events containing a bean atributes and values, with the option of specifing the depth (number of levels of child beans) wanted ? Value objects can be easily XML-ized using Castor transformer. Take a look at it in Cocoon scratchpad. Somebody suggested already this solution and also the JXPath-based generation or XSP logicsheet generator. -- Konstantin Gustavo -Mensagem original- De: Emmanuil Batsis (Manos) [mailto:mbatsis;humanmarkup.org] Enviada em: sexta-feira, 25 de outubro de 2002 11:59 Para: [EMAIL PROTECTED] Assunto: Re: Cocoon and EJB Martin Schimak wrote: Are there any resources available focusing on EJB and Cocoon? The million dollar question. I'm trying to push Cocoon in the company I work for and I keep stumbling upon it. Manos - 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: JSPEngineImplWLS
The source of the class is definitely there: \xml-cocoon\2.0.3\src\java\org\apache\cocoon\components\jsp\JSPEngineImplWLS .java But it will be compiled only if WebLogic servlet classes are present. Particularly, build looks for a weblogic.servlet.internal.ServletContextImpl class in the classpath. Note, that JSPEngineImplWLS.java was intended for use with WL 5.1 and there were problems using it with WL 6.x, because of changes in WL implementation of servlet interfaces. It's better to try to use the JSPEngineImplNamedDispatchedInclude instead. -- Konstantin Piroumian -Original Message- From: Foo, Chris [mailto:Chris.Foo;cognos.com] Sent: Wednesday, October 23, 2002 8:33 PM To: '[EMAIL PROTECTED]' Subject: JSPEngineImplWLS Hello, Has anybody had success implementing JSPs under Cocoon 2.03 and Weblogic? The C2 documentation http://xml.apache.org/cocoon/userdocs/generators/jsp- generator.html details that a file, my.roles, should be created and that the default-class entry should be org.apache.cocoon.compenents.jsp.JSPEngineImplWLS. When I open cocoon-2.0.3.jar, however, there is no such class; the closest matches are JSPEngineImpl.class and JSPEngineImplNamedDispatchedInclude.class. I attempted to run an application using the documented instructions, but the following error occured: ERROR (2002-10-23) 12:32.42:906 [core.manager] (Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.jsp.JSPEngineImplWLS for role org.apache.cocoon.components.jsp.JSPEngine on configuration element jsp-engine java.lang.ClassNotFoundException: org.apache.cocoon.components.jsp.JSPEngineImplWLS Thanks for any help, Chris Chris Foo *Analytical Applications* *COGNOS INC* *Tel:(613) 738-1338 ext.3787* *[EMAIL PROTECTED]* This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - 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: Emitting SAX events
From: simo kauranen [mailto:slkauranen;yahoo.com] I have a transformer which writes the incoming document to disk. Does anyone happen to know how I could forward the SAX events after writing down the pipeline? AbstractSAXTransformer has some send methods but how to use them? Now my code looks like this: ... public void startDocument(){ writeToDisk(?xml version=\1.0\ encoding=\ISO-8859-1\?); super.startDocument(); } public void startElement(...) { writeToDisk(...); super.startElement(...); } public void endElement(...) { writeToDisk(...); super.endElement(...); } Btw, the SourceWritingTransformer does something like this already. -- Konstantin Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.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: Emitting SAX events
From: simo kauranen [mailto:slkauranen;yahoo.com] Thanks for the tip. Now the transformer forwards all tags ok, but not the contents of them. And for some reason xml-serializer don't like what it gets saying: To forward the contents of the tags you should call the super.characters() method if you override it too. Otherwise, something's wrong in your code. XML document must have a top level element. Are overriding all ContentHandler methods or only part of them? Do you call super.*** for every one? This allthough the forwarded SAX events when written in a file form a valid xml file. Can't help more, sorry. You should check your own code for errors or missing super.*** calls. -- Konstantin S.K. --- Piroumian Konstantin [EMAIL PROTECTED] wrote: From: simo kauranen [mailto:slkauranen;yahoo.com] I have a transformer which writes the incoming document to disk. Does anyone happen to know how I could forward the SAX events after writing down the pipeline? AbstractSAXTransformer has some send methods but how to use them? Now my code looks like this: ... public void startDocument(){ writeToDisk(?xml version=\1.0\ encoding=\ISO-8859-1\?); super.startDocument(); } public void startElement(...) { writeToDisk(...); super.startElement(...); } public void endElement(...) { writeToDisk(...); super.endElement(...); } Btw, the SourceWritingTransformer does something like this already. -- Konstantin Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.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] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.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: Date Input Module
Christian, From: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] On 18.Oct.2002 -- 12:21 PM, Martin Schimak wrote: Hello! Does anybody know how to tell the Date Input Module to deliver a certain date format? see java.text.SimpleDateFormat and pass it via the format attribute. So currently, you cannot provide a format if you use it from sitemap, only when using it together with the mod-db actions. mode name=date format=EEE, MMM d, ''yy type=all/ for example. What if we could do this in the sitemap: map:parameter name=date value={date:date?format=dd/MM/yy} /? -- Konstantin Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Date Input Module
From: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] On 18.Oct.2002 -- 03:41 PM, Piroumian Konstantin wrote: Christian, ... What if we could do this in the sitemap: map:parameter name=date value={date:date?format=dd/MM/yy} /? It would be possible (easily) to extent the module in this way. Another, easy and for consistency needed extension is to allow configuration on declaration. Another idea came to me just as I wrote the previous letter. If we make the Date Input Module JXPath-enabled then it'll be easy to extend it by custom functions and use something like this: ... value={format-date(date, 'dd/MM/'} ... Though, this will require some additional configuration to plug-in function libraries to JXPath engine. And, btw, extending JXPath is quite easy using custom functions. Just take a look at the JXPath tests. Konstantin I'm right in the middle of having the database stuff live in a block. I'll add it to my todo list for after that. Unfortunately, this list is growing rapidly :-( Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - 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: Cocoon and hsqldb
From: [EMAIL PROTECTED] Thank you Konstantin, I have this message: Server 1.6 is running. Yes, it's the HSQLDB. Is there a console where I can execute queries? Have no idea here. Try to search for some tools for HSQLDB. I don't know if there is anything like that is bundled with Cocoon. KP Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - 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] - 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:when
From: Alex Romayev [mailto:[EMAIL PROTECTED]] Hello, Just wanted to follow through on the discussion from a couple of month back. There was a proposal that Konstantin was going to work on to implement i18:when tag as an alternative to using message files, so that you could have in the same file something like: Yes, that's true. And it was implemented by Matthieu Sozeau as we discussed. As the implementation was done long time ago (several months) it needs synchronization with the current version of Cocoon, but I hadn't time to do it. Though, if anybody needs the full implementation with updated samples and dictionary handling, just let me know (kpiroumian at apache dot org). page title i18:when locale='en'hello/i18n:when i18n:when locale='fr'bonjour/i18n:when /title /page But note, that this is not an alternative to message bundles, but an addition. You can still have all the pages generated from a bundle, but provide some specific messages for a particular language. Now here is my question (I'm making some assumptions here, so please correct me if I'm wrong): I18nTransformer is not cacheable, which generally is not a problem, since it is used as one of the last transformers in a pipeline, when most of the heavy-duty processing is already done. Now, this might not be true for i18n:when tag, which is most likely to be the first step in a pipeline and hence the rest of the pipleline is not going to get cached. Also note, that there is no reason why the result of i18n:when could not be cached. So seems that i18n transformer can be cached based on the selected locale and cache validity of the used dictionary. I have to think about it, but again I have absolutely no time to work on it, sorry. Is this concern valid or am I missing something? Seems reasonable and not only for the i18n:when case. Regards, Konstantin Cheers, -Alex - 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: Writing a custom transformer
From: simo kauranen [mailto:[EMAIL PROTECTED]] Hi, Maybe I'm a little dumb but I can't figure out from the source codes how I should write my own transformer. Several questions remain: Which functions should a transformer implement? Transformer is an implementation of a SAX ContentHandler and inherits all the methods like: startDocument(), startElement(), ..., endElement(), endDocument(). (For the complete list see SAX2 specification or the AbstractSAXTrasnformer). You decide depending on the task you want to solve with your transformer which ones to override to get the needed result. The rest of the methods that usually are present, like: configure(), setup(), recycle(), dispose() are lifecycle interfaces implementations from Avalon. See http://jakarta.apache.org/avalon for details. Konstantin Which function takes in the SAX stream and which emits it forward and how? Where the changes to the SAX are made? I went through among others the TraxTransformer source code but I couldn't find the line where the xslt transformation was made? Are loggers necessary for a transformer? Could someone help with these? Thanks! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.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: local site setup
From: Kim Jelmoni [mailto:[EMAIL PROTECTED]] Hi, try the target clean-webapp on build, you will get a clean cocoon without samples. The other possibility is that you work in webapps/cocoon directory. You can try to work in a subdirectory that you mount in the main sitemap so that you don't lose all samples and docs (that are very valuable for the start). for example: webapps/cocoon/mytests You can simply copy the /samples/myapp to the /cocoon/myapp and start with it. and mount it in the main sitemap.xmap with: !-- pipeline mounting the test dir -- map:pipeline map:match pattern=mytests/** map:mount check-reload=yes src=mytests/ uri-prefix=mytests/ /map:match /map:pipeline It's not required. Every sub-directory of the context root (/cocoon) is auto-mounted from the root sitemap. Konstantin have fun with cocoon ! Kim Peter Koellner wrote: hi! i'm sure this must be some dumb beginner's question, since nobody seems to have asked it until now. ok. now i have got this bright new xml-cocoon2 from cvs, built it, copied the war file to tomcat3.3's webapps directory, got the whole site running. so far, so good. what i don't quite understand at the moment is how am i supposed to remove the whole demo site and add my own content without intermingling with the cocoon cvs tree? i mean, do i have to work inside the cocoon directory, which obviously was generated from the war file? or even inside the cocoon source repository? can't be, or can it? - 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: [Ann] Amazon Functionality Syndication demo
Great showcase! Minor issues (e.g. http://www.cocoonhive.org/portal/page-amazon-bookInfo?AsinSearch=047120708X ): - the page is wider than it is supposed to be, isn't it? - seems that you don't process the inline P, HR and BR elements and they come out as text. I feel that I've seen that page styles somewhere else ;) -- Konstantin Piroumian -Original Message- From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 5:45 PM To: [EMAIL PROTECTED] Subject: [Ann] Amazon Functionality Syndication demo As a demo of the WebServiceProxyGenerator I built a little portal syndicating Amazon.com functionality. I think its value is the simplicity. Using Cocoon's powerful sitemap and refactoring Amazon's sample stylesheets anyone can build a personalized Amazon.com in hours. 0 lines of programming language code (Java,PHP,Perl,Pyhon, etc.)! Only styling (XSLT)! Here is the demo: http://www.cocoonhive.org/portal/home -=Ivelin=- - 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: Writing a custom Transformer?
From: simo kauranen [mailto:[EMAIL PROTECTED]] Hi, Does anyone happen to know where I could find a simple and thorough example of writing a custom transformer. I've searched all over the net but haven't found anything detailed enough. Take a look at the Cocoon transformers' source: org.apache.cocoon.transformation.*; Not that they are all simple, but you'll get the idea. Konstantin Thanks for tips! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.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: Changing request Parameters in an Action.
Exactly like that. You can't change request parameters, you should use request attributes instead. In theory, if you need different request parameters then you should create a new request and set all the parameters you need. But I don't think that you'll need this approach for your task. Konstantin -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Changing request Parameters in an Action. The answer I found was using Javascript to change the values of 2 hidden parameters using the OnChange event of the object select. Antonio Gallardo El Lunes, 07 de Octubre de 2002 00:31, Antonio Gallardo Rivera escribiÕ: Sorry but, I am reopening this, because I need to change some parameters on the client form before I can add it to the database. I have a 2 fields database key: cat_id (foreign key from table categories) pro_id In the table are some values: cat_id pro_id pro_name 1 1 product1 1 2 product2 2 1 product3 2 2 product4 I need to let the user select the product from a HTML page in a combo basis. Then i can code: select name=my_product option value=1-1product1/option option value=1-2product2/option option value=2-1product3/option option value=2-2product4/option /select When the user send the request I get a parameter my_product=x-y. Where x is the encoded value of cat_id and y is the value of pro_id. Now my problem comes to life: How to create new request parameters into an action to make 2 new parameters: cat_id=x and pro_id=y Please help me ;) Antonio Gallardo. - 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: how to use Input Modules ?
First of all I should warn you to be careful with InputModules until some oficial release, cause they are actively discussed right now at the dev list and they can be changed (names, behavior, interfaces). You have been warned. To use the DefaultsMetaModule you should tweak your cocoon.xconf where the module is declared and add the values you need (just like the 'defaultSkin' and 'base-uri' values are declared) and then simply use it like this in your sitemap: map:transform src=skins/{defaults:skin}/style.xsl / Change {defaults:skin} to {defaults:yourVariableName}. -- Konstantin -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 3:45 PM To: [EMAIL PROTECTED] Subject: how to use Input Modules ? It seems that DefaultsMetaModule could fit my need : since I have troubles with sitemap global parameters, they don't seem to work well, how can I use Input Module to feed some variables (constants in fact) in ? It's not clear to me. Thanks for more info. Babs - 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: i18n with sub sitemaps
From: Majcen, Kurt [mailto:[EMAIL PROTECTED]] Hi all! Is it possible to tell the i18n transformer to use a fixed catalogue-location from the projects root directory (so something like '/translations' instead of 'translations') I'm working with mounted sitemaps in sub-directories. This always creates a wrong path when entering such a sub sitemap. Try to use context://path-to-catalogue. Not sure that it will work though. Konstantin Thanks Kurt - 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: getting mad
Try to do 'build clean install' from sources. Should help. If not, then try to see in logs what happens and what is the real problem (sometimes the error messages contain too sparse information). Konstantin -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 1:54 PM To: [EMAIL PROTECTED] Subject: getting mad I switched back to my jars and files that worked before the tests I did this morning (Sept. 13 CVS), and get the same error... auth-protect action is in cause. Now nothing works, I've lost all my project :'( Feel depressed. And I have pounds to loose, depressing too. Of course deleted Tomcat's work dir... Gotta reboot description org.apache.cocoon.ProcessingException: Failed to load sitemap from jndi:/localhost/baepp/sitemap.xmap: org.apache.avalon.framework.configuration.ConfigurationExcepti on: Cannot get component selector for 'act' at jndi:/localhost/baepp/sitemap.xmap:417:34 stack-trace org.apache.cocoon.ProcessingException: Failed to load sitemap from jndi:/localhost/baepp/sitemap.xmap: org.apache.avalon.framework.configuration.ConfigurationExcepti on: Cannot get component selector for 'act' at jndi:/localhost/baepp/sitemap.xmap:417:34 at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder. build(DefaultT reeBuilder.java:393) at org.apache.cocoon.components.treeprocessor.TreeProcessor.setup RootNode(TreeP rocessor.java:401) at org.apache.cocoon.components.treeprocessor.TreeProcessor.proce ss(TreeProcess or.java:320) at org.apache.cocoon.components.treeprocessor.TreeProcessor.proce ss(TreeProcess or.java:308) - 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: i18n language choice
Passing the locale name using a sitemap parameter was added since version 2.0.2 or even 2.0.3. In the older versions the i18n transformer uses LocaleAction's method internally to obtain the locale. Check the sitemap in latest i18n samples (/cocoon/samples/i18n/) - they use LocaleAction to get the locale and then pass it to the i18n transformer. And it works. This functionality is implemented in 2.1 versions as well. Regards, Konstantin -Original Message- From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 4:17 PM To: Cocoon Users (E-mail) Subject: i18n language choice Hi, I'm starting some work with the i18n transformer, and I'm facing a problem. I want to choose the i18n language with a sitemap parameter, but passing the locale parameter seems to not work. BTW, Everything works if I choose the language with a query string locale param. Here are a few sitemap fragments: [...] map:transformer logger=sitemap.transformer.i18n name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogue-namemessages/catalogue-name catalogue-locationi18n/catalogue-location /map:transformer [...] map:transform type=i18n map:parameter name=locale value=en/ /map:transform Thanks in advance, L. - 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: i18n language choice
From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] Hmmm...I'm working with 2.0.3. Yes, you are right. I was sure that I've ported that behavior also to 2.0.3, but the source shows that I didn't. Although, the example shows parameter usage and it doesn't work, actually. :( Actually, I've noticed this behavior: in my example, i18n transformation is not embedded into any LocaleAction; Actually, the LocaleAction is called internally, so it will lookup for a 'locale' in: - request parameters - session attributes - cookies - user's locale (request locale) And all the above is the consequence of the LocaleAction usage. Seems that I have to think about porting sitemap parameter usage to 2.0.3-dev as well... At least for the sample to work correctly. Konstantin - if I don't pass anything, neither in sitemap, request or session, the client locale is used (I can tell since server is English, clients are Italian :-)); - if I pass a sitemap parameter directly, as in previous example (map:parameter name=locale value=en/), it simply gets ignored, and client locale (Italian) is still used; - if I pass a request parameter ( URI?locale=en ), it correctly switches to English; - if I set somewhere a session parameter (xsp-session:set-attribute name=localeen/xsp-session:set-attribute), it correctly switches to English; Sure I'm doing something wrong. Anyway, this is fine for me, since I'm going to store preferences in a session attribute. Thanks again, L. -Messaggio originale- Da: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Inviato: mercoledÍ 2 ottobre 2002 14.49 A: '[EMAIL PROTECTED]' Oggetto: RE: i18n language choice Passing the locale name using a sitemap parameter was added since version 2.0.2 or even 2.0.3. In the older versions the i18n transformer uses LocaleAction's method internally to obtain the locale. Check the sitemap in latest i18n samples (/cocoon/samples/i18n/) - they use LocaleAction to get the locale and then pass it to the i18n transformer. And it works. This functionality is implemented in 2.1 versions as well. Regards, Konstantin -Original Message- From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 4:17 PM To: Cocoon Users (E-mail) Subject: i18n language choice Hi, I'm starting some work with the i18n transformer, and I'm facing a problem. I want to choose the i18n language with a sitemap parameter, but passing the locale parameter seems to not work. BTW, Everything works if I choose the language with a query string locale param. Here are a few sitemap fragments: [...] map:transformer logger=sitemap.transformer.i18n name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogue-namemessages/catalogue-name catalogue-locationi18n/catalogue-location /map:transformer [...] map:transform type=i18n map:parameter name=locale value=en/ /map:transform Thanks in advance, L. - 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] - 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: Combining Cocoon and Struts
From: Dag Nygaard [mailto:[EMAIL PROTECTED]] There are a lot of questions raised around Cocoon and Struts, but few (if any) answers of how to combine the two - FAQ-food?. I am now in the process of attempting the combination and not being very knowledgeable in either Cocoon, Struts, JSP, I feel at times pretty lost. Could someone help me out? Let's try. (Selfreminder: create Cocoon-Struts comparison samples/articles/FAQs) The setup is as follows on a Win2K platform: I have deployed Cocoon 2.0.3 in tomcat 4.0.4 environment, i.e. placed the cocoon.war file in the $CATALINA_HOME/webapps/ directory. The welcome-page, http://localhost:8080/cocoon, confirms that Cocoon and Tomcat function OK together. Good. A Cocoon-testapplication resides on $CATALINA_HOME/webapps/cocoon/myapp/, xml- and xsp-docs in subdirectory resources/ and stylesheets (xsl) in subdirectory styles/. A Hello_user.xml with matching hello_user.xsl pipeline functions OK. To test a similar Struts setup, we have created a new application subdirectory myjspapp, under cocoon/ in which Struts' WEB-INF/-directory reside with: Do you mean that you have this structure: webapps/cocoon/myjspapp/WEB-INF? If yes, then it's definitely incorrect if you didn't alter the server.xml (in Tomcat/conf) to that subdirectory as an application context (which can be not allowed, anyway). - compiled classes in subdirectories/files - for both Actions and Forms - modified files struts-config.xml and other struts-*.tld-files, web.xml-file - lib/-directory with castor-0.9.3.21.jar, castor-0.9.3.21-xml.jar and struts.jar. Note: I have also copied these jar-files to cocoon/WEB-INF/lib/ - src/-directory. You should use the same WEB-INF directory both for Cocoon and Struts and also take a look at the web.xml and make sure that you have desired servlet mappings. Struts by default is mapped to *.do and Cocoon is mapped to /* and *.jsp. Remove mapping to JSP from Cocoon and try again. Note, that if you call JSP directly then it won't be processed by Struts, only *.do (or whatever you configure in web.xml) URLs are went through Struts. A Hello_user.jsp-file (with a Hello_user.html-file) reside in the root of myjspapp uses the abovementioned hello_user.xsl-file. The pipeline I attempt to use looks like this: map:pipeline map:match pattern=hellojsp map:generate src=myjspapp/hello_user.jsp type=jsp/ map:transform src=myapp/styles/hello_user.xsl/ map:serialize type=html/ /map:match This setup fails. The errormessage I get is: org.apache.cocoon.ProcessingException: ServletException in JspGenerator.generate(): javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection My guess is that the Struts-parts require access/setup of the struts-config.xml-file, but how do I do that? Is there something I should setup in Cocoon's cocoon.xconf-file or Cocoon's web.xml-file? It's configured in the web application deployment descriptor: WEB-INF/web.xml as ActionServlet init params. Hope this helps a little. Konstantin -- Dag Nygaard [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: xsl question
From: Kavitha Ramesh [mailto:[EMAIL PROTECTED]] Please do not ask pure XSLT questions here. Take a look at XSLT specific mail lists. Hi, I have an xml file as follows: user userid100/userid /user My XSL file is as follows: xsl:template match=user html /body a href=/cocoon/hello?userid=100Menu/a a href=/cocoon/hello?userid={@userid}Menu/a This should help. Konstantin /body /html /xsl:template Now my xsl file has a static URL.But I need a dynamic URL.Each and everytime when my userid changes in the xml file my stylesheet should get the userid from the xml file.How should my stylesheet look like in that case?If someoneknows please help me. Kavitha. __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.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: xsl question
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: Kavitha Ramesh [mailto:[EMAIL PROTECTED]] Please do not ask pure XSLT questions here. Take a look at XSLT specific mail lists. Hi, I have an xml file as follows: user userid100/userid /user My XSL file is as follows: xsl:template match=user html /body a href=/cocoon/hello?userid=100Menu/a a href=/cocoon/hello?userid={@userid}Menu/a Sorry. It should be: a href=/cocoon/hello?userid={userid}Menu/a KP This should help. Konstantin /body /html /xsl:template Now my xsl file has a static URL.But I need a dynamic URL.Each and everytime when my userid changes in the xml file my stylesheet should get the userid from the xml file.How should my stylesheet look like in that case?If someoneknows please help me. Kavitha. __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.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] - 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 question
From: Mathias Ochsendorf [mailto:[EMAIL PROTECTED]] a href=/test img xsl:attribute name=src i18n:translate i18n:text/images/test.svg?label_text={0}amp;label_color={1} /i18n:text There is no need for i18n:text wrapper here if don't want to translate the '/images/...' string itself. i18n:parami18n:texthello/i18n:text/i18n:param i18n:parami18n:textred/i18n:text/i18n:param /i18n:translate /xsl:attribute /img /a unfortunately this approach doesn't work. it causes a nullpointerexception: It should work. The error happens somewhere during XSLT transformation and not the i18n. Try the i18n without XSLT transformation to see if it works. -- Konstantin Original exception : org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler at org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.getTran sformerHandlerAndValidity(XSLTProcessorImpl.java:287) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTra nsformer.java:333) ... Best, -- Mathias - 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: using html tag in i18n
From: Kavitha Ramesh [mailto:[EMAIL PROTECTED]] Hi, I have a problem using sup®/sup(which is for ® ) in messages_en.xml and messages_de.xml. I really dont know how to use these tags in messages.xml. If someone knows please help me,,, Unfortunately, in the current implementation it's not possible. You should split your text into parts to achive this. I have another implementation which allows markup in translations, but have no time to update it and synchronize with the current Cocoon version, sorry. -- Konstantin Kavitha __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.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: [SUMMARY] How can I log in non-Cocoon Java classes?
From: Alan Hodgkinson [mailto:[EMAIL PROTECTED]] More material for the (soon to be written) Cocoon hackers guide. :) Logging in non-Cocoon Java Classes -- This explaines how to implement Cocoon-style logging, in a Java class that is not inherited from a Cocoon or Avalon component class. The class is however used within a Cocoon application. A typical use for this might be in a Java Bean used in a Cocoon application. 1. The class must extend AbstractLogEnabled. 'MUST' is a little strong word here. Isn't it enough to implement the LogEnabled interface (http://jakarta.apache.org/avalon/api/org/apache/avalon/framework/logger/Log Enabled.html) and provide methods for getting the logger? The AbstractLogEnabled is a utility helper class and the problem with it is that you'll have to extend it, which is not possible in all the cases, e.g. if your class extends some app-specific base class and you can't change it. Konstantin 2. You must enable logging in the class by calling the enableLogging() method on the class. This requires that you have a Logger object to provide to enableLogging(). Generally you can get the Logger from a Cocoon component class. In my case I call enableLogging from a Cocoon action class, which extends AbstractXMLFormAction. The resulting code is as follows: 1. In the non-component class that needs to implement logging: You simply call the appropriate log method using the Logger provided by the getLogger() method, which is available from the parent class AbstractLogEnabled. import org.apache.avalon.framework.logger.AbstractLogEnabled; public class SomeClass extends AbstractLogEnabled { public void someMethod() { ... getLogger().debug( Hello, log. It worked! ); getLogger().info( Hello, log. Here is info ); getLogger().error( Hello, log. Here is an error ); //..etc. ... } } 2. In an Avalon component class, or a class that inherits from one: Call enableLogging(). Note that most of the Cocoon classes extend Avalon Component classes. ... SomeClass myClass = new SomeClass(); myClass.enableLogging( getLogger() ); myClass.someMethod(); // Writes some log messages ... Note that you must call enableLogging() before you call any methods that write log messages. It is not necessarily obvious when to call enableLogging() as the creation and initialization of many of your classes will be handled automatically by Avalon, one of the Cocoon sub-systems. To be absolutely sure that you are writing solid code, you'll need a basic understanding of the Avalon component life-cycle. This is a big subject and beyond the scope of this short paper. You can read more at: Avalon logkit, which is used by Cocoon: http://jakarta.apache.org/avalon/logkit/whitepaper.html Avalon component lifecycle: http://jakarta.apache.org/avalon/framework/reference-the-lifecycle.html If you're still curious, here is a link to an excellent white paper explaining development using avalon: http://jakarta.apache.org/avalon/developing/index.html ..and that's all there is to it. Many thanks to Marcus Crafter and Judith Andres for their help. Best wishes, Alan. - 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: [SUMMARY] How can I log in non-Cocoon Java classes? -- Improved solution
From: Alan Hodgkinson [mailto:[EMAIL PROTECTED]] Dear Piroumian, I'd say: 'Dear Konstantin'. (Reminder to myself: Create a FAQ entry for the name format of our Exchange server ;)). This explaines how to implement Cocoon-style logging, in a snip/ 1. The class must extend AbstractLogEnabled. ..Isn't it enough to implement the LogEnabled interface? snip/ and provide methods for getting the logger? Yup, in Cocoon/Avalon, like Perl, there's more than one way to do it. :) It's not a different technic, cause the AbstractLogEnabled simply implements the LogEnabled interface and provide a pair of convenience methods. I just tried it your technique and it works just fine. [...] BTW: By popular demand, I published my original summary in the Wiki. http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging But due to your input, it's already out of date :). I'll update it. That's why I like the Wiki: it's extremely easy to update. Btw, there is a cocoon-docs mail list where Cocoon documentation discussions take place, so maybe you'll like to join the list. Regards, person titleMr/title firstnameKonstantin/firstname lastnamePiroumian/lastname /person Thanks your help and.. Best wishes, Alan. - 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: building from CVS
From: Barbara Post [mailto:[EMAIL PROTECTED]] [javadoc] E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co mponents\pipeline\AbstractProcessingPipeline.java:76: Class sun.tools.tree.ThisE xpression not found in import. [javadoc] import sun.tools.tree.ThisExpression; [javadoc]^ [javadoc] javadoc: warning - Import not found: sun.tools.tree.ThisExpression - ignoring! [Cross-posting from cocoon-users.] I had a question about exactly this import when I saw the CVS commit from Carsten. And I couldn't find any reference to this class in the same diff. This should be a type, no? Barbara, try to remove that import and try again. Should help. Konstantin Built it 10 minutes ago. jdk 1.3.1. Also got : [echo] * Classes of the optional package Activation are not [echo] * available. Apache Cocoon builds without them. [echo] * [echo] * The SUN Activation package is required for the AxisRPCReader clas s [echo] * [echo] * Recovery: [echo] * Get the SUN Activation package and place the jar in the lib/local dir Which activation package ? And also this message at the beginning : [available] DEPRECATED - available used to override an existing property. [available] Build file should not reuse the same property name for different v alues. What does this exactly mean ? Babs - 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: JSP Server Page
Title: Message You need jasper-compiler.jar (jasper.jar won't help). And you should use paths starting with '/' as source for the JSPGenerator and JSPReader, e.g.: map:generate type="jsp" src="/jsp/page.jsp" / -- Konstantin Piroumian -Original Message-From: Sushil Bhattarai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 12:24 AMTo: [EMAIL PROTECTED]Subject: JSP Server Page Hi I have been unable to run the JSP demo that comes with Cocoon2.0.2. I saw in the discussion list that jasper.jar needs to be in WEB-INF/lib but that's not helping either. I'm running Cocoonon Catalina (Tomcat 4.0.1). Sushil Join the world's largest e-mail service with MSN Hotmail. Click Here- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>
RE: if not working
Title: Message Try to use "search".equals(xsp-request .../) instead. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Ganael LAPLANCHE [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:49 PMTo: [EMAIL PROTECTED]Subject: "if" not working Hi all, I'm trying to test the value of a hidden parameter sent via an htmlform... Here is the test : xsp:logic if(xsp-request:get-parameter name="todo"/=="search") { xsp:contentThat's ok !/xsp:content } xsp:logic The test never returns true... What's wrong ??? Thank you, Gan.
RE: Converting html documents to plain text
Title: Message Cocoon allowsto setup a pipeline that will retrieve remote HTML documents, transform them and write to the HD. I think you'll have to run Cocoon from command line and provide the list of all the documents you need. Though, I'm not so sure that Cocoon's command line interface will work with remote documents. -- Konstantin Piroumian -Original Message-From: Francesco Marchioni [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 7:00 PMTo: [EMAIL PROTECTED]Subject: Converting html documents to plain text Hi all, I have to task to convert lots of html documents downloaded with the URLConnection class URL url = new URL("http://host/document.htm");URLConnection urlConnection = url.openConnection(); ...into plain text document to be written on my hard disk. I wonder if I can do it easily with CocoonI don't know it deeply..could you give some feedback ?? Thanks Francesco ___ IncrediMail - il mondo della posta elettronica si è finalmente evoluto - Clicca Qui
RE: i18n transformer empty message element ignored?
From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] Hallo! Sometimes we need the behavior, that the i18n transformer replaces something with nothing. Somehow this does not seem to work. Yes, it doesn't work. A support for empty messages was requested a while ago (from Michael Enke) and I remember about it, but unformtunately I am very limited in time now to work on it. See possible workarounds below: E.g: pre i18n: td align=right class=TextNO i18n:text i18n:key=Unit.NO_UNITNO_UNIT/i18n:text (08:00 h)/td Try to replace NO_UNIT by a space character, if it doesn't help then try the nbsp;. I know that this can result in layout problems, but don't know a better solution yet. Sorry. catalogue entry: message key=Unit.NO_UNIT/message output: NO NO_UNIT When I replace the zero length string in the catalogue with bla the output is NO bla so the catalogue entry can be found. A single space or more spaces as the element contents also seem to be ignored. Did you try a space inside of the i18n:text element? Any ideas for a work-around or solution? Another solution is to comment out the trim() function in source code where the string is retrieved from a dictionary. Konstantin Many thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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: XPath transformer?
From: Jeff Turner [mailto:[EMAIL PROTECTED]] Hi, I have a user manual in XML format: document body s1 title=Introduction ... /s1 s1 title=Getting Started ... /s1 ... /body /document Is there any way that I could extract out just one s1 element, and render it as a page? Ie, like an XPath transformer, that would extract a single node: If you need a pagination based on section elements then it's worth to take a look at Stefano's PaginatingTransformer. You'll find documentation on it here: http://xml.apache.org/cocoon/howto/howto-paginator-transformer.html. Hope it'll help you to solve your problem and also hope to see it applied to Forrest. -- Konstantin map:match pattern=manual/* map:generate src=manual.xml/ map:transform type=xpath select=/document/s1[@title='{1}']/ map:transform src=chapter2html.xsl/ /map:match I could then link to chapters with link href=manual/Introductionintroduction/link. Is this possible, or should I write my own transformer? thanks, --Jeff - 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: Deploying cocoon application on IBM Websphere under Z/OS
Title: Message If don't need neither FOPnor Barik then you can simply remove all the related entries from your sitemap and remove all the libraries and components from Cocoon. Also, take a look at the Cocoon FAQs, you'll find some answers to your questions. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Gernot Koller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 12:21 PMTo: [EMAIL PROTECTED]Subject: Deploying cocoon application on IBM Websphere under Z/OS Hi! Im evaluating Cocoon for using it as presentation frontend in a IBM Websphere environment. The target platform should be WAS 5.0 running on Z/OS. Im rather concerned about the FOP/SVG Batik X-Server issue. As you can imagine no X-Server will be availabe under Z/OS, installing any AWT replacement is also not an option. Is there a way to use Cocoon within this environment or should i stick to struts ? Any insightfull comments would be appreciated! cheers, gernot.--DI Gernot Kollermailto:[EMAIL PROTECTED]phone:+43-676-340 55 52 Do You Yahoo!?Yahoo! Finance - Get real-time stock quotes
RE: difference between xsp-session and session
From: Geert Poels [mailto:[EMAIL PROTECTED]] Hi, I was browsing Cocoon documentation and wondered what the difference in use and definition was between using xmlns:session=http://apache.org/xsp/session/2.0; and xmlns:xsp-session=http://apache.org/xsp/session/2.0; There is no difference as long as the namespace URI is the same. The namespace prefix is just a short name for the namespace URI. and also referencing it in code as session:get-attribute name=somename/ or xsp-session:get-attribute name=somename/ You can declare either prefix. As for the documentation, thanks for reporting, it should be fixed. -- Konstantin Examples are shown at http://xml.apache.org/cocoon/userdocs/xsp/sessions.html Yet the second to last example at : http://xml.apache.org/cocoon/userdocs/xsp/session.html uses xmlns:session=http://apache.org/xsp/session/2.0; yet references it using xsp-session ?xml version=1.0 encoding=iso-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:xsp-request=http://apache.org/xsp/request/2.0; para Session ID = xsp-session:get-id as=xml/ /para /xsp:page Thanks, Geert - 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: #xxxx in resulting HTML source
Title: Message Do you set encodingCp1251/encoding parameter of the serializer? I don't remember that I've ever had this kind of problems with Russian characters,though I didn't check it for a long time.BTW, I always use UTF-8 for my XML documents. -- Konstantin Piroumian -Original Message-From: Sergey Bredikhin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 8:36 AMTo: [EMAIL PROTECTED]Subject: # in resulting HTML source Hello I using windows-1251 charset for myXML and resultingHTML documents. When I get XML or HTML document from cocoon 2.1 I saw normal result in the browser's window. But when I open HTML source of the document I saw # symbols instead of chars in windows-1251 codepage. It is not convenient and rises the traffic. Please, could you help me. Probably, you had such problem with another charset, but the solvation the same. Sergey.
RE: jsp-engine
From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] thanks, Konstantin. I've proved change the Classpath like you've indicated me but it still not works (Resin+Cocoon). I already had seen the text that you indicate me, but it's too bare for me. :-( I continue looking for ... There was a patch in Bugzilla a while ago about the JSP+Resin+Cocoon, something about an attribute in request that should contain the requested path to JSP. Maybe it'll solve your problem. What is the exact problem now? Did JSPEngine found the needed servlet class? Konstantin - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 12:24 PM Subject: RE: jsp-engine From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] Hi!, I'm looking for documentation about the jsp-engine tag at cocoon.xconf. The documentation/cocoon.xconf specifies nothing about this tag. Someone know where I can get it? There is a comment in cocoon.xconf: !-- JSP Engine: The JspGenerator selects a JSPEngine component. The JSPEngine component launches a JSP servlet engine of your servlet container, feeds the HttpRequest into the JSP servlet engine, and pipes the jsp response as SAX events into Cocoon2. The JSP page is specified by the HttpRequest. This way you can continue to use your JSP pages. Your migration from JSP to XSP may be done step by step. You may specify your JSP pages either as JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should be valid XML. -- jsp-engine logger=core.jsp-engine parameter name=servlet-class value=org.apache.jasper.servlet.JspServlet/ parameter name=servlet-name value=*.jsp/ /jsp-engine More than this can be found only in the source code. See org.apache.cocoon.components.jsp.JSPEngineImpl for details. -- Konstantin regards, Raúl [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] - 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: jsp-engine
From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] Hi, Konstantin! I've been reading the api-java for Resin. I've seen com.caucho.jsp classes. It's no clear (for me) but it seems that com.caucho.jsp.JspServlet possibly can work as jsp-engine. I've changed servlet-class from jsp-engine to com.caucho.jsp.JspServlet. I've copied an simple example into my /var/local/www/webapps/cocoon like that hello.jsp- %page session=false% % String greeting = new String (Hola yo!!!) /*I'm spanish ;-)*/ % title%=greeting%/title h1%=greeting%/h1 and typed http://myserver.com/cocoon/hello.jsp in my browser I don't know if my method is ok (I've started now to programming in Java because an specific project of my company and I'm a little lost) ... even so the example works right, ¿? I don't quite understand these characters: ¿?. If you are saying that 'the example works correctly' then it's fine and your method is exactly what it should be. your opinion about, please? Everything seems Ok to me. thanks a lot, Knstntn! ;-) No problems - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 12:52 PM Subject: RE: jsp-engine From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] thanks, Konstantin. I've proved change the Classpath like you've indicated me but it still not works (Resin+Cocoon). I already had seen the text that you indicate me, but it's too bare for me. :-( I continue looking for ... There was a patch in Bugzilla a while ago about the JSP+Resin+Cocoon, something about an attribute in request that should contain the requested path to JSP. Maybe it'll solve your problem. What is the exact problem now? Did JSPEngine found the needed servlet class? Konstantin - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 12:24 PM Subject: RE: jsp-engine From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] Hi!, I'm looking for documentation about the jsp-engine tag at cocoon.xconf. The documentation/cocoon.xconf specifies nothing about this tag. Someone know where I can get it? There is a comment in cocoon.xconf: !-- JSP Engine: The JspGenerator selects a JSPEngine component. The JSPEngine component launches a JSP servlet engine of your servlet container, feeds the HttpRequest into the JSP servlet engine, and pipes the jsp response as SAX events into Cocoon2. The JSP page is specified by the HttpRequest. This way you can continue to use your JSP pages. Your migration from JSP to XSP may be done step by step. You may specify your JSP pages either as JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should be valid XML. -- jsp-engine logger=core.jsp-engine parameter name=servlet-class value=org.apache.jasper.servlet.JspServlet/ parameter name=servlet-name value=*.jsp/ /jsp-engine More than this can be found only in the source code. See org.apache.cocoon.components.jsp.JSPEngineImpl for details. -- Konstantin regards, Raúl [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] - 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
RE: JSP troubles
From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] Hi! in my cocoon the exemples (server section) for JSP (JSP Generator and JSP Reader) fails. Exactly: **4JSPgenerator** --- The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Exception JspGenerator.generate() More precisely: org.apache.cocoon.ProcessingException: Exception JspGenerator.generate(): java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet --- and the first line of chain stacktrace: --- Original exception : java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoade r.java:530) --- ***4JSPReader*** --- Exception JSPReader.generate() More precisely: org.apache.cocoon.ProcessingException: Exception JSPReader.generate(): java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet --- My system: Linux Debian, java 1.4, ResinEE, Cocoon. (latest versions) Tips: SERVER_ROOT and RESIN_HOME have different values. Previously I was changed servlet-classloader-hack to true at the resin.conf, because of another previous trouble. No wonder that JSP fails. The default settings of the JSPEngine in Cocoon are for Tomcat and not Resin. Take a look at WEB-INF/cocoon.xconf and change the jsp-engine section to point to the JSP servlet in Resin. There were some troubles with JSPEngine in Cocoon on Resin, please let us know if you succeed. Konstantin somebody can help me? thanks2all ;-) Raúl, [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: i18n transformer problem II
From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] Ok what I get before i18n (using a pre_i18n view) i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text this originates from the master-stylesheet and is translated by the transformer correctly. further down in the file: i18n:text i18n:key=x2TEMPERATURE_CURRENT/i18n:text this originated from a named template in included stylesheet. This is not translated. To me those two lines look exactly the same. Absolutely. Except that they can be mapped to different namespaces depending on their parent elements. Check that you don't have anything like bla xmlns:i18n=something wrong / wrapping the second result. Any ideas?? No other ideas. If you send relevant files then I'll try to find out what's wrong. Konstantin This is really driving me nuts. :-( Many thanks, Hans Piroumian Konstantin wrote: From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] ... And the i18n tags in the main stylesheet are all processed correctly, only those coming from the included stylesheet with the named template are ignored. Try to remove the i18n transformer from the pipeline and serialize as XML to see what is the output. Maybe there are problems with the namespace that comes from another stylesheet. Maybe the namespace is redeclared for the i18n prefix and i18n transformer does not process them? Konstantin Many thanks, Hans Piroumian Konstantin wrote: From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] Hallo! When have the following problem. i18n tags which are included in xsl templates which produce the main body of the html output are processed correctly. However at some times I want to call a named template which is physically located in a different xsl file to produce the right i18n tag like: xsl:template name=MapWeatherCriterionEnum xsl:param name=constant / xsl:variable name=enumType select='WeatherCriterionEnum' / xsl:choose xsl:when test=$constant='WEATHER'i18n:text i18n:key=WeatherCriterionEnum.WEATHERWEATHER/i18n:text/xsl:when xsl:when test=$constant='TEMPERATURE_CURRENT'i18n:text i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR E_CURRENT/i18n:text/xsl:when ... The i18n tags produced by named templates are never touched by the i18n Transformer! This can mean only that i18n transformer is not present in your pipeline. You should run i18n transformer after the XSLT transformation. Check your sitemap. Konstantin The output before i18n: td class=Texti18n:text i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR E_CURRENT/i18n:text/td output after i18n: td class=Text i18n:text i18n:key=WeatherCriterionEnum.TEMPERATURE_CURRENTTEMPERATUR E_CURRENT/i18n:text /td We use Cocoon 2.03 I would be gratefull for any ideas. Many thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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] -- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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
RE: JSP troubles
From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]] No wonder that JSP fails. The default settings of the JSPEngine in Cocoon are for Tomcat and not Resin. Take a look at WEB-INF/cocoon.xconf and change the jsp-engine section to point to the JSP servlet in Resin. There were some troubles with JSPEngine in Cocoon on Resin, please let us know if you succeed. Konstantin thanks, Konstantin! but, it implies that I should put /usr/local/resin/lib/resin.jar into the WEBINF/classes/ directory? .. or is it wrong? I don't know how Resin loads classes. The only thing needed is that servlet class were available to the web application. This does not imply having resin.jar in WEB-INF/lib (as well as in WEB-INF/classes), but only having them somewhere in the classpath. Tomcat exposes jasper-compiler.jar (since 4.0) to web applications, so there is no need to copy it into the webapp. Maybe something like is possible also with Resin. Also, search the Bugzilla for a path about Resin and JSP, there were one some time ago related to this issue. Konstantin. regards, Raúl - 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: how to add a white space in i18n?
From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, I have something like FrauKavitha in the browser.Frau comes from the messages_de.xml file and kavitha comes from the main xml file.Iam using i18n and my messages_de.xml is as follows: message key=femaleFrau/message and my xml file is as follows: namekavitha/name and my stylesheet combines Frau and kavitha i get FrauKavitha in the browser.Now I would like to add a WHITESPACE between Frau and Kavitha.If someone knows please help me,,, Again it seems that your question has nothing to do with i18n. The problem is in your stylesheet that does not place WHITESPACE between Frau and Kavitha. Try to use nbsp; between the names. Konstantin Kavitha __ __ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.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: Common practice: how to keep links to html-trees consistent
From: Whalley, Anthony [mailto:[EMAIL PROTECTED]] Make all your links relative to the root directory Eg /index.html /products/productA.html In this case browser interprets your links relative to the host and not the application context. You should perform a transformation to generate links like: context-path/index.html, etc. Konstantin -Original Message- From: Koen Pellegrims [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 21:43 To: Cocoon-Users@Xml. Apache. Org Subject: Common practice: how to keep links to html-trees consistent Guys, This is something that most of you *must* have come across at one point or another, and I am just looking for the best solution (I know it is not really a Cocoon-question, but Cocoon might provide some nice and elegant solution for this...) Menu on my site that contains a link to the index-page (index.html) and links to (among others) a product-page. In the page-hierarchy, the product-pages are contained within a 'products' directory. index.html products/productA.html products/productB.html The problem arises when I display this menu on a product page, because the browser (rightly so) interprets 'index.html' as being relative to the 'products'-directory. So, whereas the link to 'index.html' is correct from the index-page, it refers to 'products/index.html' on any product page. (and even worse: a link to productA suddenly becomes a link to products/products/productsA.html) My question is simple: did any of you encounter this problem? And -of course- how did you solve it? Koen - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie - 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: How to translate?
From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] Hi, the thread is quite old... but anyway, I've tried to make the stylesheet I've attached my version for comparison. (please tell me if it is right, by the way how could I avoid that xmlns:i18n in each generated tag?). This should be somewhere in FAQs. I don't understand some things. I create a messages.xml file which looks like (I'd prefer not to use simple keys but the original text, I don't think I can find a name for each element in the site): catalogue i18n:lang=ca message key=maybe a very very long textmaybe a very very long text/message /catalogue It's Ok, but don't forget about the perfomance. That's right. This is the file in the same language as the site. Then I make a couple of copies of it and name it messages_ca.xml (the original language) and messages_es.xml (because I want to translate it into spanish). I translate this file: catalogue i18n:lang=es message key=maybe a very very long texttranslation of the text/message /catalogue And now what? You said I don't need anything else but in the sitemap I need to tell only one dictionary... Do I need to merge both files into one dictionary? How do I tell through the sitemap which language to use? In sitemap you should specify at least two parameters on i18n transformer declaration or directly in the pipeline as parameters of map:transform type=i18n/. The parameters are: catalogue-location and catalogue-name. The catalogue-location should point to the directory where your dictionaries are stored, the catalogue-name is the base name for the dictionary file (in your case it's 'messages'). Then you should pass also 'locale' parameter which you can get using either the LocaleAction or some URL pattern like 'path/{*}/file.xml' and URLs like 'path/es/file.xml'. Here is a snippet from Cocoon's i18n sample sitemap: map:transform type=i18n !-- Override default catalog name for this pipeline. The catalogue location is the same -- map:parameter name=catalogue-name value=menu/ map:parameter name=locale value={../locale}/ /map:transform So, i18n transformer will select the needed dictionary depending on the locale. See I18nTransformer and LocaleAction JavaDocs for details. I suppose you only create one messages file for the hole site merging multiple messages files... and you refresh it with another stylesheet.. am I right? Exactly the opposite. I create multiple dictionary files in a form of 'messages_{lang}_{country}_{variant}.xml'. Usage of a master dictionary is only a better way to keep dictionaries in sync with each other. (Reminder: create a FAQ entry for this topic). Well... can't think of more questions right now ;) That's fine. If you had a look on Cocoon samples, i18n docs and JavaDocs then you'll have much less questions than this, I suppose ;) Thanks in advance! No probs. Konstantin From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] Hi, I've been looking at the i18n transformer in the documentation web page, however I can't see how it works in production. I got the idea that it works let's say like gettext as you mark which parts you want to translate and generate a file with those messages if so... how can I do that easily? I've been looking throw those convert and merge xsl files but they don't seem to generate it. I was able to create a file to translate into one new language from the simple_dict.xml example but how may I create it from scratch? Seems that your are looking for my text2messages.xsl that I have on my harddrive at home ;). But I don't think that you'll have problems in creating such a stylesheet yourself if you are familiar with XSLT. You just have to generate message key=text/message elements from the all 'i18n:text' and all the attributes that are listed in 'i18n:attr' attribute. If you don't hurry then I'll send my stylesheet to you tomorrow. These two files, messages and dictionary, are the ones that make me not to understand the hole process. The process is this: - you create a content file and mark some parts of it by 'i18n:text' and 'i18n:attr' - run a stylesheet that generates you an empty dictionary file - you add your translations to that dictionary (say message_de.xml) - place it in the message catalog (say in the 'translations' directory) - enjoy Could someone clarify those aspects or point me to a better resource? I think that I'm the best resource to ask about i18n. Tell me if you have any problems with it. Konstantin Thanks in advance! -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - Please check that your question has not already been answered in the FAQ before posting.
RE: i18n:attr processing problem (ArrayIndexOutOfBoundsException)
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] This is not a bug of i18n transformer. If you see, the problem comes from the org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesI mpl.java:439). This is known bug in Xerces and it was fixed in latest versions. So, there are two ways of solving this problem: - upgrade to a newer version of Xerces if possible (this is the best solution) - hack i18n transformer and comment out the 'removeAttribute()' call from translateAttributes() (Reminder for myself: Create a FAQ entry on this topic.) Done. See http://outerthought.net/wiki/Edit.jsp?page=FAQs KP -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 11:10 AM To: Cocoon users mail list Subject: i18n:attr processing problem (ArrayIndexOutOfBoundsException) Hi, It seems that there is a bug in the i18n transformer. 1. Configuration: JDK1.4, Cocoon 2.0.3, Tomcat 4.0.4 2. Bug description: - I've pipeline like xml - i18n transformer - serializer; - XML source contains an element like input i18n:attr=value value=somekey type=reset/ Note: order of attributes is significant. - Such a pipeline crashes with the java.lang.ArrayIndexOutOfBoundsException : Original exception : java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesI mpl.java:439) at org.apache.cocoon.transformation.I18nTransformer.translateAttr ibutes(I18nTransformer.java:1146) at org.apache.cocoon.transformation.I18nTransformer.startElement( I18nTransformer.java:868) . . . 3. The same problem is occured when an element with i18n:attr is created during xsl transformation, but with reversing order of attributes, for example: input type=reset value=somekey i18n:attr=value/ because after xsl transformation attributes in its result are appeared in reversed order 4. WORKAROUND: for XML (first case) - set i18n:attr as the last attribute of an element; for XSL (second case) - set i18n:attr as the first attribute of an element. Best regards, Roman - 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: i18n:attr processing problem (ArrayIndexOutOfBoundsException)
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] This is not a bug of i18n transformer. If you see, the problem comes from the org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesI mpl.java:439). This is known bug in Xerces and it was fixed in latest versions. So, there are two ways of solving this problem: - upgrade to a newer version of Xerces if possible (this is the best solution) - hack i18n transformer and comment out the 'removeAttribute()' call from translateAttributes() (Reminder for myself: Create a FAQ entry on this topic.) Done. See http://outerthought.net/wiki/Edit.jsp?page=FAQs Oops. The correct link is this: http://outerthought.net/wiki/Wiki.jsp?page=FAQs Sorry. KP -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 11:10 AM To: Cocoon users mail list Subject: i18n:attr processing problem (ArrayIndexOutOfBoundsException) Hi, It seems that there is a bug in the i18n transformer. 1. Configuration: JDK1.4, Cocoon 2.0.3, Tomcat 4.0.4 2. Bug description: - I've pipeline like xml - i18n transformer - serializer; - XML source contains an element like input i18n:attr=value value=somekey type=reset/ Note: order of attributes is significant. - Such a pipeline crashes with the java.lang.ArrayIndexOutOfBoundsException : Original exception : java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesI mpl.java:439) at org.apache.cocoon.transformation.I18nTransformer.translateAttr ibutes(I18nTransformer.java:1146) at org.apache.cocoon.transformation.I18nTransformer.startElement( I18nTransformer.java:868) . . . 3. The same problem is occured when an element with i18n:attr is created during xsl transformation, but with reversing order of attributes, for example: input type=reset value=somekey i18n:attr=value/ because after xsl transformation attributes in its result are appeared in reversed order 4. WORKAROUND: for XML (first case) - set i18n:attr as the last attribute of an element; for XSL (second case) - set i18n:attr as the first attribute of an element. Best regards, Roman - 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] - 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]
[OT][Q] Servlet authorization
Dear all! It was a long time ago when I've asked a question here, but now I need your help. (The question is a little off-topic, but I hope that many of us are familiar with this issue). So: I am trying to implement an application with container-based authentication and authorization. As you might have know, the specification states that two parameters are passed for authentification: 'j_username' and 'j_password'. Now the issue: I need one more parameter 'role' to be passed along with the login request. The problem is that the authentification URL is 'j_security_check' which is handled by the container and then the original request is passed to the servlet. Say, if you are tring to access a restricted resource like 'index.html', container will store your request and then display you the login screen. After you've passed the authentification you'll be redirected to the stored resource, in our case the 'index.html'. This results in a request without any params that were passed along with the authentification form. Anybody with experience in this area? Maybe there are subscribers of Tomcat Users lists? Help, workarounds, tips is very appreciated. Regards, Konstantin _ Konstantin Piroumian Lead Developer Email: [EMAIL PROTECTED] ICQ#: 2297575 * Work Tel#: +7 095 795 0520 * 1288 * More ways to contact me http://web.icq.com/wwp?Uin=2297575 i See more about me http://kot-p.hotbox.ru/ _ - 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: DTD or Schema
From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] Hallo! Any chance that a current DTD or Schema is available for the sitemap? Might be helpful for developing applications. A Schema for the sitemap (2.1 version) is available in CVS: \xml-cocoon2\src\documentation\xdocs\drafts\sitemap-2.1-draft.xsd It's draft, cause there were no formal vote to finalize it and use for validation. All the current sitemaps in Cocoon are validated by this schema correctly. Please tell me if you experience any problems with it. Konstantin Greetings, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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: log-files!
See: cocoon-webapp/WEB-INF/logs/*.log -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: log-files! hi! i am using cocoon 2.0.3. where can find some logfiles about cocoon-working? bye wolfgang weigel - 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: XML Forms and i18n
From: [EMAIL PROTECTED] Hello, first I want to thank you for your great help in the last days. We have solved the problem now with your proposed solution: tagging the xml with a stylesheet. Great to hear that. Would you let us know when your application is ready and if't available online? A small howto on multilingual XMLForm would be also fine. Konstantin Our xml now looks like this: xsl:template match=document document xsl:apply-templates/ /document /xsl:template xsl:template match=xf:violation xf:violation i18n:text xsl:value-of select=./ /i18n:text /xf:violation /xsl:template xsl:template match=node() priority=-1 xsl:copy xsl:copy-of select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template Thanx again, miHam - 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: How to switch to another resource if one resource is not available?
From: [EMAIL PROTECTED] Hi, im a beginner with cocoon. Maybe it is an easy question, but i don´t know where to start. I am just playing a bit round with the sitemap, generaters, serializers and so on. Now i wonder, how i can set up a matcher for JPG, that delivers a JPG if it is available and if it is not available delivers a SVG, which can be serialized to JPG. So to the outside it shouldn´t matter if the picture is generated from JPG or SVG. This is map:match for jpg as source: map:match pattern=images/**.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match and this for svg as source: map:match pattern=images/**.jpg map:generate src=images/{1}.svg/ map:serialize type=svg2jpeg/ /map:match So how do i combine this to both match images/**.jpg? Is there any kind of error handling? Use an action called ResourceExistsAction (see org.apache.cocoon.acting.ResourceExistsAction.java Javadocs). Konstantin Thank you - 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]
[SUMMARY] using different stylesheets for different xml files
From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Dear Mr.Oliver, It works and thank you so much for your valuable information. Kavitha, don't forget to add the [SUMMARY] when your question is answered. This helps people to find answers to their questions in mailing archives and can indicate that the content can be a FAQ candidate. Konstantin Kavitha --- ROSSEL Olivier [EMAIL PROTECTED] wrote: Here is a sitemap for catch-all XML management. map:match pattern=*.xml map:generate src={1}.xml/ map:transform src={1}.xsl/ map:serialize/ /map:match The sitemap resolver receives the URL. It parses sequentially the sitemap file, reading only what is inside matching map:match. The map:match above will be read for any URL that ends with the string '.xml'. The sitemap resolver read the map:generate... It sees that it has to resolve the variable {1} (which contains the string matched by the first wildcard of pattern=...) It resolves it either to 'login1' or 'login2' and instanciates the generator that will generate SAX events by reading the corresponding file. Idem for the map:tranform Then the sitemap resolver reads a (HTML by default) serializer. It instanciates the HTMLSerializer. Then it stops reading the file (it ALAYS stops reading the file as soon as it meets a map:serialize). The pipeline is ready. Another approach is this one: map:match pattern=login1.xml map:generate src=login1.xml/ map:transform src=login1.xsl/ map:serialize/ /map:match map:match pattern=login2.xml map:generate src=login2.xml/ map:transform src=login2.xsl/ map:serialize/ /map:match How all that works is the same as above. -Message d'origine- De: kavitha ramesh [mailto:[EMAIL PROTECTED]] Date: jeudi 25 juillet 2002 15:02 À: [EMAIL PROTECTED] Objet: using different stylesheets for different xml files Hi, I have two xml files and I would like to use two different stylesheets for that.How do i do it? For example I have two xml files inside the folder name docs: login1.xml login2.xml and I have two stylesheets: login1.xsl login2.xsl and for login1.xml I would like to use the stylesheet login1.xsl and for login2.xml I would like to use login2.xsl.How do the sitemap.xmap file look like for the above? Please help me,,, Kavitha __ __ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.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] __ __ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.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: == I18N question ==
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] I think that this discussion that happened at Forrest project will help you a little: http://marc.theaimsgroup.com/?t=10240438142r=1w=2 or you can simply do something (don't know exactly): map:act type=lang !-- suppose it returns {lang} variable -- map:generate src=dir/file_{lang}.xml/ ... /map:act Note, that type=lang action was used for the LangSelect action which is deprecated in 2.0.3 and were removed from the 2.1. The correct version will look like: map:act type=locale !-- suppose it returns {locale, lang, country and variant } variables -- map:generate src=dir/file_{locale}.xml/ ... /map:act You can even check existence of the file with ResourceExistAction and return default language if translation is not available. You can check if the translation is present in this order: locale = lang_country_variant (e.g. de_AT_EURO) lang_country (e.g. en_US) lang (e.g. en) This is how i18n trasformer looks for dictionary files. Maybe something like an new LocalizedFileAction action would be more convenient for this task. It can check for the existence of required resource then return the first matched one or the default file name, e.g.: map:act type=localized-file !-- returns {file} variable -- map:generate src=dir/{file}.xml/ ... /map:act Konstantin Vadim -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: JИrТme Iffrig [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:36 PM To: [EMAIL PROTECTED] Subject: == I18N question == Hi, I am new with Cocoon, so I am not sure this is the rigth channel to ask question, please accept my apology if it is not. I would like to internationalize my Site - NOT the site itself, but rather its CONTAINT. e.g. I would like to, let say, localise the HELP page of my site in 4 langages and rely on Cocoon for the localisation (depending on the preferences of the visitor). Which means that on one hand I would like to have the XML files for the content in different languages (I would like to have one XML file per language for administration ease), and on the other hand, I would like to have my Cocoon style file. At the end all the localised content files would be parsed according to the style file to he coherent in the styles with different languages. Have anyone of you done this before? I can see tutorials on how to create dictionaries and how to replace strings (Cocoon official website), but nothing realy clear regarding my question. Thanks for your time. Jé- __ Boîte aux lettres - Caramail - http://www.caramail.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: Link Hosting: free developer accounts
Would you like your site to be listed in Cocoon links and/or Cocoon hosting pages? And it would be fine if you could upgrade Cocoon on your server to 2.0.3 release version, cause there were a lot of fixes and some broken links where removed/fixed also. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: todd tredeau [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 10:28 PM To: [EMAIL PROTECTED] Subject: Link Hosting: free developer accounts Wiserlabz will provide free cocoon tomcat and apache developer accounts. http://www.wiserlabz.com. Additionally, hosted pay solutions will be provided for commercial projects http://www.wisernet.com wiserlabz is a collaborative effort to promote Novell and Open Source solutions. Wiserlabz hosts nntp news groups for Apache, Open Source and other projects at nntp.wiserlabz.com. Additionally, Jive Software forum interface to assorted Apache mailing lists are provided, which will allow a user to post a question, without having to flood their mailbox. A special thanks to Vadim, who made the needed cocoon code changes to allow it to work on the Novell platform (Vadim is in the cocoon group). thanks todd - 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: xml-forms
From: [EMAIL PROTECTED] Hello, i have a new problem:) In my FormAction I want to send back a request parameter with my page to use this parameter in a xsl-stylesheet. Therefore I tried the following: if(view == first) if(cmd == next) request.setAttribute(show, no); return(NEXT_PAGE); Then I would like to use this parameter in the stylesheet for NEXT_PAGE. Am I doing here something completely wrong? To use a parameter returned by an action as stylesheet parameter you should do the following: - add parameter value to a Map object (you can add it also to request attributes if needed) - return the Map from your action - use that parameter as a transformer parameter using this syntax: map:act type=form map:generate .../ map:transform ... map:parameter name=next-page value={show} / /map:transform /map:act Konstantin Thanks for any help, miHam - 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: pulling content - reader vs. generator + serializer
From: gv [mailto:[EMAIL PROTECTED]] I'm pulling some existing web page content into my Cocoon app by simply mapping a URI in Cocoon to an HTTP URI. I'm using a Reader with the mime-type set to text/html; works fine. I also tried a FileGenerator and Serializer, both type html, which also works. Which is the preferred way to handle this, and are there significant advantages/disadvantages to either approach? If you don't perform (or plan to perform) any transformations on the content then use Reader - it will read your pages and output it directly, while generator + serializer pair will do parsing of your page content into SAX event and then serializing as the same output stream as in case of the Reader. Konstantin Thanks, John __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.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: How to match jsessionid?
From: Johannes Koch [mailto:[EMAIL PROTECTED]] Hi, I have URLs like this: 'foo.do;jsessionid=abcdefg?bar=blah' When I try to match it with the wildcard matcher map:match pattern=foo* ... /map:match {1} is only '.do'. How can I match the jsessionid part? Try this: map:match pattern=foo.*;jsessionid=* and use {2}. Konstantin -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: How to match jsessionid?
From: Johannes Koch [mailto:[EMAIL PROTECTED]] Piroumian Konstantin wrote: From: Johannes Koch [mailto:[EMAIL PROTECTED]] Hi, I have URLs like this: 'foo.do;jsessionid=abcdefg?bar=blah' When I try to match it with the wildcard matcher map:match pattern=foo* ... /map:match {1} is only '.do'. How can I match the jsessionid part? Try this: map:match pattern=foo.*;jsessionid=* and use {2}. I already tried this. But, unfortunately, the URL is not matched by this pattern. :-( Ah! It should be that servlet container simply strips out the session Id and provides a clear URL. In this case you should use an action to get the session Id from request and use a matcher like: foo.*. Konstantin Cocoon 2.0.2 -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: How to match jsessionid?
From: Johannes Koch [mailto:[EMAIL PROTECTED]] Piroumian Konstantin wrote: From: Johannes Koch [mailto:[EMAIL PROTECTED]] Piroumian Konstantin wrote: From: Johannes Koch [mailto:[EMAIL PROTECTED]] Hi, I have URLs like this: 'foo.do;jsessionid=abcdefg?bar=blah' When I try to match it with the wildcard matcher map:match pattern=foo* ... /map:match {1} is only '.do'. How can I match the jsessionid part? Try this: map:match pattern=foo.*;jsessionid=* and use {2}. I already tried this. But, unfortunately, the URL is not matched by this pattern. :-( Ah! It should be that servlet container simply strips out the session Id and provides a clear URL. In this case you should use an action to get the session Id from request and use a matcher like: foo.*. How is this done? Take a look at other Session* actions in org.apache.cocoon.acting.* package. You should do something like this in your act() method: Map map = new HashMap(1); map.put(jsessionid, ObjectModelHelper.getRequest(objectModel).getSession().getId()); return map; Konstantin -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: sitemap variables?
From: icewind [mailto:[EMAIL PROTECTED]] I looked at the threads, and in my sitemap, and figured that defining something like: map:global-parameters map:global-parameter name=doc-base value=/home/icewind0/cocoon-files/ /map:global-parameters I can't figure out how to use it in a pipeline. How do I reference doc-base in one of my pipelines? I'm tried: map:generate type=directory src=$doc-base/docs [...] /map:generate and map:generate type=directory src={doc-base}/docs [...] /map:generate Neither works. Any suggestions? Is map:global-parameters documented somewhere? Try {/doc-base}. AFAK, this not documented and, more over, it can be removed in favour of InputModules. Don't forget that C2.1 is in alpha stage still. Konstantin --- Vadim Gritsenko [EMAIL PROTECTED] wrote: Read on: http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=glo bal+parame tersq=b about input modules and other options. Vadim __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.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: Modifying an xslt stylesheet before utilisation.
From: GB [mailto:[EMAIL PROTECTED]] Dear Cocoon readers ! I need to transform a xslt stylesheet before using it over an xml file. In fact, what I want to do is to modify the stylesheet so that a parameter, taken out of the http request, could be used as an xpath string inside an xsl:apply-templates' select attribute. The problem is that it isn't allowed to do that inside the xslt directly by using something like xsl:apply-templates select=$value/ I thought of using XSP to replace the $value field by its real value before using this stylesheet. Well, I don't know how to specify the use of the a transformed xsl as a transfomer inside a sitemap. You two options here to solve your problem: 1) Use Xalan extension funcation: evaluate() 2) Setup a pipeline for your stylesheet transformation before applying and call it through: map:transform src=cocoon:/mystylesheet.xsl / map:match pattern=*.xsl map:generate src={1}.xsl / map:transform type=replaceXPath / map:serialize type=xml / /map:match Konstantin Can you help me ??? Thanks a lot. Guy Bobenrieth - 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: runtime exception, resource not found (C 2.0.3)
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] From: Barbara Post [mailto:[EMAIL PROTECTED]] I'm trying to use a resource and have the following. I use c203 binary for jvm 1.3 (jdk 1.3.1). org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: mlForm could not be found. (possible classloader problem) ... in the resources (even a static file isn't found) : map:resources map:resource name=mlForm Cocoon Resources have nothing to do with Java resource protocol. See sample sitemaps for samples of Cocoon resource usage. Shortly, you have to use map:call resource=mlForm / instead. Konstantin Vadim map:generate src=xml/mlForm.xml/ map:transform/ map:serialize type=xml/ /map:resource /map:resources What's wrong ? Thanks a lot. Barbara - 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: Re: mixing xml and xsl with i18n
From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Jeorg, The output is just a blank page.My sitemap is as follows(My file is a jsp file): map:match pattern=jsp/* map:generate type=jsp src=/concatenate/jsp/{1}.jsp/ map:transform type=i18n/ map:transform src=conc.xsl/ map:transform type=i18n/ map:serialize type=html/ /map:match my log files has the following content: Logger for category root.xslt returned And that's all? Are you looking at the Cocoon logs? See cocoon/WEB-INF/logs directory. Seems that your problem has nothing to do with i18n and something's wrong with your sitemap or JSP page. Btw, why are you using JSP? It's slower than XSP, cause it generates text that should be parsed, while XSP generates SAX events directly. Is there a real need for running i18n two times? Won't it be enough to run it in the end? It will also raise your pipeline performance. Konstantin Kavitha On Thu, 18 Jul 2002 Joerg Heinicke wrote : What's your output? You should at least see 'Male' and 'Female' in the output. If you don't specify a key (i18n:key attribute), the text in the i18n:text/i18n:text element is used as key, therefore I wrote xsl:value-of select=@sex/. How does your sitemap according i18n look like? What's written in the log files? Joerg kavitha ramesh wrote: Hi Jeorg, Thanks for your reply. Nothing is happening when I tried your code.In the xsl file should I add the message keys Male and Female? Kavitha On Thu, 18 Jul 2002 Joerg Heinicke wrote : xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsl:template match=gender i18n:textxsl:value-of select=@sex//i18n:text xsl:text/ xsl:value-of select=name/ /xsl:template /xsl:stylesheet in catalogue_en.xml: message key=MaleMr./message message key=FemaleMrs./message in catalogue_de.xml: message key=MaleFrau/message message key=FemaleHerr/message Regards, Joerg kavitha ramesh wrote: Hi, I have an xml file which is as follows: simple.xml -- menu person gender sex=Male nameRamesh/name /gender /person person gender sex=Female nameKavitha/name /gender /person person /menu and my xsl file is as follows: simple.xsl -- i18n:texttext1/i18n:text i18n:texttext2/i18n:text and my messages for i18n are as follows: messages_en --- message key=text1Mr/message message key=text2Mrs/message messages_de --- message key=text1Herrn/message message key=text2Frau/message If the sex is male, the browser should display Mr.Ramesh(English) Herrn.Ramesh(German) If the sex is female then the browser should display Mrs.Kavitha(English) Frau.Kavitha(German) How do I do this?Please help me,,, Kavitha. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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] _ 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: RE: Re: mixing xml and xsl with i18n
From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Konstantin, 1.I checked the cocoon log file and it says that: DEBUG (2002-07-18) 17:15.25:840 [cocoon ] (/cocoon/concatenate/jsp/conc) HttpProcessor[8080][4]/DefaultPool: Retrieving a org.apache.cocoon.components.pipeline.CachingEventPipeline from the pool Look for any i18n related messages. Turn off i18n part to see is your result correct, do you have correct keys. Turn of XSLT to see if you have correct XML at startup. etc. 2.I use JSP since I dont have much knowledge in XSP. If you know JSP then it won't be difficult to learn XSP. It's very similar to XML syntax of JSP 1.2. 3.As per your suggestion I ran the transformer once in the sitemap.But still in the browser, nothing is displayed,,, So, try other suggestions from the above. Konstantin Kavitha. On Thu, 18 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Jeorg, The output is just a blank page.My sitemap is as follows(My file is a jsp file): map:match pattern=jsp/* map:generate type=jsp src=/concatenate/jsp/{1}.jsp/ map:transform type=i18n/ map:transform src=conc.xsl/ map:transform type=i18n/ map:serialize type=html/ /map:match my log files has the following content: Logger for category root.xslt returned And that's all? Are you looking at the Cocoon logs? See cocoon/WEB-INF/logs directory. Seems that your problem has nothing to do with i18n and something's wrong with your sitemap or JSP page. Btw, why are you using JSP? It's slower than XSP, cause it generates text that should be parsed, while XSP generates SAX events directly. Is there a real need for running i18n two times? Won't it be enough to run it in the end? It will also raise your pipeline performance. Konstantin Kavitha On Thu, 18 Jul 2002 Joerg Heinicke wrote : What's your output? You should at least see 'Male' and 'Female' in the output. If you don't specify a key (i18n:key attribute), the text in the i18n:text/i18n:text element is used as key, therefore I wrote xsl:value-of select=@sex/. How does your sitemap according i18n look like? What's written in the log files? Joerg kavitha ramesh wrote: Hi Jeorg, Thanks for your reply. Nothing is happening when I tried your code.In the xsl file should I add the message keys Male and Female? Kavitha On Thu, 18 Jul 2002 Joerg Heinicke wrote : xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsl:template match=gender i18n:textxsl:value-of select=@sex//i18n:text xsl:text/ xsl:value-of select=name/ /xsl:template /xsl:stylesheet in catalogue_en.xml: message key=MaleMr./message message key=FemaleMrs./message in catalogue_de.xml: message key=MaleFrau/message message key=FemaleHerr/message Regards, Joerg kavitha ramesh wrote: Hi, I have an xml file which is as follows: simple.xml -- menu person gender sex=Male nameRamesh/name /gender /person person gender sex=Female nameKavitha/name /gender /person person /menu and my xsl file is as follows: simple.xsl -- i18n:texttext1/i18n:text i18n:texttext2/i18n:text and my messages for i18n are as follows: messages_en --- message key=text1Mr/message message key=text2Mrs/message messages_de --- message key=text1Herrn/message message key=text2Frau/message If the sex is male, the browser should display Mr.Ramesh(English) Herrn.Ramesh(German) If the sex is female then the browser should display Mrs.Kavitha(English) Frau.Kavitha(German) How do I do this?Please help me,,, Kavitha. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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] _ 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
[SUMMARY] using i18n in xsl
It's a good idea to send a message to cocoon-users list with '[SUMMARY]' prefix in the subject of the message when you got a solution. And give a short context of the question and the answer in the body. These kind of messages are picked up by documentation people and a FAQ entry is created from them. So, in your case you see the Subject and the question and solution are below: Konstantin From: kavitha ramesh [mailto:[EMAIL PROTECTED]] It works,,,Thanks a million! Kavitha On Tue, 16 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, I would like to use the i18n tags inside an xsl file.Is it possible?If so how do I use it? For example, I have the following content inside an xml file: title i18n:texttitletext/i18n:text /title How do I use the same thing inside an xsl file?I dont want any contents inside my xml file.But everything should be inside an xsl file,,,Please help me,,, No problems. Simply run i18n transformer after XSLT and add needed i18n tags, e.g.: xsl:template match=title i18n:texttitletext/i18n:text /xsl:temlate And don't forget to declare i18n namespace in your stylesheet. Konstantin 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 _ 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]
RE: [SUMMARY] using i18n in xsl
From: Diego Peroni [mailto:[EMAIL PROTECTED]] Hi, I'm using your i18n in cocoon. It works fine! Thanks :-) Thanks. Though, it works not as fine as I would like to. A new version is in work and will be added to 2.1 when ready. It will have improved dictionary handling, markup in translations and parameters, inline translation features and some other goodies. Konstantin - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: 'kavitha ramesh' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 10:32 AM Subject: [SUMMARY] using i18n in xsl It's a good idea to send a message to cocoon-users list with '[SUMMARY]' prefix in the subject of the message when you got a solution. And give a short context of the question and the answer in the body. These kind of messages are picked up by documentation people and a FAQ entry is created from them. So, in your case you see the Subject and the question and solution are below: Konstantin From: kavitha ramesh [mailto:[EMAIL PROTECTED]] It works,,,Thanks a million! Kavitha On Tue, 16 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, I would like to use the i18n tags inside an xsl file.Is it possible?If so how do I use it? For example, I have the following content inside an xml file: title i18n:texttitletext/i18n:text /title How do I use the same thing inside an xsl file?I dont want any contents inside my xml file.But everything should be inside an xsl file,,,Please help me,,, No problems. Simply run i18n transformer after XSLT and add needed i18n tags, e.g.: xsl:template match=title i18n:texttitletext/i18n:text /xsl:temlate And don't forget to declare i18n namespace in your stylesheet. Konstantin 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 _ 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] - 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: newbie: delete whitespace
From: Daniel Meier [mailto:[EMAIL PROTECTED]] hi there is there a simple solution to transform an xml-file to a new one without any whitespace? If you mean any *ignorable* whitespace then use this in your stylesheet: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:strip-space elements=*/ ... /xsl:stylesheet Konstantin kind regards daniel - 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: i18n inside XSL
From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] Hi, I've been able to use an HTML file (which I've not designed) as my stylesheet and in which I call each XML document I want to process. I get this XML file as a parameter to the stylesheet. The thing is now that I'd like to be able to translate the file I'm gonna call and it is a problem because the i18n provided by cocoon is a transformer and should be called within the 'sitemap.xmap' I think this is not the way cocoon it's been designed to work but I'm really tight to the HTML file the web designers have made me available. I don't quite understand how are you going to use an HTML file as a stylesheet. And would you serve your content without sitemap.xmap? From what you tell I understood this: 1) you have a stylesheet that you can't change 2) you get your XML file name from a request parameter 3) the XML file should be translated before transformation by the stylesheet Correct? If so, then everything can be perfectly done in the sitemap. Simply setup a pipeline using RequestParameterAction (or an RequestInput module in Cocoon 2.1) that will propogate the filename to the sitemap. The rest is classics: 1) generate you file 2) i18n 3) xslt And that's all. Does this solve your issue? Konstantin Any suggestion will be appreciated. Thanks. -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - 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: i18n inside XSL
From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] I think I didn't explain it very well. The thing is that I've got an XSL file that calls throw xsl:apply-templates select=document($document)/ Where $document is a parameter I give to the stylesheet (forget about the thing of the HTML, it's as you said I can't modify it).How would you translate the XML file pointed by $document? I would not say that using document() function is not a good idea for serving content, maybe you have reasons for doing so. However, I'd suggest that you rething that approach and try to perform it using the sitemap. I don't know how document() function loads files, but if it does not use Cocoon's source resolver then I don't see how you can achieve what you need. Just a guess: try to point the document() to a Cocoon pipeline and not the file directly using 'cocoon://' protocol, e.g.: document('cocoon://{$document}'). Konstantin From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] Hi, I've been able to use an HTML file (which I've not designed) as my stylesheet and in which I call each XML document I want to process. I get this XML file as a parameter to the stylesheet. The thing is now that I'd like to be able to translate the file I'm gonna call and it is a problem because the i18n provided by cocoon is a transformer and should be called within the 'sitemap.xmap' I think this is not the way cocoon it's been designed to work but I'm really tight to the HTML file the web designers have made me available. I don't quite understand how are you going to use an HTML file as a stylesheet. And would you serve your content without sitemap.xmap? From what you tell I understood this: 1) you have a stylesheet that you can't change 2) you get your XML file name from a request parameter 3) the XML file should be translated before transformation by the stylesheet Correct? If so, then everything can be perfectly done in the sitemap. Simply setup a pipeline using RequestParameterAction (or an RequestInput module in Cocoon 2.1) that will propogate the filename to the sitemap. The rest is classics: 1) generate you file 2) i18n 3) xslt And that's all. Does this solve your issue? Konstantin Any suggestion will be appreciated. Thanks. -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - 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] -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - 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: Looking for help in the upcomming release - (i've tested it)
Thanks for your feedback, Josema. I've just refactored i18n and JSP samples, they can be accessed from: '/cocoon/samples/welcome' page. Hopefully, will have time to look also at XSP samples to add 'Back' links. For the form I've created - seems that it was not a good idea since result of the submit comes in a form of request parameters which is not very readable. I'll try add some JavaScript to post the result in needed form, though, I'm afraid that it won't be sooner than tomorrow. Konstantin From: Josema Alonso [mailto:[EMAIL PROTECTED]] Dear Friends, My name is Josema Alonso and I'm from Spain. Please, excuse my english if sometimes I do not write something properly, but I always try to do my best. I'm a Cocoon newbie. Well, not so. I used version 1.8 for some time and learned a lot with it. Now I've been following this list for some three months and finally I'm going to start a Cocoon project in a few days. You'll hear from me about it... I read Carsten message about the new release and I thought I could send my first post, playing the beta tester role. Though I see Konstantin is writing a form, I'm posting this here for you to know, but will fill the form once ready, too. I have installed: - Windows XP Professional - Tomcat 4.0.4 - Cocoon 2.0.3 CVS branch as stated in Carsten's message THE GOOD - - I built it and installed in Tomcat without problems. - I tried all the samples using IE6.0.2600.000 except the DELI ones and the portal authentication ones. Everything went fine excep the ones noted below. THE (NOT SO) BAD --- - A couple things I would like to see fixed are just a couple links. I do not remember if they were the same in previous versions. After clicking the XSP examples or the Internationalization ones I have to go back to the samples using the back button in my browser. Annoying in the cacheable examples when you have to go back 5 times after testing all of them. The 'back to samples' link is present in the JSP Reader sample, but this one doen't work properly since it takes you to the http://localhost:8080/cocoon page (assuming default installation, of course). - I reached an exception in the Python Generator. Probably I missed some .jar cause I'e never used Python. Error trace at the end of the message. - The 'Yahoo Screen Scrape' under Dynamic Content Examples did not work for me. I just got a blank page. - I did not test the portal and authentication samples since I only built Cocoon using the 'clean' option. Should I try using the -Dinclude.scratchpad.libs' option? I think that's all. Hope it helps. Best. *** Python Generator Sample Error Trace *** An error occurred The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Exception in ScriptGenerator.generate() More precisely: org.apache.cocoon.ProcessingException: Exception in ScriptGenerator.generate(): com.ibm.bsf.BSFException: unable to load language: jpython extra info full exception chain stacktrace show Original exception : com.ibm.bsf.BSFException: unable to load language: jpython at com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:324) at com.ibm.bsf.BSFManager.exec(BSFManager.java:478) at org.apache.cocoon.generation.ScriptGenerator.generate(ScriptGe nerator.java:1 93) at org.apache.cocoon.components.pipeline.CachingEventPipeline.pro cess(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr ocess(CachingS treamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN104D9(D:\Java\tomcat4 .0.4\work\Stan dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sit emap_xmap.java :6184) at org.apache.cocoon.www.sitemap_xmap.process(D:\Java\tomcat4.0.4 \work\Standalo ne\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap _xmap.java:293 9) at org.apache.cocoon.www.sitemap_xmap.process(D:\Java\tomcat4.0.4 \work\Standalo ne\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap _xmap.java:250 4) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManage r.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet. java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at
RE: XML Form, extended validation and error messages
From: [EMAIL PROTECTED] Hello, snip why=can't help at the moment / By the way I got the FormTransformer plus the Schematron error messages running with i18n and will post how it worked for me next week (after I tested it a liitle bit more) Great news! Looking forward to see that. Konstantin Thanks in advance for any help! miHam - 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: i18n seems to work, but does not translate
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, on Windows NT with WebSphere Application Deveolper 4.0.2 we have our application working. When we deploy it to a Solaris machine we have the effect, that i18n seems to work (the log files told us so) but there isn't a really translation on the screen. We see the keys instead of the transation. Usually, keys are shown when translations are not found. The language settings are OK, and the catalog files can be found. Does somebody know what can be wrong? Try to experiment with the 'cache-at-startup' option of i18n transformer. And please tell me what is the version of Cocoon you are using. Konstantin Best regards - Volker - - 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: [SUMMARY] JspReader/JspGenerator in 2.0.2
From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Hi all - I've seen several rather frustrated posts from users trying to figure out how to make JspReader and/or JspGenerator work in Cocoon 2.0.2. This email describes how. JspReader Edit src/java/org/apache/cocoon/reading/JSPReader.java and replace the following lines (119-132): snip what=changes / I thought that I've fixed that, strange... I'll take a look at it. The rebuild Cocoon and replace your existing cocoon-2.0.2.jar with the new one in build/cocoon/webapp/WEB-INF/lib. Don't forget to copy jasper-compiler.jar from $CATALINA_HOME/lib to WEB-INF/lib (or whatever JSP compiler you choose to use). JSP samples work perfectly for me without this step in C2.0.3 and C2.1 and Tomcat 4.1 Finally, if you are using a sub-sitemap, any references to JSP files in pipelines with either JspReader or JspGenerator must have the path starting from the root cocoon context and MUST start with a leading forward slash. Thus, if you have a sub-sitemap in a directory called abc, with a JSP file in abc/jsps/hello.jsp, the src attribute of either component should be something like: src=/abc/jsps/hello.jsp You won't need this in all cases. I've changed the behavior a while ago to allow relative links. The problem happens when your sitemap uri perfix differ from your source path. In such cases you have to use absolute paths. The problem is that I couldn't find a way to resolve the current sitemap _source_ path to a relative to context request path. Any suggestions are welcome. See JSP samples in 2.1-dev version. They should work also in 2.0.3. Konstantin Cheers, Lajos -- galatea.com Cocoon training, consulting support - 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: i18n seems to work, but does not translate
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thanks for your reply. We're using Cocoon 2.0.2. Unfortunately we can find the key in the catalog file. Is it possible that it's a problem with the character set? I don't think so. There must be no problems with UTF-8. Check the log to see if i18n transformer really gets correct translations. If possible post relevant snippet from logs here. On both machines we are using UTF-8. With Windows 2000 it works fine, but not with Solaris. Do you have any other transformations? Try to turn off everything except generator and i18n transformer (serialize as XML) and see what happens. Konstantin Best regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 11. Juli 2002 11:04 To: '[EMAIL PROTECTED]' Subject: RE: i18n seems to work, but does not translate From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, on Windows NT with WebSphere Application Deveolper 4.0.2 we have our application working. When we deploy it to a Solaris machine we have the effect, that i18n seems to work (the log files told us so) but there isn't a really translation on the screen. We see the keys instead of the transation. Usually, keys are shown when translations are not found. The language settings are OK, and the catalog files can be found. Does somebody know what can be wrong? Try to experiment with the 'cache-at-startup' option of i18n transformer. And please tell me what is the version of Cocoon you are using. Konstantin Best regards - Volker - - 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] - 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 seems to work, but does not translate
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, by the way: What features does i18n provide for translation of date and time and so on? It supports most of the JDK features for date/time and number formatting. See the document about i18n transformer (somewhere in userdocs/transformers/i18n-transformer.html) and i18n samples (better to look at the C2.1 samples at '/cocoon/samples/i18n'). You can format date, time, date-time using patterns or predefined formats (SHORT, MEDIUM, LONG, DEFAULT). You can format number, currency, percent. All in locale sensitive manner and also you can convert from one locale to another using 'src-locale' and 'locale' attributes. You can use parameter substitution. And so on. (A new document including a table with all elements, attributes, examples, etc. will be issued as soon as I have a little time to finish it). Konstantin Thank you, best regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 11. Juli 2002 13:16 To: '[EMAIL PROTECTED]' Subject: RE: i18n seems to work, but does not translate From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thanks for your reply. We're using Cocoon 2.0.2. Unfortunately we can find the key in the catalog file. Is it possible that it's a problem with the character set? I don't think so. There must be no problems with UTF-8. Check the log to see if i18n transformer really gets correct translations. If possible post relevant snippet from logs here. On both machines we are using UTF-8. With Windows 2000 it works fine, but not with Solaris. Do you have any other transformations? Try to turn off everything except generator and i18n transformer (serialize as XML) and see what happens. Konstantin Best regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 11. Juli 2002 11:04 To: '[EMAIL PROTECTED]' Subject: RE: i18n seems to work, but does not translate From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, on Windows NT with WebSphere Application Deveolper 4.0.2 we have our application working. When we deploy it to a Solaris machine we have the effect, that i18n seems to work (the log files told us so) but there isn't a really translation on the screen. We see the keys instead of the transation. Usually, keys are shown when translations are not found. The language settings are OK, and the catalog files can be found. Does somebody know what can be wrong? Try to experiment with the 'cache-at-startup' option of i18n transformer. And please tell me what is the version of Cocoon you are using. Konstantin Best regards - Volker - - 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] - 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: I18n
From: Alex Romayev [mailto:[EMAIL PROTECTED]] Hi Konstantin, Thanks for your help -- it makes sense. On that note, do you happen to have any good patterns for modeling I18nised data in both database and XML? I understand, why you'd want to keep it in the DB, but I would also like to exchange my data with other applicatons via the XML. We are still in progress of modeling i18n data and we will have both: resource files (XML or property files) and data in the database. For exchanging with other application I suppose that you'd need only the business entity data, isn't it? So, you won't need i18n transformer in that case to translate text, but maybe you can use it to format dates in standard for XML way (I don't remember the standard URL, but it was somewhere on W3C). Thanks, -Alex __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.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: Looking for help in the upcomming release
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] The Cocoon Project is working very hard to release 2.0.3 by Monday, July 15. To meet this goal -- which clearly will benefit all users -- we need some *specific* QA (quality assurance) input from the user community. To help, here's what you need to do: ... 6. Report back here on your findings, good or bad. 7. Make sure you describe your test environment: Platform and JVM, including version numbers. 8. If you find problems, be specific about the problem description: what page, what error, etc. What if we provide a feedback form on the site for this? The form can include all the needed fields (like in XMLForm example) and have 'action=mailto:[EMAIL PROTECTED];'. This will make reporting a little easier and uniform. Konstantin 9. If you can provide a patch/info to fix the problem, even better. What we do *not* need: Please do not submit requests for XYZ features, dreams, etc. Please save these ideas for future versions. Thanks. The Cocoon Team - 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: Looking for help in the upcomming release
From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Piroumian Konstantin wrote: ... What if we provide a feedback form on the site for this? The form can include all the needed fields (like in XMLForm example) and have 'action=mailto:[EMAIL PROTECTED];'. This will make reporting a little easier and uniform. Ok, since you volunteer, go ahead. On the way already. Not sure about the format of the page. Making it in document format is unnecessary, isn't it? Konstantin -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: Looking for help in the upcomming release
From: Diana Shannon [mailto:[EMAIL PROTECTED]] On Thursday, July 11, 2002, at 12:34 PM, Piroumian Konstantin wrote: On the way already. Thanks!! Not sure about the format of the page. Making it in document format is unnecessary, isn't it? No. And also document2html.xsl does not support HTML form tags... Diana - 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: i18n
From: kavitha ramesh [mailto:[EMAIL PROTECTED]] 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,,, In your message catalogue you should have a dictionary file with no locale, e.g.: messages.xml -- this is the default bundle. Simply copy the english bundle. messages_en.xml messages_de.xml Konstantin 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: XML Forms again
From: [EMAIL PROTECTED] Hello, ... Still I am wondering, if I can use the bean used for the model, outside of my FormAction or if it is only possible to use it in this action. The map:parameter name=xmlform-scope value=session/ indicates the scope of your instance data (e.g. your bean), so if you set it to 'session' then your bean should be available everywhere where the session is available, until you remove it. Konstantin Thanks again for any help! miHam - 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: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad)
From: Werner Guttmann [mailto:[EMAIL PROTECTED]] Thanks. Now, having said that, I am behind a firewall, iow getting the latest code from CVS is not an option, and our download puts some further restriction on me ... well, seems like I'll have to have a look at the source then .. ;-). This link can help you a little bit: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/src/org/apache/ cocoon/transformation/CastorTransformer.java?rev=1.2content-type=text/vnd.v iewcvs-markup Of course, if HTTP access is not restricted by your firewall. Konstantin As an aside, it seems to have escaped me that Castor XML is capable of generating SAX events. Well, so far about alledgedly knowing a package ... Werner Piroumian Konstantin wrote: Exactly the opposite: it takes your JavaBeans and generate SAX events from them. The best way to learn how one thing is implemented is to look at the source code. CastorTransformer's source is not complicated, so if look at it you'll find this in comments: /* ... forward the Castor SAX events to Cocoon 2 Events */ Konstantin -Original Message- From: Othman Haddad [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad) castorTransformer doesn't create any xml file, it just takes sax events and generates beans... ---Message original--- De : [EMAIL PROTECTED] Date : vendredi 05 juillet 2002 13:38:36 A : [EMAIL PROTECTED] Cc : jaxme mailing list; ldbledge Sujet : Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad) Hi, I'd be very interested to start using this new transformer in our projects, as we are using Castor XML already in various places. Knowing how Castor XML works in terms of (un)marshalling, can somebody please confirm that the CastorTransformer would convert the XML created by Castor to SAX events using an XML parser ? It's not that I am particularly concerned about speed as most of our documents would be sufficiently small, but I'd love to understand how this has been implemented. Thanks Werner Othman Haddad wrote: hi,the documentation of CastorTransformer you can find it in the sources of Cocoon2.02 in the repository:cocoon-2.0.2\srcINCREDI_LINK_PLACEHOLDER_1310le because i find that they can be more useful than the castor ones.. so my question is: is there any cocoon-jaxme user there, and is it possible to write and use a kind of jaxmeTransformer in cocoon2? I have worked with Cocoon in the past and really like it. A marriage of Cocoon and JaxMe seems very promising, as both are dedicated to SAX, for performance reasons. Unfortunately you do not add any hints what the CastorTransformer precisely is and a quick search through Altavista didn't give me a clue. May be you should explain a little bit more? Regards, Jochen . IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici - 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: Design Assistance
From: Jason Foster [mailto:[EMAIL PROTECTED]] I am in the process of trying to create a Cocoon baby-block that can be used to generate output from a DocBook source file. I was hoping that the group could help me puzzle through the right way to accomplish my goal. The process that I am envisioning looks something like this... 1. The user visits a web page where they specify the DocBook source file they would like to upload and the various processing options they would like to use. These options are presented as pulldowns, text fields, checkboxes, etc. 2. The uploaded file into a temporary directory somewhere 3. The DocBook stylesheets are applied to the file, using the specified processing options 4. (For now) a PDF document is returned to the user My primary implementation goal is to use the minimum amount of code as possible. Right now the W3, and in my opinion the Cocoon developers, are pushing for a more declarative web development experience I would not say for all the Cocoon developers. (check out the XForms spec for an example) so I would like my implementation to adhere to this vision. Accomplishing part 1 is fairly straightforward, as it is a simple XHTML page, no bells or whistles. I could base it on a transform, but for now that seems like overkill. Yes. Part 2 looks to be be handled by the SourceUploadAction that is currently sitting in the scratchpad. The alternative that is most often discussed in this list is to use an XSP page to do the work, which I would prefer not to do for the reasons discussed earlier. Any other techniques would be greatly appreciated. IMO, SourceUploadAction is the right choice. Part 3 looks to be the most complicated. I don't want the user to have to always select all of the processing options. I also don't want to have to keep track of the default values used by the DocBook stylesheets, which would be a maintenance nightmare. My plan is to provide a use default option for the pulldowns and to assume that empty text fields mean use default. What's wrong with having defaults in stylesheets and assign new values from request params? xsl:param name=use.extensionsnoxsl:param And then in the sitemap turn on use-request-parametersfalse/use-request-parameters option for the XSL transformer. Another problem is that the DocBook stylesheets assume that there will be a driver stylesheet that looks like: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:import href=file:///Users/jafoster/Development/docbook-xsl-1.50.0/fo /docbook. xsl/ xsl:param name=use.extensions/ xsl:param name=autotoc.label.separator/ /xsl:stylesheet I would really like to do things properly and use the driver stylesheet approach. This means that I need to first use the submitted form to create the driver stylesheet and then use that new stylesheet to process the uploaded file. At a guess what I will have to do is use two different pipelines. The first will use some kind of FileWritingTransformer or WriteableSource or something similar to generate the driver stylesheet. That pipeline will then call the second pipeline which will actually do the transformation and generate the PDF. Hopefully someone can provide some advice on this part of the implementation. One issue that I have no idea how to address is the namespacing issues associated with having one XSLT generate another XSLT. You can do it this way: - First pipeline generates the content transformations into PDF and calls the second pipeline to obtain the needed stylesheet - Second pipeline generates a stylesheet depending on request params and using a stylesheet template Look at the Slashedit sitemap (xml-cocoon\2.1-dev\src\scratchpad\webapp\samples\editor\editor.xmap), particularly, the lines 101-123. You'll see several map:transform src=cocoon:/something.xsl /. Assuming that I can get this to work, part 4 is automatic, assuming that I use Saxon. As of today Xalan can't handle DocBook, so I am using the specify your own factory approach and forcing the use of Saxon. I have every intention of documenting the full design process and implementation of this project, assuming that I can ever make it work. I know that the DocBook community would love to have an automated way for new users to play with the DocBook stylesheets in a controlled manner. And I'm sure that Cocoon community would like to have a use-case like this, and more over if it will be documented in details. Hope my comments help a little. Konstantin. Thanks for any help you can give. Once this is all documented, you (hopefully) won't have to answer these kind of questions again! Jason Foster - Please check
RE: XML-Forms
From: [EMAIL PROTECTED] Hello, Before I start working with the xml-form implementation in Cocoon, I want to find out if it is possible to use xml_form together with the i18n Transformer to display xf:captionFirst Namexf:caption in different languages: xf:captioni18n:textfirstName/i18n:text/xf:caption Also, how can I use Internationalisation with Schematron error messages? Will it work, if I specify the key of the message as the Schematron Error message assert test=string-length(.)=0 Error121 and in the xml File I do: error i18n:textxf:violations class=error//i18n:text /error If this works when will I run the i18n Transformer - before or after the XMLFormTransformer? Thanks very much for any help!! To answer your question: I think that it should work the way you've described. You should run i18n transformer after the XMLFormTransformer, so it could translate also the violations. You raise a very interesting issue. I've promised to make a sample of multilanguage XML Form, but, unfortunately, have no free time at all now. Please, let us know about the results and any problems that you encounter. Konstantin miHam - 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: sunspotdemo
From: Lutz Lenzen [mailto:[EMAIL PROTECTED]] Hi everybody, there is the following line in the sitemap map:generate src=admin type=sunSpot-conf/ Normally the the src-attribute of the generate-tag holds an XML-file. Here it is admin. What does that mean, is it an entity? Holding an XML-file in src attribute is normal only for FileGenerator, even in that case the src is not necessarily a file, but can be any resource, e.g. src=http://my.com/news.xml; /. In this case the sunSpot-conf generator uses the src attribute to load the needed configuration file name. Where that configuration files are located is configured somewhere else, so instead of using a full path to your file you simply use a shorter name. Am I right, Carsten? Konstantin Thanks, Lutz * Lutz Lenzen Institut fuer Reine und Angewandte Mathematik RWTH Aachen Templergraben 55 52062 Aachen E-mail: [EMAIL PROTECTED] Tel.: 0241/80-94513 bzw. 030/314-22698 * - 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: Form Validator - RESOLVED ! Need a Patch ?
Would you please post the patch to Bugzilla as described in: http://xml.apache.org/cocoon/howto/howto-patch.html ? Konstantin From: Sascha Kulawik [mailto:[EMAIL PROTECTED]] The diff for AbstractValidatorAction.java is: 564a565,566 }catch (NullPointerException e) { return true; 578a581,582 } catch (NullPointerException e) { dflt = ; Greetings, Sascha - 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: castorTransformer
Title: Message Source: xml-cocoon\src\scratchpad\src\org\apache\cocoon\transformation\CastorTransformer.java Samples: xml-cocoon\src\scratchpad\webapp\mount\castor\ Docs: xml-cocoon\src\scratchpad\webapp\mount\castor\doc\castortransformer.xml -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Othman Haddad [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 7:43 PMTo: cocoon user listSubject: castorTransformer hi, where can i get th CastorTransformer and it's documentation? thanks for your help? IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici
RE: dynamic pipelines?
Title: Message Don't get confused.What you describe here is astatic pipeline and dynamic parameters for it. E.g.: map:match pattern="dynamic" map:act type="get-page-and-stylesheet" map:generate src="{page}" / map:transform src="{stylesheet}" / map:serialize/ /map:act /map:match You can use one of the multiple actions, selectors or matchers from Cocoon to get the needed parameters dynamically either from your request path, request params or some other source. And, please, don't use HTML emails. Not everyone can read them and it's problematic to quote on. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Othman Haddad [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 2:28 PMTo: [EMAIL PROTECTED]Subject: dynamic pipelines? Hi, first thanks everybody for the fast and precise answers,it's amazing!! well, i was wondering if is it possible to choose stylesheet to use from a form without hardcoding them? i.e: imagine this scenario: i choose an XML file from a location and an XSLT to apply on itfrom another location, directly with some clicks on the browser! that means that we can generate the sitemap_xmap.xmap dynamically! so isthat possible with cocoon2? thanks a lot.. IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici
RE: Workaround against i18n(2.0.1) bug (divided buffered keys)
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, It's just concerning i18n transformer in Cocoon 2.0.1. There is known bug of i18n related to untranslated-text because of keys divided by parser. I'd say there was a known bug. I've fixed that bug several months ago. You can just get a newer version from CVS (2.0.3 branch contains fixed version). It seems that using concat function for concatenation of empty string and a key in construction like i18n:textxsl:value-of select=concat('',LABEL)//i18n:text helps to avoid such a key dividing. It's interesting how it can solve this problem? According to SAX specification, the parser can break character data into chunks on its discretion. So, you cannot guarantee that some other parser or in some other condition this will work too. Could someone, who is more familiar with these issues confirm that this workaround could help to avoid the bug or it just decrease probability of keys dividing? Just get the newer version. There were some other changes since 2.0, but you can use the CVS revision history to get the needed version. (I'd point you to the needed version, but have problems accessing CVS currently). Konstantin Thank you in advance, Roman - 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: Workaround against i18n(2.0.1) bug (divided buffered keys)
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] ... Could someone, who is more familiar with these issues confirm that this workaround could help to avoid the bug or it just decrease probability of keys dividing? Just get the newer version. There were some other changes since 2.0, but you can use the CVS revision history to get the needed version. (I'd point you to the needed version, but have problems accessing CVS currently). Here is the link to the fixed version: http://63.251.56.143/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/tran sformation/I18nTransformer.java?rev=1.12content-type=text/vnd.viewcvs-marku p Konstantin Thank you in advance, Roman - 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: SUMMARY: Re: Workaround against i18n(2.0.1) bug (divided buffered keys)
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Konstantin, thank you for the reply. Problem: bug of i18n in Cocoon 2.0.1 related to untranslated-text because of keys divided by parser. Suggested workaround (not confirmed): It seems that using concat function for concatenation of empty string and a key in construction like i18n:textxsl:value-of select=concat('',LABEL)//i18n:text helps to avoid such a key dividing. Solution: upgrade of Cocoon 2.0.1 up to fixed CVS version (see below). Clarification: upgrade of I18nTransformer to fixed version. Cocoon upgrade is not needed. Piroumian Konstantin wrote: From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] ... Could someone, who is more familiar with these issues confirm that this workaround could help to avoid the bug or it just decrease probability of keys dividing? Just get the newer version. There were some other changes since 2.0, but you can use the CVS revision history to get the needed version. (I'd point you to the needed version, but have problems accessing CVS currently). Here is the link to the fixed version: http://63.251.56.143/viewcvs.cgi/xml-cocoon2/src/java/org/apac he/cocoon/tran sformation/I18nTransformer.java?rev=1.12content-type=text/vnd.viewcvs-marku p Konstantin Thank you in advance, Roman - 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: basic start
From: Diego Lluna [mailto:[EMAIL PROTECTED]] hi, i've been trying to test the simplest xsp pages from a local site. ... since i copied the example from existing ones, i suspect i have some kind of config problem, maybe in the sitemap.xmap anybody can help? i'm providing more info: the .xsp file: ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet href=stylesheets/default.xsl type=text/xsl ? This syntax is not supported in C2. You'd better start with C2 original samples: there is a lot of XSP pages. Take a look at your COCOON-WEBAPP/docs/samples/xsp/'. Konstantin xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xsp:logic static private int counter=0; private synchronized int count(){ return counter++; } /xsp:logic page para me han llamado xsp:exprcount()/xsp:expr veces /para /page /xsp:page i'm running cocoon 2.0.1 on apache 4.0.3 sincere thanks, Diego - 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: Xindice and Cocoon
From: Cenk Uysal [mailto:[EMAIL PROTECTED]] Hi, I try to use Xindice as my XML source database. I know that Cocoon has special generators for this purpose. But I try to do this by the help of JSP(don't ask why :)). So we prepared a library which allows us to connect Xindice from JSP and get XML content by Xpath function that we enter. Here is a sample JSP: %@ page language='java'% %@ taglib uri=deu-taglib.tld prefix=deu% data deu:connection url=xmldb:xindice:///db/cse deu:query select=//employees/employee/name/ /deu:connection /data Here deu:connection and deu:query tags are defined by us. They make a connection to Xindice and get the XML with restrictions given in deu:query tag. Normally, this code runs in ROOT directory of Tomcat. But I want to run this JSP code by the help of JSP generator. But I get JSPGenerator problem from Cocoon. I think I can't reach Xindice because this time JSP must be under Cocoon directory. I know normally JspGenerator runs without problem. What is the exact problem you get? Have you looked at the log? Is Xindice reachable from other places in Cocoon, e.g. from XSP? (The question is not hard to answer, but almost impossible if you don't provide enough details. And also, please, have patience to wait until the earth will turn arround a little, so the people from the other time zones could get your question in the morning ;)) What can be the problem? Error messages, log snippets, other relevant details... Konstantin __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.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: Wierd image / cocoon problem
From: daniel robinson [mailto:[EMAIL PROTECTED]] My sitemap specifies: map:match pattern=images/**.gif map:read src=images/{1}.gif mime-type=image/gif/ /map:match map:match pattern=images/**.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match in my xslt I reference img src=image/myjpg.jpg This all worked fine on my dev machine. I moved everything to a production server and no-one could see the images. When I cleared my browser cache I had the same problem. When I selectively copied files into the image dir they would show up - or not - intermitantly. On the suggestion of the sysadm I copied all the images into a directory that Apache could see htmlroot/images and then changed my references to img src=http://www.myserver.com/images/myjpg.jpg; this seems to work fine in all cases. What gives? You can use simply img src=/images/myjpg.jpg instead. Compare the URLs on the production server and your dev machine. Maybe they don't match your images/**.jpg pattern. Maybe you need something like **/images/*.jpg? Konstantin Thanks, Dan - 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: sent map parameters into another sitemap
From: yuryx [mailto:[EMAIL PROTECTED]] Hi all! Does is possible sent sitemap parameters into mounted sitenap like this: map:mount check-reload=yes src=test/ uri-prefix=info reload-method=synchron map:parameter name=use-connection value=personnel/ /map:mount Yes!!! ...but only in 2.1-dev version. Use this in your subsitemap: map:pipelines map:global-parameters map:parameter name=use-connection value=some-default-value / ... KP Thanx. Yury. - 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: sent map parameters into another sitemap
From: zze-STIENNE Nicolas FTRD/DMI/CAE I tried the solution you give but it don't seams to work (for me). No error message comes, I just don't obtain the values of the parameters. Note: Tomcat4.0.4, W2000, JDK1.3.1_3, Cocoon2.0.2-scr ( I know you said only in 2.1-dev version but my Cocoon start-page indicates version 2.1-dev ) Otherwise, did I well understand ? To be exact: only in 2.1-dev version from CVS HEAD branch and only with TreeProcessor as the sitemap engine. Don't know why do you have 2.1-dev in the start-page, in 2.0.3 version everything's correct. Konstantin In my parent sitemap : map:pipelines map:pipeline map:match pattern=*/*/soussite/** map:mount check-reload=yes src=soussite/ uri-prefix={1}/{2}/soussite reload-method=synchron map:parameter name=section value={1}/ map:parameter name=base-url value=/cocoon/monsite/ /map:mount /map:match [..] map:pipeline map:pipelines and in soussite/sitemap.xmap: map:pipelines map:component-configurations/ map:global-parameters map:parameter name=section value=presentationgenerale / map:parameter name=base-url value=rien / /map:global-parameters map:pipeline [..] map:pipeline map:pipelines thanks... Nicolas !! Hi all! Does is possible sent sitemap parameters into mounted sitenap like this: map:mount check-reload=yes src=test/ uri-prefix=info reload-method=synchron map:parameter name=use-connection value=personnel/ /map:mount Yes!!! ...but only in 2.1-dev version. Use this in your subsitemap: map:pipelines map:global-parameters map:parameter name=use-connection value=some-default-value / ... KP Thanx. Yury. - 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] - 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: sent map parameters into another sitemap
From: zze-STIENNE Nicolas FTRD/DMI/CAE ok... and with 2.0.2, there is absolutely no solution to sent a parameter to a sub-sitemap ? There can't be absolutely no solution in open source: you can add the needed functionality yourself, but if you describe why do you need then maybe somebody will propose another quicker solution. and is that normal, I get no error message ? When specifing parameters to mount? Yes. Most of the sitemap elements are parametrizable, but in map:mount they simply ignored. Konstantin De : Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: zze-STIENNE Nicolas FTRD/DMI/CAE I tried the solution you give but it don't seams to work (for me). No error message comes, I just don't obtain the values of the parameters. Note: Tomcat4.0.4, W2000, JDK1.3.1_3, Cocoon2.0.2-scr ( I know you said only in 2.1-dev version but my Cocoon start-page indicates version 2.1-dev ) Otherwise, did I well understand ? To be exact: only in 2.1-dev version from CVS HEAD branch and only with TreeProcessor as the sitemap engine. Don't know why do you have 2.1-dev in the start-page, in 2.0.3 version everything's correct. Konstantin In my parent sitemap : map:pipelines map:pipeline map:match pattern=*/*/soussite/** map:mount check-reload=yes src=soussite/ uri-prefix={1}/{2}/soussite reload-method=synchron map:parameter name=section value={1}/ map:parameter name=base-url value=/cocoon/monsite/ /map:mount /map:match [..] map:pipeline map:pipelines and in soussite/sitemap.xmap: map:pipelines map:component-configurations/ map:global-parameters map:parameter name=section value=presentationgenerale / map:parameter name=base-url value=rien / /map:global-parameters map:pipeline [..] map:pipeline map:pipelines thanks... Nicolas !! Hi all! Does is possible sent sitemap parameters into mounted sitenap like this: map:mount check-reload=yes src=test/ uri-prefix=info reload-method=synchron map:parameter name=use-connection value=personnel/ /map:mount Yes!!! ...but only in 2.1-dev version. Use this in your subsitemap: map:pipelines map:global-parameters map:parameter name=use-connection value=some-default-value / ... KP Thanx. Yury. - 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] - 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: Giving up! Cocoon too big, slow and confusing
From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]] Good post :) Wake up, guys! John raised a real issue. You can't simply say Don't give up, be patient, read mailing-list, look into sources... and so on. If you want this framework to catch the train, then there must be better support What do you mean by better support? and better documentation. I'm not complaining, by the way. I'd love Cocoon become a mainstream framework. So, help us make it better. If you have ideas on how to improve Cocoon iself then welcome to cocoon-dev mail list, if you are willing to have/provide suggestions on making the docs better or write some then join the Forrest project. Konstantin -Original Message- From: John Austin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Giving up! Cocoon too big, slow and confusing I'm back from a short vacation in beautiful Chicago (it really is much nicer than Toronto or Montreal) and have waded back in to Cocoon for a couple of days. After just a few hours of poking around I have decided that it will be much simpler for me to simply hand-code a whole hat-full of servlets than to try and pull any meaning out of Cocoon and it's documentation. Two days is absolutely not enough to get a grasp of Cocoon, definitely. Unless, you are a twin brother of Stephano :) - 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]