encoding and xsp
Title: Nachricht hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ,, etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ,, etc. these names are transformed inot funny characters like e.g. Bem into Bem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version="1.0" encoding="ISO-8859-1"?, but still the same problem. does anyone know how to solve this problem. thanks and regards
Zip File Generator
Hi, I'm wonderning how one could read a file that is compressed/archived e.g. zip. Let's say I have a XML file that is compressed and so I would like to uncompress it and then use this file in the normal file generator in a pipeline. Is this possible and how? I also looked whether I could use a reader to serve the zip file but then I would only get the binary and not the uncompressed content of the file? Or can I use the output from a ScriptGenerator? Thanks for any help, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp:attribute for xsp-request:get-parameter
I try to get each text field (paranameX) where X are the text fields from the previous page : ... esql:query INSERT INTO Process_Parameters (pp_process, pp_pmid, pp_name) VALUES ..., 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') ... xsp:logic mycount = mycount + 1; /xsp:logic ... This line : 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') Gives me the following error : org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Zip File Generator
I'm wonderning how one could read a file that is compressed/archived e.g. zip. Let's say I have a XML file that is compressed and so I would like to uncompress it and then use this file in the normal file generator in a pipeline. Is this possible and how? I also looked whether I could use a reader to serve the zip file but then I would only get the binary and not the uncompressed content of the file? Or can I use the output from a ScriptGenerator? Peter, there is an example of how to do exactly what you want in the Cocoon: Building XML Applications book. It uses zip as an example of how to write readers, generators and sources/protocols. With the protocol, it shows you how to add a protocol to Cocoon of the form: zip://[EMAIL PROTECTED]://www.newserver.com/news_2001.zip or zip://people/[EMAIL PROTECTED] If you haven't seen the book, I'd highly recommend it. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: encoding and xsp
Title: Nachricht Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprngliche Nachricht-Von: boessem [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 7. Mrz 2003 09:39An: Cocoon-UsersBetreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ,, etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ,, etc. these names are transformed inot funny characters like e.g. Bem into Bem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version="1.0" encoding="ISO-8859-1"?, but still the same problem. does anyone know how to solve this problem. thanks and regards
AW: xsp:attribute for xsp-request:get-parameter
the xsp:attribute on the xsp-request:get-parameter is not possible; it's translated to java code and first executed when generation starts, i.e. when the xsp-request:get-parameter has already been translated. but you should be able to use following: xsp-request:get-parameternameparanamexsp:exprmycount/xsp:expr/name /xsp-request:get-parameter -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Freitag, 7. Marz 2003 09:38 An: [EMAIL PROTECTED] Betreff: xsp:attribute for xsp-request:get-parameter I try to get each text field (paranameX) where X are the text fields from the previous page : ... esql:query INSERT INTO Process_Parameters (pp_process, pp_pmid, pp_name) VALUES ..., 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') ... xsp:logic mycount = mycount + 1; /xsp:logic ... This line : 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') Gives me the following error : org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Zip File Generator
Le Vendredi, 7 mars 2003, à 09:41 Europe/Zurich, Upayavira a écrit : With the protocol, it shows you how to add a protocol to Cocoon of the form: zip://[EMAIL PROTECTED]://www.newserver.com/news_2001.zip or zip://people/[EMAIL PROTECTED] There is a jar: protocol (or Source?) in Cocoon already, search for jar: in http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html for an example. As JARs and ZIPs share the same physical format, it should work for ZIP files as well. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to generate random numbers or strings?
Hi all, I need to generate random numbers or a random string sequence for use as primary keys in a database app. How do I generate them within cocoon? I have good reasons not to use database sequence for primary keys. Thanks upfront Guenther - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CreateMinimalWebapp] remove all the optional jars with a XSL-Transformation
Hello group, I created a minimal webapp and found the following remark from Geoff Howard in [1 href=http://wiki.cocoondev.org/Wiki.jsp?page=CreateMinimalWebapp;] CreateMinimalWebapp: 2. edit lib/jars.xml to comment out/remove all the optional jars except the ones noted above 1. could be done with an xsl transform [/1] I wrote 2 XSLT- files that are working fine to do the job, but I would like to have more intelligence (please see below): The first xslt (jars2exclude.xsl [2]) checks the lib element form the jars.xml whether it starts with 'optional/' (the dir to exclude files from). If so they will be labeled 2exclude (there are exceptions - you will see later). xsl:when test=starts-with(text(), 'optional/') [compare 2] The jars.xml looks like this: ... file title/ description/ used-by/ libcore/jvm1.2/excalibur-datasource-vm12-20021121.jar/lib homepage/ /file ... The example file would not meet the criteria. The following would: file ... liboptional/servlet_2_2.jar/lib ... file But this certain file has to be left untouched [1] - this is one of n exceptions (2 are mentioned in [1], but I need more-n exception). This is be done with xsl:choosexsl:when[2]. Here is an example of an exception: xsl:when test=substring-after(text(), 'optional/')='servlet_2_2.jar' xsl:value-of select=./ /xsl:when The result of the transformation [2] will look like this: file titleXML Catalog Entity Resolver/title ... lib2exclude/lib ... /file file titleServlet API/title ... liboptional/servlet_2_2.jar/lib ... /file Transforming this result with exclude2jars.xsl [3] will result in the new jar.xml (without the exclusions, but with the exceptions). Ok, that is nice but I would prefer not to hard code the exceptions, e.g.: substring-after(text(), 'optional/')='servlet_2_2.jar' || || |---| hard coded exception (e.g. |optional/| I prefer to use something like jars2exclude.xml [4] where I declare the |---| hard coded exceptions. ... dir2excludeoptional//dir2exclude exceptservlet_2_2.jar/except ... ..but how can I do that? Have a look at sitemap.snippet [5] to install it on your local cocoon version. Any help and any ideas welcome. King regards Thorsten [1] http://wiki.cocoondev.org/Wiki.jsp?page=CreateMinimalWebapp [2] jars2exclude.xsl: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ xsl:apply-templates/ /xsl:template xsl:template match=jars jars xsl:apply-templates select=file/ /jars /xsl:template xsl:template match=file file xsl:apply-templates/ /file /xsl:template !--Parsing of value===-- xsl:template match=title title xsl:value-of select=./ /title /xsl:template xsl:template match=description description xsl:value-of select=./ /description /xsl:template xsl:template match=used-by used-by xsl:value-of select=./ /used-by /xsl:template !--==Excluding dir without the exceptions==-- xsl:template match=lib lib xsl:choose xsl:when test=starts-with(text(), 'optional/') xsl:choose xsl:when test=substring-after(text(), 'optional/')='fop-0.20.4.jar' xsl:value-of select=./ /xsl:when xsl:when test=substring-after(text(), 'optional/')='servlet_2_2.jar' xsl:value-of select=./ /xsl:when xsl:when test=substring-after(text(), 'optional/')='commons-jxpath-1.0.jar' xsl:value-of select=./ /xsl:when xsl:otherwise2exclude/xsl:otherwise /xsl:choose /xsl:when xsl:otherwise xsl:value-of select=./ /xsl:otherwise /xsl:choose /lib /xsl:template xsl:template match=homepage homepage xsl:value-of select=./ /homepage /xsl:template /xsl:stylesheet [/2] [3]exclude2jars.xsl: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ xsl:apply-templates/ /xsl:template xsl:template match=jars xsl:comment Add an entry for each jar file used by Cocoon, following the other entries Author: Ovidiu Predescu [EMAIL PROTECTED] Date: May 23, 2002 jars2exclude have been used. Author: Thorsten Scherler [EMAIL PROTECTED] Date: March 06, 2003 This is the modified jars.xml. /xsl:comment jars xsl:copy-of select=file[lib!='2exclude']/ /jars /xsl:template /xsl:stylesheet [/3] [4] jars2exclude.xml ?xml version=1.0
FW: xsp:attribute for xsp-request:get-parameter
Ok, I see. But with xsp-request:get-parameternameparanamexsp:exprmycount/xsp:expr/n ame /xsp-request:get-parameter I still get a java.lang.NullPointerException I tried to simplify the line like this : xsp-request:get-parameternameparaname1/name/xsp-request:get-param eter but it don't work. And if I replace it with xsp-request:get-parameter name=paraname1/ it works -Original Message- From: Marco Rolappe [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:06 AM To: [EMAIL PROTECTED] Subject: AW: xsp:attribute for xsp-request:get-parameter the xsp:attribute on the xsp-request:get-parameter is not possible; it's translated to java code and first executed when generation starts, i.e. when the xsp-request:get-parameter has already been translated. but you should be able to use following: xsp-request:get-parameternameparanamexsp:exprmycount/xsp:expr/n ame /xsp-request:get-parameter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp:attribute for xsp-request:get-parameter
I face the same problem. Untill now, I have found no way to dynamically generate parameters. The xsp-request:get-parameter must always include the name attribute. Assigning an xsp:attribute never seems to work for me either. I was trying to work around this with the tags xsp-request:get-parameter-names and xsp-request:get-parameter-values The names thing works (returning all the params in xml format or string) but the values always came up empty. I'm still looking for a solution to this problem. So I will keep listening. I try to get each text field (paranameX) where X are the text fields from the previous page : ... esql:query INSERT INTO Process_Parameters (pp_process, pp_pmid, pp_name) VALUES ..., 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') ... xsp:logic mycount = mycount + 1; /xsp:logic ... This line : 'xsp-request:get-parameterxsp:attribute name=nameparanamexsp:exprmycount/xsp:expr /xsp:attribute/xsp-request:get-parameter') Gives me the following error : org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xsp:attribute for xsp-request:get-parameter
Ok, I see. But with xsp-request:get-parameternameparanamexsp:exprmycount/xsp:expr/n ame /xsp-request:get-parameter I still get a java.lang.NullPointerException I tried to simplify the line like this : xsp-request:get-parameternameparaname1/name/xsp-request:get-param eter but it don't work. And if I replace it with xsp-request:get-parameter name=paraname1/ it works -Original Message- From: Marco Rolappe [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:06 AM To: [EMAIL PROTECTED] Subject: AW: xsp:attribute for xsp-request:get-parameter the xsp:attribute on the xsp-request:get-parameter is not possible; it's translated to java code and first executed when generation starts, i.e. when the xsp-request:get-parameter has already been translated. but you should be able to use following: xsp-request:get-parameternameparanamexsp:exprmycount/xsp:expr/n ame /xsp-request:get-parameter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate random numbers or strings?
On 07.Mar.2003 -- 10:04 AM, Guenther Schmidt wrote: Hi all, I need to generate random numbers or a random string sequence for use as primary keys in a database app. How do I generate them within cocoon? Use your favourite java pseudo random number generator. In case you need it from sitemap, there's an input module that uses the stock prng that can be used e.g. {random:randomNumber} 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: encoding and xsp
Judith is correct, you should put this encoding in the serializer, but, if you use xsp or whatever, put it also in the transformer and generator. Second thing, since you are German, so in the Euro zone, you may consider the ISO-8859-15 encoding, which is the same as the -1 encoding, but includes the Euro character. Third thing, I work with a Postgres database. In my connection pool, I included the charset also in my JDBC connection string jdbc:postgresql/..?charSet=ISO-8859-15 Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprüngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ä,ö,ü etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ä,ö,ü etc. these names are transformed inot funny characters like e.g. BöÃem into Bößem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipe XSP editor
Hi Maxime, I think you can use the SunBow plug-in (http://radio.weblogs.com/0108489/) with an XSP XMLSchema... Regards, Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:04 AM Subject: Eclipe XSP editor Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Eclipe XSP editor
I didn't find the XSP XMLSchema. There is a Sitemap.xsd and a xslt-schema.xsd, but no XSP schema -Original Message- From: Olivier Billard [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re: Eclipe XSP editor Hi Maxime, I think you can use the SunBow plug-in (http://radio.weblogs.com/0108489/) with an XSP XMLSchema... Regards, Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:04 AM Subject: Eclipe XSP editor Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use cases for Velocity
I am beginning my first major cocoon project and am making decisions about which components to use. I almost decided to do the project using the Turbine Development Kit, largely because I was attracted to Velocity. However, an XML based framework (Cocoon) has more to offer, so it is decided; Cocoon. However, seeing as there is a Velocity generator available, I naturally wonder if I can't have the best of both worlds. Would those of you who have experience with using Velocity from within Cocoon please look at the following questions: 1. What are the various use cases that have justified using Velocity with Cocoon? Are they primarily to support legacy code, or did you use Velocity from the project planning stages forward? 2. Is there a Velocity transformer available anywhere? 3. What strategies do you employ to deliver the parameters/context to your Velocity template? Does Cocoon help you in any way? Those are my main questions, but any tips and suggestions that may help clarify my thinking are appreciated! Thanks, Robert Douglass - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pipeline with Sitemap
Title: Pipeline with Sitemap hello everybody, this is my first in this ML. I have a problem with sitemap.xmap and pipeline. My problem is that i can't have more than One pipeline in my sitemap. All other pipeline are not considered. for example when my first pipeline manage *.html and my second pipeline manage *.xhtml, all html files will be correctly treat if i try to acces to xhtml file tomcat send me an error : toto.xhtml not found. My pipeline is correctly configured because if i put the *.xhtml first then all xhtml files will be correctly treated and if i try to acces html files Tomcat send me an error like toto.html not found... SO what can i do ? do i have make a mistake with the configuration file ?? Thank you
Re: Eclipe XSP editor
You can find a DTD here : http://xml.apache.org/cocoon1/wd-xsp.html Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:24 AM Subject: RE: Eclipe XSP editor I didn't find the XSP XMLSchema. There is a Sitemap.xsd and a xslt-schema.xsd, but no XSP schema -Original Message- From: Olivier Billard [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re: Eclipe XSP editor Hi Maxime, I think you can use the SunBow plug-in (http://radio.weblogs.com/0108489/) with an XSP XMLSchema... Regards, Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:04 AM Subject: Eclipe XSP editor Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon Developers Handbook: Problems with Sample Code
Jeremy Thanks - no rush - I have put that (newer) app to one side for a few days while I catch up on the backlog of some other projects... Derek [EMAIL PROTECTED] 07/03/2003 12:52:28 Hi Derek, I've prompted Lajos (whose code it is) to take a look but if he is unable I will check it out as soon as I can in the few hours and let you know. rgds Jeremy Aston -Original Message-From: Derek Hohls [mailto:[EMAIL PROTECTED]Sent: 06 March 2003 08:04To: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: Re: Cocoon Developers Handbook: Problems with Sample Code Gary I have tried this approach, without success ie. neither parameter name="href" value="file://c:\tomcat\webapps\cocoon\mount\derek\formvalhelper.xsl"/ or parameter name="href" value="file://c:/tomcat/webapps/cocoon/mount/derek/formvalhelper.xsl"/ yield any joy...? Any other suggestions or simple things I may have overlooked? Thanks Derek [EMAIL PROTECTED] 06/03/2003 04:47:32 Derek,I got the support/newticket example working with form validation, and I recall it required changing the supplied builtin-logicsheet parameter from parameter name="href" value="context://abc/formvalhelper.xsl" /to parameter name="href" value="file://$CATALINA_HOME/webapps/cocoon/abc/formvalhelper.xsl" /.I don't know why the context:// pseudo-protocol doesn't work here.Regards,GaryDerek Hohls wrote: Not sure if anyone on the list has tried any of the sample code that comes from CDH, but I cannot get the form validation to work - pp 252-276. I have the first two versions of the newticket.xsp code working fine, doing validation, updating the database and so on. However, when I try to use version 3, where the validation occurs in a separate logicsheet, then the form only displays the button! (ie. it looks as if the formvalhelper.xsl file is not being accessed or not processing correctly, but there is nothing in any of the log files to indicate what the problem might be) I'd appreciate some help with this, as I am really struggling to get going with logicsheets and do not yet have enough experience to spot where the 'obvious' mistake/s might be Thanks Derek -- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy." -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
Re: Pipeline with Sitemap
[EMAIL PROTECTED] wrote: Hi, for example when my first pipeline manage *.html and my second pipeline manage *.xhtml, all html files will be correctly treat if i try to acces to xhtml file tomcat send me an error : toto.xhtml not found. My pipeline is correctly configured because if i put the *.xhtml first then all xhtml files will be correctly treated and if i try to acces html files Tomcat send me an error like toto.html not found... Nicolas, can you post your sitemap (or a snippet if it's large) ? This works fine for me (first xhtml and then html): map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match I guess you meant map:generate instead of map:read. Remember that map:read defines the whole pipeline and as such terminates sitemap execution. So the map:serialize/ above is totally useless, even if not harmful. Ask Carsten which AFAIU should not be far from you ;-) Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipe XSP editor
Olivier Billard wrote: You can find a DTD here : http://xml.apache.org/cocoon1/wd-xsp.html Careful : this one is ges old (Cocoon 1), and will fail on most XSPs since it doesn't handle neither taglibs nor the fact that _any_ element of the result document can be written anywhere in the XSP document. AFAIK, no XSP schema currently exists. Any taker to write one ? Sylvain - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:24 AM Subject: RE: Eclipe XSP editor I didn't find the XSP XMLSchema. There is a Sitemap.xsd and a xslt-schema.xsd, but no XSP schema -Original Message- From: Olivier Billard [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re: Eclipe XSP editor Hi Maxime, I think you can use the SunBow plug-in (http://radio.weblogs.com/0108489/) with an XSP XMLSchema... Regards, Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:04 AM Subject: Eclipe XSP editor Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipe XSP editor
I asked for Stefano, but he doesn't seem to read this list !... I'm surprised an up-to-date Schema doesn't exist... See you next tuesday in Jouve, Sylvain ! :) Olivier - Original Message - From: Sylvain Wallez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 1:53 PM Subject: Re: Eclipe XSP editor Olivier Billard wrote: You can find a DTD here : http://xml.apache.org/cocoon1/wd-xsp.html Careful : this one is ges old (Cocoon 1), and will fail on most XSPs since it doesn't handle neither taglibs nor the fact that _any_ element of the result document can be written anywhere in the XSP document. AFAIK, no XSP schema currently exists. Any taker to write one ? Sylvain - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:24 AM Subject: RE: Eclipe XSP editor I didn't find the XSP XMLSchema. There is a Sitemap.xsd and a xslt-schema.xsd, but no XSP schema -Original Message- From: Olivier Billard [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re: Eclipe XSP editor Hi Maxime, I think you can use the SunBow plug-in (http://radio.weblogs.com/0108489/) with an XSP XMLSchema... Regards, Olivier - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:04 AM Subject: Eclipe XSP editor Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Zip File Generator
Bertrand Delacretaz wrote: Le Vendredi, 7 mars 2003, à 09:41 Europe/Zurich, Upayavira a écrit : With the protocol, it shows you how to add a protocol to Cocoon of the form: zip://[EMAIL PROTECTED]://www.newserver.com/news_2001.zip or zip://people/[EMAIL PROTECTED] There is a jar: protocol (or Source?) in Cocoon already, search for jar: in http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html for an example. As JARs and ZIPs share the same physical format, it should work for ZIP files as well. The JDK natively suppors the jar: protocol with URLs of the form jar:url!/entry(see [1]) and as such is available in Cocoon. However the url part has to be an URL understood by the JDK (e.g. file:, http:, etc), and therefore you cannot use the fancy Cocoon protocols such as cocoon: or context:. Hope this helps, Sylvain [1] http://java.sun.com/j2se/1.3/docs/api/java/net/JarURLConnection.html -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate random numbers or strings?
Hello! I meet this problem some months ago. I made a solution using XSP. I think you can easily enhance this piece of code: xsp:logic String key = xsp-request:get-parameter name=table_id default=/; while (key.equals()) { Random aleatorio = new Random(); int new_key = aleatorio.nextInt(Integer.MAX_VALUE) + 1; llave = String.valueOf(new_key); /* Check into database if the key exist into the table */ esql:execute-query esql:query SELECT table_id FROM table WHERE table_id=esql:parameter type=intxsp:exprnew_key/xsp:expr/esql:parameter /esql:query esql:results esql:row-results key = ; /esql:row-results /esql:results /esql:execute-query } /xsp:logic parameter name=table_idxsp:attribute name=valuexsp:exprkey/xsp:expr/xsp:attribute/parameter best regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pipeline with Sitemap
yes of course i can post my sitemap : this is my sitemap.xmap, the part of pipeline is at the botom. map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file map:generator name=file src=org.apache.cocoon.generation.FileGenerator/ /map:generators map:transformers default=xslt map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer/ /map:transformers map:readers default=resource map:reader name=resource src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer/ map:serializer mime-type=image/png name=svg2png src=org.apache.cocoon.serialization.SVGSerializer/ map:serializer mime-type=application/pdf name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer/ 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/docty pe-system encodingUTF-8/encoding /map:serializer /map:serializers map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=xhtml/ /map:match /map:pipeline map:pipeline map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match /map:pipeline /map:pipelines /map:sitemap so with the configuration on the top of this sentence all xhtml documents are treated normaly and all HTML document aren't treated normaly but with this simple modification : map:pipelines map:pipeline map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match /map:pipeline map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=xhtml/ /map:match /map:pipeline /map:pipelines all HTML documents are treated normaly and all XHTML aren't treated... so what i have miss ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipe XSP editor
Olivier Billard wrote: I asked for Stefano, but he doesn't seem to read this list !... Stefano started this project and community (along with many others), and reading (and answering) many mailing lists is a hard task ! I'm surprised an up-to-date Schema doesn't exist... Well, things get written when people need it. So perhaps nobody really felt the need for it up to now ? And maybe we're starting to see this need appear with Cocoon-dedicated GUIs that are coming. See you next tuesday in Jouve, Sylvain ! :) For other people : I'll be giving a 4-day Cocoon training to Olivier and his colleagues next week. Thanks for the plug ;-) Sylvain - Original Message - From: Sylvain Wallez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 1:53 PM Subject: Re: Eclipe XSP editor Olivier Billard wrote: You can find a DTD here : http://xml.apache.org/cocoon1/wd-xsp.html Careful : this one is ges old (Cocoon 1), and will fail on most XSPs since it doesn't handle neither taglibs nor the fact that _any_ element of the result document can be written anywhere in the XSP document. AFAIK, no XSP schema currently exists. Any taker to write one ? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: encoding and xsp
Hi! Please note that you must be sure that you are using the correct encoding to save your files. Antonio Gallardo. hi, thanks for your hints. i tried it, but it still does not work. i was not sure, if you mean to specifiy it within the map:components, or map:pipelines i did it in both. i also specified it within in the jdbc connection. but no success. Is it necessary to specify main sitemap, or is it also possible to put it into the sub-sitemap? here is how i added it: map:components map:generators default=file encodingISO-8859-1/encoding /map:generators /map:components i did the same for the serializer and transformer. and ... map:match pattern=**.html map:generate type=serverpages src=reg/docs/{1}.xsp encodingISO-8859-1/encoding /map:generate map:transform src=reg/stylesheets/anmeldung.xsl encodingISO-8859-1/encoding /map:transform map:serialize encodingISO-8859-1/encoding /map:serialize /map:match if i read through the outputtet html, there is still a tag like: META http-equiv=Content-Type content=text/html; charset=UTF-8 -Ursprüngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:42 An: [EMAIL PROTECTED] Betreff: AW: encoding and xsp Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprüngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ä,ö,ü etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ä,ö,ü etc. these names are transformed inot funny characters like e.g. Bößem into Bößem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: encoding and xsp
I am not shure what you mean, but i added to the header of all xsp and xsl document the same encoding sceme! -Ursprngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 14:27 An: [EMAIL PROTECTED] Betreff: Re: AW: encoding and xsp Hi! Please note that you must be sure that you are using the correct encoding to save your files. Antonio Gallardo. hi, thanks for your hints. i tried it, but it still does not work. i was not sure, if you mean to specifiy it within the map:components, or map:pipelines i did it in both. i also specified it within in the jdbc connection. but no success. Is it necessary to specify main sitemap, or is it also possible to put it into the sub-sitemap? here is how i added it: map:components map:generators default=file encodingISO-8859-1/encoding /map:generators /map:components i did the same for the serializer and transformer. and ... map:match pattern=**.html map:generate type=serverpages src=reg/docs/{1}.xsp encodingISO-8859-1/encoding /map:generate map:transform src=reg/stylesheets/anmeldung.xsl encodingISO-8859-1/encoding /map:transform map:serialize encodingISO-8859-1/encoding /map:serialize /map:match if i read through the outputtet html, there is still a tag like: META http-equiv=Content-Type content=text/html; charset=UTF-8 -Ursprngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 09:42 An: [EMAIL PROTECTED] Betreff: AW: encoding and xsp Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ,, etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ,, etc. these names are transformed inot funny characters like e.g. Bem into Bem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Zip File Generator
Le Vendredi, 7 mars 2003, à 14:05 Europe/Zurich, Sylvain Wallez a écrit : ...The JDK natively suppors the jar: protocol with URLs of the form jar:url!/entry(see [1]) and as such is available in Cocoon. Wow, I didn't know that this was a standard JDK feature, thanks for pointing it out! Now I understand why I couldn't find the implementation of the jar: stuff in in Cocoon ;-) -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: encoding and xsp
Hi: Take it easy! This is a standard problem when you start to using Cocoon. :-D What I am trying to said is that only putting the header is not enough. Just for reference. I use spanish and I had the same problem as you we I started with Cocoon. I dont use Windows anymore. But I can recommend you jEdit. (http://www.jEdit.org) to write XML stuff. In jEdit you have buffer options that allow you to define the character encoding for your saved files. That means How the file will be encoded BEFORE is saved into the hard disk. Of course the headers are importants too. Please feel free to ask if you have more questions. ;-) Best Regards, Antonio Gallardo I am not shure what you mean, but i added to the header of all xsp and xsl document the same encoding sceme! -Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 14:27 An: [EMAIL PROTECTED] Betreff: Re: AW: encoding and xsp Hi! Please note that you must be sure that you are using the correct encoding to save your files. Antonio Gallardo. hi, thanks for your hints. i tried it, but it still does not work. i was not sure, if you mean to specifiy it within the map:components, or map:pipelines i did it in both. i also specified it within in the jdbc connection. but no success. Is it necessary to specify main sitemap, or is it also possible to put it into the sub-sitemap? here is how i added it: map:components map:generators default=file encodingISO-8859-1/encoding /map:generators /map:components i did the same for the serializer and transformer. and ... map:match pattern=**.html map:generate type=serverpages src=reg/docs/{1}.xsp encodingISO-8859-1/encoding /map:generate map:transform src=reg/stylesheets/anmeldung.xsl encodingISO-8859-1/encoding /map:transform map:serialize encodingISO-8859-1/encoding /map:serialize /map:match if i read through the outputtet html, there is still a tag like: META http-equiv=Content-Type content=text/html; charset=UTF-8 -Ursprüngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:42 An: [EMAIL PROTECTED] Betreff: AW: encoding and xsp Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprüngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ä,ö,ü etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ä,ö,ü etc. these names are transformed inot funny characters like e.g. Bößem into Bößem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Zip File Generator
Le Vendredi, 7 mars 2003, à 14:05 Europe/Zurich, Sylvain Wallez a écrit : ...The JDK natively suppors the jar: protocol with URLs of the form jar:url!/entry(see [1]) and as such is available in Cocoon. Wow, I didn't know that this was a standard JDK feature, thanks for pointing it out! Now I understand why I couldn't find the implementation of the jar: stuff in in Cocoon ;-) lol :-D -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xsp:attribute for xsp-request:get-parameter
I tried your version with : xsp-request:get-parameter xsp-request:param name=nameparanamexsp:exprmycount/xsp:expr/xsp-request:param /xsp-request:get-parameter But I still get a java.lang.NullPointerException error Please read the docs carefully: xsp:attribute This element is used to dynamically provide attribute values for a given element. This tag is typically used in conjunction with xsp:expr, where the substituted expression is always cast to String First, let's be reminded that an XSP is turned into a generator. Now, element above referrs to *an element generated by this generator*. IOW not an element of this XML document you're currently editing! See http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html for a discussion of this problem. The logicsheet in question has to support dynamic attributes. There is no overall method to do this independantly. However, most logicsheets use the logicsheet-utils.xsl templates. Thus for a logicsheet bound to the namespace prefix foo foo:param name=barxsp:expryada/xsp:expr/foo:param works. E.g. xsp-request:get-parameter xsp-request:param name=namexsp:exprpname/xsp:expr/xsp-request:param /xsp-request:get-parameter But this works usually only on selected parameters. See the logicsheet in question for details. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pipeline with Sitemap
zze-MORY Nicolas FTRD/DMI/REN wrote: yes of course i can post my sitemap : this is my sitemap.xmap, the part of pipeline is at the botom. Well, actually I don't see what could be wrong with this sitemap (don't have the time now to run it). But why do you need two map:pipeline ? A map:pipeline is only needed if you want a different map:handle-errors or if you want a particular section of your sitemap to be internal-only (i.e. usable only with the cocoon: protocol). So you could merge both map:pipeline : you don't need one for each map:match Hope this helps, Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp:attribute for xsp-request:get-parameter
On 07.Mar.2003 -- 02:41 PM, [EMAIL PROTECTED] wrote: I tried your version with : xsp-request:get-parameter xsp-request:param name=nameparanamexsp:exprmycount/xsp:expr/xsp-request:param /xsp-request:get-parameter But I still get a java.lang.NullPointerException error Look at the generated java source ($TOMCAT/work/Standalone/localhost/cocoon//myxsp_xsp.java) ! I bet you'll immediately see the reason. If not, you need to show us the complete xsp and the lines from the .java that throw this exception. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: encoding and xsp
Hi, thanks for your hints. It works now. What i have done was to put into my main sitemap this: 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 I just changed it within a sub sitemap. Anyway thanks Best regard to you ;-) -Ursprngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 14:40 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: encoding and xsp Hi: Take it easy! This is a standard problem when you start to using Cocoon. :-D What I am trying to said is that only putting the header is not enough. Just for reference. I use spanish and I had the same problem as you we I started with Cocoon. I dont use Windows anymore. But I can recommend you jEdit. (http://www.jEdit.org) to write XML stuff. In jEdit you have buffer options that allow you to define the character encoding for your saved files. That means How the file will be encoded BEFORE is saved into the hard disk. Of course the headers are importants too. Please feel free to ask if you have more questions. ;-) Best Regards, Antonio Gallardo I am not shure what you mean, but i added to the header of all xsp and xsl document the same encoding sceme! -Ursprngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 14:27 An: [EMAIL PROTECTED] Betreff: Re: AW: encoding and xsp Hi! Please note that you must be sure that you are using the correct encoding to save your files. Antonio Gallardo. hi, thanks for your hints. i tried it, but it still does not work. i was not sure, if you mean to specifiy it within the map:components, or map:pipelines i did it in both. i also specified it within in the jdbc connection. but no success. Is it necessary to specify main sitemap, or is it also possible to put it into the sub-sitemap? here is how i added it: map:components map:generators default=file encodingISO-8859-1/encoding /map:generators /map:components i did the same for the serializer and transformer. and ... map:match pattern=**.html map:generate type=serverpages src=reg/docs/{1}.xsp encodingISO-8859-1/encoding /map:generate map:transform src=reg/stylesheets/anmeldung.xsl encodingISO-8859-1/encoding /map:transform map:serialize encodingISO-8859-1/encoding /map:serialize /map:match if i read through the outputtet html, there is still a tag like: META http-equiv=Content-Type content=text/html; charset=UTF-8 -Ursprngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 09:42 An: [EMAIL PROTECTED] Betreff: AW: encoding and xsp Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mrz 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ,, etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ,, etc. these names are transformed inot funny characters like e.g. Bem into Bem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xsp:attribute for xsp-request:get-parameter
Well... I see the error (code bellow), I have (XSPRequestHelper.getParameter(objectModel, null, null,null, null)) So, that's why I get the error java.lang.NullPointerException but that doesn't help me much! I still haven't found any solution. And I don't see any other way to do what I want! _esql_query.query = String.valueOf( + \n\t\t\t\t\tINSERT INTO Process_Parameters + \n\t\t\t\t\t (pp_process, pp_pmid, pp_name) + \n\t\t\t\t\tVALUES + \n\t\t\t\t\t\t ( + ((XSPRequestHelper.getParameter( objectModel, myodid, null, null, null))) + , + \n\t\t\t\t\t\t + (((EsqlQuery) _esql_queries.elementAt( _esql_queries.size() - 1)).resultset.getString( pm_ID)) + , + \n\t\t\t\t\t\t ' + ((XSPRequestHelper.getParameter( objectModel, null, null, null, null))) + ') + \n\t\t\t ); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Actions and mutli-user environment
Can anybody tell me how actions work in a multi-user environment. Is an action instance shared across multiple requests like a servlet? and hence member fields should be avoided in favour of local fields created in the act method or use of session attributes ? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pipeline with Sitemap
you've rigth Sylvain, but even in merging the 2 pipeline it doesn't work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: AW: encoding and xsp
Nice to hear that! Thank you too and welcome to Cocoon! Antonio Gallardo Hi, thanks for your hints. It works now. What i have done was to put into my main sitemap this: 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 I just changed it within a sub sitemap. Anyway thanks Best regard to you ;-) -Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 14:40 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: encoding and xsp Hi: Take it easy! This is a standard problem when you start to using Cocoon. :-D What I am trying to said is that only putting the header is not enough. Just for reference. I use spanish and I had the same problem as you we I started with Cocoon. I dont use Windows anymore. But I can recommend you jEdit. (http://www.jEdit.org) to write XML stuff. In jEdit you have buffer options that allow you to define the character encoding for your saved files. That means How the file will be encoded BEFORE is saved into the hard disk. Of course the headers are importants too. Please feel free to ask if you have more questions. ;-) Best Regards, Antonio Gallardo I am not shure what you mean, but i added to the header of all xsp and xsl document the same encoding sceme! -Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 14:27 An: [EMAIL PROTECTED] Betreff: Re: AW: encoding and xsp Hi! Please note that you must be sure that you are using the correct encoding to save your files. Antonio Gallardo. hi, thanks for your hints. i tried it, but it still does not work. i was not sure, if you mean to specifiy it within the map:components, or map:pipelines i did it in both. i also specified it within in the jdbc connection. but no success. Is it necessary to specify main sitemap, or is it also possible to put it into the sub-sitemap? here is how i added it: map:components map:generators default=file encodingISO-8859-1/encoding /map:generators /map:components i did the same for the serializer and transformer. and ... map:match pattern=**.html map:generate type=serverpages src=reg/docs/{1}.xsp encodingISO-8859-1/encoding /map:generate map:transform src=reg/stylesheets/anmeldung.xsl encodingISO-8859-1/encoding /map:transform map:serialize encodingISO-8859-1/encoding /map:serialize /map:match if i read through the outputtet html, there is still a tag like: META http-equiv=Content-Type content=text/html; charset=UTF-8 -Ursprüngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:42 An: [EMAIL PROTECTED] Betreff: AW: encoding and xsp Try specifying an encoding inside the serializer declaration in your sitemap: map:serializer ... encodingISO-8859-1/encoding /map:serializer HTH Judith -Ursprüngliche Nachricht- Von: boessem [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2003 09:39 An: Cocoon-Users Betreff: encoding and xsp hi, i do not understand why the encoding works different for words i use wihtin the xsp document and words i get via the url. an example: I have got a form, where students should be able to apply for a specific exame. wihtin this form (a xsp document) there are some explainations of how to use the form and what to fill in. characters within these sentences like ä,ö,ü etc. are getting transformed into html perfectly. (so no trouble). but: i have got text fields where students are able to fill in their names. so if a name uses characters like ä,ö,ü etc. these names are transformed inot funny characters like e.g. Bößem into Bößem . i tried to solve this problem, by adding to the header of the xsp and xsl document the encoding sceme, like ?xml version=1.0 encoding=ISO-8859-1?, but still the same problem. does anyone know how to solve this problem. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
Re: Actions and mutli-user environment
On 08.Mar.2003 -- 02:19 PM, Mark H wrote: Can anybody tell me how actions work in a multi-user environment. Is an action instance shared across multiple requests like a servlet? and hence member fields should be avoided in favour of local fields created in the act method or use of session attributes ? Depends on the lifestyle interface implemented by the action. Often, ThreadSafe is implemented, allowing concurrend access to the instance. AFAIU this does not mean that is it guaranteed to be a single instance, though. For this, your statement is true. Upside is, that the action does not need to be re-instantiated for each request. Downside is, that single threaded instances might be simpler to program. Another interface is Poolable: Components implement this interface if it is reasonable to Pool the object. Components that don't implement this interface will be created anew via a factory Best to have a look at the Apache Avalon docs. We're currently using the ECM - Excalibur Component Manager - for managing components. Note that Avalon is heading for a meta data approach instead of marker interfaces. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp:attribute for xsp-request:get-parameter
On 07.Mar.2003 -- 03:07 PM, [EMAIL PROTECTED] wrote: Well... I see the error (code bellow), I have (XSPRequestHelper.getParameter(objectModel, null, null,null, null)) So, that's why I get the error java.lang.NullPointerException but that doesn't help me much! I still haven't found any solution. And I don't see any other way to do what I want! OK, now, let's look at request.xsl: xsl:template match=xsp-request:get-parameter xsl:variable name=name xsl:call-template name=value-for-name/ /xsl:variable !-- ... -- /xsl:template and xsl:template name=value-for-name xsl:choose xsl:when test=@namexsl:value-of select=@name//xsl:when xsl:when test=xsp-request:name xsl:call-template name=get-nested-content xsl:with-param name=content select=xsp-request:name/ /xsl:call-template /xsl:when xsl:otherwisenull/xsl:otherwise /xsl:choose /xsl:template and xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/xsp:textxsl:value-of select=$content//xsl:when xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template From this, we see a) request.xsl does *not* use logicsheet-utils.xsl :-( b) a dynamic parameter needs to be enclosed in xsp-request:name/ Hence xsp-request:get-parameter xsp-request:name xsp:exprfoo/xsp:expr /xsp-request:name /xsp-request:get-parameter 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handle Error
hello, it's me again. I a very poor newbie with cocoon. I'm trying since today 8am to produce a good error page 404 when a document not found by cocoon. So i'm using handle error. But it doesn't work with me. I tried to find information which can help me and i found nothing. :( If anyone can help me ? i join my sitemap.xmap : ?xml version=1.0 encoding=UTF-8? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file map:generator name=file src=org.apache.cocoon.generation.FileGenerator/ /map:generators map:transformers default=xslt map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer/ /map:transformers map:readers default=resource map:reader name=resource src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer/ map:serializer mime-type=image/png name=svg2png src=org.apache.cocoon.serialization.SVGSerializer/ map:serializer mime-type=application/pdf name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer/ 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 encodingUTF-8/encoding /map:serializer /map:serializers map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/article_mcinema.xsl/ map:serialize type=xhtml/ /map:match map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match map:handle-errors map:transform src=context://transform/error2html.xsl/ map:serialize status-code=404/ /map:handle-errors/map:pipeline /map:pipelines /map:sitemap - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Handle Error
What URL do you use? Sylvain (T) -Message d'origine- De: zze-MORY Nicolas FTRD/DMI/REN [mailto:[EMAIL PROTECTED] Date: vendredi, 7. mars 2003 16:43 À: [EMAIL PROTECTED] Objet: Handle Error hello, it's me again. I a very poor newbie with cocoon. I'm trying since today 8am to produce a good error page 404 when a document not found by cocoon. So i'm using handle error. But it doesn't work with me. I tried to find information which can help me and i found nothing. :( If anyone can help me ? i join my sitemap.xmap : ?xml version=1.0 encoding=UTF-8? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file map:generator name=file src=org.apache.cocoon.generation.FileGenerator/ /map:generators map:transformers default=xslt map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer/ /map:transformers map:readers default=resource map:reader name=resource src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer/ map:serializer mime-type=image/png name=svg2png src=org.apache.cocoon.serialization.SVGSerializer/ map:serializer mime-type=application/pdf name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer/ 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 encodingUTF-8/encoding /map:serializer /map:serializers map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/article_mcinema.xsl/ map:serialize type=xhtml/ /map:match map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match map:handle-errors map:transform src=context://transform/error2html.xsl/ map:serialize status-code=404/ /map:handle-errors/map:pipeline /map:pipelines /map:sitemap - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Handle Error
i don't understand what URL i use ?? if you mean context://transform/error2html.xsl i tried with context:/ with context: and nothing to do... :( but for example i want to put a error page when people missed them on the URL for example : cocoon/cinema/coupcoeur.html exist but if someone put this : cocoon/cinema/copcoeur.html i want to put a good page of errors... do you see ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xhtml serializers
Hi! How can I define a set of serializers in the sitemap, with which I can deliver xhtml basic or xhtml transitional or xhtml strict? I want to write in my pipelines somthing like this:map:match map:generate.../ map:transform.../ map:serializa type="xhtml-Transitional"/ /map:match I get an error If I write in the MAIN sitemap this 3 serializers: map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Strict" pool-grow="2" pool-max="64" pool-min="2" src="" 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 map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Basic" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public"-//W3C//DTD XHTML Basic 1.0//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer I changed only the name of the serializer and the value of the parameters (DTD..). Do I have to change something else? Please, tell me if this is correct.. maybe the problem is not here! Thank you!!! Nesto
Cocoon 2.1 beta 1 - timing
The release schedule displayed at http://xml.apache.org/cocoon/plan/release.html indicates that Cocoon 2.1 beta 1 was to be released at end of February. There was no beta download in the directory where I would expect it to be, so I assume the release date has slipped. Can anyone comment on the current estimated release date? Many thanks Andrew Watt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1 and W3C XForms
I am interested to establish what the future plans are about incorporating (or not) the W3C XForms technology (currently at Candidate Recommendation status - http://www.w3.org/TR/2002/CR-xforms-20021112/) either in Cocoon 2.1 or a later version of Cocoon. Many thanks. Andrew Watt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 beta 1 - timing
On Fri, 7 Mar 2003, Andrew Watt wrote: Can anyone comment on the current estimated release date? Hmm, when it's ready? :) All kidding aside, AFAIK, they're working on stabilizing the flowscript layer before releasing 2.1. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 beta 1 - timing
An important drive to finalize a portion of the API is being discussed by developers as we speak. After that process we could expect a beta release relatively quickly. You can try for a time estimate over there, but I wouldn't expect anything better than Real Soon Now or ASAP because of the difficulty in making that kind of guess in an open development environment. It's safe to say it is being worked toward in earnest. There has been a recent informal call to freeze new features, for instance. Browsing the recent archives for the developer list would yield more details. Geoff Howard At 02:54 PM 3/7/2003, you wrote: The release schedule displayed at http://xml.apache.org/cocoon/plan/release.html indicates that Cocoon 2.1 beta 1 was to be released at end of February. There was no beta download in the directory where I would expect it to be, so I assume the release date has slipped. Can anyone comment on the current estimated release date? Many thanks Andrew Watt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: xhtml serializers
WHICH error do you get? -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von NestoGesendet: Freitag, 7. März 2003 17:12An: [EMAIL PROTECTED]Betreff: xhtml serializers Hi! How can I define a set of serializers in the sitemap, with which I can deliver xhtml basic or xhtml transitional or xhtml strict? I want to write in my pipelines somthing like this:map:match map:generate.../ map:transform.../ map:serializa type="xhtml-Transitional"/ /map:match I get an error If I write in the MAIN sitemap this 3 serializers: map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Strict" pool-grow="2" pool-max="64" pool-min="2" src="" 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 map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Basic" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public"-//W3C//DTD XHTML Basic 1.0//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer I changed only the name of the serializer and the value of the parameters (DTD..). Do I have to change something else? Please, tell me if this is correct.. maybe the problem is not here! Thank you!!! Nesto
amp; not decoding correctly in request parameter
Hi, I have an XSLT that generates a request to a cocoon XSP page. It looks something like this: /template?inputName=templateIdamp;saveAttribute=entityId However, when I get to the XSP page, and I try and figure out what the value of saveAttribute is, using: xsp:logic String saveAttribute = (String)request.getParameter(saveAttribute); /xsp:logic saveAttribute is: xsp:exprsaveAttribute/xsp:expr xsp:logic /xsp:logic saveAttribute at this point is always NULL. Note that any parameter specified right after the '?' is decoded properly. It seems to be a problem with the amp; as far as I can tell. I can't understand why this is happening, as I have encoded urls with the amp; before with no problem. If someone could shed some light on this subject, I would be most grateful. thanks, Collin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with form validation (and spelling, yes)
Hi all, I've followed the wiki.cocoondev.org guidlines for form validation. I just can't get it to work. (Below is the excerpt from the sub-sitemap) map:match pattern=*/inserieren/php/register map:act type=form-validator map:parameter name=descriptor value=context://validateRegister.xml/ map:parameter name=validate-set value=registerClient/ map:serialize type=text/ /map:act map:serialize type=xml/ /map:match There are NO errors when I change the name of the descriptor to a non existing file name. Any ideas what's wrong ? Guenther (an old European) ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate random numbers or strings?
Hi Antonio, thanks for your answer. I've been trying to avoid using XSP and logic sheets quite successfully sofar, since: a. I don't know Java :-( b. It seems possible to do without them. I think I'll query my database for a random number and just add a prefix instead via XSLT. I also use aggregate a lot. Thanks again Guenther - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate random numbers or strings?
Hi Chris, thanks for your answer. I suppose I should have mentioned that I'm a Cocoon NEWBIE, unfortunately also a Java NEWBIE. I've been doing my projects in PHP sofar ;-) I've seen other replies of yours and you seem to be deep inside Cocoon, congratulations. I hope to get there someday too. Thanks again, Guenther Christian Haul wrote: On 07.Mar.2003 -- 10:04 AM, Guenther Schmidt wrote: Hi all, I need to generate random numbers or a random string sequence for use as primary keys in a database app. How do I generate them within cocoon? Use your favourite java pseudo random number generator. In case you need it from sitemap, there's an input module that uses the stock prng that can be used e.g. {random:randomNumber} Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 and W3C XForms
I don't know if you're aware of XMLForms: http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html Best, Josema - Original Message - From: Andrew Watt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 8:56 PM Subject: Cocoon 2.1 and W3C XForms I am interested to establish what the future plans are about incorporating (or not) the W3C XForms technology (currently at Candidate Recommendation status - http://www.w3.org/TR/2002/CR-xforms-20021112/) either in Cocoon 2.1 or a later version of Cocoon. Many thanks. Andrew Watt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Chaining
TOMCAT 4.0.4, Cocoon 2.0.4 Hi folks out there, I have a question concerning chaining documents: I want to transform an xmi (XML Metadata Interchange) document to an xml document, representing another form. This xml document should be transformed to another xml documnet, which is an independent representation of visualisation data. In a next step this xml document should be transformed to an svg document or pdf document. Here the short version: xmi - xml - xml - svg How do I setup my sitemap to accomplish this task. As far as I remember under Cocoon 1.8.x you would write proccesing instructions into the new xml-document. This will not work in Cocoon 2, right? Can anybody give me a link, where this is described or a short example. Haven't found it in the docs. TIA, - Christof - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Chaining
Hello Christof, Christof Schneider wrote: TOMCAT 4.0.4, Cocoon 2.0.4 Hi folks out there, I have a question concerning chaining documents: it's one of the most simple things in Cocoon 2 ;-) I want to transform an xmi (XML Metadata Interchange) document to an xml document, representing another form. This xml document should be transformed to another xml documnet, which is an independent representation of visualisation data. In a next step this xml document should be transformed to an svg document or pdf document. Here the short version: xmi - xml - xml - svg How do I setup my sitemap to accomplish this task. As far as I remember under Cocoon 1.8.x you would write proccesing instructions into the new xml-document. This will not work in Cocoon 2, right? Right. Can anybody give me a link, where this is described or a short example. Haven't found it in the docs. TIA, - Christof The sitemap is the center of Cocoon. And you can read about it at http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html. An example for your three step transformation: map:match pattern=my.svg map:generate src=my.xmi/ map:transform src=myFirstTransformer.xsl/ map:transform src=mySecondTransformer.xsl/ map:transform src=myThirdTransformer.xsl/ map:serialize type=svg/ /map:match Regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon w/Jetty - A Minimalist's Guide
Hi everybody- The other night I wrote up a HOWTO that describes using Cocoon with the built-in Jetty, along with some info explaining the bare minimum directories you would need to run Cocoon from the included Jetty. This is useful when you don't want to run Cocoon/Jetty from the huge src dir after compiling. I'll probably be wikifying it soon, but for now, you can read it at: http://manero.org/weblog/archives/75.html Regards, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XmlForm Validation Problem: Where Am I Going Wrong?
Hello, I couldn't solve your problem but maybe I can give you more ideas... In you rule: rule context=/repeatedPassword report test=(string-length(/password) gt; 0) and (string-length(.) = 0) Please confirm your password. /report /rule I would say you are setting the context to /repeatedPassword, so /password won't work. I think you should use ../password in there. I coudn't make this work either...ummm...but if I put any text in the /repeatedPassword field, form does not pass validation and it does if I leave it blank...weird... Anyway, if you got it working you should consider writing a more consistent rule for password confirming. Something like: rule context=/repeatedPassword assert test=string(.) = string(../password) Please confirm your password. /assert /rule I can think of another way of making this, through some java code in the perform() method (making validation programatically), but I hope it won't be necessary cause I believe there must be a Schematron way of doing this. Hope someone could help you (us) more :-) Best, Josema - Original Message - From: Richard In Public [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 1:48 AM Subject: XmlForm Validation Problem: Where Am I Going Wrong? Hi I think I'm pretty close to having things up and running with XMLForms. I'm having some problems with the validation though. I'm trying to achieve conditional validation: I have two password fields and the second should only be effected if a password has been entered in the first. I don't want to do this in the '/' content as I want any violations to be associated with the second field. I've tried everything that I can think of. Here is one of the attempts. Everything works except the validation of the second password field. No violations are reported when I fill in only the first field. Where am I going wrong? My my dead lines are turning pale blue and gasping for breath. Please please help me! Richard Validation Schema(tron) - ?xml version=1.0 ? schema ns=http://xml.apache.cocoon/xmlform; xmlns=http://www.ascc.net/xml/schematron; titleAccount Registration Schema/title phase id=registration pFor user identity information./p active pattern=reg/ /phase pattern name=User Info Validation Pattern id=reg rule context=/emailAddress assert test=contains( string(.),'@') Email format is invalid. /assert /rule rule context=/password assert test=string-length(.) gt; 7 Password should be at least 8 characters. /assert assert test=string-length(.) lt; 20 Password should be less than 20 characters. /assert /rule rule context=/repeatedPassword report test=(string-length(/password) gt; 0) and (string-length(.) = 0) Please confirm your password. /report /rule /pattern /schema XMLForm ?xml version=1.0 ? xf:form xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; id=form-feedback view=registration action=new-account.xml xmlns:site=http://designedandmanaged.net/cocoon/site/1.0; error xf:violations class=error/ /error xf:textbox ref=/emailAddress xf:captionEmail Address/xf:caption xf:violations class=error / /xf:textbox xf:password ref=/password xf:captionPassword/xf:caption xf:violations class=error / /xf:password xf:password ref=/repeatedPassword xf:captionPassword (Confirm)/xf:caption xf:violations class=error / /xf:password xf:textbox ref=/firstName xf:captionFirst Name/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/lastName xf:captionLast Name/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/phoneNumber xf:captionPhone Number/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address1 xf:captionLine 1/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address2 xf:captionLine 2/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address3 xf:captionLine 3/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/city xf:captionCity/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/postCode xf:captionPost Code/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/countryID xf:captionCountry/xf:caption xf:violations class=error / /xf:textbox xf:submit id=next class=button xf:captionCreate My Account/xf:caption xf:hintGo to next page/xf:hint /xf:submit /xf:form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [PATCH QUEUE] Summary March 8 2003
--- This mail is generated automatically using Jakarta Ant. Contents are automatically downloaded from Apache's Bugzilla. --- Please do not reply to this mail. --- *** COCOON PATCH QUEUE UPDATE patches in queue: 31 *** --- 9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4 --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11533:[PATCH] Replacement for AvalonToCocoonSource --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11549:[PATCH] Replace LogKitManageable through LoggerManageable --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12173:[PATCH] SQLTransformer Query object prematurely closes conne --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12173 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12235:[PATCH] XPathTransformer --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12993:[PATCH] New version of CastorTransformer (includes marshalli --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14117:[PATCH] AuthAction fails in sub-requests --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14144:[Patch] add CompressionFilter declaration to web.xml --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14327:[PATCH] JSPEngineImpl response charset should be specified w --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14327 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14845:[PATCH] Patch to generate a key with new resources in XMLDBT --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14845 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14986:[PATCH] Enables velocitygenerator to get objects from reques --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14986 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 15100:[patch]/[donation] Sample app xml form popup with sourcewrit --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15100 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 15150:[PATCH]: HSSFSerializer Support for Gnumeric MergedRegions --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15150 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 15525:[PATCH] simple patch to add fallback element in XIncludeTran --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15525 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 15710:[PATCH]: JellyGenerator for Cocoon --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15710 REVIEWER: