Re: Wildcard Parameters in Sitemap
Hi! skip map:match pattern=protected/** map:act type=session-is-valid map:act type=session-validator map:parameter name=descriptor value=context://mmsc//descriptors/login-params.xml/ map:parameter name=validate value=username/ map:aggregate element=site map:part src=cocoon:/{1}-screen.xml element=screen/ map:part src=docs/lookandfeel.xml element=lookandfeel/ /map:aggregate map:transform type=i18n map:parameter name=src value=docs/translations.xml/ /map:transform map:serialize/ /map:act map:redirect-to session=true uri=login/ /map:act map:redirect-to session=false uri=startsession/ /map:match Question 2: In the above example what would be the difference in using a single '*' instead of '**', I tried both and they seem to do the same thing. Not exactly. ** goes down by the directory tree and * does not. E.g.: *.jpg matches all JPG files in the current directory **.jpg matches all JPG files in the current and sub-directories Question 3: In the above example the line: map:parameter name=descriptor value=context://mmsc//descriptors/login-params.xml/ The value string as to have the prefix :'//mmsc//' which is actually the root application name. I don't think it should have to appear anywhere in this sitemap. Why can't I say: map:parameter name=descriptor value=descriptors/login-params.xml/ or is there something like 'context:' that gives me 'context://mmsc//' ? There's something wrong. You don't need the application name when you are using context:// protocol. Try this: map:parameter name=descriptor value=context:///descriptors/login-params.xml/ I use a rather old version of C2 and this works for me too: map:parameter name=descriptor value=context://descriptors/login-params.xml/ 'descriptors' directory must be in the context root (in your case: %TOMCAT_HOME%\webapps\mmsc). Thanks, -- Mark Miller Web Architect Logica 819-3646 Best regards, Konstantin Piroumian Sr. Software engineer Protek Flagship LLC Phone: + 7 095 795 0520 (add. 1288) Fax: + 7 095 795 0525 E-mail: [EMAIL PROTECTED] http://www.protek.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp-formval how get results
Hi, my form's target goes to do-register2, and here is the sitemap. map:match pattern="do-register2"map:act type="form-validator" map:parameter name="descriptor" value="reg_desc.xml"/ map:parameter name="validate-set" value="registered"/ map:redirect-to uri="testdb"//map:act map:generate type="serverpages" src="error.xsp"/ map:transform src="dyn.xsl"/ map:serialize/ /map:match The errot.xsp has a namespace on formval: ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0" page Your error messages:xsp-formval:results/ /page/xsp:page But here is the error page 's source I get. page Your error messages: xsp-formval:results xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0"/ /page I guess either I haven't got the correct syntax, or my C2.0b1 doesn't have the latest class files for formval. Any clue, Thanks for answering. Cib France, Bordeaux, xml and gay pride.
[C2] mysql and auto-increment
hello, I have a mysql database with a table 'listes' which has a column 'id' auto increment. How can I get the last inserted row's id ? (except using select max(id) from ) thanks. C. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ang: [C2] mysql and auto-increment
Orgalist [EMAIL PROTECTED] 20.08.01 11:54 hello, I have a mysql database with a table 'listes' which has a column 'id' auto increment. How can I get the last inserted row's id ? (except using select max(id) from ) thanks. Just use the LAST_INSERT_ID() function. SELECT LAST_INSERT_ID() will return the latest inserted id. * This footnote confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. * - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Content aggregation and serializers
To my understanding, pipelines without serializers could be used in an aggregator without exposing url of the aggregate part to the outside world. In the nightly build from thursday, each pipeline (also the ones used in an aggregator) requires a serializer. Should I define internal pipelines in another way or was I on the right way? TIA, Michael Homeijer - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Content aggregation and serializers
Theres a better way - put all your 'internal' pipelines in one and mark it as internal... map:pipelines map:pipeline internal-only=true !-- Internal matches here... -- /map:pipeline map:pipeline !-- external matches here... -- /map:pipeline /map:pipelines -Original Message- From: Michael Homeijer [mailto:[EMAIL PROTECTED]] Sent: Monday, 20 August 2001 11:17 am To: '[EMAIL PROTECTED]' Subject: Content aggregation and serializers To my understanding, pipelines without serializers could be used in an aggregator without exposing url of the aggregate part to the outside world. In the nightly build from thursday, each pipeline (also the ones used in an aggregator) requires a serializer. Should I define internal pipelines in another way or was I on the right way? TIA, Michael Homeijer - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible to assign SQL query result to XSP variable?
Hi All, I'm trying to test for the presence of a key in an SQL table by performing an SQL query and having the result (or null) set in an XSP variable: parachecking for username = xsp:exprusername/xsp:expr/para String got_uname = dummy; esql:connection esql:poolmy_jdbc/esql:pool esql:execute-query esql:query select id from enduser where enduser.id = esql:parameterxsp:exprusername/xsp:expr/esql:parameter /esql:query esql:row-results got_uname = esql:get-string column=id/; /esql:row-results /esql:execute-query /esql:connection paragot value from db uname = xsp:exprgot_uname/xsp:expr/para where 'id' is the primary key column in the enduser table. Is this even a rational thing to try and do? When the page executes, the value for got_uname is dummy and the Java code created from the page does not attempt to assign the got_uname variable to the SQL result. Can somebody let me know if it is actually possible/reasonable to try and assign XSP variables from SQL queries? Thanks for your help, Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Possible to assign SQL query result to XSP variable?
Hi, try to wrap it in a xsp:logic block: ... esql:execute-query esql:row-results xsp:logic got_uname = esql:get-string column=id/; /xsp:logic /esql:row-results /esql:execute-query ... Max -Ursprüngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 20. August 2001 13:21 An: Cocoon-Users Betreff: Possible to assign SQL query result to XSP variable? Hi All, I'm trying to test for the presence of a key in an SQL table by performing an SQL query and having the result (or null) set in an XSP variable: parachecking for username = xsp:exprusername/xsp:expr/para String got_uname = dummy; esql:connection esql:poolmy_jdbc/esql:pool esql:execute-query esql:query select id from enduser where enduser.id = esql:parameterxsp:exprusername/xsp:expr/esql:parameter /esql:query esql:row-results got_uname = esql:get-string column=id/; /esql:row-results /esql:execute-query /esql:connection paragot value from db uname = xsp:exprgot_uname/xsp:expr/para where 'id' is the primary key column in the enduser table. Is this even a rational thing to try and do? When the page executes, the value for got_uname is dummy and the Java code created from the page does not attempt to assign the got_uname variable to the SQL result. Can somebody let me know if it is actually possible/reasonable to try and assign XSP variables from SQL queries? Thanks for your help, Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] mysql and auto-increment
doesn't work. send back 0 for each row there is in the table C. -Message d'origine- De : Alen Milkovic [mailto:[EMAIL PROTECTED]] Envoyé : lundi 20 août 2001 12:00 À : [EMAIL PROTECTED] Objet : Ang: [C2] mysql and auto-increment Orgalist [EMAIL PROTECTED] 20.08.01 11:54 hello, I have a mysql database with a table 'listes' which has a column 'id' auto increment. How can I get the last inserted row's id ? (except using select max(id) from ) thanks. Just use the LAST_INSERT_ID() function. SELECT LAST_INSERT_ID() will return the latest inserted id. * This footnote confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. * - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dreaded: Sitemap handler's sitemap is not available
Hi Ted., 1. By restart, I mean, tomcat. Since cocoon is webapp which lives inside a servlet engine, there is no restart for cocoon by itself.. 2. The sitemap is recompiled at the startup automatically unless you use something like pre-compile stuff(forget it for now).. 3. Earlier, you or someone mentioned about FAQ..but again IMHO, the sitemap could have compile problems 'coz of zillion thingies...so there is no one particular stuff to blame... 4. You may have posted the log before..sorry if i missed it...if ur problem persists, please send ME zip log and i shall have look at it.. Cheers --- Ted Mead [EMAIL PROTECTED] wrote: Srini, Thanks for your thoughts. May I ask some clarifying questions? Regarding Sitemap... is there instructions on how to compile Sitemap on C2 startup? I am not sure I know what do do here? This could be the watershed event. When you say restart the server... I assume you mean Tomcat or Cocoon? If you mean Cocoon, how do you do that? Incidently, I sent log excerpts doing exactly what you said. Did they not have useful information? Thanks! Ted -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 5:20 PM To: [EMAIL PROTECTED] Subject: Re: Dreaded: Sitemap handler's sitemap is not available Hi., I hate to say search the mail archive but here is simple explanation... 1. Sitemap is one BIG java program to be compiled on c2 startup... 2. Any problem resulting from sitemap compilation could result in sitemap being NOT compiled and hence component for hint: sitemap not found.. 3. Now the reasons could range to anything and everything.. 4. Please note that JDBC problem reported is little mis-leading as this does NOT pose any threat to sitemap compilation and hence can be ignored for now.. 5. Please delete the c2 log, restart the server, try to access the main page ONLY once...stop the server...read the log from BOTTOM UP... 6. 95% of the time, you get the clue..but if still same..then zip the log and post it here... 7. As i hate to suggest, but you may want to search mailing list archive.. good luck = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] XSLT-process 2.1 available
Thank you Ovidiu, I think this is an XSL WYSIWYG editor we all are looking for. Am I correct? Viktor - Original Message - From: Ovidiu Predescu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:01 AM Subject: [ANNOUNCE] XSLT-process 2.1 available What's new? === This release adds few improvements to the previous release: - the ability to process the result of an XSLT transformation through the Apache FOP processor. - initial integration with the DocBook-XSL project; HTML and PDF generation and viewing from within Emacs of DocBook documents is supported. - support for specifying proxies and additional arguments to the supporting Java VM. What is it? === XSLT-process is a minor mode for GNU Emacs/XEmacs which transforms it into a powerful editor with XSLT processing and debugging capabilities. With this mode you can: - run an XSLT processor on the Emacs buffer you edit, and view the results either in another Emacs buffer or in a browser. - run an XSLT processor in debug mode and view what happens during the XSLT transformation. You can set breakpoints, run step by step into your stylesheet, view global and local XSLT variables and many more. In this mode you effectively use GNU Emacs/XEmacs as an XSLT debugger. - when used with the DocBook-XSL package, GNU Emacs/XEmacs becomes a powerful DocBook processing system. Currently the Saxon and Xalan Java XSLT processors, and Apache FOP are supported, and the mode comes out of the box configured to use them. The package has been tested on XEmacs, versions 21.1.14 and 21.4.3, and GNU Emacs 20.7.1, under both Linux and Windows 2000. The package is free software and is distributed under GPL. The home page of XSLT-process is located at: http://xslt-process.sourceforge.net/ Enjoy, -- Ovidiu Predescu [EMAIL PROTECTED] http://orion.nsr.hp.com/ (inside HP's firewall only) http://sourceforge.net/users/ovidiu/ (my SourceForge page) http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Possible to assign SQL query result to XSP variable?
Thanks Max, It was that and the fact that I'd forgotton the esql:results around the esql:row-results. This code works for retrieving a value or null if it does not exist in the DB: parachecking for username = xsp:exprusername/xsp:expr/para String got_uname = dummy; esql:connection esql:poollh_jdbc/esql:pool esql:execute-query esql:query select id from enduser where enduser.id = esql:parameterxsp:exprusername/xsp:expr/esql:parameter /esql:query esql:results esql:row-results FOUND RESULTS xsp:logic got_uname = esql:get-string column=id/; /xsp:logic /esql:row-results /esql:results esql:no-results NO RESULTS xsp:logic got_uname = null; /xsp:logic /esql:no-results /esql:execute-query /esql:connection paragot value from db uname = xsp:exprgot_uname/xsp:expr/para Best Regards, Chris -Original Message- From: Max Larsson [mailto:[EMAIL PROTECTED]] Sent: 20 August 2001 12:24 To: [EMAIL PROTECTED] Subject: AW: Possible to assign SQL query result to XSP variable? Hi, try to wrap it in a xsp:logic block: ... esql:execute-query esql:row-results xsp:logic got_uname = esql:get-string column=id/; /xsp:logic /esql:row-results /esql:execute-query ... Max -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 20. August 2001 13:21 An: Cocoon-Users Betreff: Possible to assign SQL query result to XSP variable? Hi All, I'm trying to test for the presence of a key in an SQL table by performing an SQL query and having the result (or null) set in an XSP variable: parachecking for username = xsp:exprusername/xsp:expr/para String got_uname = dummy; esql:connection esql:poolmy_jdbc/esql:pool esql:execute-query esql:query select id from enduser where enduser.id = esql:parameterxsp:exprusername/xsp:expr/esql:parameter /esql:query esql:row-results got_uname = esql:get-string column=id/; /esql:row-results /esql:execute-query /esql:connection paragot value from db uname = xsp:exprgot_uname/xsp:expr/para where 'id' is the primary key column in the enduser table. Is this even a rational thing to try and do? When the page executes, the value for got_uname is dummy and the Java code created from the page does not attempt to assign the got_uname variable to the SQL result. Can somebody let me know if it is actually possible/reasonable to try and assign XSP variables from SQL queries? Thanks for your help, Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP: Type and Identifier errors
Bobo, the line numbers actually refer to the generated Java code, which is in a repository directory as defined by your cocoon.properties file. I think your first error here is missing semicolons on the lines String fname = request.getParameter(fname) ...//some more request.getParameter() String email = request.getParameter(email) -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: XSP: Type and Identifier errors Hello, I am receiving this error: java.lang.Exception: XSP Java Compiler: Compilation failed for _newUser.java 72: Type expected. Class.forName(org.gjt.mm.mysql.Driver).newInstance(); ^ 240: Identifier expected. xspParentNode = xspCurrentNode; -^ The ligne 72: points to isIDduplicate() function while the line 240 points to if-else. I am using cocoon 1.8.2 and Tomcat3.2.1 Here is my code (this program is for form handling): ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet href=../../userFactory.xsl type=text/xsl? xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xsp:structure xsp:include java.lang.*/xsp:include xsp:include java.sql.*/xsp:include xsp:includejava.sql.Date/xsp:include xsp:include java.sql.DriverManager/xsp:include xsp:include java.sql.SQLException/xsp:include xsp:includejava.sql.Connection/xsp:include xsp:includejava.sql.ResultSet/xsp:include xsp:includejava.sql.Statement/xsp:include /xsp:structure xsp:logic String fname = request.getParameter(fname) ...//some more request.getParameter() String email = request.getParameter(email) Class.forName(org.gjt.mm.mysql.Driver).newInstance(); String serverName =request.getServerName(); String URL=jdbc:mysql://+serverName+/ILSDB?user=Bobopassword=BoboPassword; Connection con = DriverManager.getConnection(URL, , ); Statement stmt1= con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB LE); Statement stmt2= con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB LE); snip - I need your help. Thank you. Bobo, - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestParameters for HTMLGernerator
Hi, Is there a way to pass the request parameters from the cocoon sitemap through to the HTMLGernerator ? At the moment it seems only to support the 'xpath'-parameter and does nothing with the rest of the parameters. Best Regards, Gerd - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Internal redirects
I am working an a mechanism to have annotated pages in my web portal (like the pages in the pet store). The pipeline to get this working looks like this: map:match pattern=annotated/** map:aggregate element=page map:part src=cocoon:/{1} element=original / map:part src=cocoon:/annotation/{1}.xml element=annotation / /map:aggregate map:transform src=docs/annotation.xsl/ map:serialize/ /map:match This way, when i have a page, say portal, cocoon loads the portal page and it loads the annotation page. The problem I have that all my images in my portal page, now refer to annotated/image.gif instead of image.gif. For normal images until now I duplicated the pipeline, but I also have generated images (svg2jpeg). And i'd like to have an internal redirect for this, something like: map:match pattern=annotated/**.jpeg map:redirect-to uri=cocoon:/{1}.jpeg/ /map:match Is this possible? TIA, Michael Homeijer - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RegExp Matcher not working?
Hi., I am not sure how/what way you are testing this but the regexp stuff is working for me... Here is how i tested it on protected sub sitemap.. map:match pattern=[a-z]+2 map:generate src=docs/login2.xml/ map:transform src=stylesheets/simple-page2html.xsl/ map:serialize/ /map:match and following urls result in login2 http://localhost:8080/protected/l2 http://localhost:8080/protected/log2 http://localhost:8080/protected/login2 and following url resulted in normal login(as per protected example) http://localhost:8080/protected/login Now, please note that i dont have cocoon in url thats 'coz i made the cocoon as main app in tomcat..and we can neglect that factor.. From this, it defintely looks like the regexp is WORKING... --- Max Larsson [EMAIL PROTECTED] wrote: Hi, if i use the default matcher wildcard the sitemap part below works fine. But if i change the default matcher from wildcard to regexp it does not work. Everthing is match equal as 'login'. Does anyone knows why??? Max map:pipeline map:match pattern=login map:generate type=serverpages src=login/login.xsp/ map:serialize/ /map:match map:match pattern=do-login map:act set=login map:generate type=serverpages src=login/{login_page}.xsp/ map:transform src=stylesheets/page2html.xsl/ map:serialize/ /map:act /map:match /map:pipeline - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in.groups.yahoo.com. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RegExp Matcher not working?
Hi., I am not sure how/what way you are testing this but the regexp stuff is working for me... Here is how i tested it on protected sub sitemap.. map:match pattern=[a-z]+2 map:generate src=docs/login2.xml/ map:transform src=stylesheets/simple-page2html.xsl/ map:serialize/ /map:match and following urls result in login2 http://localhost:8080/protected/l2 http://localhost:8080/protected/log2 http://localhost:8080/protected/login2 and following url resulted in normal login(as per protected example) http://localhost:8080/protected/login Now, please note that i dont have cocoon in url thats 'coz i made the cocoon as main app in tomcat..and we can neglect that factor.. From this, it defintely looks like the regexp is WORKING... --- Max Larsson [EMAIL PROTECTED] wrote: Hi, if i use the default matcher wildcard the sitemap part below works fine. But if i change the default matcher from wildcard to regexp it does not work. Everthing is match equal as 'login'. Does anyone knows why??? Max map:pipeline map:match pattern=login map:generate type=serverpages src=login/login.xsp/ map:serialize/ /map:match map:match pattern=do-login map:act set=login map:generate type=serverpages src=login/{login_page}.xsp/ map:transform src=stylesheets/page2html.xsl/ map:serialize/ /map:act /map:match /map:pipeline - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MS Word serializer
Can anyone tell me if there are any plans to write an MS Word serializer? I want to conver XML to Word, not Word to XML. You have two alternatives (something I had to do in a previous job): 1) Learn MS Word XP's XML markup (probably the best solution) Excuse me, but is there *anything* in Word XP that will facilitate importing XML? I haven't noticed such a feature. I think the question was how to go from XML to Word, and I don't believe there is anything in Word XP that does this. Of course you could code VBA to write out the Word document, mapping XML context to Word styles, but that would be no different with the new version of Word. Or are you suggesting something else? I apologize for persisting the off-topic subject. Max - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp-formval:results exception '}' expected
Sorry, I'm an idiot, I've been searching docs in my c2.0b1, forgetting I had just upgraded to b2. *There* is the documentation. Sorry again. Cib France, Bordeaux, xml and gay pride. - Original Message - From: cib [EMAIL PROTECTED] To: Cocoon User Mail List [EMAIL PROTECTED] Sent: Monday, August 20, 2001 10:39 PM Subject: xsp-formval:results exception '}' expected Hi; here is what I get: org.apache.cocoon.components.language.LanguageException: Error compiling error_xsp: Line 154, column 91: '}' expected. ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-formval=http://apche.org/xsp/form-validator/2.0; page les messages d'erreur. xsp-formval:results /xsp-formval:results /page /xsp:page I guess my syntax is not correct. If someone could help me. I've read the Patch text from Christian Haul , the only text I could find for this (appart from the apidoc on Formvalidation, same author), but nothing on the exact syntax to use with xsp-formval:results. Thanks Cib France, Bordeaux, xml and gay pride. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
esql, get-xml and xsp:logic
I've been using esql:get-xml column=COLNAME root=fragment/ and it's been working perfectly. But, I've found a problem when trying to set a String inside an xsp:logic tag to that. Make any sense? Here's the code that works... esql:row-results TEST: esql:get-xml column=mycol root=fragment/ /esql:row-results But, I want to set a string to that value.. e.g. xsp:logic String myval = esql:get-xml column=mycol root=fragment/; /xsp:logic Doing this I get the following error: Incompatible type for =. Can't convert org.w3c.dom.Element to java.lang.String. Then I tried this (which ALMOST works): xsp:logic String myval = + esql:get-xml column=mycol root=fragment/; /xsp:logic Unfortunately - this only gives me the string [fragment: null]. Does this have something to do with the order that the XSP and XSL is processed??? Thanks, - Brent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: esql, get-xml and xsp:logic
Take a look at the generate Java class behind the XSP page - and you will see the problem. get-xml does not an xml string, but a xml dom element object (or sax events in cocoon 2). In your second case there was just the .toString()-Method of org.w3c.dom.Element called. I can see not much sense in putting the xml fragment in a string (i think you had some misleading thinking here), but if you really need it, just use get-string instead of get-xml, this returns the plain text of the column. Stefan -Ursprüngliche Nachricht- Von: Brent L Johnson [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 21. August 2001 01:16 An: Cocoon-Users Betreff: esql, get-xml and xsp:logic I've been using esql:get-xml column=COLNAME root=fragment/ and it's been working perfectly. But, I've found a problem when trying to set a String inside an xsp:logic tag to that. Make any sense? Here's the code that works... esql:row-results TEST: esql:get-xml column=mycol root=fragment/ /esql:row-results But, I want to set a string to that value.. e.g. xsp:logic String myval = esql:get-xml column=mycol root=fragment/; /xsp:logic Doing this I get the following error: Incompatible type for =. Can't convert org.w3c.dom.Element to java.lang.String. Then I tried this (which ALMOST works): xsp:logic String myval = + esql:get-xml column=mycol root=fragment/; /xsp:logic Unfortunately - this only gives me the string [fragment: null]. Does this have something to do with the order that the XSP and XSL is processed??? Thanks, - Brent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Live Sites powered by Apache Cocoon 1.X
http://www.efonds24.de/ - a (german) closed funds counselling application and catalog - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]