RE: sunRise User Administration for Dummies
Have you guys read the documentation? The authentication framework is explained in detail here: http://xml.apache.org/cocoon/developing/webapps/index.html Let me know if you have any additional questions. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 3:07 AM To: [EMAIL PROTECTED] Subject: Re: sunRise User Administration for Dummies I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. Hypersonic appears to only be used for sample applications not for authentication. so no users, roles or the association between the two is stored. I've found absolutely no JDBC code within the authenication/session pieces. My reason for looking into this was from a scalability point of view. I like Hypersonic DB for prototyping but not for serious production code. So i was trying to make sure this wasn't being used at all for authenication. The usage of resources allows you to use your own persistence mechanism, e.g. LDAP, database, XML file, etc. Also I was looking at the session management. My gripe is that it uses HttpSession and didn't make use of calling out to resources as the authentication manager did. If the user wanted to use HttpSession or the database or... let them do that in the called resource. So ideally there's a getProperties and a saveProperties resource (oh well). Also the roles is really confusing, as within the authentication manager it's not used at all as far as I can tell (it's probably used in the portal). There's a roleFilterTransformer that goes off of the J2EE role that you'd set for the web.xml and use the isUserInRole method. That's all the transformer does. it doesn't actually use the role from the authentication manager??? so these are unrelated pieces of code. So the role information that you return from the authenication resource appears to be left to the developer to make use of somehow, assuming they're not using Cocoon's portal offering. I'm fairly certain the portal uses the role but I've not looked at the portal component at all. hope that helps. md At 19:57 11/10/2002 -0800, you wrote: Hi Guys, Can anybody give me anything... I really don't have any clear idea on how to start on this... Any working samples... Thanks Again. Richard - - Original Message - From: Richard Reyes To: C2 Users Sent: Friday, October 11, 2002 3:14 PM Subject: sunRise User Administration for Dummies Hi Guys, How does the SunRise User Administration function? Are the Roles and Users saved in a Database? Do we have any tutorials? Thanks in Advance... Richard - Please check that your question has not already been answered in the FAQ before posting. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://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. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://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: Escape characters in ESQL
This seems to work. Thanks - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 14, 2002 8:56 AM Subject: Re: Escape characters in ESQL Try single quote example: esql:execute-query esql:query alter session set nls_date_format='DD/MM/' /esql:query /esql:execute-query Antonio Gallardo El Domingo, 13 de Octubre de 2002 23:45, Katzigas Dimitris escribió: Hi there, I want to execute this query over an Oracle database. alter session set nls_date_format=DD/MM/ the code fragment from my XSP file is shown below. esql:execute-query esql:query alter session set nls_date_format=DD/MM/ /esql:query /esql:execute-query This of course doesn't work because i have to escape the double quotes and maybe the slashes, i don't know. Even if i use the quot; instead of the it doesn't work either. Does anyone has any ideas on this? Thank you in advance - Please check that your question has not already been answered in the 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]
Cocoon with JBoss-2.4.7_Tomcat-4.0.4
Hello all, I have successfully integrated Cocoon-2.0 with JBoss-2.4.7_Tomcat-4.0.4 and it is working fine. I have properly made ear file containing EJB jar file and cocoon folders as war file. If I need to change any XSP and other classes then How will it work without redeploying all stuffs. I change an XSP in Catalina_Home/webapps/cocoon folder but not able to see changes while running server again. If I redeploy all stuff with modified xsp file then only it show changes. Please suggest how can I make changes in XSP and classes without making ear files and redeploying again and again, once it is deployed once. Thanks, Niket - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY] Pipeline match optimization (Re: [Q] Pipeline best practices)
[EMAIL PROTECTED] wrote: Another issue of having too many pipelines. As i understand in the sitemap is generated into a java class. And the various matchers within a pipeline(s) are really a bunch of if-else if statements. So the more matchers you have (to match to a pipeline or various paths within a pipeline) your going to have a large series of if/else statements. And... since this uses string compares and wildcards and... if there's alot of these if else if statements it will lead to performance issues. It may help to break things up with sub site maps to help limit the searching. Or put the most likely pipelines to get hit first and the least likely last... Yes, and make search hierarchical. Since you can match inside a match, you can also do this. To get to match2-3 you need 8 matches match1-1 | 1 match1-2 | . match1-3 | . match1-4 | . match1-5 | . match2-1 | . match2-2 | . match2-3 v 8 But you can do: match1 | 1 match1-1 ! x match1-2 ! x match1-3 ! x match1-4 ! x match1-5 ! x match2 | . match2-1 | . match2-2 | . match2-3 v 5 And have 5 matches -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTP and cocoon [site map how to]
Cocoon User wrote: i have succesfull write a js that create an xmlobject and then post it using xmlhttp i have too succesfull post this xml stream to .php and java servlet . server side i just echo this stream and return this echo to js how can i modify sitemap to make cocoon ready to receive this stream and send a responce back to js. thanks stavros s. kounis Use a Stream Generator: map:match pattern=post-uri map:generate type=stream/ !-- This generator outputs the posted document as SAX events -- map:transform type=whatever / map:serialize type=xml/ /map:match Ugo -- Ugo Cei - http://www.beblogging.com/blog/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SUMMARY] Pipeline match optimization (Re: [Q] Pipeline best practices)
The results of this thread from my point of view can be found at http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines. Are there any other points? Regards, Reinhard -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: [SUMMARY] Pipeline match optimization (Re: [Q] Pipeline best practices) [EMAIL PROTECTED] wrote: Another issue of having too many pipelines. As i understand in the sitemap is generated into a java class. And the various matchers within a pipeline(s) are really a bunch of if-else if statements. So the more matchers you have (to match to a pipeline or various paths within a pipeline) your going to have a large series of if/else statements. And... since this uses string compares and wildcards and... if there's alot of these if else if statements it will lead to performance issues. It may help to break things up with sub site maps to help limit the searching. Or put the most likely pipelines to get hit first and the least likely last... Yes, and make search hierarchical. Since you can match inside a match, you can also do this. To get to match2-3 you need 8 matches match1-1 | 1 match1-2 | . match1-3 | . match1-4 | . match1-5 | . match2-1 | . match2-2 | . match2-3 v 8 But you can do: match1 | 1 match1-1 ! x match1-2 ! x match1-3 ! x match1-4 ! x match1-5 ! x match2 | . match2-1 | . match2-2 | . match2-3 v 5 And have 5 matches -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and hsqldb
Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
Thank you Konstantin, I have this message: Server 1.6 is running. Is there a console where I can execute queries? Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 À: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
From: [EMAIL PROTECTED] Thank you Konstantin, I have this message: Server 1.6 is running. Yes, it's the HSQLDB. Is there a console where I can execute queries? Have no idea here. Try to search for some tools for HSQLDB. I don't know if there is anything like that is bundled with Cocoon. KP Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
I have found a script file that creates tables and entries in the default Cocoon example database, you can find this file here: \WEB-INF\db\cocoondb.script Now all work with HSQLDB! Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. Thank you Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 11:02 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb From: [EMAIL PROTECTED] Thank you Konstantin, I have this message: Server 1.6 is running. Yes, it's the HSQLDB. Is there a console where I can execute queries? Have no idea here. Try to search for some tools for HSQLDB. I don't know if there is anything like that is bundled with Cocoon. KP Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and hsqldb
On Monday 14 October 2002 11:18, [EMAIL PROTECTED] wrote: . . . Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. . . . If you're courageous you can use the JDBC-ODBC bridge for this, but last time I checked it was fairly limited and funky (or do they have native JDBC now?). I don't have an URL handy but you should find it in the JDBC-ODBC samples. I've also used www.inetsoftware.de's excellent (commercial) drivers for MS SQL, you'd then use a JDBC URL like: jdbc:inetdae:your_server:1433?database=your_db A nice utility to test these URLs and JDBC drivers is DBVisualizer, http://www.minq.se/products/dbvis/info.html Hope this helps. -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
There is a JDBC driver for MS SQL Server, available at sourceforge.net: jtds. -Message d'origine- De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] Date: lundi 14 octobre 2002 11:26 á: [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet: Re: Cocoon and hsqldb On Monday 14 October 2002 11:18, [EMAIL PROTECTED] wrote: . . . Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. . . . If you're courageous you can use the JDBC-ODBC bridge for this, but last time I checked it was fairly limited and funky (or do they have native JDBC now?). I don't have an URL handy but you should find it in the JDBC-ODBC samples. I've also used www.inetsoftware.de's excellent (commercial) drivers for MS SQL, you'd then use a JDBC URL like: jdbc:inetdae:your_server:1433?database=your_db A nice utility to test these URLs and JDBC drivers is DBVisualizer, http://www.minq.se/products/dbvis/info.html Hope this helps. -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and hsqldb
Is there a console where I can execute queries? Yes, start: java org.hsqldb.util.DatabaseManager Ralph Henke - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP, ESQL and MySQL
Apologies if this is a slightly lower level problem than normal but I think I am going slowly mad. I have just started working with cocoon 2 and am having some problems getting this to connect to mySQL. I have followed the tutorials to the letter and am getting an Exception in ServerPagesGenerator.generate() Java.Lang.NullPointerException My mySQL database appears to be up and running, Cocoon will quite happily do it's think with xml, xsl and the basic hello world xsp files. This only occurs when I try and access a db with ESQL. (I'm using mySQL 3.23.52, Cocoon 2.03, Tomcat 4.1, JDK 1.3.1, mySQL-connector-java-2.0.14, all running on win xp) My cocoon.xconf contains the following datasources entry datasources jdbc logger=core.datasources.autorevs_store name=autorevs_store pool-controller min=5 max=10 keepaliveSELECT 1;/keepalive /pool-controller driverorg.gjt.mm.mysql.Driver/driver dburljdbc:mysql://localhost:3306/autorevs/dburl userweb/user passwordwebpass/password /jdbc /datasources And a fuller stack trace is as follows: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi ngEventPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingStreamPipeline.java:359) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4005A9(sitemap_xmap.jav a:9309) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3035) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2489) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 8) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:479) Any help most appreciated
Problem with sitemap
Hi, My sitemap is as follows: map:match pattern=welcome.html map:generate src=welcome/welcome.xml/ map:transform src=welcome/{role}.xsl/ map:serialize type=html/ /map:match In my welcome folder I have author.xsl and learner.xsl.My xml file has the tag, role.Depending upon the role the sitemap has to choose the respective stylesheet and do the transformation.But I get an error Failed to process the pipeline.I use Tomcat-4.0-b7 and Cocoon 2.0.If someone knows the solution please help me,,, Kavitha __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action example
Title: Action example Hi Is there any other example for using action? because i still cant find any pratical and useful application of action??!! ;P cheers -Original Message-From: Sternath Elmar [mailto:[EMAIL PROTECTED]]Sent: lundi 14 octobre 2002 12:56To: '[EMAIL PROTECTED]'Subject: AW: Action example In the cocoon docs there is a nice example how to create AND use actions: http://xml.apache.org/cocoon/userdocs/concepts/actions.html Inside an action, you put key/value pairs into a hashmap which you can then access inside the corresponding act/act tags in your pipeline. -Ursprüngliche Nachricht-Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]Gesendet: Montag, 14. Oktober 2002 03:50An: [EMAIL PROTECTED]Betreff: Action example Hi I am new to Cocoon, i use and find it pretty nice, and i find i like it but just one scope i cant figure out and not yet use it . it is 'action' application where can i find a simple example of using 'action'? because the cocoon specification mainly show how to write own action!! thanks Dinh
Re: Action example
See the sources of samples: http://localhost:8080/cocoon/samples/authentication-fw/login http://localhost:8080/cocoon/samples/portal-fw/sunspotdemoportal http://localhost:8080/cocoon/samples/tutorial/home.html Antonio Gallardo El Lunes, 14 de Octubre de 2002 04:54, Hong Gia Dinh escribió: Hi Is there any other example for using action? because i still cant find any pratical and useful application of action??!! ;P cheers -Original Message- From: Sternath Elmar [mailto:[EMAIL PROTECTED]] Sent: lundi 14 octobre 2002 12:56 To: '[EMAIL PROTECTED]' Subject: AW: Action example In the cocoon docs there is a nice example how to create AND use actions: http://xml.apache.org/cocoon/userdocs/concepts/actions.html http://xml.apache.org/cocoon/userdocs/concepts/actions.html Inside an action, you put key/value pairs into a hashmap which you can then access inside the corresponding act/act tags in your pipeline. -Ursprüngliche Nachricht- Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 14. Oktober 2002 03:50 An: [EMAIL PROTECTED] Betreff: Action example Hi I am new to Cocoon, i use and find it pretty nice, and i find i like it but just one scope i cant figure out and not yet use it . it is 'action' application where can i find a simple example of using 'action'? because the cocoon specification mainly show how to write own action!! thanks Dinh - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TR: Cocoon and hsqldb
Thank you for all your replies! At the moment for the development phase, I use the JDBC driver provided by Microsoft. It is not very fast but it works. For information the driver is: Microsoft SQL Server 2000 Driver for JDBC. I use the URL: jdbc:microsoft:sqlserver:your_server:1433:DatabaseName=your_database;SelectMethod=cursor;User=username;Password=password You don't need to specify the JDBC driver (com.microsoft. ...); 1433 is the default port number. This URL works fine. Sylvain -Message d'origine- De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 11:26 á: [EMAIL PROTECTED]; ThÊvoz Sylvain, IT-DCS-CPS-CLI-DAR Objet: Re: Cocoon and hsqldb On Monday 14 October 2002 11:18, [EMAIL PROTECTED] wrote: . . . Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. . . . If you're courageous you can use the JDBC-ODBC bridge for this, but last time I checked it was fairly limited and funky (or do they have native JDBC now?). I don't have an URL handy but you should find it in the JDBC-ODBC samples. I've also used www.inetsoftware.de's excellent (commercial) drivers for MS SQL, you'd then use a JDBC URL like: jdbc:inetdae:your_server:1433?database=your_db A nice utility to test these URLs and JDBC drivers is DBVisualizer, http://www.minq.se/products/dbvis/info.html Hope this helps. -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XInclude db queries
Hello, I would like to use the XInclude transformer so that I can put my database queries into separate files (i.e. atomic queries that are reused elsewhere). Currently, the SQL Transformer does not transform the resulting XML [using Cocoon 2.0.3+Tomcat 4.1.12 under win2k]. Does anyone have any ideas? My files are shown below. XSP file: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:xi=http://www.w3.org/2001/XInclude; page xi:include href=atomic/select_all_requests.xml/ xi:include href=atomic/select_all_status.xml/ xi:include href=atomic/select_all_topics.xml/ xi:include href=atomic/select_all_staff.xml/ /page /xsp:page sitemap.xmap fragment: !-- view all requests -- map:match pattern=list_all2 map:generate src=xml/list_data.xsp type=serverpages/ map:transform type=xinclude/ map:transform type=sql map:parameter name=use-connection value=mysql_pool/ /map:transform !-- map:transform type=xslt src=stylesheets/list_all.xsl/ -- map:serialize type=html/ /map:match Cheers, Nic Hemley P.S. - i have tried using the CInclude transformer as well, with the same result... ** The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. ** - Please check that your question has not already been answered in the 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: Software Development magazine reviews a Cocoon book
Hi there I'm a member but still unable to track it down (in the prev_reviews.html )Plz could post the complete url - path Luca Morandini wrote: Folks, in the November issue of Software Developoment ( http://www.sdmagazine.com ) you may find a brief review of Cocoon: building XML applications by well-known posters Carsten Matthew: Cocoon scores another point :) Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Chuck Robert Amadi ICT Dept Systems Programmer. Rhaglenydd Systemau Adran ICT. Roll on Linux Power too deliver. Rholiwch ar Linux Y gallu i y Dosbarthu. Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away, and you have their shoes. - Please check that your question has not already been answered in the 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: XMLForm - VoiceXML
One more thing to mention. I am working on creating wizard2vxml.xsl and xmlform2vxml.xsl for VoiceXML 2.0 for XMLForm. Is it Necessary to have / in the field name (html input variable name) like : select name=/city this? Would this be fine? select name=city I am using bean not dom for XMLForm --- apurva zaveri [EMAIL PROTECTED] wrote: This is a serious problem about the use of XMLForm in VoiceXML. While experimenting with XMLForm to generate VoiceXML this a problem that I faced. Since in XMLForm all the name of the fields begins with / in HTML select name=/city is not a problem while in VXML field name=/city is an error. What can be done? -Apurva Zaveri __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML to PDF
I have achieved this using some work originally done by Nikolai Grigoriev at renderx.com. You may still be able to find some examples from their web site. If not come back, and I'll email some privately rather than clog up this list. Tony - Tony Goodwin [EMAIL PROTECTED] -Original Message- From: Marquardt, David [mailto:[EMAIL PROTECTED]] Sent: 11 October 2002 12:43 To: [EMAIL PROTECTED] Subject: XML to PDF Hello! I'm not really a very experienced programmer yet. So I hope you can help me. Problem: I have an article number (14.211.11.8846). The user shall now have the possibility to get a PDF-File (shown in the browser), in which he can see the article number AND the appropriate BARCODE. Is there any possibility to create a dynamic barcode in XML and to show it in PDF format via Cocoon? I'd really appreciate if you sent me a short example! Best regards, David Marquardt - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sunRise User Administration for Dummies
Thank you Matthew I've read it adn it seemed fairly understandable, sort of, except for the chapter on The authentication resource, which introduces this syntax: authentication uri=cocoon:raw://authenticationresource/ without explaining what raw is about, and give a practical example of how to actually utilize an authentication resource. cocoon:raw:// is an extension to the cocoon: protocol allowing you to decide whether you want any request parameters passed into the new pipeline you are calling. If you add :raw then no request parameters are passed. Anyone have an example of how to use MySQl as the authentication resource? An authentication is just a normal pipeline. So you could look at the example pipeline (which authenticates against a file) and then change that to add the sql transformer etc. Matthew -Original Message- From: Brandes, Wayne [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 2:05 PM To: 'Matthew Langham ' Subject: RE: sunRise User Administration for Dummies I've read it adn it seemed fairly understandable, sort of, except for the chapter on The authentication resource, which introduces this syntax: authentication uri=cocoon:raw://authenticationresource/ without explaining what raw is about, and give a practical example of how to actually utilize an authentication resource. Anyone have an example of how to use MySQl as the authentication resource? W -Original Message- From: Matthew Langham To: [EMAIL PROTECTED] Sent: 10/14/2002 2:36 AM Subject: RE: sunRise User Administration for Dummies Have you guys read the documentation? The authentication framework is explained in detail here: http://xml.apache.org/cocoon/developing/webapps/index.html Let me know if you have any additional questions. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 3:07 AM To: [EMAIL PROTECTED] Subject: Re: sunRise User Administration for Dummies I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. Hypersonic appears to only be used for sample applications not for authentication. so no users, roles or the association between the two is stored. I've found absolutely no JDBC code within the authenication/session pieces. My reason for looking into this was from a scalability point of view. I like Hypersonic DB for prototyping but not for serious production code. So i was trying to make sure this wasn't being used at all for authenication. The usage of resources allows you to use your own persistence mechanism, e.g. LDAP, database, XML file, etc. Also I was looking at the session management. My gripe is that it uses HttpSession and didn't make use of calling out to resources as the authentication manager did. If the user wanted to use HttpSession or the database or... let them do that in the called resource. So ideally there's a getProperties and a saveProperties resource (oh well). Also the roles is really confusing, as within the authentication manager it's not used at all as far as I can tell (it's probably used in the portal). There's a roleFilterTransformer that goes off of the J2EE role that you'd set for the web.xml and use the isUserInRole method. That's all the transformer does. it doesn't actually use the role from the authentication manager??? so these are unrelated pieces of code. So the role information that you return from the authenication resource appears to be left to the developer to make use of somehow, assuming they're not using Cocoon's portal offering. I'm fairly certain the portal uses the role but I've not looked at the portal component at all. hope that helps. md At 19:57 11/10/2002 -0800, you wrote: Hi Guys, Can anybody give me anything... I really don't have any clear idea on how to
RE: SunShine-InsertTransformer: encoding
Hi Carsten, I've tested both encoding and namespaces and they worked fine. Thanks very much for the quick fixes. Now, a couple of problems: 1. The namespace declarations are generated at each individual element rather than the root node. Of course it still works, but add to the file size and makes it less readable. I know I'm being picky, but the size issue could become a factor for larger files. 2. This is a strange one. I have a transformer which I need to run on the files written by SourceWritingTransformer, which needs to parse a date element. This was working fine with the old SourceWritingTransformer (outside of the fact that I had to manually stick in the namespaces), but for some reason my date transformer is now choking on the produced files. My date formats are -MM-dd and it appears that it only reads a part of the string, e.g., 2001-11 and then choke. What fixes it sometimes is if I open the file in XMLSpy and pretty-print XML text. To be honest with you, I haven't really done any proper testing to be able to isolate the problem, but if you have any ideas, it would be greatly appreciated. Cheers, -Alex --- Alex Romayev [EMAIL PROTECTED] wrote: Hi Carsten, Thanks for the quick fix, do you mean SourceWritingTransformer or InsertTransformer? Cheers, -Alex -Original Message- From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: SunShine-InsertTransformer: encoding problem Date: Fri, 11 Oct 2002 08:36:00 +0200 Hi Alex, I just checked in a fix for the namespace problem - now it works for me - could you please check - if everything is working for you, too. Thanks Carsten -Original Message- From: Alex Romayev [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: RE: SunShine-InsertTransformer: encoding problem --- Carsten Ziegeler [EMAIL PROTECTED] wrote: Alex Romayev wrote: This is currently hard coded into the transformer(!) which means you can't do anything against it... The InsertTransformer has been merged with the SourceWritingTransformer in 2.1-dev - the SourceWritingTransformer can be configured to what encoding should be used. I did a quick search for ISO-8859-1 in source files and nothing related to InsertTransformer came up. Is there a workaround you could suggest until 2.1 comes out? By the way, is there a rough timeline for this release? It's not directly in the transformer. The transformer uses a component called ResourceConnector and this does the saving. The connector uses org.apache.cocoon.xml.XMLUtils.defaultSerializeToXMLFormat to serialize the XML and there you will find this setting. A rough time line for 2.1 is end of this year, I guess +/- 1 or 2 months... The namespaces in content/news.xml. By the way, I've raised this problem with SourceWriting transformer as well and haven't seen it in the recent bug-list e-mail. I'm just thinking that if the two got merged, the problem might still be there. Can you give a complete test case for this? (Sitemap snippet plus the two xml files) - If you can provide this I will try to find the bug as soon as I have time. Carsten Sure, here is the sitemap: map:match pattern=admin/add-news map:act type=sunShine-session/ map:generate src=resources/sunshine/admin/add-news-item.xml/ map:transform type=sunShine/ map:transform type=sunShineInsert/ map:serialize type=xml/ /map:match And I've attached the two files (slightly simplified). Cheers, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Storing XML-documents
Hi, I would like to store XML-documents after transformations to disk (with a store key) in a way that I can access it later on with url like http://../cocoon/MyDir/Store?key=123456789abcdefg. Are there any tools to do this (transformation)? SourceFileWriter doesn't work because I need to save any kind of files and I need to save many documents with unique keys. Furthermore, I need the output of the pipeline (which saves the document) to be XML to the browser. I could write a new transformer, but if there are this kind of transformers, the better. Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I match cocoon-action-*
I want to be able to match cocoon-action-* and use the value {1}. Is this possible? Which matcher? Thanks -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Encoding problem with HTML-serializer and URLs
Hello, doing the following I do not get the expected results. The german umlaut with ISO-8859-1 converts magically to UTF-8. All encodings (html-/xml-serializers, xml-files, xsl-files) are set to ISO-8859-1 src.xml: html head ... a href=dest?selection=öö/ (ö = german umlaut for oe) ... /html Sitemap snippet: ... map:generate type=file src=src.xml / map:serialize type=html / ... Produced output: ... a href=dest?selection=%C3%B6ouml;/a ... If I click the link I see the same selection-string in the Browser URL. I did expect the destination dest restoring the same character with the same encoding. dest.xml ... dest Selection= /dest ... dest.xsl ... dest xsl:value-of select=dest / xsl:value-of select=$selection / /dest ... the sitemap ends with a xml-serializer Output -- destHi=an A with a tilde on top/dest This funny character is an ö (ouml;) in UTF-8. I did try some proposals like setting encoding in an action (request.setCharacterEncoding). Nothing works for me. Any ideas? I have to send selection-criteria for a database as URL-parameters. Regards Stefan -- Stefan Riegel TELIG GmbH Ziegelstraße 27 D-71063 Sindelfingen GERMANY Phone: +49-7031-79433-30 Fax:+49-7031-79433-43 Mobile: +49-174-4025031 - Please check that your question has not already been answered in the 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: Port 8180 works, port 80 with mod_jk doesn't ... and it feels so close
On Friday 11 October 2002 22:05, Geoff Howard wrote: P.S. Do you really mean 8180? FYI, Debian seems to do this. I work on that port too. Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help wanted: Cocoon documentation tracks!
(cross-posted to -dev and -user, we need you too!) IMHO adding tracks to the Cocoon documentation could make it much more useful, by providing several reading lists targeted to the various uses of Cocoon. Please see http://outerthought.net/wiki/Wiki.jsp?page=DocumentationTracksProject about how you can easily contribute to this. This needs input from different users/developers/documenters so that each track can be specific, short and useful. The page contains pointers to all the required info, so you don't need any previous knowledge of how the Wiki works to be able to contribute. Thanks in advance for any contributions! -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem with HTML-serializer and URLs
Try this in your sitemap: map:action name=set-character-encoding src=org.apache.cocoon.acting.SetCharacterEncodingAction/ and map:act type=set-character-encoding map:parameter name=form-encoding value=your-encoding/ /map:act --- Stefan Riegel [EMAIL PROTECTED] wrote: Hello, doing the following I do not get the expected results. The german umlaut with ISO-8859-1 converts magically to UTF-8. All encodings (html-/xml-serializers, xml-files, xsl-files) are set to ISO-8859-1 src.xml: html head ... a href=dest?selection=öö/ (ö = german umlaut for oe) ... /html Sitemap snippet: ... map:generate type=file src=src.xml / map:serialize type=html / ... Produced output: ... a href=dest?selection=%C3%B6ouml;/a ... If I click the link I see the same selection-string in the Browser URL. I did expect the destination dest restoring the same character with the same encoding. dest.xml ... dest Selection= /dest ... dest.xsl ... dest xsl:value-of select=dest / xsl:value-of select=$selection / /dest ... the sitemap ends with a xml-serializer Output -- destHi=an A with a tilde on top/dest This funny character is an ö (ouml;) in UTF-8. I did try some proposals like setting encoding in an action (request.setCharacterEncoding). Nothing works for me. Any ideas? I have to send selection-criteria for a database as URL-parameters. Regards Stefan -- Stefan Riegel TELIG GmbH Ziegelstraße 27 D-71063 Sindelfingen GERMANY Phone: +49-7031-79433-30 Fax:+49-7031-79433-43 Mobile: +49-174-4025031 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I match cocoon-action-*
Try using this: map:match type=request-parameter pattern=cocoon-action-* Antonio Gallardo El Lunes, 14 de Octubre de 2002 09:19, Bobby Mitchell escribió: I want to be able to match cocoon-action-* and use the value {1}. Is this possible? Which matcher? Thanks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I match cocoon-action-*
Antonio Gallardo Rivera wrote: Try using this: map:match type=request-parameter pattern=cocoon-action-* snip This example will match a request parameter with the name of cocoon-action-*, with the * as a literal character. I have tried all sorts of different matchers and haven't found one that works. Anybody else got any tips? -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the 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: [Q] Pipeline best practices
Or put the most likely pipelines to get hit first and the least likely last... That can be problematic if your most used pipelines are the generic matches. Eg, three special cases and 100 general cases: match=fee.foe match=fee.fie match=fee.fum match= fee.* Probably ok with three special cases, but what about 20, or 50...??? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I match cocoon-action-*
On 14.Oct.2002 -- 12:41 PM, Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: Try using this: map:match type=request-parameter pattern=cocoon-action-* snip This example will match a request parameter with the name of cocoon-action-*, with the * as a literal character. I have tried all sorts of different matchers and haven't found one that works. Anybody else got any tips? Put map:matcher logger=sitemap.matcher.next-page name=wildcard-req-param src=org.apache.cocoon.matching.WildcardRequestParameterMatcher/ in your sitemap and use that one. i.e. map:match type=wildcard-req-param pattern=cocoon-action-* Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Port 8180 works, port 80 with mod_jk doesn't ... and it feels so close
Interesting. Thanks. --- Kjetil Kjernsmo [EMAIL PROTECTED] wrote: On Friday 11 October 2002 22:05, Geoff Howard wrote: P.S. Do you really mean 8180? FYI, Debian seems to do this. I work on that port too. Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Storing XML-documents
Can't you generate the key with an action and pass it as sitemap parameter then use SourceWritingTransformer (CVS) ? What change would be needed for SourceWritingTransformer to be able to write any format out, and can it do so already ? -- website : www.babsfrance.fr.st ICQ : 135868405 - Original Message - From: simo kauranen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 14, 2002 5:17 PM Subject: Storing XML-documents Hi, I would like to store XML-documents after transformations to disk (with a store key) in a way that I can access it later on with url like http://../cocoon/MyDir/Store?key=123456789abcdefg. Are there any tools to do this (transformation)? SourceFileWriter doesn't work because I need to save any kind of files and I need to save many documents with unique keys. Furthermore, I need the output of the pipeline (which saves the document) to be XML to the browser. I could write a new transformer, but if there are this kind of transformers, the better. Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant __ Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I match cocoon-action-*
However, there is a RequestParameterExistsAction that could be used if you knew all possible values for * Chris. Here is what I have tried: map:act type=req-param-exists map:parameter name=parameter-name value=cocoon-action-*/ map:parameter name=parameters value=cocoon-action-*/ /map:act This particular instance matched cocoon-action-prev. I can see that I can use 'cocoon-action-prev' and obtain the value 'Prev', but I want the value 'prev', the last part of cocoon-action-*. Is this possible with this action? -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the 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: XMLForm - VoiceXML
apurva zaveri wrote: One more thing to mention. I am working on creating wizard2vxml.xsl and xmlform2vxml.xsl for VoiceXML 2.0 for XMLForm. Is it Necessary to have / in the field name (html input variable name) like : select name=/city this? If you do a transformation, why can't you strip the leading slash while transforming? J.Pietschmann - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple XSP Ordering Problem
Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - Please check that your question has not already been answered in the 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: [Q] Pipeline best practices
To be honest, I circumvented this whole issue by having as few pipelines as possible. Basically I use action or event id's that point to metadata files. The metadata files have all the information how to build a portal page, I then use WSUI (wsui.org) files to describe each of the portlets. So really I only have one pipeline for the portal (external pipeline), one for the portlets (internal pipeline), and some external pipelines to handle gifs, jpegs, css, and js. the sitemap has the additional authentication actions as well as some locale actions so it's a little more compicated than what I described above... So basically I match on a metadata id (using the request parameter matcher), rather than match URL's as I take it that most people do. For that matter I not really matching as my wildcard is really * and instead I'm using a request parameter action. If not found show a 404 message. So my sitemap is probably a 100-150 total lines even though it's serving up 500-600 dynamic pages composed of approximately 700 or so portlets. so it's quite lean and mean. MD In a message dated 10/14/2002 11:50:17 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Or put the most likely pipelines to get hit first and the least likely last... That can be problematic if your most used pipelines are the generic matches. Eg, three special cases and 100 general cases: match=fee.foe match=fee.fie match=fee.fum match= fee.* Probably ok with three special cases, but what about 20, or 50...??? - Please check that your question has not already been answered in the FAQ before posting. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I match cocoon-action-*
On 14.Oct.2002 -- 02:23 PM, Bobby Mitchell wrote: However, there is a RequestParameterExistsAction that could be used if you knew all possible values for * Here is what I have tried: map:act type=req-param-exists map:parameter name=parameter-name value=cocoon-action-*/ map:parameter name=parameters value=cocoon-action-*/ /map:act This particular instance matched cocoon-action-prev. I can see that I can use 'cocoon-action-prev' and obtain the value 'Prev', but I want the value 'prev', the last part of cocoon-action-*. Is this possible with this action? No, not as is, sorry. You would need to modify the action / write your own based on it. Shouldn't be much of a problem, though. Actually, the parameter-names parameter has no effect. If you would put another parameter name with a * into parameter-names, it would be required to have the same string match for * as cocoon-action- Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build Test Suite fails
List, C:\Java\xml-cocoon2build test Chugs along and then during the jUnit portion produces 51 errors culminating with this final one. If you want I can output the file into a txt file for verification. Final line of error output BUILD FAILED file:C:/Java/xml-cocoon2/build.xml:2027: Compile failed; see the compiler error output for details. Build Environment Windows XP SP-1 Java SDK 1.4.1 RCS Cocoon 2.1-HEAD I have been seeing this for the past 2 weeks. Cocoon still builds and installs the war file, just fine with Apache Tomcat 4.1.12. I just thought I'd bring it to the lists attention as a sort of SQA notification. -Marc J. Driftmeyer __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resource not found /
I am currently trying to make a weblog application I created the main association to my root URL. Right now I have it setup so that the welcome.xhtml is called whenever I hit my URL. What I want to happen is that i want my weblog sitemap to be called and the "foo.html" to be passed to my weblog sitemap. For example, if the URL is http://www.foo.com/ when I pass down http://www.foo.com/index.html, my weblog sitemap is invoked. The follow is the main sitemap entry I have created in the main sitemap and blows up. map:pipelines> map:pipeline> map:match pattern="/**"> map:mount uri-prefix="/" src="file:///usr/local/jakarta-tomcat4.1.10/webapps/cocoon/weblog/xml/sitemap.xmap"/> /map:match> /map:pipeline> The exception I get is: "Resource not found", The requested URI "/" was not found. I presume this has to do with my pattern and uri-prefix. I left the Cocoon book at work so I can't use it as a resource in this circumstance.
Re: XMLForm - VoiceXML
elements in XMLForm do not have to start with /. It is just used for clarity in the examples. You can try just city. What are the limitations for names of VXML forms? - Original Message - From: apurva zaveri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 13, 2002 9:08 PM Subject: XMLForm - VoiceXML This is a serious problem about the use of XMLForm in VoiceXML. While experimenting with XMLForm to generate VoiceXML this a problem that I faced. Since in XMLForm all the name of the fields begins with / in HTML select name=/city is not a problem while in VXML field name=/city is an error. What can be done? -Apurva Zaveri __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForm - VoiceXML
select name=city Would be just fine if your bean has a get/setCity() - Original Message - From: apurva zaveri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 14, 2002 7:59 AM Subject: Re: XMLForm - VoiceXML One more thing to mention. I am working on creating wizard2vxml.xsl and xmlform2vxml.xsl for VoiceXML 2.0 for XMLForm. Is it Necessary to have / in the field name (html input variable name) like : select name=/city this? Would this be fine? select name=city I am using bean not dom for XMLForm --- apurva zaveri [EMAIL PROTECTED] wrote: This is a serious problem about the use of XMLForm in VoiceXML. While experimenting with XMLForm to generate VoiceXML this a problem that I faced. Since in XMLForm all the name of the fields begins with / in HTML select name=/city is not a problem while in VXML field name=/city is an error. What can be done? -Apurva Zaveri __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Pipeline best practices
Can you share your pipeline. Maybe you organize your content in a much smarter way than I can imagine. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 14, 2002 3:59 PM Subject: Re: [Q] Pipeline best practices To be honest, I circumvented this whole issue by having as few pipelines as possible. Basically I use action or event id's that point to metadata files. The metadata files have all the information how to build a portal page, I then use WSUI (wsui.org) files to describe each of the portlets. So really I only have one pipeline for the portal (external pipeline), one for the portlets (internal pipeline), and some external pipelines to handle gifs, jpegs, css, and js. the sitemap has the additional authentication actions as well as some locale actions so it's a little more compicated than what I described above... So basically I match on a metadata id (using the request parameter matcher), rather than match URL's as I take it that most people do. For that matter I not really matching as my wildcard is really * and instead I'm using a request parameter action. If not found show a 404 message. So my sitemap is probably a 100-150 total lines even though it's serving up 500-600 dynamic pages composed of approximately 700 or so portlets. so it's quite lean and mean. MD In a message dated 10/14/2002 11:50:17 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Or put the most likely pipelines to get hit first and the least likely last... That can be problematic if your most used pipelines are the generic matches. Eg, three special cases and 100 general cases: match=fee.foe match=fee.fie match=fee.fum match= fee.* Probably ok with three special cases, but what about 20, or 50...??? - Please check that your question has not already been answered in the FAQ before posting. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://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: sunRise User Administration for Dummies
Hi Matthew, I have read the documentation a couple of times... this one http://xml.apache.org/cocoon/developing/webapps/sunrise.html But still, I cannot understand or apply anything on the User Administration... Can I use it with a database? Where would the user data be stored? Do I need to include the portal in my applications? Thanks again.. Richard === Have you guys read the documentation? The authentication framework is explained in detail here: http://xml.apache.org/cocoon/developing/webapps/index.html Let me know if you have any additional questions. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 3:07 AM To: [EMAIL PROTECTED] Subject: Re: sunRise User Administration for Dummies I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. - Please check that your question has not already been answered in the 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: Aggregation of xml in a directory
Hi Upon recommendation from this list, I initially used XPathDirectoryGenerator, but it was too slow for online use. Since I know when a file is changed, I call the following URL which produces one large XML file with the contents of all files in the directory. A FileChainingGenerator would probably be a better solution, but here I have a full Cocoon XML/XSLT solution. Not very elegant, but at least it works. If somebody comes up with something better, I'll be happy ;-) Cheers Martin The sitemap entry: !-- Update the (cached) list of all files and write it to the file allfiles.xml -- map:match pattern=allfiles-update map:generate type=directory src=docs !-- regexp to exclude all files that have characters after .xml -- !-- e.g. auto-save files -- map:parameter name=exclude value=.*\.xml.+/ /map:generate map:transform src=stylesheets/lib/aggregate.xsl/ map:transform type=xinclude/ map:transform src=stylesheets/lib/sourcewrite.xsl map:parameter name=sourcefile value=docs/allfiles.xml/ /map:transform map:transform type=write-source/ map:serialize type=xml/ /map:match The stylesheet aggregate.xsl (makes list of XLinks) ?xml version=1.0 encoding=utf-8? !-- === Make include tags for all files given in the input (from DirectoryGenerator) === -- xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:dir=http://apache.org/cocoon/directory/2.0; xmlns:xi=http://www.w3.org/2001/XInclude; version=1.0 xsl:output method=xml/ xsl:template match=/ allglaciers xsl:apply-templates/ /allglaciers /xsl:template xsl:template match=dir:directory xsl:for-each select=dir:file xsl:sort select=@name/ xi:include parse=xml href=cocoon:/{../@name}/{@name}#xpointer(/*) / /xsl:for-each /xsl:template /xsl:stylesheet The stylesheet sourcewrite.xsl (makes the sourcewriting tags) ?xml version=1.0 encoding=utf-8? !-- === Make source-writing tags === -- xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:param name=sourcefile/ xsl:output method=xml/ xsl:template match=/ source:write xmlns:source=http://apache.org/cocoon/source/1.0; source:sourcexsl:value-of select=$sourcefile//source:source source:fragment xsl:copy-of select=*/ /source:fragment /source:write /xsl:template /xsl:stylesheet Jeff Turner [EMAIL PROTECTED] writes: On Sat, Oct 12, 2002 at 02:08:16PM +0100, Alex McLintock wrote: Hi folks, I am trying to figure out how to get Cocoon to display all the xml files in a directory without being explicitly told each of their names in the sitemap. Have a look at the XPathDirectoryGenerator in the scratchpad. With it, you can generate a directory listing, with a node extracted from each file. Eg, I used it to extract description elements from a list of Ant scripts: http://aft.sourceforge.net/examples/ The relevant config was: map:sitemap .. map:components .. map:generators .. map:generator name=xpathdirectory src=org.apache.cocoon.generation.XPathDirectoryGenerator/ . !-- examples/index.html, listing all scripts -- map:match pattern=examples/index.xml map:generate type=xpathdirectory src=content/xdocs/examples#/project/description/ map:transform src=resources/stylesheets/antdirectory2document.xsl/ map:serialize type=xml/ /map:match --Jeff I guess I need a combination of the Directory Generator and the Aggregation tools. I am not too worried about the order of the files otherwise I would have to use an XML database - which I would like to avoid if possible. PS I have looked in the Langham/Ziegeler book but can't find anything useful. Do I need to write a DirectoryAggregation Generator in Java? perhaps others would find it useful too. Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Lüthi [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: sunRise User Administration for Dummies
Richard, this is the correct link to the _current_ version (in 2.1-dev): http://xml.apache.org/cocoon/developing/webapps/authentication.html Can I use it with a database? Yes - the authentication framework maps functions to pipelines. And as such a pipeline can do whatever _you_ want. Where would the user data be stored? Wherever _you_ want it to be. Do I need to include the portal in my applications? No. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 10:53 PM To: C2 Users Subject: RE: sunRise User Administration for Dummies Hi Matthew, I have read the documentation a couple of times... this one http://xml.apache.org/cocoon/developing/webapps/sunrise.html But still, I cannot understand or apply anything on the User Administration... Can I use it with a database? Where would the user data be stored? Do I need to include the portal in my applications? Thanks again.. Richard === Have you guys read the documentation? The authentication framework is explained in detail here: http://xml.apache.org/cocoon/developing/webapps/index.html Let me know if you have any additional questions. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 3:07 AM To: [EMAIL PROTECTED] Subject: Re: sunRise User Administration for Dummies I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. - Please check that your question has not already been answered in the 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]