Pgination - Total # of pages
Hi Guys, Have anybody encountered this... The total attribute under the page:page element is giving me a wrong value. Its giving me 4 instead of 3. see xml... ?xml version="1.0" encoding="UTF-8" ? - document xmlns:xsp="http://apache.org/xsp" xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:page="http://apache.org/cocoon/paginate/1.0" - header titleVoxsant's Employee Maintenance - Search Results/title /header - body - employeeresults - record id003/id firstnameGlenn/firstname lastnameDanzig/lastname /record - record id004/id firstnameTed/firstname lastnameNasmith/lastname /record /employeeresults /body - page:page current="1" total="4" current-uri="/cocoon/richard_webapps/results-employees(1).html" clean-uri="/cocoon/richard_webapps/results-employees.html" page:link type="next" uri="/cocoon/richard_webapps/results-employees(2).html" page="2" / /page:page /document Thanks
AW: Integrating XML formatted information directly with navigational structures
Just to get it right: my pipeline will then consist of - the generator, which I have to implement for fetching the XML directly from the database - the XSLT transfomer which creates the XHTML with the short list consisting of the hyperlinks to the detailed pages and the navigational elements (prev, next) - the HTML serializer Some questions remain (at least for me): - Should the generator produce 1 XML (including the various 'XML rows' from the database and maybe a tag for the PREV and the NEXT) or should it produce a series of XMLs (1 for each record from the DB)? - Can I somehow make the query (results) persistent for the PREV/NEXT mechanisms? Does this have to be done in the generator? Thanks Kurt -Ursprüngliche Nachricht- Von: Ugo Cei [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 17. September 2002 14:19 An: [EMAIL PROTECTED] Betreff: Re: Integrating XML formatted information directly with navigational structures Majcen, Kurt wrote: Hi all! I'm rather new with Cocoon but I think I've got a somehow tricky question: In my ORACLE database XML formatted records are stored e.g. for users (also for other types of records but these are the easy ones I want to try with) in CLOB fields - so the record could look like: snip/ I'd use a generator instead of an action. No need to store the retrieved XML in a file and read it again via XSP. You can find an example here [1]. I'll comment the relevant parts: PreparedStatement ps = ...; ResultSet rs = ps.executeQuery(); // execute query and retrieve the result set while (rs.next()) { // CONTENT is the CLOB column insertXML(rs.getClob(content).getCharacterStream(), parser); } ... // The insertXML method parses the CLOB column as XML and inserts // it as SAX events in the pipeline. private void insertXML(Reader reader, Parser parser) throws SAXException, IOException { InputSource is = new InputSource(reader); parser.parse(is, new IncludeXMLConsumer(xmlConsumer)); } I hope this is helpful and correct. Ugo [1]: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cocoblog/CocoBlog/src/java/co m/beblogging/generation/RSSGenerator.java?rev=1.1content-type=text/vnd.view cvs-markup -- Ugo Cei - http://www.bebloggging.com/blog/ - 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: Pgination - Total # of pages
I've seen this happen when the last page has the maximum number of allowed records per page, but I haven't had a chance to confirm to report this as a bug. --- Richard [EMAIL PROTECTED] wrote: Hi Guys, Have anybody encountered this... The total attribute under the page:page element is giving me a wrong value. Its giving me 4 instead of 3. see xml... ?xml version=1.0 encoding=UTF-8 ? - document xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:page=http://apache.org/cocoon/paginate/1.0; - header titleVoxsant's Employee Maintenance - Search Results/title /header - body - employeeresults - record id003/id firstnameGlenn/firstname lastnameDanzig/lastname /record - record id004/id firstnameTed/firstname lastnameNasmith/lastname /record /employeeresults /body - page:page current=1 total=4 current-uri=/cocoon/richard_webapps/results-employees(1).html clean-uri=/cocoon/richard_webapps/results-employees.html page:link type=next uri=/cocoon/richard_webapps/results-employees(2).html page=2 / /page:page /document Thanks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQL Connection throws exception
Hi, i need your help: when trying to execute an SQL Statement cocoon throws an exception. The JDBC driver is working (i can see coocoon connect to the database and i can access the database via JDBC from within other applications. Any hints and thoughts about what i could try to get the connection to work are welcome. This is my JDBC definition: jdbc name=SQLBase pool-controller max=10 min=5/ dburljdbc:sqlbase://xxx.xxx.xxx.xxx:2155/mydatabase/dburl usersysadm/user passwordx/password /jdbc This is my map:match: map:match pattern=testdb map:generate src=testdb.xml/ map:transform type=sql map:parameter name=use-connection value=SQLBase/ /map:transform map:serialize type=xml/ /map:match This is my file testdb.xml: ?xml version=1.0 encoding=UTF-8? xml xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select name from user /sql:query /sql:execute-query /xml And this is the result: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) root cause java.lang.AbstractMethodError at org.apache.avalon.excalibur.datasource.Jdbc3Connection.prepareStatement(Jdbc3Connection.java:167) at org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1096) at org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:305) at org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:462) at org.apache.cocoon.transformation.SQLTransformer.endTransformingElement(SQLTransformer.java:769) at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:358) at
Re: AW: Integrating XML formatted information directly with navigational structures
Majcen, Kurt wrote: Some questions remain (at least for me): - Should the generator produce 1 XML (including the various 'XML rows' from the database and maybe a tag for the PREV and the NEXT) or should it produce a series of XMLs (1 for each record from the DB)? A generator has to produce a single well-formed XML document, with a single root element. You could write a single generator that takes as an optional parameter a record number. If the parameter is present, output that record, if not, output the summary list. - Can I somehow make the query (results) persistent for the PREV/NEXT mechanisms? Does this have to be done in the generator? You could always output the whole database from your generator, have it implement the Cacheable interface, with suitable generateKey() and generateValidity() methods, and use the Paginator Transformer [1] to navigate through records. Another method I used is to use a CachedRowSet (included in JDBC 2.0, but available separately [2]). I've used it to in an application where it would have been impractical to cache the full results of a query, so I cached just the keys and fetched a single record at a time when requested, given the key. To explain better: I have a generator that acccepts two optional parameters: The first one, q, is a query string and is used to initialize a new CachedRowSet from a querly like the following: select key from tablename where description like '%q%' the rowset obtained from this query is associated to a user session, then the current row in the rowset is set to the first one, it's key column is fetched ad used to execute a query like the following: select * from tablename where key = 'key' then the table columns are output in XML. The second one, cmd, can have values first, last, next and prev. Its value is used to do a first(), last(), next() or prev() operation on the rowset (taken from the current session). Then I use the key value to perform again the second query above. Hope this helps, Ugo [1]: http://xml.apache.org/cocoon/howto/howto-paginator-transformer.html [2]: http://developer.java.sun.com/developer/technicalArticles/javaserverpages/cachedrowset/ -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - 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]
Pagination: number of records
Hello, I'm using Paginator transformer and would like to be able to display something like: Viewing records 21-30 out of 53. Is it possible to get this information from the transformer - would that be an enhancement or am I just missing a way of doing this? Thanks, -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]
how to write data to the XML file which the data is read from ?
Hi! all: I am a newbie on cocoon and xsp. I want to know if it is possible to write data to the XML file which the data is read from. That means, I can get some data from a xml file, and transform it to a html and present it to a user. The user may change the data. How can I save the changes to the VERY xml which the data comes from? I think serializer may be the answer. But I don't know how to generate a xml file dynamically without http response. best regards -- funing [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] Re: issues with javascript
A colleague helped me to solve it out (form validator and set focus on first erroneous input text). So this means that the javascript is surrounded with xsl:text/ and that the hack here is to use a javascript variable that exists once a field is incorrect. My text inputs have complicated names you see... like AAA_BBB. Babs !-- if error element -- error when=error xsl:attribute name=name xsl:value-of select=../@Id/_xsl:value-of select=@Name//xsl:attribute font color=red xsl:value-of select=/page/errormessage /font /error input type=text size={$textfieldsize} value={$defaultvalue} xsl:attribute name=name xsl:value-of select=../@Id/_xsl:value-of select=@Name//xsl:attribute xsl:attribute name=id xsl:value-of select=../@Id/_xsl:value-of select=@Name//xsl:attribute /input !-- set focus on first incorrect field -- error when=error xsl:attribute name=name xsl:value-of select=../@Id/_xsl:value-of select=@Name//xsl:attribute !-- put here so the input is loaded first -- script language=javascript xsl:textif (error==null) document.form./xsl:text xsl:value-of select=../@Id/ xsl:text_/xsl:text xsl:value-of select=@Name/ xsl:text.focus();/xsl:text xsl:textvar error=true;/xsl:text /script /error - Original Message - From: Stan Dyck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 6:01 PM Subject: Re: issues with javascript Try rearranging the code so the the script element is written after the /form tag. I suspect that the javascript interpreter cannot resolve my_form because it has not been completely written to the browser yet. hope this helps, StanD. - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:53 AM Subject: issues with javascript I know this is a bit offtopic but maybe it is due to cocoon ? I hope not ! I posted in javascript newsgroup too... I admit that javascript is not complicated but I often have troubles with it... I generate a page with xml and xsl : At a moment I have an input field, let's say my_text, in my_form form (no frames, one form in the body). So I have a template that writes the html code for the input field and right below the javascript tag to focus on it : script language=javascriptdocument.my_form.my_text.focus()/script IE 5.5 says that document.my_form.my_text is null or not an object. At the moment the browser displays this javascript tag, the html generation process hasn't produced the final /form tag. May this be an issue ? Any other ideas of what could be wrong ? Thanks, 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] - 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]
XSL troubles
Hi ! I'm new to cocoon. I'm trying to use an xsl page to allow users to view the xml one... I modified the sitemap to use the dynamic-page2html.xsl. It works. But when I try to use another xsl page, I get this error : *** type fatal message org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) description org.apache.cocoon.ProcessingException: Could not read resource file:/var/tomcat4/webapps/cocoon/docs/test/indexedData/UMLV-2002-01/UMLV-2002-01-XML.xml: javax.xml.transform.TransformerException: org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet *** I don't understand what is invalid ? Could someone help me ? Thank you very much, Ganaë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]
Re: Umlauts in cocoon 2.0.2
Is it possible to set Action encoding somewhere ? You can set serializers encoding by adding encodingiso-8859-1/encodng. But for Actions I don't know. OK, change the sitemap's encoding from utf-8 to iso-8859-1 too and try again, this may help. This encoding fits your characters. When you post, which encoding is in the html source ? If it is utf-8, changing the serializers' encoding will solve it. So happy encoding... I stumbled on this too. It seems not to be clear enough in the docs...? Babs - Original Message - From: Kenneth Roper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 12:13 PM Subject: Umlauts in cocoon 2.0.2 Hi I'm trying to set up my cocoon application to handle strings with Umlauts in (e.g. ÄäÖöÜüß). I'm using Cocoon 2.0.2. Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); The string I get from mangled is: ÄäÖöÜüß, whereas it should be: ÄäÖöÜüß. I've left all of cocoon's character encoding settings on the defaults. Does anyone know what I'm doing wrong? Thanks. Kenneth - 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: Encoding problem
Let me be more specific and also simplify the example: Works: xsl:param name=city select='Delhi'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=DelhiDelhi/a Does not work: xsl:param name=city select='Äåëè'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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: Encoding problem
maybe : a href=city-detail={$city}xsl:value-of select=$city//a try to use Russian-compatible output encoding rather than utf-8 ? - Original Message - From: Alex Romayev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 12:53 PM Subject: Re: Encoding problem Let me be more specific and also simplify the example: Works: xsl:param name=city select='Delhi'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=DelhiDelhi/a Does not work: xsl:param name=city select='Äåëè'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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] - 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: Umlauts in cocoon 2.0.2
You should also take care of the url encoding properly. There was a bug that in xsp get parameters where not automatically url decoded: put on your java/xsp hat! - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 12:17 PM Subject: Re: Umlauts in cocoon 2.0.2 Is it possible to set Action encoding somewhere ? You can set serializers encoding by adding encodingiso-8859-1/encodng. But for Actions I don't know. OK, change the sitemap's encoding from utf-8 to iso-8859-1 too and try again, this may help. This encoding fits your characters. When you post, which encoding is in the html source ? If it is utf-8, changing the serializers' encoding will solve it. So happy encoding... I stumbled on this too. It seems not to be clear enough in the docs...? Babs - Original Message - From: Kenneth Roper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 12:13 PM Subject: Umlauts in cocoon 2.0.2 Hi I'm trying to set up my cocoon application to handle strings with Umlauts in (e.g. ÄäÖöÜüß). I'm using Cocoon 2.0.2. Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); The string I get from mangled is: ÄäÖöÜüß, whereas it should be: ÄäÖöÜüß. I've left all of cocoon's character encoding settings on the defaults. Does anyone know what I'm doing wrong? Thanks. Kenneth - 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: Umlauts in cocoon 2.0.2
First, Are you using some database? Some old tips (from my friend Barbara): 1-Ensure that every XML is starting with: ?xml version=1.0 encoding=ISO-8859-1? 2-In the site map check for your serializer: map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer doctype-public-//W3C//DTD HTML 4.01//ES/doctype-public doctype-systemhttp://www.w3.org/TR/html4/strict.dtd/doctype-system buffer-size1024/buffer-size encodingISO-8859-1/encoding !-- West Europe -- /map:serializer (Please, see the encoding tag above) 3-If you are using xml serializer you can do that too: map:serializer logger=sitemap.serializer.xhtml mime-type=text/html name=xhtml pool-grow=2 pool-max=64 pool-min=2 src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Strict//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer (Please, see the encoding tag above) 4- If you are using some database check that it is working with the code you need, for example in PostgreSQL i created the databse using: createdb -E LATIN1 -e my_database_name I hope it will helps you. Regards, Antonio Gallardo El Miércoles, 18 de Septiembre de 2002 04:13, Kenneth Roper escribió: Hi I'm trying to set up my cocoon application to handle strings with Umlauts in (e.g. ÄäÖöÜüß). I'm using Cocoon 2.0.2. Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); The string I get from mangled is: ÄäÖöÜüß, whereas it should be: ÄäÖöÜüß. I've left all of cocoon's character encoding settings on the defaults. Does anyone know what I'm doing wrong? Thanks. Kenneth - 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]
Cocoon 2.0.3 / Deploying multiple Web-Apps
Hello, we are new to JBoss and Cocoon and we try to deploy a Web-App using Cocoon. We are using integrated Tomcat 4.0.3 in JBoss 3.0.0 with Cocoon 2.0.3. Things work fine, but we want to seperate all the cocoon-libs from our application ear. (So we can deploy more than one web-app using cocoon without putting all the jars in WEB-INF/libs in each web-app) So we put all the jars from cocoon into {jboss_home}/server/{conf}/lib . Starting the server again did raise a cocoon error not finding the necessary classes from cocoon (like avalon-framework ...). We also tried {catalina_home}/common/lib with an entry in our web.xml pointing at those libs with the init-param extra-classpath. This didn't work, too. Did anyone succeeded in doing this task ? Any help would be appreciated. mfg Andre Hegerath and Klaus Richarz Hamburger Berater Team GmbH Hamburg, Germany - 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: Encoding problem
--- Barbara Post [EMAIL PROTECTED] wrote: maybe : a href=city-detail={$city}xsl:value-of select=$city//a Sorry, just a typo in my e-mail, I did actually use {$city}. try to use Russian-compatible output encoding rather than utf-8 ? The site is multi-lingual, so I have to use utf-8 - Original Message - From: Alex Romayev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 12:53 PM Subject: Re: Encoding problem Let me be more specific and also simplify the example: Works: xsl:param name=city select='Delhi'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=DelhiDelhi/a Does not work: xsl:param name=city select='Äåëè'/ ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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] - 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]
global-parameters
Hi, just noticed that the following does not work and it bugs me since I don't know how the dev is up-to-date... {/name_of_my_global_parameter} is empty. Babs --- From Vadim in last May : One thing left - to add {/paramname} syntax... Hint-hint ;) Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can anyone give some information on cocoonfilter generator
Hi all I just came to know something on cocoonfilter generator. Can anyhow give some information on to that and how it exactly works. With regards Sreenivasan Attitudes are much more important than aptitudes. Nothing is impossible for a willing heart Sreenivasan N. Sony SARD Ext 5816 Email. [EMAIL PROTECTED] Per: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using html tag in i18n
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,,, 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]
Re: Encoding problem
Alex Romayev wrote: Let me be more specific and also simplify the example: ... Does not work: xsl:param name=city select='Äåëè'/ Are these funny characters above in UTF-8? Does your XSL has encoding=UTF-8 on the top? ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a What's serializer configuration? Does it have proper encoding set? Vadim --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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]
Re: Umlauts in cocoon 2.0.2
Antonio Gallardo Rivera wrote: First, Are you using some database? Some old tips (from my friend Barbara): 1-Ensure that every XML is starting with: ?xml version=1.0 encoding=ISO-8859-1? 2-In the site map check for your serializer: map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer doctype-public-//W3C//DTD HTML 4.01//ES/doctype-public doctype-systemhttp://www.w3.org/TR/html4/strict.dtd/doctype-system buffer-size1024/buffer-size encodingISO-8859-1/encoding !-- West Europe -- /map:serializer (Please, see the encoding tag above) 3-If you are using xml serializer you can do that too: map:serializer logger=sitemap.serializer.xhtml mime-type=text/html name=xhtml pool-grow=2 pool-max=64 pool-min=2 src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Strict//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer (Please, see the encoding tag above) 4- If you are using some database check that it is working with the code you need, for example in PostgreSQL i created the databse using: createdb -E LATIN1 -e my_database_name 5- Set encoding for the request: request.setCharacterEncoding() *before* your first call to request.getParameter (this is better done as the very first action in the sitemap) Vadim I hope it will helps you. Regards, Antonio Gallardo El Miércoles, 18 de Septiembre de 2002 04:13, Kenneth Roper escribió: Hi I'm trying to set up my cocoon application to handle strings with Umlauts in (e.g. ÄäÖöÜüß). I'm using Cocoon 2.0.2. Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); The string I get from mangled is: ÄäÖöÜüß, whereas it should be: ÄäÖöÜüß. I've left all of cocoon's character encoding settings on the defaults. Does anyone know what I'm doing wrong? Thanks. Kenneth - 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]
Sendmail again :(
Hi! I'm having a problem with sendmail. I've successfuly set up sendmail logicsheet, put mail.jar from JavaMail 1.3 pakage to WEB-INF/lib. Transformed XSP page (Java source in work dir, attached) seemes to be ok and no errors reported in log-file... But still i can't recieve an e-mail, and most strange thing is that result of pipeline execution is empty document... I try to apply not valid e-mail address and still the same result - no result (empty document). Desired result: page upsaUPSA/upsa /page and an e-mail message in my inbox :) My XSP: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0; page xsp:logic String text = Hi,\n+ this mail has been send through a web form ...\n; /xsp:logic sendmail:send-mail sendmail:charsetISO-8859-1/sendmail:charset sendmail:from[EMAIL PROTECTED]/sendmail:from sendmail:to[EMAIL PROTECTED]/sendmail:to sendmail:subjectCocoon send mail test/sendmail:subject !-- Modify the next line to point to your mail server -- sendmail:smtphost192.168.0.3/sendmail:smtphost sendmail:body xsp:exprtext/xsp:expr /sendmail:body /sendmail:send-mail upsaUPSA/upsa /page /xsp:page Sitemap pipeline: map:match pattern=mail.xml map:generate src=docs/mail.xsp type=serverpages/ map:serialize type=xml/ /map:match Snip from sitemap logfile: DEBUG (2002-09-18) 15:12.29:482 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern *.xml DEBUG (2002-09-18) 15:12.29:483 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/AbstractSitemap: Current Sitemap Parameters: PARAM: '1' VALUE: 'mail' PARAM: '0' VALUE: 'mail.xml' DEBUG (2002-09-18) 15:12.29:483 [sitemap.selector.request-parameter] (/proza-new/mail.xml) HttpProcessor[8080][4]/RequestParameterSelector: Request parameter 'action' not set -- failing. DEBUG (2002-09-18) 15:12.29:484 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern mail.xml DEBUG (2002-09-18) 15:12.29:485 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/AbstractSitemap: Current Sitemap Parameters: PARAM: '0' VALUE: 'mail.xml' PARAM: '../1' VALUE: 'mail' PARAM: '../0' VALUE: 'mail.xml' DEBUG (2002-09-18) 15:12.29:485 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/sitemap_xmap: Component generator:serverpages(Parameters.EMPTY_PARAMETERS) DEBUG (2002-09-18) 15:12.29:486 [sitemap] (/proza-new/mail.xmll) HttpProcessor[8080][4]/sitemap_xmap: Source= docs/mail.xsp DEBUG (2002-09-18) 15:12.29:487 [sitemap] (/proza-new/mail.xml) HttpProcessor[8080][4]/sitemap_xmap: Component serializer:xml(Parameters.EMPTY_PARAMETERS) Help me, please! I've killed 2 hours to find out where is the problem... My env: Cocoon 2.0.3, Tomcat 4.0.4, JDK 1.4.0_01, SuSE 8.0 Ivan Luzyanin. package org.apache.cocoon.www.docs; import java.io.File; import java.io.IOException; import java.io.StringReader; //import java.net.*; import java.util.Date; import java.util.List; import java.util.Stack; //import org.w3c.dom.*; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl; //import org.apache.avalon.framework.*; import org.apache.avalon.framework.component.Component; import org.apache.avalon.framework.component.ComponentException; import org.apache.avalon.framework.component.ComponentManager; import org.apache.avalon.framework.component.ComponentSelector; import org.apache.avalon.framework.context.Context; import org.apache.avalon.excalibur.datasource.DataSourceComponent; //import org.apache.avalon.framework.util.*; import org.apache.cocoon.Constants; import org.apache.cocoon.ProcessingException; import org.apache.cocoon.components.parser.Parser; import org.apache.cocoon.generation.Generator; //import org.apache.cocoon.util.*; import org.apache.cocoon.components.language.markup.xsp.XSPGenerator; import org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper; import org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper; import org.apache.cocoon.components.language.markup.xsp.XSPResponseHelper; import org.apache.cocoon.components.language.markup.xsp.XSPSessionHelper; /* User Imports */ import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.mail.internet.AddressException; import java.util.Date; import java.util.Properties; /** * Generated by XSP. Edit at your own risk, :-) */ public class mail_xsp extends
Re: Encoding problem
--- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: Let me be more specific and also simplify the example: ... Does not work: xsl:param name=city select='Äåëè'/ Are these funny characters above in UTF-8? Does your XSL has encoding=UTF-8 on the top? Yes. Also, note that this only happens to the href attribute, the value of the a element comes out correctly. ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a What's serializer configuration? Does it have proper encoding set? I'm using the default, i.e., I haven't changed anything since installation. Vadim --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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: Umlauts in cocoon 2.0.2
Kenneth Roper wrote: Hi I'm trying to set up my cocoon application to handle strings with Umlauts in (e.g. ÄäÖöÜüß). I'm using Cocoon 2.0.2. Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); The string I get from mangled is: ÄäÖöÜüß, whereas it should be: ÄäÖöÜüß. I've left all of cocoon's character encoding settings on the defaults. Does anyone know what I'm doing wrong? Thanks. Kenneth Change the encoding of your HTML pages by setting the encoding property on the serializer: map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingiso-8859-1/encoding /map:serializer The browser should recognize the encoding and send back data in ISO-8859-1. I don't know if what I've just written is entirely correct, but it sure saved my day when faced with a similar situation. Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - 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: SQL Connection throws exception
[EMAIL PROTECTED] wrote: Hi, i need your help: when trying to execute an SQL Statement cocoon throws an exception. I bet on JDK mismatch, Please use Cocoon with the JDK it is intended to use with. I.e., cocoon-2.0.3-vm14-bin.tar.gz http://xml.apache.org/cocoon/dist/cocoon-2.0.3-vm14-bin.tar.gz should be used with JDK1.4, and cocoon-2.0.3-bin.tar.gz http://xml.apache.org/cocoon/dist/cocoon-2.0.3-bin.tar.gz for all others (pre-1.4). See http://xml.apache.org/cocoon/dist/ Vadim The JDBC driver is working (i can see coocoon connect to the database and i can access the database via JDBC from within other applications. Any hints and thoughts about what i could try to get the connection to work are welcome. This is my JDBC definition: jdbc name=SQLBase pool-controller max=10 min=5/ dburljdbc:sqlbase://xxx.xxx.xxx.xxx:2155/mydatabase/dburl usersysadm/user passwordx/password /jdbc This is my map:match: map:match pattern=testdb map:generate src=testdb.xml/ map:transform type=sql map:parameter name=use-connection value=SQLBase/ /map:transform map:serialize type=xml/ /map:match This is my file testdb.xml: ?xml version=1.0 encoding=UTF-8? xml xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select name from user /sql:query /sql:execute-query /xml And this is the result: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. ... root cause java.lang.AbstractMethodError at org.apache.avalon.excalibur.datasource.Jdbc3Connection.prepareStatement(Jdbc3Connection.java:167) at org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1096) ... thank you Joern - 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
Hi, Iam sorry,,, In my previous mail I had a small mistake,,, I have a problem using supreg;/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,,, Kavitha --- Kavitha Ramesh [EMAIL PROTECTED] wrote: 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,,, 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] __ 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]
Re: how to write data to the XML file which the data is read from?
funing wrote: Hi! all: I am a newbie on cocoon and xsp. I want to know if it is possible to write data to the XML file which the data is read from. That means, I can get some data from a xml file, and transform it to a html and present it to a user. The user may change the data. How can I save the changes to the VERY xml which the data comes from? I think serializer may be the answer. But I don't know how to generate a xml file dynamically without http response. See slash-edit/ demo. It's under mount/edit in the scratchpad/webapp. Vadim best regards - 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: applet, module, Class.forName() - ClassNotFoundException
Gabor Bartha wrote: Hi, summarized: I have an applet in a jar with outer classes (java modules). There are several classes in the jar and beside the jar. When the applet is running (from the jar) it finds the classes inside the jar, but is unable to find the classes beside the jar. I have the jar file: /myApp/main.jar I have the classes: /myApp/outclasses/needed/req.class /myApp/outclasses/eq.class When Class.forName(outclasses/needed/req) is called, ClassNotFoundExecption occures. I have pipeline for the jar, and for class: Try then: map:match pattern=*.jar map:read src={1}.jar mime-type=application/java-archive/ /map:match map:match pattern=*.class map:read src={1}.class mime-type=application/java-class/ /map:match map:match pattern=**.class map:read src={1}.class mime-type=application/java-class/ /map:match If I use the map:match pattern=**.class pipeline, the classes inside the jar cannot be loaded, and ClassNotFoundException occures. I don't know what **class has to do with the jar, may be you have a problem somewhere else (i.e., in your APPLET tag). Vadim Gabor - 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 troubles
Barbara Post wrote: Please provide your xsl code... Hm. Why do you think the problem is in XSL and not in UMLV-2002-01-XML.xml? Seems like he has invalid processing instruction name in there. Vadim - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:52 AM Subject: XSL troubles Hi ! I'm new to cocoon. I'm trying to use an xsl page to allow users to view the xml one... I modified the sitemap to use the dynamic-page2html.xsl. It works. But when I try to use another xsl page, I get this error : *** type fatal message org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) description org.apache.cocoon.ProcessingException: Could not read resource file:/var/tomcat4/webapps/cocoon/docs/test/indexedData/UMLV-2002-01/UMLV -2002-01-XML.xml: javax.xml.transform.TransformerException: org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet *** I don't understand what is invalid ? Could someone help me ? Thank you very much, Ganaë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]
Re: XSL troubles
Hi Vadim, I've got a very stupid question : what is a processing instruction ??? Thank you for helping me... Ganaël. - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 2:50 PM Subject: Re: XSL troubles Barbara Post wrote: Please provide your xsl code... Hm. Why do you think the problem is in XSL and not in UMLV-2002-01-XML.xml? Seems like he has invalid processing instruction name in there. Vadim - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:52 AM Subject: XSL troubles Hi ! I'm new to cocoon. I'm trying to use an xsl page to allow users to view the xml one... I modified the sitemap to use the dynamic-page2html.xsl. It works. But when I try to use another xsl page, I get this error : *** type fatal message org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) description org.apache.cocoon.ProcessingException: Could not read resource file:/var/tomcat4/webapps/cocoon/docs/test/indexedData/UMLV-2002-01/UML V -2002-01-XML.xml: javax.xml.transform.TransformerException: org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet *** I don't understand what is invalid ? Could someone help me ? Thank you very much, Ganaë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: Encoding problem
Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: Let me be more specific and also simplify the example: ... Does not work: xsl:param name=city select='Äåëè'/ Are these funny characters above in UTF-8? Does your XSL has encoding=UTF-8 on the top? Yes. Also, note that this only happens to the href attribute, the value of the a element comes out correctly. Then what do you want? It works correctly. See http://www.w3.org/Addressing/rfc1738.txt Vadim ... a href=city-detail=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a What's serializer configuration? Does it have proper encoding set? I'm using the default, i.e., I haven't changed anything since installation. Vadim --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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]
Re: applet, module, Class.forName() - ClassNotFoundException
You should match **.class. Not using ** definitely will not let you access .class files in sub-directories, and may simply be covering another problem with accessing the jar. After you re-enable **.class matching, attempt to access your jar by typing in its URL in the browser. Then, try to access the problematic .class by tying in the URL in the browser. Then, inspect the log files (WEB-INF/logs/access.log for which files are accessed, WEB-INF/logs/sitemap.log for how the file is served and for errors, and WEB-INF/logs/error.log just in case). If your browser can access the files individually, then Cocoon is doing its job, and the JVM should be able to access all the files as well. Look for the problem elsewhere. Can you also post the HTML code that is used to establish the applet? I wonder if there are issues with CODEBASE or ARCHIVE parameters? A couple of more hints: I assume that you had compiled your req class with package outclasses.needed; in the beginnning of the source file, and aren't simply placing the class file in the outclasses directory. Is that correct? Are you running your servlet container behind a web-server, like Apache? Or are you running, say, Tomcat directly on port 80? If it's the former, look at the web server's access log to determine which files are requested by the browser. Maybe some of them are not reaching the servlet container? A problem with JkMount, in case of Tomcat could be the issue. Try unpacking your jar into /myApp directory. Does that work? Alternatively, try putting your outer class files inside the jar. Does that work? I'm running out of suggestions. Need more info. -- Ilya Gabor Bartha wrote: Hi, summarized: I have an applet in a jar with outer classes (java modules). There are several classes in the jar and beside the jar. When the applet is running (from the jar) it finds the classes inside the jar, but is unable to find the classes beside the jar. I have the jar file: /myApp/main.jar I have the classes: /myApp/outclasses/needed/req.class /myApp/outclasses/eq.class When Class.forName(outclasses/needed/req) is called, ClassNotFoundExecption occures. I have pipeline for the jar, and for class: map:match pattern=*.jar map:read src={1}.jar mime-type=application/java-archive/ /map:match map:match pattern=*.class map:read src={1}.class mime-type=application/java-class/ /map:match If I use the map:match pattern=**.class pipeline, the classes inside the jar cannot be loaded, and ClassNotFoundException occures. Gabor - 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 troubles
On Wednesday 18 September 2002 14:59, Ganael LAPLANCHE wrote: I've got a very stupid question : what is a processing instruction ??? Well there are no stupid questions I think, but existing resources will tell you a lot. Try searching processing instruction tutorial on www.google.com, for example.. -Bertrand - 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 troubles
Ganael LAPLANCHE wrote: Hi Vadim, I've got a very stupid question : what is a processing instruction ??? The tags at the beginning of the XML file that start with '?' and end with '?'. Like: ?xml version=1.0? or ?xml-stylesheet href=MyScript.dsl type=text/dsssl? - 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: Build from cvs failed
Thanks, with 1.3.1 cocoon compiles fine indeed. Stephan Michels [EMAIL PROTECTED] writes: 1.3.0 has a bug, use 1.3.1 instead. -- Met vriendelijke groet, Gerrit Niestijl Revalidatiecentrum Rijndam Adriaanstichting Westersingel 300, 3015 LJ Rotterdam Postbus 23181, 3001 KD Rotterdam Tel (010) 2412439 Fax (010) 2412400 - 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 troubles
Thank you very much :) But I don't understand why it doesn't work... - Original Message - From: Ilya A. Kriveshko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 3:01 PM Subject: Re: XSL troubles Ganael LAPLANCHE wrote: Hi Vadim, I've got a very stupid question : what is a processing instruction ??? The tags at the beginning of the XML file that start with '?' and end with '?'. Like: ?xml version=1.0? or ?xml-stylesheet href=MyScript.dsl type=text/dsssl? - 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: Umlauts in cocoon 2.0.2
- Original Message - From: Ugo Cei [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 2:43 PM Subject: Re: Umlauts in cocoon 2.0.2 Change the encoding of your HTML pages by setting the encoding property on the serializer: map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingiso-8859-1/encoding /map:serializer The browser should recognize the encoding and send back data in ISO-8859-1. I don't know if what I've just written is entirely correct, but it sure saved my day when faced with a similar situation. Setting the encoding of the generated HTML pages does not help. The URL send back by the Browser is always UTF-8 encoded. Request.setCharacterEncoding(), as suggested by Vadim, usually helps for GET-Parameters. Generally it's a good idea to avoid unsafe (see RFC) characters in URLs and GET-Parameters. Ugo Jens - 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 troubles
Ganael LAPLANCHE wrote: Hi Vadim, I've got a very stupid question : what is a processing instruction ??? See: http://www.w3.org/TR/xml-c14n#ProcessingModel Example: xsp:logicsheet location=logicsheets/hello.xsl/ Vadim Thank you for helping me... Ganaël. - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 2:50 PM Subject: Re: XSL troubles Barbara Post wrote: Please provide your xsl code... Hm. Why do you think the problem is in XSL and not in UMLV-2002-01-XML.xml? Seems like he has invalid processing instruction name in there. Vadim - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:52 AM Subject: XSL troubles Hi ! I'm new to cocoon. I'm trying to use an xsl page to allow users to view the xml one... I modified the sitemap to use the dynamic-page2html.xsl. It works. But when I try to use another xsl page, I get this error : *** type fatal message org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) description org.apache.cocoon.ProcessingException: Could not read resource file:/var/tomcat4/webapps/cocoon/docs/test/indexedData/UMLV-2002-01/UML V -2002-01-XML.xml: javax.xml.transform.TransformerException: org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet *** I don't understand what is invalid ? Could someone help me ? Thank you very much, Ganaë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]
Re: i18n question
On Tuesday 17 September 2002 19:25, Mathias Ochsendorf wrote: hi together, I'm looking for a way to substitute/translate the following statement with i18n-transformations: a href=/test img src=/images/test.svg?label_text={0}#38;label_color={1}/ /a to: a href=/test img src=/images/test.svg?label_text=hello#38;label_color=red/ /a Try this way: a href=/test img xsl:attribute name=src i18n:translate i18n:text/images/test.svg?label_text={0}amp;label_color={1}/i18n:text i18n:parami18n:texthello/i18n:text/i18n:param i18n:parami18n:textred/i18n:text/i18n:param /i18n:translate /xsl:attribute /img /a I'm not exactly understand why you need it, but hope it solves you problem. Regards! Ivan Luzyanin. - 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 write data to the XML file which the data is read from ?
If you're using Xalan, there is an XSLT extension that will let you do this. You could embed the code to save changes in the same XSL file you use for presentation, depending on a request parameter. map:generate src=docs/yourXMLfile.xml/ map:transform src=stylesheets/xalanStylesheet.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize/ xalanStylesheet.xsl would look something like this: ?xml version=1.0? xsl:stylesheet exclude-result-prefixes=* xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xalan=org.apache.xalan.xslt.extensions.Redirect extension-element-prefixes=xalan version=1.0 xsl:strip-space elements=* / xsl:output method=xml indent=yes otput:indent-amount=5 xmlns:otput=http://xml.apache.org/xslt; / xsl:param name=save/ xsl:param name=mytext/ xsl:template match=/mydoc html xsl:choose xsl:when test=$save = '1' xsl:variable name=file select=concat('../docs/','yourXMLfile.xml')/ xalan:write select=$file mydoc mytextxsl:value-of select=$mytext//mytext /mydoc /xalan:write pxsl:value-of select=$mytext//p /xsl:when xsl:otherwise pxsl:value-of select=mytext//p /xsl:otherwise /xsl:choose /html /xsl:template /xsl:stylesheet good luck -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 6:46 AM To: [EMAIL PROTECTED] Subject: Re: how to write data to the XML file which the data is read from ? funing wrote: Hi! all: I am a newbie on cocoon and xsp. I want to know if it is possible to write data to the XML file which the data is read from. That means, I can get some data from a xml file, and transform it to a html and present it to a user. The user may change the data. How can I save the changes to the VERY xml which the data comes from? I think serializer may be the answer. But I don't know how to generate a xml file dynamically without http response. See slash-edit/ demo. It's under mount/edit in the scratchpad/webapp. Vadim best regards - 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: applet, module, Class.forName() - ClassNotFoundException
Hi Ilya the **.class is working fine. The trouble was with my jar file, it was obfuscated in a wrong way. Thanks again, Gabor Ilya A. Kriveshko wrote: You should match **.class. Not using ** definitely will not let you access .class files in sub-directories, and may simply be covering another problem with accessing the jar. After you re-enable **.class matching, attempt to access your jar by typing in its URL in the browser. Then, try to access the problematic .class by tying in the URL in the browser. Then, inspect the log files (WEB-INF/logs/access.log for which files are accessed, WEB-INF/logs/sitemap.log for how the file is served and for errors, and WEB-INF/logs/error.log just in case). If your browser can access the files individually, then Cocoon is doing its job, and the JVM should be able to access all the files as well. Look for the problem elsewhere. Can you also post the HTML code that is used to establish the applet? I wonder if there are issues with CODEBASE or ARCHIVE parameters? A couple of more hints: I assume that you had compiled your req class with package outclasses.needed; in the beginnning of the source file, and aren't simply placing the class file in the outclasses directory. Is that correct? Are you running your servlet container behind a web-server, like Apache? Or are you running, say, Tomcat directly on port 80? If it's the former, look at the web server's access log to determine which files are requested by the browser. Maybe some of them are not reaching the servlet container? A problem with JkMount, in case of Tomcat could be the issue. Try unpacking your jar into /myApp directory. Does that work? Alternatively, try putting your outer class files inside the jar. Does that work? I'm running out of suggestions. Need more info. -- Ilya Gabor Bartha wrote: Hi, summarized: I have an applet in a jar with outer classes (java modules). There are several classes in the jar and beside the jar. When the applet is running (from the jar) it finds the classes inside the jar, but is unable to find the classes beside the jar. I have the jar file: /myApp/main.jar I have the classes: /myApp/outclasses/needed/req.class /myApp/outclasses/eq.class When Class.forName(outclasses/needed/req) is called, ClassNotFoundExecption occures. I have pipeline for the jar, and for class: map:match pattern=*.jar map:read src={1}.jar mime-type=application/java-archive/ /map:match map:match pattern=*.class map:read src={1}.class mime-type=application/java-class/ /map:match If I use the map:match pattern=**.class pipeline, the classes inside the jar cannot be loaded, and ClassNotFoundException occures. Gabor - 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]
How to use session variables in XML (eg. JSP session variables)
HI, I have to write our JSP examples to XML. I'm wonder is there any solution in xsl/xslt or sitemap to use session variables as in jsp pages. Gabor - 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 troubles
Many thanks Vadim :) - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 3:38 PM Subject: Re: XSL troubles Vadim Gritsenko wrote: Ganael LAPLANCHE wrote: Hi Vadim, I've got a very stupid question : what is a processing instruction ??? See: http://www.w3.org/TR/xml-c14n#ProcessingModel Oops. This link better defines this stuff: http://www.w3.org/TR/REC-xml#sec-pi Vadim Example: xsp:logicsheet location=logicsheets/hello.xsl/ Vadim Thank you for helping me... Ganaë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: Umlauts in cocoon 2.0.2
Jens Lorenz wrote: Setting the encoding of the generated HTML pages does not help. The URL send back by the Browser is always UTF-8 encoded. Request.setCharacterEncoding(), as suggested by Vadim, usually helps for GET-Parameters. Generally it's a good idea to avoid unsafe (see RFC) characters in URLs and GET-Parameters. There is no mention of URLs in the original problem description: Any string with an umlaut was being mangled between posting from the browser, and appearing in my variable in an action when I used the command: String mangled= myCocoonRequest.getParameter(name); I assumed that the strings where POSTed from a form. Setting the encoding of the HTML page containing the form helped me in a similar situation. Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - 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]
problem deploying CVS-vesion 2_0_3_branch
hi, with my configuration Tomcat 4.1.10, Java 1.3.1, cocoon 2_0_3_branch on RH-linux 7.1 I get the following error when deploying. (There are no problems with the cocoon 2.0.3 (release) or with the current HEAD branch.) any hints? thanks /Leo org.apache.avalon.framework.component.ComponentException: Could not access the Component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(E xcaliburComponentManager.java:407) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonCompone ntManager.java:192) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentM anagerProxy.lookup(DefaultComponentFactory.java:314) at org.apache.cocoon.sitemap.Handler.compose(Handler.java:142) at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:296) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:172) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154 ) at org.apache.cocoon.Cocoon.process(Cocoon.java:578) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 8) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:484) - 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: Umlauts in cocoon 2.0.2
It happens ;) I just needed to read it 2 times (or more! hehe) to understand the construction. Anyway, the concept was delivered. And we understanded it. Thanks for the help. Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 08:00, Joerg Heinicke escribió: You must not have encoding=ISO-8859-1, ... Sorry, it's a common mistake of Germans in English language I think: must not have should be don't need. Regards, Joerg - 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
a href=/test img xsl:attribute name=src i18n:translate i18n:text/images/test.svg?label_text={0}amp;label_color={1}/i18n:text 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: Original exception : org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler at org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:287) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.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]
Little problem in the documentation formatting of the Cocoon website
I saw that some pages of the documentation in the Cocon web site. are not handled well in the browser. It seems like they dont know where the browser window end in the right side and continue. For example: http://xml.apache.org/cocoon/developing/webapps/authentication.html If you wish I can send the others pages with this problem. I am using Red Hat 7.3, KDE 3.0.3, Konqueror 3.0.3. BTW, I think in IE 6.0 on Windows is the same. Please tell the web master about this little problem. 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]
Re: Little problem in the documentation formatting of the Cocoonwebsite
Antonio Gallardo Rivera wrote: I saw that some pages of the documentation in the Cocon web site. are not handled well in the browser. It seems like they dont know where the browser window end in the right side and continue. For example: http://xml.apache.org/cocoon/developing/webapps/authentication.html If you wish I can send the others pages with this problem. Yes, sure... 1. Get the latest Cocoon 2.0.4-dev from the CVS, cocoon_2_0_3_branch 2. Do build docs 3. Browse generated docs (build/cocoon/docs) and send all comments you have, they are appreciated. Even better if you send patches to the xdocs. I am using Red Hat 7.3, KDE 3.0.3, Konqueror 3.0.3. BTW, I think in IE 6.0 on Windows is the same. Please tell the web master about this little problem. We are own webmasters. Vadim 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]
XML include
Hi How can i include one xml in another. Tobe
Re: i18n question
On Wednesday 18 September 2002 17:09, Mathias Ochsendorf wrote: a href=/test img xsl:attribute name=src i18n:translate i18n:text/images/test.svg?label_text={0}amp;label_color={1}/i18n:t ext 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: Original exception : org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler at org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandle rAndValidity(XSLTProcessorImpl.java:287) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java :333) Sure it will couse a nullpointerexception. First of all you need to to get from this snip something like this: a href=/test img xsl:attribute name=src /images/test.svg?label_text=helloamp;label_color=red /xsl:attribute /img /a and than use this stylesheet See example: Your sitemap should have: map:match pattern=stylesheets/*.xsl map:generate src=stylesheets/{1}.xsl/ map:transform type=i18n/ !-- will generate a valid xsl without i18n tags, and it will not couse an error anymore -- map:serialize type=xml/ /map:match map:match pattern=... map:generate src=you-source/ map:transform src=cocoon:/stylesheets/stylesheet-with-my-snip.xsl/ !-- use stylesheet generated by previous pipeline -- map:serialize/ /map:match Regards! Ivan Luzyanin. - 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: Umlauts in cocoon 2.0.2
Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃöÃüÃ). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? Thanks again. Kenneth - 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 include
There are lots of different ways to achieve that effect with map:aggregate and im sure some tag libraries I have yet to explore :) Or you can do this in an XML file: ?xml version=1.0? !DOCTYPE include [!ENTITY theInc SYSTEM ../docs/blahblah.xml] doc theInc; /doc -Original Message- From: Andrés Tobelem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: XML include Hi How can i include one xml in another. Tobe - 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]
Cocoon 2.0.3 and CastorTransformer
Hi, I am trying to use Cocoon 2.0.3 (Solaris 8, Java 1.3.1_03) with Castor XML to have an object model inserted into a Cocoon pipeline for further processing/transformation. When trying to use CastorTransformer in the following scenario ?xml version=1.0? page xmlns:castor=http://castor.exolab.org/cocoontransfomer; castor:InsertBean name=accountNature scope=request mapping=props/castor-bind.xml / /page I get the following exception: java.lang.NoSuchMethodError at org.apache.cocoon.transformation.CastorTransformer$1.startElement(CastorTransformer.java:94) at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876) at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540) at org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTransformer.java:225) at org.apache.cocoon.transformation.CastorTransformer.process(CastorTransformer.java:173) at org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTransformer.java:132) at org.apache.cocoon.www.xml.view_account_natures_from_castor_xml.generate(view_account_natures_from_castor_xml.java:109) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) It seems like I've got things configured correctly as I can see in the stack trace that the CastorTransformer kicks in. I just cannot get my head around the NullPointerException per se. Any idea what mightbe going wrong ? Could this be a problem related to a) the version of Castor I am using (i.e. 0.9.3.9) b) the version of Xerces I am using (1.4.4) Thanks Werner - 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: Umlauts in cocoon 2.0.2
Please tell us what database are you using? And what encoding the database is? This looks like a conflict between the database encoding and the application. Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 08:41, Kenneth Roper escribió: Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃöÃüÃ). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? Thanks again. Kenneth - 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: Umlauts in cocoon 2.0.2
Kenneth Roper wrote: Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃöÃüÃ). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? So it looks like the string is in UTF-8. In this case, you should make sure everything is working in UTF-8. Use request.setEncoding(UTF-8) in your action/generator/XSP, delete any encoding attribute from the XML prolog in XML files (UTF-8 is the default) and see if it makes any difference. I have no other ideas, but to confirm you that i18n is a PITA ;-) Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - 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 2.0.3 under Enhydra 3.1
Vadim, In the second email it was recommended to use Paranoid servlet which makes me to think that enhyndra has broken class loader. Issues with broken class loading can be endless and hard to trace. In your install, however, you are trying to start with regular CocoonServlet (as far as I can tell). Have you tried paranoid servlet? Yes. I have tried to use the ParanoidServlet servlet class also, and it has the same problems. :( ok. Here is another scenario. I can actually run Cocoon 2.0.1, and get the Cocoon welcome page, and go into all of the sample links. But, for some reason, my sub-sitemap section doesn't work. Here are my findings. error web page: type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling form_xsp: Line 255, column 76: ')' expected. Line 360, column 6: 'else' without 'if'. Line 363, column 92: ')' expected. Line 479, column 68: ')' expected. Line 694, column 8: 'else' without 'if'. Line 869, column 80: ')' expected. Line 884, column 50: ')' expected. Line 1149, column 10: 'else' without 'if'. Line 1335, column 44: ')' expected. Line 1351, column 61: ')' expected. Line 1603, column 12: 'else' without 'if'. Line 1794, column 61: ')' expected. Line 0, column 0: 12 errors sender org.apache.cocoon.servlet.ParanoidCocoonServlet source Cocoon servlet request-uri /eval/form path-info eval/form access.log.01 org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling form_xsp: Line 255, column 76: ')' expected. Line 360, column 6: 'else' without 'if'. Line 363, column 92: ')' expected. Line 479, column 68: ')' expected. Line 694, column 8: 'else' without 'if'. Line 869, column 80: ')' expected. Line 884, column 50: ')' expected. Line 1149, column 10: 'else' without 'if'. Line 1335, column 44: ')' expected. Line 1351, column 61: ')' expected. Line 1603, column 12: 'else' without 'if'. Line 1794, column 61: ')' expected. Line 0, column 0: 12 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre ateResource(ProgramGeneratorImpl.java:285) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d(ProgramGeneratorImpl.java:196) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGener ator.java:168) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin e(AbstractEventPipeline.java:154) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching EventPipeline.java:238) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C achingEventPipeline.java:99) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingStreamPipeline.java:276) at org.apache.cocoon.www.eval.sitemap_xmap.matchN10063(sitemap_xmap.java:77 2) at org.apache.cocoon.www.eval.sitemap_xmap.process(sitemap_xmap.java:454) at org.apache.cocoon.www.eval.sitemap_xmap.process(sitemap_xmap.java:359) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.www.sitemap_xmap.matchN102F5(sitemap_xmap.java:3946) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2737) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2492) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144 ) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.ja va:641) at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.ja va:549) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java: 392) at org.apache.tomcat.core.Context.handleRequest(Context.java:732) at org.enhydra.servlet.servletManager.ServletManager.service(ServletManager .java:1096) at org.enhydra.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHa ndler.java:241) at org.enhydra.servlet.connectionMethods.http.HttpHandler.processRequests(H ttpHandler.java:258) at org.enhydra.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.j ava:96) at java.lang.Thread.run(Thread.java:479) org.apache.cocoon.components.language.LanguageException: Error compiling form_xsp: Line 255, column 76: ')' expected. Line 360, column 6: 'else' without 'if'. Line 363, column 92: ')' expected. Line 479,
Re: Umlauts in cocoon 2.0.2
I GUARANTEE it is not the DB. If it was the DB it wouldn't display correctly the first time. Also, I have determined that the string is mangled when it is retrieved from the HTTPRequest, long before it is inserted into the DB. Manually inserting the string into the DB over the same DB drivers works fine. This is purely a servlet / cocoon issue. On Wed, 2002-09-18 at 15:50, Antonio Gallardo Rivera wrote: Please tell us what database are you using? And what encoding the database is? This looks like a conflict between the database encoding and the application. Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 08:41, Kenneth Roper escribió: Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃöÃüÃ). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? Thanks again. Kenneth - 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: Umlauts in cocoon 2.0.2
Take it easy, baby! We are trying to help not to fight ;) Do you read my post about how is the file really stored in the hard disk? Are you sure that your XML, XSP, XSL files are stored in your required format? I told you that because when I started with Cocoon. I had the same problem. What plataform are you using? Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 09:08, Kenneth Roper escribió: I GUARANTEE it is not the DB. If it was the DB it wouldn't display correctly the first time. Also, I have determined that the string is mangled when it is retrieved from the HTTPRequest, long before it is inserted into the DB. Manually inserting the string into the DB over the same DB drivers works fine. This is purely a servlet / cocoon issue. On Wed, 2002-09-18 at 15:50, Antonio Gallardo Rivera wrote: Please tell us what database are you using? And what encoding the database is? This looks like a conflict between the database encoding and the application. Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 08:41, Kenneth Roper escribió: Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃöÃüÃ). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? Thanks again. Kenneth - 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: XML include
Something like that would work -- or, you could also transform it further if you needed to embed one of the xml files inside the other, rather than them both being children of page xsl:template match=/page xsl:apply-templates select=informacion/ /xsl:template xsl:template match=informacionInsertionPoint xsl:copy-of select=/page/principal/ /xsl:template xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template -Original Message- From: Andrés Tobelem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: Re: XML include So you think that is a good idea to do something like this? map:match pattern=home.xml map:aggregate element=page map:part src=cocoon:/contenido/general/informacion.xml/ map:part src=cocoon:/contenido/principal/principal.xml/ /map:aggregate map:serialize type=xml/ /map:match Thank you very much - Original Message - From: Ryan Agler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:46 AM Subject: RE: XML include There are lots of different ways to achieve that effect with map:aggregate and im sure some tag libraries I have yet to explore :) Or you can do this in an XML file: ?xml version=1.0? !DOCTYPE include [!ENTITY theInc SYSTEM ../docs/blahblah.xml] doc theInc; /doc -Original Message- From: Andrés Tobelem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: XML include Hi How can i include one xml in another. Tobe - 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: Encoding problem
--- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: Let me be more specific and also simplify the example: ... Does not work: xsl:param name=city select='Äåëè'/ Are these funny characters above in UTF-8? Does your XSL has encoding=UTF-8 on the top? Yes. Also, note that this only happens to the href attribute, the value of the a element comes out correctly. Then what do you want? It works correctly. See http://www.w3.org/Addressing/rfc1738.txt Vadim Good point, I may have a problem in another stylesheet (part of the pipeline that responds to the url in question): This parameter is set by the href: xsl:param name=city/ This should match and does it correctly when 'Delhi' is passed, but does not match when I pass 'Äåëè': xsl:apply-templates select=//city[name=$city]/ -Alex ... a href=city-detail?city=$cityxsl:value-of select=$city//a After transformation I get: a href=city-detail?city=%D0%94%D0%B5%D0%BB%D0%B8Äåëè/a What's serializer configuration? Does it have proper encoding set? I'm using the default, i.e., I haven't changed anything since installation. Vadim --- Alex Romayev [EMAIL PROTECTED] wrote: Hello, I'm having what seems to be an encoding problem -- not sure it's related to Cocoon, but... ;) xsl:for-each select=//city-name a href=city-detail?city-name={.}xsl:value-of select=.//abr/ /xsl:for-each All my xml is UTF-8, it work in English, but not in Russian. Any ideas? Thanks, -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]
Invoking Cocoon actions via JavaScript
One of our developers has run into an issue that I can't see an easy solution to. However, I also can't believe that no one else has run into the problem. We have a form where we are using IE 5.5 (and above) DHTML to enable drop and drag editing to reorder fields. As the result of a drop, we determine some positional values, place these values into the form and then attempt to submit the form to the server where the values will be placed in a database. In order to submit the form, the JavaScript code has to invoke the proper HTML action for the form, which is named using the Cocoon standard cocoon-action- format. Since JavaScript attempts to resolve the action name as an JavaScript object it eventually turns a string of this format into three object names separated by two minus signs and subsequently blows up trying to subtract non-existent JavaScript objects from each other. One obvious fix would be to change Cocoon to not use - in the action names. Given that this would break just about every Cocoon implementation in the world I'm hoping that someone has run into this before and found a work around on the JavaScript side of the world? Peter Hunsberger Phone: 901-495-5252 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 2.0.3 and CastorTransformer
Dear Werner, When trying to use CastorTransformer in the following scenario ?xml version=1.0? page xmlns:castor=http://castor.exolab.org/cocoontransfomer; castor:InsertBean name=accountNature scope=request mapping=props/castor-bind.xml / /page I get the following exception: java.lang.NoSuchMethodError Check the spelling of the XML namespace. cocoontransfomer You probably meant cocoontransformer ^ That said, I'd never heard of the CastorTransformer. Based on your mail message I had a look in the scratchpad source and mail archives to find out more about it. In the mail archives, I found a message that mentioned the exact same problem. HTH, 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: Umlauts in cocoon 2.0.2
Antonio Sorry if I came across a bit harsh, I just meant to emphasise the point. A db conflict was my first instinct, too, so I spent a fair bit of time investigating that and have ruled it out. I guess after spending a day and a half messing around with text-encoding my nerves are shot! Anyway, I haven't investigated the format the files are stored in, yet. Which files in particular do you suspect? All my xml is generated dynamically, it's just the xsls which are persisted in files. Surely only the last transformer which is run should determine the character encoding posted by the browser? I've been reading the cocoon code, and have been experimenting with setting the form-encoding and container-encoding startup attributes, but I'm having to struggle through null pointer exceptions being thrown in the cocoon decode() method. Original exception : java.lang.NullPointerException at org.apache.cocoon.environment.http.HttpRequest.decode(HttpRequest.java:300) at org.apache.cocoon.environment.http.HttpRequest.getParameter(HttpRequest.java:293) at org.apache.cocoon.environment.wrapper.RequestWrapper.getParameter(RequestWrapper.java:150) at org.apache.cocoon.matching.RequestParameterMatcher.match(RequestParameterMatcher.java:91) I think this is because one of the pipelines I use has an optional parameter, and when the parameter isn't there the null parameter is still attempted to be decoded ... Anyway, my platform is RedHat 7.2, jdk 1.3.1_04, JBoss-2.4.7_Jetty-4.0.4, and of course Cocoon 2.0.2. Please keep those suggestions coming, just in case I don't knock myself out with the repeated banging of my head against a wall ... Thanks Kenneth On Wed, 2002-09-18 at 16:15, Antonio Gallardo Rivera wrote: Take it easy, baby! We are trying to help not to fight ;) Do you read my post about how is the file really stored in the hard disk? Are you sure that your XML, XSP, XSL files are stored in your required format? I told you that because when I started with Cocoon. I had the same problem. What plataform are you using? 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]
Re: XHTML Serilization instead of HTML S.
Vadim Gritsenko wrote: Alexander Schatten wrote: I use Cocoon 2 to produce HTML. I use the HMTL serializer, but have to detect, that the output is *not* HTML as expected, but XHTML, which makes several problems, e.g. with Mozilla. I use HTML serializer and it outputs HTML. This can be confirmed by W3C validator service. Serializer config looks like: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size indentno/indent omit-xml-declarationyes/omit-xml-declaration doctype-public-//W3C//DTD HTML 4.01 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/html4/loose.dtd/doctype-system /map:serializer well, thank you for your configuration: I have edited the sitemap so to precisely your settings, but the result still has XML header and IS xhtl. e.g. a name=nnn / whats wrong? alex p.s.:btw: the same thing under Windows XP and Linux - 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: Invoking Cocoon actions via JavaScript
Hi, You could loop over the form's element array, use a switch statement and use the name string as a case match to set up your action input element objs in some kind of body onload init function. var action_xxx; var action_yyy; var elems = frmObj.elements; for (var i=0; ielems.length; i++) { switch (elems[i].name) case cocoon-action-xxx: action_xxx = elems[i]; case cocoon-action-yyy: action_yyy = elems[i]; } } best, -Rob -Original Message- From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Invoking Cocoon actions via JavaScript One of our developers has run into an issue that I can't see an easy solution to. However, I also can't believe that no one else has run into the problem. We have a form where we are using IE 5.5 (and above) DHTML to enable drop and drag editing to reorder fields. As the result of a drop, we determine some positional values, place these values into the form and then attempt to submit the form to the server where the values will be placed in a database. In order to submit the form, the JavaScript code has to invoke the proper HTML action for the form, which is named using the Cocoon standard cocoon-action- format. Since JavaScript attempts to resolve the action name as an JavaScript object it eventually turns a string of this format into three object names separated by two minus signs and subsequently blows up trying to subtract non-existent JavaScript objects from each other. One obvious fix would be to change Cocoon to not use - in the action names. Given that this would break just about every Cocoon implementation in the world I'm hoping that someone has run into this before and found a work around on the JavaScript side of the world? Peter Hunsberger Phone: 901-495-5252 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: Invoking Cocoon actions via JavaScript
Another thought: var action_xxx = eval(document.formName.cocoon-action-xxx); -Rob -Original Message- From: Robert Koberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: RE: Invoking Cocoon actions via JavaScript Hi, You could loop over the form's element array, use a switch statement and use the name string as a case match to set up your action input element objs in some kind of body onload init function. var action_xxx; var action_yyy; var elems = frmObj.elements; for (var i=0; ielems.length; i++) { switch (elems[i].name) case cocoon-action-xxx: action_xxx = elems[i]; case cocoon-action-yyy: action_yyy = elems[i]; } } best, -Rob -Original Message- From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Invoking Cocoon actions via JavaScript One of our developers has run into an issue that I can't see an easy solution to. However, I also can't believe that no one else has run into the problem. We have a form where we are using IE 5.5 (and above) DHTML to enable drop and drag editing to reorder fields. As the result of a drop, we determine some positional values, place these values into the form and then attempt to submit the form to the server where the values will be placed in a database. In order to submit the form, the JavaScript code has to invoke the proper HTML action for the form, which is named using the Cocoon standard cocoon-action- format. Since JavaScript attempts to resolve the action name as an JavaScript object it eventually turns a string of this format into three object names separated by two minus signs and subsequently blows up trying to subtract non-existent JavaScript objects from each other. One obvious fix would be to change Cocoon to not use - in the action names. Given that this would break just about every Cocoon implementation in the world I'm hoping that someone has run into this before and found a work around on the JavaScript side of the world? Peter Hunsberger Phone: 901-495-5252 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: Umlauts in cocoon 2.0.2
Does Ugo's suggestion work? Your strange string looks like a valid UTF-8 encoded string. Regards, Joerg Kenneth Roper wrote: Firstly, thanks for everyone's suggestions, this is a very helpful list! Unfortunately, I am no further forward. Changing the encoding of the sitemap.xmap and the web.xml file has no effect. Changing the encoding of the xhtml serializer looked like I was on the right track, but unfortunately doesn't work: I have a this string in my db: ÄäÖöÜüß It is displayed on an html page generated by a cocoon pipeline. If I change my serializer definition in my sitemap and add this: encodingISO-8859-1/encoding The above string appears in my browser (and in the page source) as 7 question marks, i.e. ??? If I change the encoding back to this: encodingUTF-8/encoding I can then see my original string correctly. However, if I post this string back to my application, my application receives the string as first detailed in the original post (i.e. ÃäÃ-öÃoeüÃY). There is obviously a difference in encoding (or something) between text coming from the server to the browser, and the text posted from the browser back to the server. Any more ideas? Thanks again. Kenneth -- 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]
Re: FormValidatorAction on database
On 17.Sep.2002 -- 04:19 PM, William Moore wrote: Hello I am trying to use FormValidatorAction to check data before inserting it into a database. The key on the database is one of the values on the form, and I want to check if it already exists on the database so I can tell the user to enter a different value. I cannot work out how to do this. The documentation suggests I should be doing something with a DatabaseAction, but I do not know what. You could a) wait for an error and chose a different pipeline b) chaeck with a DatabaseSelectAction whether the key already exists 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]
RE: Invoking Cocoon actions via JavaScript
An interesting twist to utilizing javascript is a new product called WebFace from Vultus. It is server independent, and uses XML, SOAP, and javascript to present an incredible client interface. Cocoon actions and xslt in the sitemap transforming logic to WebFace's xml structures could be powerful. Downside is is does cost a little, but not bad compared to other web IDE's. www.vultus.com Matthew -Original Message- From: Robert Koberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 10:02 AM To: [EMAIL PROTECTED] Subject: RE: Invoking Cocoon actions via JavaScript Another thought: var action_xxx = eval(document.formName.cocoon-action-xxx); -Rob -Original Message- From: Robert Koberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: RE: Invoking Cocoon actions via JavaScript Hi, You could loop over the form's element array, use a switch statement and use the name string as a case match to set up your action input element objs in some kind of body onload init function. var action_xxx; var action_yyy; var elems = frmObj.elements; for (var i=0; ielems.length; i++) { switch (elems[i].name) case cocoon-action-xxx: action_xxx = elems[i]; case cocoon-action-yyy: action_yyy = elems[i]; } } best, -Rob -Original Message- From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Invoking Cocoon actions via JavaScript One of our developers has run into an issue that I can't see an easy solution to. However, I also can't believe that no one else has run into the problem. We have a form where we are using IE 5.5 (and above) DHTML to enable drop and drag editing to reorder fields. As the result of a drop, we determine some positional values, place these values into the form and then attempt to submit the form to the server where the values will be placed in a database. In order to submit the form, the JavaScript code has to invoke the proper HTML action for the form, which is named using the Cocoon standard cocoon-action- format. Since JavaScript attempts to resolve the action name as an JavaScript object it eventually turns a string of this format into three object names separated by two minus signs and subsequently blows up trying to subtract non-existent JavaScript objects from each other. One obvious fix would be to change Cocoon to not use - in the action names. Given that this would break just about every Cocoon implementation in the world I'm hoping that someone has run into this before and found a work around on the JavaScript side of the world? Peter Hunsberger Phone: 901-495-5252 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: how is the base path determined for map:handle-errors?
Timothy Larson wrote: Looking at my last email and my log files, I think my problem is that the context is not changing when I expect it to. Could you give me a pointer to documentation on how the context is managed? There is no documentation; all this is very internal stuff and supposed to work automagically. Can you explicitly control the context from the sitemap? No (see above). Also, how would you get FOP to run in the same context as the current sitmap? (so it could find external images, etc.) Can't help with it. Vadim Thanks, Tim [EMAIL PROTECTED] 09/17/02 12:14PM Timothy Larson wrote: In Cocoon 2.0.3, how is the base path determined for map:handle-errors? I'm confused, because in different subsitemaps it either looks for files at the same level as the current subsitemap or all the way out at the root sitemap. It should be current sitemap. Have you tried 2.0.4-dev, does it have same problem? Vadim Tim - 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 is the base path determined for map:handle-errors?
Is the context supposed to always match the directory where the current sitemap is stored? Tim [EMAIL PROTECTED] 09/18/02 01:36PM Timothy Larson wrote: ... Can you explicitly control the context from the sitemap? No (see above). ... - 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 2.0.3 under Enhydra 3.1
Matthew Hailstone wrote: Vadim, In the second email it was recommended to use Paranoid servlet which makes me to think that enhyndra has broken class loader. Issues with broken class loading can be endless and hard to trace. In your install, however, you are trying to start with regular CocoonServlet (as far as I can tell). Have you tried paranoid servlet? Yes. I have tried to use the ParanoidServlet servlet class also, and it has the same problems. :( I don't know why; as I said - some class loading issues. :-/ ok. Here is another scenario. I can actually run Cocoon 2.0.1, and get the Cocoon welcome page, and go into all of the sample links. But, for some reason, my sub-sitemap section doesn't work. Here are my findings. ... org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling form_xsp: Line 255, column 76: ')' expected. Look into java source; compiler must be right. If it works with Cocoon 2.0.3, it just because some errors were fixed since 2.0.1 Line 360, column 6: 'else' without 'if'. Line 363, column 92: ')' expected. Line 479, column 68: ')' expected. Line 694, column 8: 'else' without 'if'. Line 869, column 80: ')' expected. Line 884, column 50: ')' expected. Line 1149, column 10: 'else' without 'if'. Line 1335, column 44: ')' expected. Line 1351, column 61: ')' expected. Line 1603, column 12: 'else' without 'if'. Line 1794, column 61: ')' expected. Line 0, column 0: 12 errors ... I see this exception repeatedly in the core.log.01 file: WARN(2002-09-18) 08:41.12:584 [core] (/) Thread-23/ExcaliburComponentManager: Looking up component on an uninitialized ComponentManager: org.apache.cocoon.generation.GeneratorSelector DEBUG (2002-09-18) 08:41.12:884 [core] (/) Thread-23/LogKitLogger: org.apache.cocoon.generation.XMLDBGenerator: could not be instantiated. org.apache.cocoon.ProcessingException: Problem setting up the connection: org.dbxml.client.xmldb.DatabaseImpl Don't worry about it. It means you have got no XML:DB database. ... DEBUG (2002-09-18) 08:41.12:904 [core] (/) Thread-23/LogKitLogger: org.apache.cocoon.generation.XMLDBCollectionGenerator: could not be instantiated. org.apache.cocoon.ProcessingException: Problem setting up the connection: org.dbxml.client.xmldb.DatabaseImpl Ditto. ... ERROR (2002-09-18) 08:41.12:834 [sitemap.generator.velocity] (/) Thread-23/VelocityGenerator: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. ERROR (2002-09-18) 08:41.12:854 [sitemap.generator.velocity] (/) Thread-23/VelocityGenerator: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. ERROR (2002-09-18) 08:41.18:843 [sitemap.generator.velocity] (/) Thread-23/VelocityGenerator: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. It could be important if you would use Velocity. Here is a the portion of my form.xsp file that it's complaining it can't compile: xsp:logic String m_strFormAction = form; String m_query = ; String m_querySelect = ; if( xsp-session:get-attribute name=test-name/ == null || ((String)xsp-session:get-attribute name=test-name/).length() == 0 ){ Try surrounding this with xsp:content: xsp:content xsp-session:set-attribute name=test-nameTest Name/xsp-session:set-attribute xsp-session:set-attribute name=query from info where id in (select distinct id from another_info where id in (select distinct id from results))/xsp-session:set-attribute field id=test-name label=Test Name type=select value value=-1xsp-session:get-attribute name=test-name//value /field /xsp:content Vadim } ... I hope my comments will give you perspective on possible ways of resolving this problem (I'm merely helping you help yourself ;-) Vadim Yes. And in all honesty, every little suggestion is very helpful. Thank you very much for lending me some of your time and insight, Matthew - 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: Little problem in the documentation formatting of the Cocoonwebsite
Antonio Gallardo Rivera wrote: I forgot that I am using the lastest CVS of 2.1. Builded after your last post. I also stoped Cocoon delete the work directory and restarted. I am using a 1024x768 resolution. Same here, only Mozilla instead of Konqueror; page looks Ok. You can fix the page and send the patch if you want ;) Vadim I browse the doc after the build and there is the same problem. :( Antonio Gallardo. El Miércoles, 18 de Septiembre de 2002 08:36, Vadim Gritsenko escribió: Antonio Gallardo Rivera wrote: I saw that some pages of the documentation in the Cocon web site. are not handled well in the browser. It seems like they dont know where the browser window end in the right side and continue. For example: http://xml.apache.org/cocoon/developing/webapps/authentication.html If you wish I can send the others pages with this problem. Yes, sure... 1. Get the latest Cocoon 2.0.4-dev from the CVS, cocoon_2_0_3_branch 2. Do build docs 3. Browse generated docs (build/cocoon/docs) and send all comments you have, they are appreciated. Even better if you send patches to the xdocs. I am using Red Hat 7.3, KDE 3.0.3, Konqueror 3.0.3. BTW, I think in IE 6.0 on Windows is the same. Please tell the web master about this little problem. We are own webmasters. Vadim 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]
Why HTML...?
On Wednesday 18 September 2002 17:58, Alexander Schatten wrote: well, thank you for your configuration: I have edited the sitemap so to precisely your settings, but the result still has XML header and IS xhtl. I don't have an answer to the question, but I have noted that you can serve XHTML with the text/html MIME-type if you follow a set of guidelines set forth in http://www.w3.org/TR/xhtml1/#guidelines So, why worry? Of course, I could be missing something fundamental, and since I'm just serving a very small number of XHTML-documents myself, it could be that popular user agents have problems processing XHTML to spec that I haven't discovered. Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ - 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 is the base path determined for map:handle-errors?
Timothy Larson wrote: Is the context supposed to always match the directory where the current sitemap is stored? Yes, in a sence that all relative paths in the sitemap should be relative to sitemap's directory. At any time, including exception handlers. Vadim Tim [EMAIL PROTECTED] 09/18/02 01:36PM Timothy Larson wrote: ... Can you explicitly control the context from the sitemap? No (see above). ... - 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: Invoking Cocoon actions via JavaScript
Robert Koberg wrote: Another thought: var action_xxx = eval(document.formName.cocoon-action-xxx); Won't something like document.formName['cocoon-action-xxx'] work? :-? IIRC, javascript had syntax like this... Vadim -Rob -Original Message- From: Robert Koberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: RE: Invoking Cocoon actions via JavaScript Hi, You could loop over the form's element array, use a switch statement and use the name string as a case match to set up your action input element objs in some kind of body onload init function. var action_xxx; var action_yyy; var elems = frmObj.elements; for (var i=0; ielems.length; i++) { switch (elems[i].name) case cocoon-action-xxx: action_xxx = elems[i]; case cocoon-action-yyy: action_yyy = elems[i]; } } best, -Rob -Original Message- From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Invoking Cocoon actions via JavaScript One of our developers has run into an issue that I can't see an easy solution to. However, I also can't believe that no one else has run into the problem. We have a form where we are using IE 5.5 (and above) DHTML to enable drop and drag editing to reorder fields. As the result of a drop, we determine some positional values, place these values into the form and then attempt to submit the form to the server where the values will be placed in a database. In order to submit the form, the JavaScript code has to invoke the proper HTML action for the form, which is named using the Cocoon standard cocoon-action- format. Since JavaScript attempts to resolve the action name as an JavaScript object it eventually turns a string of this format into three object names separated by two minus signs and subsequently blows up trying to subtract non-existent JavaScript objects from each other. One obvious fix would be to change Cocoon to not use - in the action names. Given that this would break just about every Cocoon implementation in the world I'm hoping that someone has run into this before and found a work around on the JavaScript side of the world? Peter Hunsberger Phone: 901-495-5252 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: XHTML Serilization instead of HTML S.
Alexander Schatten wrote: Vadim Gritsenko wrote: Alexander Schatten wrote: I use Cocoon 2 to produce HTML. I use the HMTL serializer, but have to detect, that the output is *not* HTML as expected, but XHTML, which makes several problems, e.g. with Mozilla. I use HTML serializer and it outputs HTML. This can be confirmed by W3C validator service. Serializer config looks like: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size indentno/indent omit-xml-declarationyes/omit-xml-declaration doctype-public-//W3C//DTD HTML 4.01 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/html4/loose.dtd/doctype-system /map:serializer well, thank you for your configuration: I have edited the sitemap so to precisely your settings, but the result still has XML header and IS xhtl. e.g. a name=nnn / Hm. XML: a name=test/Here will be some links HTML: a name=test/aHere will be some links Works Ok for me. Vadim whats wrong? alex p.s.:btw: the same thing under Windows XP and Linux - 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 go from url in session attribute to url with session encoded?
Timothy Larson wrote: Anybody know how to take a url in a session attribute and encode the session onto it? Non-working example to show what I am trying to do: xsp:encode-urlxsp-session:get-attribute name=fruit//xsp:encode-url You need xsp-response:encode-url Vadim Tim - 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: Invoking Cocoon actions via JavaScript
Another thought: var action_xxx = eval(document.formName.cocoon-action-xxx); Won't something like document.formName['cocoon-action-xxx'] work? :-? That's right. document.anycollectionname[objectname] should work. document.all, document.forms, - 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 go from url in session attribute to url withsession encoded?
Vadim, Thanks. I got it to work this way in an xsp page: form method=post xsp:attribute name=actionxsp:expr response.encodeURL (String.valueOf(xsp-session:get-attribute name=requrl/)) /xsp:expr/xsp:attribute !-- other stuff -- /form Tim [EMAIL PROTECTED] 09/18/02 02:32PM Timothy Larson wrote: Anybody know how to take a url in a session attribute and encode the session onto it? Non-working example to show what I am trying to do: xsp:encode-urlxsp-session:get-attribute name=fruit//xsp:encode-url You need xsp-response:encode-url Vadim Tim - 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 2.0.3 under Enhydra 3.1
Matthew Hailstone wrote: Vadim, Here is a portion of my xsp file: if( xsp:contentxsp-session:get-attribute name=test-name-wcart//xsp:content == null || ((String)xsp:contentxsp-session:get-attribute name=test-name-wcart//xsp:content).length() == 0 ){ xsp:content Oh no, not like this, but: if(xsp-session:get-attribute name=test-name-wcart/ == null || ((String)xsp-session:get-attribute name=test-name-wcart/).length() == 0 ){ xsp:content . /xsp:content } Vadim Here is the java file that is created to be compiled: if (xspAttr.addAttribute(, name, name, CDATA, test-name-wcart); this.contentHandler.startElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute, xspAttr); xspAttr.clear(); this.contentHandler.endElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute); == null || ((String) xspAttr.addAttribute(, name, name, CDATA, test-name-wcart); this.contentHandler.startElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute, xspAttr); xspAttr.clear(); this.contentHandler.endElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute); ).length() == 0) { It seems that the xslt (I'm guessing) is not producing the correct java code from the xsp-session namespace tags. Any suggestion/assessment? Matthew - 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: Encoding problem
Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: ... Good point, I may have a problem in another stylesheet (part of the pipeline that responds to the url in question): This parameter is set by the href: xsl:param name=city/ This should match and does it correctly when 'Delhi' is passed, but does not match when I pass 'Äåëè': xsl:apply-templates select=//city[name=$city]/ Check what encoding is used to decode URL. It should be container encoding, but you need UTF-8. I'm using tomcat4.0.4, do you know how to change it of the top of your head? I've not played with encoding of the URL itself, but about request parameters see below... PS In any case, non US-ASCII symbols in URL is not a good idea. What would be an alternative? Basically, I need to search agains an XML file, which has city as one of the elements, and return all records related to the sity. On the page, there is a list of 'favourite city' links. Also, I'm about to try recording information using Cocoon, so I haven't tried to use forms yet, but wouldn't I run into the same problem? Ok, UTF symbols should be fine in the forms (GET or POST) if you to: (1) Serialize HTML form as UTF-8 (or any other encoding), and (2) set request encoding: request.setEncoding(UTF-8) (or any other encoding, same as in (1)) *before* any access to the request parameters. This can be done from an action. After that, request.getParameter() should work Ok, and if you to get request parameter in the sitemap and pass it to the XSLT, it also should work ok. BTW, this was already answered today. Vadim Vadim -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]
RE: Cocoon 2.0.3 under Enhydra 3.1
oops. Yeah, I put the xsp:content elements in the 'if' condition to see if it would help. But, after comparing the working java file from 2.0.3 with the one created with 2.0.1, I found the following commented below: Matthew Hailstone wrote: Vadim, Here is a portion of my xsp file: if( xsp:contentxsp-session:get-attribute name=test-name-wcart//xsp:content == null || ((String)xsp:contentxsp-session:get-attribute name=test-name-wcart//xsp:content).length() == 0 ){ xsp:content Oh no, not like this, but: if(xsp-session:get-attribute name=test-name-wcart/ == null || ((String)xsp-session:get-attribute name=test-name-wcart/).length() == 0 ){ xsp:content . /xsp:content } Here is the java file that is created to be compiled: if (xspAttr.addAttribute(, name, name, CDATA, test-name-wcart); Notice here, though, how the code should be: XSPSessionHelper.getSessionAttribute(session, String.valueOf(test-name-wcart), null) this.contentHandler.startElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute, xspAttr); xspAttr.clear(); this.contentHandler.endElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute); == null || ((String) xspAttr.addAttribute(, name, name, CDATA, test-name-wcart); this.contentHandler.startElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute, xspAttr); xspAttr.clear(); this.contentHandler.endElement(http://apache.org/xsp/session/2.0;, get-attribute, xsp-session:get-attribute); ).length() == 0) { It seems that the xslt (I'm guessing) is not producing the correct java code from the xsp-session namespace tags. The working java file created from 2.0.3 looks like this with the same xsp: if( ( XSPSessionHelper.getSessionAttribute(session, String.valueOf(test-name-wcart), null) ) == null || ((String) ( XSPSessionHelper.getSessionAttribute(session, String.valueOf(test-name-wcart), null) ) ).length() == 0){ Matthew - 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: Encoding problem
--- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: --- Vadim Gritsenko [EMAIL PROTECTED] wrote: ... Good point, I may have a problem in another stylesheet (part of the pipeline that responds to the url in question): This parameter is set by the href: xsl:param name=city/ This should match and does it correctly when 'Delhi' is passed, but does not match when I pass 'Äåëè': xsl:apply-templates select=//city[name=$city]/ Check what encoding is used to decode URL. It should be container encoding, but you need UTF-8. I'm using tomcat4.0.4, do you know how to change it of the top of your head? I've not played with encoding of the URL itself, but about request parameters see below... PS In any case, non US-ASCII symbols in URL is not a good idea. What would be an alternative? Basically, I need to search agains an XML file, which has city as one of the elements, and return all records related to the sity. On the page, there is a list of 'favourite city' links. Also, I'm about to try recording information using Cocoon, so I haven't tried to use forms yet, but wouldn't I run into the same problem? Ok, UTF symbols should be fine in the forms (GET or POST) if you to: (1) Serialize HTML form as UTF-8 (or any other encoding), and (2) set request encoding: request.setEncoding(UTF-8) (or any other encoding, same as in (1)) *before* any access to the request parameters. This can be done from an action. Thanks, I'll try that. After that, request.getParameter() should work Ok, and if you to get request parameter in the sitemap and pass it to the XSLT, it also should work ok. BTW, this was already answered today. Sorry, I should have caught it;) Thanks for your help... Vadim Vadim -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]
esql question
I believe other people also have faced this problem, but I couldn't find proper solution from the archive. Here's my problem: In the xsp code below, I want to dynamically pass column number (is 2 in the code below) and print each column name. I have count and tried passing it to attribute column. I tried xsp:expr and alsotried making esql:get-column name as xsp:element and column as xsp:attribute. Neither of them work. Is there no way to get all columns or X number of columns without hardcoding the column number or the column name in esql ? Same with esql:get-string column="2"/. How do I dynamically pass value to the attribute column ? Any esql gurus out there ?? xsp:logic for (int count=1; countlt;=esql:get-column-count/; count++) {column_name esql:get-column-name column="2"//column_name }/xsp:logic Sushil Send and receive Hotmail on your mobile device: 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: XHTML Serilization instead of HTML S.
How are you creating your HTML. This looks like the issue might be in your .XSL file that is creating the A href/A tag. The two tags XHTML and HTML should work the same. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: Re: XHTML Serilization instead of HTML S. Alexander Schatten wrote: Vadim Gritsenko wrote: Alexander Schatten wrote: I use Cocoon 2 to produce HTML. I use the HMTL serializer, but have to detect, that the output is *not* HTML as expected, but XHTML, which makes several problems, e.g. with Mozilla. I use HTML serializer and it outputs HTML. This can be confirmed by W3C validator service. Serializer config looks like: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size indentno/indent omit-xml-declarationyes/omit-xml-declaration doctype-public-//W3C//DTD HTML 4.01 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/html4/loose.dtd/doctype-system /map:serializer well, thank you for your configuration: I have edited the sitemap so to precisely your settings, but the result still has XML header and IS xhtl. e.g. a name=nnn / Hm. XML: a name=test/Here will be some links HTML: a name=test/aHere will be some links Works Ok for me. Vadim whats wrong? alex p.s.:btw: the same thing under Windows XP and Linux - 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 troubles
Ilya A. Kriveshko wrote: Ganael LAPLANCHE wrote: Hi Vadim, I've got a very stupid question : what is a processing instruction ??? The tags at the beginning of the XML file that start with '?' and end with '?'. Like: ?xml version=1.0? May I be pedantic? The above is not a processing instruction, it's the XML declaration. Regards, Joerg or ?xml-stylesheet href=MyScript.dsl type=text/dsssl? - 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: esql question
I reject to read HTML mail Antonio Gallardo El Miércoles, 18 de Septiembre de 2002 15:30, Sushil Bhattarai escribió: htmldiv style='background-color:'DIV Plt;esql:get-columnsgt; solves my problem. I was unaware that lt;esql:get-columnsgt; gets the column name and element and column value as element's value. That's exactly what I was trying to achive with my logic/P PSushilBRBR/P/DIV DIV/DIVBRBRBR DIV/DIVgt;Reply-To: [EMAIL PROTECTED] DIV/DIVgt;To: [EMAIL PROTECTED] DIV/DIVgt;Subject: esql question DIV/DIVgt;Date: Wed, 18 Sep 2002 16:23:46 -0400 DIV/DIVgt; DIV/DIV/divbr clear=allhrJoin the worlds largest e-mail service with MSN Hotmail. a href='http://g.msn.com/1HM1ENUS/c157??PI=44364'Click Here/abr/html - 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: Authentication framework (sunshine in 2.0.3) and modular database actions
hi, ...sorry, no answer to your question! i'm having a similar problem, but i'm still stuck at a lower level. i want to use the result ID of an authentication by the sunrise framework for a database query, using xsp. you said you've found a way to access the ID using org.apache.cocoon.webapps.session.components.SessionManager. is there a simple way to get the ID, say, in a string using java? i would very appreciate your help, since i can't get the cocoon source to go through it myself right now - good old modems... ;) ralph - Original Message - From: Hugo Burm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 8:36 PM Subject: Authentication framework (sunshine in 2.0.3) and modular database actions Hi, I am running 2.1 dev. I want to feed the result ID of an authentication by the authentication framework, into a database query. I made my own subclass of the non-modular DataseSelectAction and by using org.apache.cocoon.webapps.session.components.SessionManager, I could find the authentication ID in a sessioncontext and feed it to the select query. This is working ok, but it is not an elegant solution because I have to modify all database actions and keep them up to date with the current cvs version. And these guys are writing code faster than I can compile. A better solution would be to use the modular database actions. And feed the authentication ID into the database action by an input module. In this way I could use the unmodified database actions. I succeeded configuring the input module for request. But I need one of two other modes: 1) Sitemap parameter. Can I use a sitemap parameter as the input for an input module? How? This sounds trivial, but I could not find out how. 2) Ideally, I would feed the session context, set up by the authentication framework, directly into the database query via the session input module. I could not find an easy way. It looks like I have to map the xml structure of the authentication context, which is stored into the session somehow, into a simple session attribute. So this looks like I have to write my own input module. I can do that, but any feedback that could point me to the right direction would be welcome. Thanks Hugo [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]
Paginator Example - XSLT
Hi Guys The script below is taken fromthe paginator sample file pagedlist2.html. xsl:if test="page:link[@type='prev']" xsl:variable name="previous" select="@current - 1"/ a href="{page:link[@page = $previous]/@uri}"laquo; prev/a /xsl:if how does the xsl:variable name="previous" select="@current - 1"/ statement work?? Thanks
fix EncodeURLTransformer to process page that generates the session
Hi, I've just started using org.apache.cocoon.transformation.EncodeURLTransformer and found it works fine except for the first page generated after my login page i.e. the page that creates the session. I see that it uses request.isRequestedSessionIdFromURL() to determine whether any encoding is required, but this is false for the page that creates the session. If I change the test from if ( request.isRequestedSessionIdFromURL() ) { to final String fred = fred.html; if ( request.isRequestedSessionIdFromURL() || !fred.equals(response.encodeURL(fred)) ) { then it works for this page too. Maybe there's a neater way to do the same thing? Without this fix a workaround would be to create the session when the login form is generated instead of when its posted. Cheers, Neil. - 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]