newbie: xsl - xsp - transformation
hi there I'm using the stream-generator, which produces this document: the sitemap looks like this: map:match pattern=**.req map:generate type=stream/ map:transform src=stylesheets/req2xml.xsl/ map:serialize type=xml/ /map:match the stream gives sends this to the stylesheet: loginusernamedaniel/usernamepasswordthepassword/password/login then I'm doing some xsl-transformation: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=login xsp:page create-session=yes language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-session=http://apache.org/xsp/session/2.0; loginreply xsp-session:set-attribute name=username[EMAIL PROTECTED]/xsp-session:set-attribute xsp-session:set-max-inactive-interval interval=500/ statusok/status sessionidxsp-session:get-id //sessionid usernamexsp-session:get-attribute name=username//username /loginreply /xsp:page /xsl:template xsl:template match=@*|*|text()|processing-instruction() xsl:copy xsl:apply-templates select=@*|*|text()|processing-instruction() / /xsl:copy /xsl:template /xsl:stylesheet I get the following back: xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:xsp-session=http://apache.org/xsp/session/2.0; language=java create-session=yes loginreply xsp-session:set-attribute name=username[EMAIL PROTECTED]/xsp-session:set-attribute xsp-session:set-max-inactive-interval interval=500 / statusok/status sessionidxsp-session:get-id //sessionid usernamexsp-session:get-attribute name=username //username /loginreply /xsp:page which is perfectly ok. but now how do I tell cocoon that it processes the xsp and the xsp-session stuff? as I understood I cannot use a second generator. do I have to create some kind of logicsheet? if yes, how should it look like? kind regards daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie: problem with cocoon on debian testing, jdk 1.4.0_01, tomcat 4.0.3 with cocoon 2.0.3
hi there I've done the source build with the modifications described for tomcat 4.0.3 and with the modifications for java 1.4.0_01. everything should be runnig with debian woody/testing. I installed the xlibs as well (xfree-common). but still no success. at the bottom you see the msg from tomcat. thx for any help. kind regards daniel Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.parsers.SAXParserFactory read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291) at java.lang.System.getProperty(System.java:572) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:226) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at
installation debian 3.0, jdk 1.4.0_01, tomact 4.03, cocoon binary 2.03 for jdk1.4.0
hi there i'm having som etroubles to get this running. tomcat 4.0.3 is running perfect with jdk 1.3 and jdk 1.4. but tomcat doesn't even extract the cocoon.war. i'm running without xwin, but I have no intention to use batik. so there are no xlibraries installed. kind regards daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie: delete whitespace
hi there is there a simple solution to transform an xml-file to a new one without any whitespace? kind regards daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml and macromedia flash
hi there special question: I'm trying to use the following macromedia flash command with cocoon: xml.sendAndLoad(); this is basically a HTTP-POST of an xml-document to the cocoon server. the content-type in flash is text/xml. as there is no name-value pair to access this xml-doc with request: my question: how can I access the rawdata of the request? (like in php HTTP_RAW_POST_DATA) or is there another possibility to access my xml-upload? kind regards daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2
arjé, sorry to desturb again. but do you have a sample for the cocoon part (sitemap, ...)? thx. daniel - Original Message - From: Arjé Cahn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 10:20 AM Subject: RE: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2 Daniel, Yes, this is certainly possible. I think the best option would be to initiate a sendAndLoad() on an XSP under Cocoon, that writes the information to your database and returns a piece of XML back to the Flash movie. The movie has to be in the same location as where you are posting your data (within the same domain name). Otherwise, Flash will generate a security error. good luck, Arjé Cahn - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 arje(at)hippo(dot)nl / www.hippo.nl -Oorspronkelijk bericht- Van: Daniel Meier [mailto:[EMAIL PROTECTED]] Verzonden: 06 July 2002 21:49 Aan: [EMAIL PROTECTED] Onderwerp: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2 hi there has sombody done this before? I'd like to send an xml-string to the server and update some database records. as I'm a newbie to cocoon I would be happy to have a some working example. thx. kind regards dan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the 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: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2
arjé, sorry to desturb again. but do you have a sample for the cocoon part (sitemap, ...)? thx. daniel - Original Message - From: Arjé Cahn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 10:20 AM Subject: RE: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2 Daniel, Yes, this is certainly possible. I think the best option would be to initiate a sendAndLoad() on an XSP under Cocoon, that writes the information to your database and returns a piece of XML back to the Flash movie. The movie has to be in the same location as where you are posting your data (within the same domain name). Otherwise, Flash will generate a security error. good luck, Arjé Cahn - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 arje(at)hippo(dot)nl / www.hippo.nl -Oorspronkelijk bericht- Van: Daniel Meier [mailto:[EMAIL PROTECTED]] Verzonden: 06 July 2002 21:49 Aan: [EMAIL PROTECTED] Onderwerp: macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2 hi there has sombody done this before? I'd like to send an xml-string to the server and update some database records. as I'm a newbie to cocoon I would be happy to have a some working example. thx. kind regards dan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
macromedia flash actionscript integration of xml.sendAndLoad() with cocoon2
hi there has sombody done this before? I'd like to send an xml-string to the server and update some database records. as I'm a newbie to cocoon I would be happy to have a some working example. thx. kind regards dan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]