RE: Real dumb question - how to concatenate XML files
I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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: cocoon actions
From: Jim [mailto:[EMAIL PROTECTED]] Hi, I'm new to cocoon, and I'm having a few difficulties with actions. I've tried writing the sample HelloWorld action, but I'm not sure what to do with it. I'm able to compile it, but where do I put it? I modified the code slightly - making it part of a package I call 'Security' and commenting out the body of the method (except for a return null;). I'm trying to make a skeleton I can work from. (And Security-related actions are what I'll be working on to start) Change it to return an empty Map: return new HashMap(); I put it in the cocoon/WEB-INF/classes/Security subdirectory, and I added the following to WEB-INF/web.xml: init-param param-nameAddons/param-name param-valueWEB-INF/classes/param-name /init-param You don't need to do it. If you put your compiled classes into the WEB-INF/classes or your JAR-files into the WEB-INF/lib then the servlet container will load those classes automatically. Of course, I also modified my sitemap appropriately: map:actions map:action name=form src=org.apache.cocoon.acting.FormValidatorAction/ map:action name=login src=Security.LoginAction/ /map:actions ... map:action-sets map:action-set name=login-actions map:act type=form/ map:act type=login/ /map:action-set /map:action-sets If it helps, here is a portion of the error I'm getting: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 602, column 19: variable action_set_login not found in class org.apache.cocoon.www.inv.sitemap_xmap Line 602, column 36: method actions Check the source of your sitemap. Look in tomcat/work/ directory for sitemap_xmap.java. Konstantin Thanks in advance, Jim Vlasblom - 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: Real dumb question - how to concatenate XML files
yes, this is what was in the FAQ, but I had no idea of what the format of the XML should be. Hahn Kurt (CHA) wrote: I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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: Real dumb question - how to concatenate XML files
Why didn't cinclude work for you? It allows you to aggregate the 3 different XML files into one and then you can apply the stylesheet. 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: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 8:38 AM To: '[EMAIL PROTECTED]' Subject: RE: Real dumb question - how to concatenate XML files I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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: Real dumb question - how to concatenate XML files
Well, I don't know if they need to be in any special format, AFAIK a well-formed XML is just what you need. Have a look at the sitemap of your Cocoon installation, there's an example of how aggregation works in practice. -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 08:44 À : [EMAIL PROTECTED] Objet : Re: Real dumb question - how to concatenate XML files yes, this is what was in the FAQ, but I had no idea of what the format of the XML should be. Hahn Kurt (CHA) wrote: I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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] - 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: Real dumb question - how to concatenate XML files
You don't know what is the format of your source XML files? Or you don't know how to declare aggregation in sitemap? Or something else? If you don't know what is the content of your XML files then how would you use an XSLT stylesheet to render them? Konstantin - Original Message - From: daniel robinson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 10:43 AM Subject: Re: Real dumb question - how to concatenate XML files yes, this is what was in the FAQ, but I had no idea of what the format of the XML should be. Hahn Kurt (CHA) wrote: I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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] - 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: renewed Newbie Question
Hi, Well then I should make another list ;-) A. Backup your cocoon + tomcat (copy it in a zip or something) B. Shutdown tomcat C. Delete ROOT (in webapps of tomcat) D. rename cocoon to ROOT E. Open your sitemap and mount the directory of the user (look in the example sitemap how to do that) F. Create a sitemap for that subdirectory. G. Start tomcat Instead of E F you can also do (in the sitemap.xmap of cocoon) map:match pattern=**.xml map:generate src = {1}.xml/ !--map:transform src=whatever/-- map:serialize type = xml/ /map:match the wildcard will fill the {1}. When you call http://localhost/~user/hello-page.xml {1} will contain ~user/hello-page.xml Cocoon will for example load: C:\tomcat4\webapps\ROOT\~user\hello-page.xml If you add a tranformation each xml matching the wildcard will be transformed... ps. to change the port goto server.xml of tomcat and search for org.apache.catalina.connector.http.HttpConnector. Change port 8080 to 80. -Oorspronkelijk bericht- Van: Jens Nie [mailto:[EMAIL PROTECTED]] Verzonden: maandag 27 mei 2002 21:42 Aan: [EMAIL PROTECTED] Onderwerp: Re: renewed Newbie Question Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin): If I understand you correctly you want users to be able to place xml in cocoon that is processed by cocoon. Well: 1. Create a subdirectory in ../cocoon/ 2. Mount that directory (in the sitemap.xmap of /cocoon/) 3. In that subdirectory you place a sitemap.xmap 4. Per user make a directory and give them access. 5. If you want them to be able to run xsp you add the following to the sitemap: map:match pattern=apidoc/**.xsp map:generate type = serverpages src = docs/{1}.xsp/ !--map:transform src=whatever/-- map:serialize type = html/ /map:match Well at first thank you for that suggestion. But i think it does not exactly match what i wan't to do using cocoon. See the following example: http://localhost:8080/cocoon/samples/hello/hello-page.xml gives me the simplest xml-to html transform possible. That's taken from the live samples section of cocoon, and is working pretty well. As far as i understand the whole thing, this works because tomcat running at localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path and it's an xml-document. What I wan't to have working is the same thing with the following url: http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml or even better http://localhost/~user/hello-page.xml that is really all that would be satisfying (at the moment of course) Thanks for any help jneines -- Dipl.-Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - 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: Real dumb question - how to concatenate XML files
Is there a working example somewhere - I don't know why it didn't work, I used it per the an example I found with an XML file and and XSL file and that worked, when I tried to modify it to pull together the other XML file it didn't work. Matthew Langham wrote: Why didn't cinclude work for you? It allows you to aggregate the 3 different XML files into one and then you can apply the stylesheet. 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: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 8:38 AM To: '[EMAIL PROTECTED]' Subject: RE: Real dumb question - how to concatenate XML files I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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] - 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]
[C2] Using RequestSelector for redirect
Hello! i want to setup a redirect to a startpage when 2 request parameters are not set and one request parameter is set (and of a certain string-length). how can i use the map:select component to check for this request parameters? my problem is the use of map:when and map:parameter i don't understand to use in my situation... ;o) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13055/pgp0.pgp Description: PGP signature
Re: cannot deploy on JBoss 3
Am Montag, 27. Mai 2002 12:14 schrieben Sie: . yes html-mail is not a good idea - anyway an answer: JBoss3RCx has introduced a new Classloader mechanism. This influenced loading url protocol handler classes. So DirContextHandler of Catalina will not be loaded and the url protocol jndi: is not working. (in fact it is more complicated...) Its not visible in stacktrace in your mail, but it seems to be this problem. There should be an Malformed url exception: could not load url handler for protocol jndi: NOTE: this is true for embedded Catalina only. What i done is a hack. it registers the missing protocol in embedded catalina. it does some other hackisch stuff... Appended is a patch against rc3 code of jboss3. you have to compile this beast - its not an easy job for normal cocoon users. I sent this patch to jboss too. maybe somebody reviews that and its in the next release. Request-ID is 561405. Claas Thiele -- Technological Strategy VIRBUS AG Fon +49(0)341-979-7430 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de diff -rbBNU 3 /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/build.xml jboss-all3.0.0RC2/catalina/build.xml --- /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/build.xml Fri Apr 26 18:37:33 2002 +++ jboss-all3.0.0RC2/catalina/build.xml Tue May 14 14:02:33 2002 @@ -146,6 +146,7 @@ path id=tomcat.server.classpath pathelement path=${tomcat.server.root}/bin/bootstrap.jar/ pathelement path=${tomcat.server.root}/common/lib/servlet.jar/ + pathelement path=${tomcat.server.root}/common/lib/naming-resources.jar/ pathelement path=${tomcat.server.root}/server/lib/catalina.jar/ pathelement path=${tomcat.server.root}/server/lib/warp.jar/ /path diff -rbBNU 3 /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java jboss-all3.0.0RC2/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java --- /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java Fri Apr 26 08:31:06 2002 +++ jboss-all3.0.0RC2/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSX.java Tue May 14 16:51:58 2002 @@ -94,6 +94,8 @@ */ private boolean useParentDelegation = true; + private String contextDir = null; + public EmbeddedCatalinaServiceSX() { } @@ -146,10 +148,30 @@ this.extendedConfig = config; } + public String getContextDir() + { + return this.contextDir; + } + public void setContextDir(String contextDir) + { + this.contextDir = contextDir; + } + public void startService() throws Exception { super.startService(); + //registerurl handler for jndi protocol + String handlerPkgs = System.getProperty(java.protocol.handler.pkgs); + if (handlerPkgs != null) { + handlerPkgs += |org.jboss.web.catalina.net; + } + else { + handlerPkgs = org.jboss.web.catalina.net; + } + System.setProperty(java.protocol.handler.pkgs, handlerPkgs); + + // Start create the embeded catalina container but don't let it overwrite the thread class loader ClassLoader cl = Thread.currentThread().getContextClassLoader(); ClassLoader parent = cl; @@ -218,7 +240,12 @@ } log.info(deploy, ctxPath=+ctxPath+, warUrl=+warUrl); - URL url = new URL(warUrl); + URL url = null; + if (contextDir != null) { + File cDir = new File(contextDir); + url = cDir.toURL(); + } else { + url = new URL(warUrl); // Catalina needs a war in a dir so extract the nested war if( url.getProtocol().equals(njar) ) { @@ -234,6 +261,7 @@ warStream.close(); log.debug(Unpacked war into dir: +warDir); url = warDir.toURL(); + } } createWebContext(appInfo, url, webAppParser); log.debug(Initialized: +appInfo); diff -rbBNU 3 /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSXMBean.java jboss-all3.0.0RC2/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSXMBean.java --- /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSXMBean.java Fri Apr 26 08:31:06 2002 +++ jboss-all3.0.0RC2/catalina/src/main/org/jboss/web/catalina/EmbeddedCatalinaServiceSXMBean.java Tue May 14 16:49:16 2002 @@ -53,4 +53,7 @@ rather than the servlet 2.3 load from war first model */ public void setJava2ClassLoadingCompliance(boolean compliance); + +public void setContextDir(String contextDir); +public String getContextDir(); } diff -rbBNU 3 /usr/local/devres/JBOSS/jboss-3.0.0RC2/src/jboss-all/catalina/src/main/org/jboss/web/catalina/net/jndi/Handler.java
RE: Real dumb question - how to concatenate XML files
Everything you need is here: http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html If you still can't get your example to work then please post more specific information on exactly what you are doing. 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: daniel robinson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 10:08 AM To: [EMAIL PROTECTED] Subject: Re: Real dumb question - how to concatenate XML files Is there a working example somewhere - I don't know why it didn't work, I used it per the an example I found with an XML file and and XSL file and that worked, when I tried to modify it to pull together the other XML file it didn't work. Matthew Langham wrote: Why didn't cinclude work for you? It allows you to aggregate the 3 different XML files into one and then you can apply the stylesheet. 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: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 8:38 AM To: '[EMAIL PROTECTED]' Subject: RE: Real dumb question - how to concatenate XML files I don't know about cInclude, but maybe aggregation would meet your needs. Did you have a look at it? K -Message d'origine- De : daniel robinson [mailto:[EMAIL PROTECTED]] Envoyé : mardi, 28. mai 2002 07:37 À : [EMAIL PROTECTED] Objet : Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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] - 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]
html2jpg
Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? thanks, Edgar - 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: html2jpg
SVG I guess Graaf, Edgar de (fin) wrote: Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? thanks, Edgar - 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: html2jpg
From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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]
C2 Performance under high load
Hi Cocooners, preparing for a livesite build with C2 I'm looking for tips that improve C2's (besides external help from proxys and load balancers) performance under high load, say 1500 - 2000 concurrent users. Any experiences here? Regards, Michael - 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]
Hosting
Can anyone recommend a web hosting service for a small commercial concern inthe UK wanting to use Cocoon?
RE: [C2] Using RequestSelector for redirect
Perhaps could you find some help on this page : http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html Nicolas !! -Message d'origine- De : Christian Joelly [mailto:[EMAIL PROTECTED]] Envoyé : mardi 28 mai 2002 10:18 À : Cocoon ML Objet : [C2] Using RequestSelector for redirect Hello! i want to setup a redirect to a startpage when 2 request parameters are not set and one request parameter is set (and of a certain string-length). how can i use the map:select component to check for this request parameters? my problem is the use of map:when and map:parameter i don't understand to use in my situation... ;o) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz - 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] Using RequestSelector for redirect
Hello! On Tue, May 28, 2002 at 10:23:17AM +0200, zze-STIENNE Nicolas FTRD/DMI/CAE wrote: Perhaps could you find some help on this page : http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html nope, this page describes using requestselector in gerneral. thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13064/pgp0.pgp Description: PGP signature
Re: Hosting
webappcabaret.com have some good services, I use them myself. |+--- || Doug Gilbert | || doug.gilbert@notting| || ham.ac.uk | || | || 28/05/2002 10:05 | || Please respond to| || cocoon-users | || | |+--- | || | To: [EMAIL PROTECTED] | | cc: (bcc: Martin Crozier/ETECH) | | Subject: Hosting | | Can anyone recommend a web hosting service for a small commercial concern inthe UK wanting to use Cocoon? Can anyone recommend a web hosting service for a small commercial concern inthe UK wanting to use Cocoon? - 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: html2jpg
Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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: html2jpg
From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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] Using RequestSelector for redirect
I'm not familiar with the RequestSelector but an Action can do it for you. Regards Reinhard -Original Message- From: Christian Joelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 11:22 AM To: [EMAIL PROTECTED] Subject: Re: [C2] Using RequestSelector for redirect Hello! On Tue, May 28, 2002 at 10:23:17AM +0200, zze-STIENNE Nicolas FTRD/DMI/CAE wrote: Perhaps could you find some help on this page : http://www.cocooncenter.de/cc/documents/resources/request-params/ requestselector.html nope, this page describes using requestselector in gerneral. thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz - 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: html2jpg
Would it not be handy to get a image of for example www.cnn.com. I think so... But unfortunately not everything is well formed (x)html -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 11:44 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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]
It works---Re: Cocoon on BEA Weblogic6.1 SP2
Hi, There are quite a few things you have to do to make cocoon work on bea. 1. Remove dots from jars filenames of cocoon. (lib\*.jar) 2. Remove manifest files from the above jars or i guess there is a patch available from BEA to resolve this problem. 3. Copy cocoon webapp (not cocoon.war but the cocoon directory) to bea (%BEA_HOME%\wlserver6.1\config\mydomain\applications). 4. Edit %BEA_HOME%\wlserver6.1\config\mydomain\config.xml to include the following lines. Application Deployed=true Name=cocoon Path=.\config\mydomain\applications WebAppComponent Name=cocoon Targets=myserver URI=cocoon/ /Application 5. Make sure that you have parameter transformer-factory for the xslt-processor in cocoon.xconf---It looks like as follows xslt-processor class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=core.xslt-processor parameter name=use-store value=true/ parameter name=incremental-processing value=true/ parameter name=transformer-factory value=org.apache.xalan.processor.TransformerFactoryImpl/ /xslt-processor 6. Now start bea. It should work. 7. There is one more hitch. If you want to use sub-sitemaps then the pipeline should be as follows--- map:pipeline map:match pattern=documents/** map:mount uri-prefix=/documents src=documentation/ check-reload=yes/ /map:match /map:pipeline Note that I have added '/' before the uri-prefix. Otherwise you get an error saying The current URI doesn't start with given prefix This way sub-sitemap also works and everything works fine. But now with these modification cocoon application does not run on Tomcat4.0.1 Does anyone know how to make the same cocoon application run on both BEA as well Tomcat. Thanks, Atul From: Konstantin Piroumian [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Cocoon on BEA Weblogic6.1 SP2 Date: Mon, 27 May 2002 15:38:47 +0400 From: Atul Gulve [EMAIL PROTECTED] Hi, I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2. Great! Could you please tell us how you did it? The first cocoon welcome page is shown properly. Now, the problem I am facing is, bea is not loading sub sitemaps. I am getting following error on the browser. Cocoon 2 - Internal server error -- -- type fatal message The current URI doesn't start with given prefix description java.lang.RuntimeException: The current URI doesn't start with given prefix sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/documents/doclist.html path-info /documents/doclist.html If I put all mappings in the main sitemap then it works. But I want to have different sitemaps for different directories under my webapp. Could anyone tell me what to do? See Cocoon logs to see if this is a Cocoon error. If you give more info on the source of the error then we'll try to help. Konstantin Thanks in advance for your help. atul _ Chat with friends online, try MSN Messenger: http://messenger.msn.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] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. - 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: Hosting
Yes my one! Systems are located at Redbus in Docklands London! Very good bandwidth! Running Dell rack mounted servers. What did you have in mind? ... give me a call is you would like a chat. Paul Doug Gilbert wrote: Can anyone recommend a web hosting service for a small commercial concern inthe UK wanting to use Cocoon? - 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: how do I redirect in an Action?
Hi, I have followed this thread with interest and noted what Chris wrote. Edgar, AFAIK this is not true. map:act can contain all other tags that are allowed within a pipeline. However, what about nested map:act tags. eg. map:match pattern=form/validation/* map:act type=form-validator/ map:parameter name=descriptor value=descriptor.xml/ map:parameter name=validate-set value={1}/ !-- form validation OK -- map:act type=db-saveform/ map:parameter name=table value=formtest/ !-- form validation OK -- !-- form saved in db OK -- map:generator yy/ map:serialize xx/ /map:act !-- form saved in db ERROR -- map:generator z/ map:serialize v/ /map:act !-- form validation Error -- map:generator ww/ map:serialize qq/ /map:match I have tried to get this working but without any luck. What is the correct way of doing this ? Peter Lerche On Thu, 2002-05-23 at 18:08, Christian Haul wrote: On 23.May.2002 -- 05:00 PM, Graaf, Edgar de (fin) wrote: Christopher, map:act... can't contain matchers, how else would cocoon know that the action should be run? Edgar, AFAIK this is not true. map:act can contain all other tags that are allowed within a pipeline. Depending on the amount of pipeline fragments protected by the action it would be worthwhile to use a subsitemap, though. Another misconception in this thread seems to be that the tags after the action will always be processed. That is only true if it was determined that they are part of the actual pipeline. The whole process is made in two steps: 1) determine what the pipeline actually contains by evaluating actions, matchers, selectors, call and redirect tags. A pipeline is terminated when a serializer is found. For the sake of brevity I consider a reader here to be a (generator + serializer). 2) Use the components (readers, generators, transformers, serializers) determined in step 1. Note that in this step no actions, matchers, or selectors are used. IOW if a serializer is nested inside a map:act tag, it effectively terminates the pipeline and tags beneath the map:act will not be considered. It works just like it was mentioned with redirects or calls. HTH 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/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]
Live Site www.duitslandweb.nl
Hi all, We recently put the German reference portal for The Netherlands online (www.duitslandweb.nl, in Dutch!). This government supported website aims to help Dutch and German students and researchers find information about both countries. It is filled with up-to-date articles discussing historical, political and cultural aspects. The site is updated on a daily basis using CASTA XE editor and Cocoon 2. Updates are rendered to HTML and published on an external webserver that handles the workload. The complete project holds about 1500 pages, built from 3000 separate XML documents in an XML database. We have been using Xindice but are evaluating XHive 3 (www.xhive.com) to do the database job. Current results are very good, in favour of XHive. Cocoon does a good job, but caching the pages as HTML files is absolutely necessary to make browsing the site possible. If you would like more information on this case, don't hesitate to contact me. Regards, Arjé Cahn - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 arje(at)hippo(dot)nl / www.hippo.nl - 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] Using RequestSelector for redirect
Hello! On Tue, May 28, 2002 at 11:46:06AM +0200, Reinhard Pötz wrote: I'm not familiar with the RequestSelector but an Action can do it for you. im not familar with both techniques, but as i see the requestselector is easier to handle than actions. when i use actions i have to code the login function in a seperate java class? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13074/pgp0.pgp Description: PGP signature
AW: how do I redirect in an Action?
Nested actions work - at least for me. Anyway, the xml snippet you send isn't valid: your second map:act is an empty tag but several lines down you close it the second time. Judith -Ursprüngliche Nachricht- Von: Peter Lerche [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 28. Mai 2002 12:48 An: [EMAIL PROTECTED] Betreff: Re: how do I redirect in an Action? Hi, I have followed this thread with interest and noted what Chris wrote. Edgar, AFAIK this is not true. map:act can contain all other tags that are allowed within a pipeline. However, what about nested map:act tags. eg. map:match pattern=form/validation/* map:act type=form-validator/ map:parameter name=descriptor value=descriptor.xml/ map:parameter name=validate-set value={1}/ !-- form validation OK -- map:act type=db-saveform/ map:parameter name=table value=formtest/ !-- form validation OK -- !-- form saved in db OK -- map:generator yy/ map:serialize xx/ /map:act !-- form saved in db ERROR -- map:generator z/ map:serialize v/ /map:act !-- form validation Error -- map:generator ww/ map:serialize qq/ /map:match I have tried to get this working but without any luck. What is the correct way of doing this ? Peter Lerche On Thu, 2002-05-23 at 18:08, Christian Haul wrote: On 23.May.2002 -- 05:00 PM, Graaf, Edgar de (fin) wrote: Christopher, map:act... can't contain matchers, how else would cocoon know that the action should be run? Edgar, AFAIK this is not true. map:act can contain all other tags that are allowed within a pipeline. Depending on the amount of pipeline fragments protected by the action it would be worthwhile to use a subsitemap, though. Another misconception in this thread seems to be that the tags after the action will always be processed. That is only true if it was determined that they are part of the actual pipeline. The whole process is made in two steps: 1) determine what the pipeline actually contains by evaluating actions, matchers, selectors, call and redirect tags. A pipeline is terminated when a serializer is found. For the sake of brevity I consider a reader here to be a (generator + serializer). 2) Use the components (readers, generators, transformers, serializers) determined in step 1. Note that in this step no actions, matchers, or selectors are used. IOW if a serializer is nested inside a map:act tag, it effectively terminates the pipeline and tags beneath the map:act will not be considered. It works just like it was mentioned with redirects or calls. HTH 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/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]
relative path
hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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]
Re: html2jpg
From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Would it not be handy to get a image of for example www.cnn.com. I think so... But unfortunately not everything is well formed (x)html Making an image from www.cnn.com will be like writing a rendering engine for a browser. Is it worth? ;) And how would you use those images? KP -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 11:44 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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]
Sunrise authentication
Hi, I'm trying the sunRise stuff from the latest2.1 code(checked out today) but i can't get it to work. It seems the AuthenticationManager which is defined in authentication.xconf is not loaded. My question is: - Should this code be working? If yes, what did i forget? PS. I'm using a parent component manager. Thanx in advance, Jeroen
RE: html2jpg
-Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 13:40 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Would it not be handy to get a image of for example www.cnn.com. I think so... But unfortunately not everything is well formed (x)html Making an image from www.cnn.com will be like writing a rendering engine - Thats right, that is probably why it is just too much work... for a browser. Is it worth? ;) And how would you use those images? - The user can view the page in a thumbnail (prob a bit larger then that) without the need to jump to it KP -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 11:44 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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] - 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: relative path
Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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: Sunrise authentication
Hi, what are you exactly trying? Did you build the webapp target and try to run the sample? The CVS from today works for me that way. Or do you try to manually get it working. In that case you have to hand-edit your cocoon.xconf and add the AuthenticationManager component by hand. PS: Please use plain text emails and not html. Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Jeroen ter Voorde [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: Sunrise authentication Hi, I'm trying the sunRise stuff from the latest 2.1 code (checked out today) but i can't get it to work. It seems the AuthenticationManager which is defined in authentication.xconf is not loaded. My question is: - Should this code be working? If yes, what did i forget? PS. I'm using a parent component manager. Thanx in advance, Jeroen - 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: relative path
ok, thats it - thanks! but i have the same problem with the following: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 13:58 To: [EMAIL PROTECTED] Subject: Re: relative path Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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]
Re: relative path
Hi Chris, The following is working for me: xsl:include href=show_includes.xsl/ So you could try: xsl:import href=elements.xsl/ Best regards Roman Christoph Stocker wrote: hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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: Sunrise authentication
Thanks for the quick reply, - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 2:07 PM Subject: RE: Sunrise authentication Hi, what are you exactly trying? Did you build the webapp target and try to run the sample? The CVS from today works for me that way. Or do you try to manually get it working. I'm trying to adding it manually using this http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent s.html example. In that case you have to hand-edit your cocoon.xconf and add the AuthenticationManager component by hand. How do i do that? I grepped all xmap's for AuthenticationManager for an example but got no results. PS: Please use plain text emails and not html. Oops, thought i turned that off... Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Jeroen ter Voorde [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: Sunrise authentication Hi, I'm trying the sunRise stuff from the latest 2.1 code (checked out today) but i can't get it to work. It seems the AuthenticationManager which is defined in authentication.xconf is not loaded. My question is: - Should this code be working? If yes, what did i forget? PS. I'm using a parent component manager. Thanx in advance, Jeroen - 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: relative path
Instead of using xsl:variable/, why don't you use something like this? link rel=stylesheet href=../css/general.css/ atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: relative path Date: Tue, 28 May 2002 14:05:53 +0200 ok, thats it - thanks! but i have the same problem with the following: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 13:58 To: [EMAIL PROTECTED] Subject: Re: relative path Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: relative path
i already tried this. it doesn't work - and i don't know why?? mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 14:29 To: [EMAIL PROTECTED] Subject: RE: relative path Instead of using xsl:variable/, why don't you use something like this? link rel=stylesheet href=../css/general.css/ atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: relative path Date: Tue, 28 May 2002 14:05:53 +0200 ok, thats it - thanks! but i have the same problem with the following: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 13:58 To: [EMAIL PROTECTED] Subject: Re: relative path Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.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]
RE: Sunrise authentication
-Original Message- From: Jeroen ter Voorde [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: Re: Sunrise authentication I'm trying to adding it manually using this http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html example. The tutorial is for version 2.0.2 of Cocoon and not for the current CVS (Matthew will add this hint :) ). The concepts described in the tutorial are still valid, but the names and classes have changed. You can find documentation in the documentation order of the cvs. In that case you have to hand-edit your cocoon.xconf and add the AuthenticationManager component by hand. How do i do that? I grepped all xmap's for AuthenticationManager for an example but got no results. You can find the definition in src\java\org\apache\cocoon\webapps\authentication\authentication.xconf. But I would suggest that you build the webapp target and start from a working version. Carsten - 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: relative path
Do you have a pipeline in the sitemap.xmap for css? If no, then you should add one. !-- CSS, Images -- map:pipeline map:match pattern=img/**.gif map:read src=img/{1}.gif mime-type=image/gif/ /map:match map:match pattern=img/**.jpg map:read src=img/{1}.jpg mime-type=image/jpg/ /map:match map:match pattern=css/**.css map:read src=css/{1}.css mime-type=text/css/ /map:match /map:pipeline It should work now. From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: relative path Date: Tue, 28 May 2002 14:38:25 +0200 i already tried this. it doesn't work - and i don't know why?? mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 14:29 To: [EMAIL PROTECTED] Subject: RE: relative path Instead of using xsl:variable/, why don't you use something like this? link rel=stylesheet href=../css/general.css/ atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: relative path Date: Tue, 28 May 2002 14:05:53 +0200 ok, thats it - thanks! but i have the same problem with the following: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 13:58 To: [EMAIL PROTECTED] Subject: Re: relative path Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.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] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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]
FW: Real dumb question - how to concatenate XML files
-Oorspronkelijk bericht- Van: Graaf, Edgar de (fin) Verzonden: dinsdag 28 mei 2002 9:28 Aan: '[EMAIL PROTECTED]' Onderwerp: RE: Real dumb question - how to concatenate XML files map:match pattern=document.pdf map:aggregate element=page map:part src=docs/doc.xml/ map:part element=content src=cocoon:/fixedbugs.xsp/ map:part src=docs/doc2.xml/ map:part element=content src=cocoon:/newbugs.xsp/ /map:aggregate map:transform src=stylesheets/general2pdf.xsl/ map:serialize type=fo2pdf/ /map:match It takes 4 xml of 2 are XSP and makes one XML of it. Regards, Edgar -Oorspronkelijk bericht- Van: daniel robinson [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 7:37 Aan: [EMAIL PROTECTED] Onderwerp: Real dumb question - how to concatenate XML files Ok. This is a dumb one, for many reasons - but I've been trying to figure it out for hours and have been all over the mail archives to try and figure it out. Say I have 3 XML files and I want to use them with an XSLT to respond to a request. What is the best way to do this? I checked out the FAQ but had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being concatenated. An example would be VERY USEFUL. I tried using cinclude but that didn't help. Sorry for being such a noob. - 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: cannot deploy on JBoss 3
JBoss3RCx has introduced a new Classloader mechanism. This influenced loading url protocol handler classes. So DirContextHandler of Catalina will not be loaded and the url protocol jndi: is not working. (in fact it is more complicated...) Its not visible in stacktrace in your mail, but it seems to be this problem. ...that is the problem I get at the moment at home. But I do not get this problem at work...basically because I mustn't have set my environment up correctly? (Is there a rough JBoss3RCX/Cocoon install guide? do you still need all those files in catalina/common/lib ? do you need to then edit web.xml ?) Only when I get the JNDI error can I then worry about patching I guess. There should be an Malformed url exception: could not load url handler for protocol jndi: NOTE: this is true for embedded Catalina only. What i done is a hack. it registers the missing protocol in embedded catalina. it does some other hackisch stuff... Appended is a patch against rc3 code of jboss3. you have to compile this beast - its not an easy job for normal cocoon users. I sent this patch to jboss too. maybe somebody reviews that and its in the next release. Request-ID is 561405. ..when I posted on JBoss I got suggested to edit my jndi.properties file Thanks for the patch...I'll certainly give it a try... C. -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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: html2jpg
Perhaps cocoon is the wrong way to do that, but you can write a servlet that uses CONVERT to convert from html to jpeg/png/gif or whatever. Take a look at: http://www.imagemagick.org/ Christoph Gaffga [EMAIL PROTECTED] - Original Message - From: Graaf, Edgar de (fin) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 11:55 AM Subject: RE: html2jpg Would it not be handy to get a image of for example www.cnn.com. I think so... But unfortunately not everything is well formed (x)html -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 11:44 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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: relative path
Chris, Do you have a pipeline matching to css in your sitemap? It should be like this: map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match Roman Christoph Stocker wrote: i already tried this. it doesn't work - and i don't know why?? mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 14:29 To: [EMAIL PROTECTED] Subject: RE: relative path Instead of using xsl:variable/, why don't you use something like this? link rel=stylesheet href=../css/general.css/ atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: relative path Date: Tue, 28 May 2002 14:05:53 +0200 ok, thats it - thanks! but i have the same problem with the following: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ mfg, --- Christoph Stocker Pramergasse 29/14, 1090 Wien, Austria mobile +43-699-1722 5506 e-mail [EMAIL PROTECTED] --- -Original Message- From: Atul Gulve [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 28. Mai 2002 13:58 To: [EMAIL PROTECTED] Subject: Re: relative path Hi Have you checked with xsl:import href=elements.xsl/ It works. You can give relative paths. Atul From: Christoph Stocker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: relative path Date: Tue, 28 May 2002 13:39:55 +0200 hi! i use: cocoon 2.0.2 on winXP and tomcat 4.0.1 i have a stylesheet in cocoon which refers to other styleseets like -- xsl:import href=D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/elements.xsl/ now i want to run it on a server and have the problem of absolute pathes. how do i set there a relative path to my elements.xsl? i tried such things like: xsl:import href=./elements.xsl/ , but it doesn't work. THANKS greetings, 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.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] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.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] - 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]
svg2jpeg or svg2png
is anyone able to use svg2jpeg or svg2png under jdk 1.4.0 (headless) and linux? it dont work! i tested cocoon_203_branch and cocoon_dev_2-1 with tomcat_dev_4-1. its important to me ... see my mail svg error for details thx dude - 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]
FW: html2jpg
-Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 13:40 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Would it not be handy to get a image of for example www.cnn.com. I think so... But unfortunately not everything is well formed (x)html Making an image from www.cnn.com will be like writing a rendering engine - Thats right, that is probably why it is just too much work... for a browser. Is it worth? ;) And how would you use those images? - The user can view the page in a thumbnail (prob a bit larger then that) without the need to jump to it KP -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 11:44 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Tidy doesn't work when you have br, this wil not be converted to br/. This cause an error saying br misses a closing tag This is either a bug in Tidy or can be configured. See the docs. Otherwise, why to use it if you have already well-formed XHTML? Konstantin -Oorspronkelijk bericht- Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 28 mei 2002 10:36 Aan: [EMAIL PROTECTED] Onderwerp: Re: html2jpg From: Graaf, Edgar de (fin) [EMAIL PROTECTED] Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Are you sure that want html2jpg and not xml2jpg? There is a sample in cocoon for performing: XML - SVG - JPG generation. For using HTML for this you should use Tidy to generate XHTML from it and then use an XHTML - SVG - JPG pipeline. Konstantin thanks, Edgar - 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] - 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] - 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)announcement: Cocoon training in June
Hi folks - We announced our Cocoon training classes a couple of months ago, but I wanted to remind all you stateside Cocooners that I'll be giving the Cocoon Fundamentals and Advanced Cocoon classes June 11-14 in Denver, CO. If you are interested, check out http://www.galatea.com/training/cocoon or call me at 800.711.4901. Regards, Lajos galatea.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: Interaction anyone?
Anyone know anything about this product for MacOSX? I have just posted a link to an article on my weblog (http://radio.weblogs.com/0103021/). How does it compare to Cocoon? Well, I was going to say that if it installs and works, I'm using it. Then I saw the price ($289 personal license) and it was back to banging my head against the wall with cocoon :-) --paul - 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]
known issues using SQLTransformer
Hallo, are there any known issues using SQLTransformer? I query a database and pass the result to a style sheet for further processing...the rowset elements and contents are ignored. If I save the resulting file before it is passed to the stylesheet for futher processing and then pass the saved file to the stylesheet everything works as expected. I'm using a CVS version of cocoon from about a month ago, compiled as per the instructions with jre 1.4. thanks in advance for any help. --Ben - 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]
Global parameters
Hi Folks, I'd like to know how to define a "global" parameter for all my pipeline ... for example... the "Soap Host name" ... this parameter has to be used by XSP and Actions. Right now I have to define the parameter for each map:act entry and for each map:match. so, maybe this is not the best way to define the global parameters ... any idea? or something to read ? Thanks Eduardo.
RE: Global parameters
I believe that there is currently no way to do this, but there happened to be a similar proposal recently on the dev mailing list. You should be able to find the discussion here: http://marc.theaimsgroup.com/?t=10224924482r=1w=2 Geoff Howard -Original Message- From: Eduardo Godoy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 12:49 PM To: [EMAIL PROTECTED] Subject: Global parameters Hi Folks, I'd like to know how to define a global parameter for all my pipeline ... for example... the Soap Host name ... this parameter has to be used by XSP and Actions. Right now I have to define the parameter for each map:act entry and for each map:match. so, maybe this is not the best way to define the global parameters ... any idea? or something to read ? Thanks Eduardo. - 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]
SourceWritingTransformer error
Can anyone try this HOWTO and tell me if he/she gets the abnormal behaviour described here: http://www.mail-archive.com/cocoon-dev%40xml.apache.org/msg16998.html I would like to know if this bug is known and has been corrected. PS: it is something that is in the scratchpad (I think). If you do not know what it is, you don't care. - 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]
We need to change webapps directory. In Novell Netware.
Hi, Our problem is that we want to have our webapp directory out of $TOMCAT_HOME/webapps/cocoon/. We want it in other volume of our Novell Server. If your read cocoon faq's you can find documentation but How can I specify the path ?? Code to Add in Cocoon sitemap.xmap: map:pipeline map:match pattern=myapp/** map:mount uri-prefix=myapp src=vol3:/apps/myapp// /map:match /map:pipeline In this case VOL3 is the novell server volume and follows it the path to myapp. I've tried with file://vol3:/apps/myapp/ file://server/vol3/apps/myapp etc. Anyone have an idea??? Thank you, Jordi ;) - 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]
XSL function to handle String
Hi Luca, last time you really helped me out from the following problem.Thanks for that. This time I want to use a function in XSL such that it takes two parameters- string and length. such as showName(String name, int length) here I want to show name upto 5 character length, if name length is more than 5 character then show . after 5 character such as showName(Luca Morandini, 5) then it should show Luca I want to handle it in XSL only but not in XSP. so please help me such that I can use this type of function in XSL and pass name in run time. Can you send me an example for that? Thanks for that. Niket - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, April 13, 2002 6:17 PM Subject: RE: making tree like structure using XML,XSP,XSL Niket, here you are... SITEMAP.XMAP (fragment) map:pipeline map:match pattern=hash.xml map:generate src=documents/hashtable.xml/ map:transform src=stylesheets/hashtable.xsl/ map:serialize type=xml/ /map:match /map:pipeline HASHTABLE.XML ?xml version=1.0? page entry id=1 parentid=0/ entry id=2 parentid=0/ entry id=3 parentid=0/ entry id=4 parentid=0/ entry id=5 parentid=1/ entry id=6 parentid=1/ entry id=7 parentid=6/ entry id=8 parentid=7/ entry id=11 parentid=5/ entry id=9 parentid=2/ entry id=10 parentid=2/ entry id=12 parentid=5/ /page HASHTABLE.XSL ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=page !-- Starts the tree -- xsl:element name=tree xsl:apply-templates/ /xsl:element /xsl:template !-- Selects main branches -- xsl:template match=//entry[@parentid=0] xsl:call-template name=process-branch xsl:with-param name=idxsl:value-of select=@id//xsl:with-param xsl:with-param name=parentidxsl:value-of select=@parentid//xsl:with-param /xsl:call-template /xsl:template !-- Recursive function -- xsl:template name=process-branch xsl:param name=id/ xsl:param name=parentid/ xsl:choose !-- If element has no branches (i.e. is a leaf) -- xsl:when test=count(//entry[@parentid=current()/@id])=0 !-- Writes the leaf element -- xsl:element name=leaf xsl:attribute name=idxsl:value-of select=$id//xsl:attribute /xsl:element /xsl:when !-- If element has branches -- xsl:otherwise !-- Starts a branch element -- xsl:element name=branch xsl:attribute name=idxsl:value-of select=$id//xsl:attribute !-- For every branches of current branch -- xsl:for-each select=//entry[@parentid=current()/@id] !-- Recurse the branch processing -- xsl:call-template name=process-branch xsl:with-param name=idxsl:value-of select=@id//xsl:with-param xsl:with-param name=parentidxsl:value-of select=@parentid//xsl:with-param /xsl:call-template /xsl:for-each /xsl:element /xsl:otherwise /xsl:choose /xsl:template /xsl:stylesheet Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Niket Anand [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 5:13 PM To: Niket Anand Subject: making tree like structure using XML,XSP,XSL Hi All, I have one function that connect to database and retrive data in form of Hashtable. My Hashtable may be like this. MsgID ParentID 10 20 30 40 51 61 76 87 92 10 2 11 5 12 5 Tree structure would be like this based on MsgID and ParentID MsgID will be the Id of a tag and parentid is the id of the parent with which it is linked. 1(parent0) | | ---5(child of 1) | |___11(child of 5) | |12(child of 5 and sibling of 11) 6(child of 1 and sibling of 5) | |7(child of 6) | |___8(child of 7) 2(parent 2) | |9(child of 2) | |10(child of 2) 3(parent 3) 4(parent 4) Like this I have to show dynamic tree like structure in HTML form.I am using cocoon2.0 This can be either handled by XSP or XSL or both. Please suggest me how to solve the recursive loop problem using XSL.. How can I apply logic to have dynamic tree structure building function based on the values of Hashtable keys and values. Pls suggest ideas. Thanks, Niket - 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]
Command line help
Where can I find docs for using cocoon in command line mode? Thanks, Mike Aracic - 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: XSL function to handle String
xsl:choose xsl:when test=string-length(name) gt; 5 xsl:value-of select=substring(name, 1, 5)/... /xsl:when xsl:otherwise xsl:value-of select=name/ /xsl:otherwise /xsl:choose yours Christoph Gaffga [EMAIL PROTECTED] - Original Message - From: Niket Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 7:15 AM Subject: XSL function to handle String Hi Luca, last time you really helped me out from the following problem.Thanks for that. This time I want to use a function in XSL such that it takes two parameters- string and length. such as showName(String name, int length) here I want to show name upto 5 character length, if name length is more than 5 character then show . after 5 character such as showName(Luca Morandini, 5) then it should show Luca I want to handle it in XSL only but not in XSP. so please help me such that I can use this type of function in XSL and pass name in run time. Can you send me an example for that? Thanks for that. Niket - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, April 13, 2002 6:17 PM Subject: RE: making tree like structure using XML,XSP,XSL Niket, here you are... SITEMAP.XMAP (fragment) map:pipeline map:match pattern=hash.xml map:generate src=documents/hashtable.xml/ map:transform src=stylesheets/hashtable.xsl/ map:serialize type=xml/ /map:match /map:pipeline HASHTABLE.XML ?xml version=1.0? page entry id=1 parentid=0/ entry id=2 parentid=0/ entry id=3 parentid=0/ entry id=4 parentid=0/ entry id=5 parentid=1/ entry id=6 parentid=1/ entry id=7 parentid=6/ entry id=8 parentid=7/ entry id=11 parentid=5/ entry id=9 parentid=2/ entry id=10 parentid=2/ entry id=12 parentid=5/ /page HASHTABLE.XSL ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=page !-- Starts the tree -- xsl:element name=tree xsl:apply-templates/ /xsl:element /xsl:template !-- Selects main branches -- xsl:template match=//entry[@parentid=0] xsl:call-template name=process-branch xsl:with-param name=idxsl:value-of select=@id//xsl:with-param xsl:with-param name=parentidxsl:value-of select=@parentid//xsl:with-param /xsl:call-template /xsl:template !-- Recursive function -- xsl:template name=process-branch xsl:param name=id/ xsl:param name=parentid/ xsl:choose !-- If element has no branches (i.e. is a leaf) -- xsl:when test=count(//entry[@parentid=current()/@id])=0 !-- Writes the leaf element -- xsl:element name=leaf xsl:attribute name=idxsl:value-of select=$id//xsl:attribute /xsl:element /xsl:when !-- If element has branches -- xsl:otherwise !-- Starts a branch element -- xsl:element name=branch xsl:attribute name=idxsl:value-of select=$id//xsl:attribute !-- For every branches of current branch -- xsl:for-each select=//entry[@parentid=current()/@id] !-- Recurse the branch processing -- xsl:call-template name=process-branch xsl:with-param name=idxsl:value-of select=@id//xsl:with-param xsl:with-param name=parentidxsl:value-of select=@parentid//xsl:with-param /xsl:call-template /xsl:for-each /xsl:element /xsl:otherwise /xsl:choose /xsl:template /xsl:stylesheet Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Niket Anand [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 5:13 PM To: Niket Anand Subject: making tree like structure using XML,XSP,XSL Hi All, I have one function that connect to database and retrive data in form of Hashtable. My Hashtable may be like this. MsgID ParentID 10 20 30 40 51 61 76 87 92 10 2 11 5 12 5 Tree structure would be like this based on MsgID and ParentID MsgID will be the Id of a tag and parentid is the id of the parent with which it is linked. 1(parent0) | | ---5(child of 1) | |___11(child of 5) | |12(child of 5 and sibling of 11) 6(child of 1 and sibling of 5) | |7(child of 6) | |___8(child of 7) 2(parent 2) | |9(child of 2) | |10(child of 2) 3(parent 3) 4(parent 4) Like this I have to show dynamic tree like structure in HTML form.I
Re: We need to change webapps directory. In Novell Netware.
Hi! When I need to get some file by browser (in Windows) i need to use this convention: file:///c|/dir/file.ext pipe is substitute of : - maybe it is it? file:///vol3|/dir/file.ext Just try. Regards Jerzy Kut - Original Message - From: Tom Klaasen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 8:40 PM Subject: Re: We need to change webapps directory. In Novell Netware. Don't know if it will work (are there still many novell servers out there?), but I thought you have to specify 3 slashes for the file protocol: file:///vol3:/apps/myapp No guarantees though tomK Jordi Guijarro wrote: Hi, Our problem is that we want to have our webapp directory out of $TOMCAT_HOME/webapps/cocoon/. We want it in other volume of our Novell Server. If your read cocoon faq's you can find documentation but How can I specify the path ?? Code to Add in Cocoon sitemap.xmap: map:pipeline map:match pattern=myapp/** map:mount uri-prefix=myapp src=vol3:/apps/myapp// /map:match /map:pipeline In this case VOL3 is the novell server volume and follows it the path to myapp. I've tried with file://vol3:/apps/myapp/ file://server/vol3/apps/myapp etc. Anyone have an idea??? Thank you, Jordi ;) - 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: We need to change webapps directory. In Novell Netware.
Don't know if it will work (are there still many novell servers out there?), but I thought you have to specify 3 slashes for the file protocol: file:///vol3:/apps/myapp No guarantees though tomK Jordi Guijarro wrote: Hi, Our problem is that we want to have our webapp directory out of $TOMCAT_HOME/webapps/cocoon/. We want it in other volume of our Novell Server. If your read cocoon faq's you can find documentation but How can I specify the path ?? Code to Add in Cocoon sitemap.xmap: map:pipeline map:match pattern=myapp/** map:mount uri-prefix=myapp src=vol3:/apps/myapp// /map:match /map:pipeline In this case VOL3 is the novell server volume and follows it the path to myapp. I've tried with file://vol3:/apps/myapp/ file://server/vol3/apps/myapp etc. Anyone have an idea??? Thank you, Jordi ;) - 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] Using RequestSelector for redirect
-Original Message- From: Christian Joelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: Re: [C2] Using RequestSelector for redirect Hello! On Tue, May 28, 2002 at 11:46:06AM +0200, Reinhard Pötz wrote: I'm not familiar with the RequestSelector but an Action can do it for you. im not familar with both techniques, but as i see the requestselector is easier to handle than actions. when i use actions i have to code the login function in a seperate java class? that's right but very easy. you should find an example in the docs. Reinhard thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz - 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]
Include external javascript file
Title: Include external javascript file A cocoon newbie question: I am trying to include a javascript function from an external .js file into my xsl stylesheet. I have the following in the xsl stylesheet: head ... script src="cold_reverse_script.js" language=javascript /script /head The file cold_reverse_script.js is in the same directory as the xsl stylesheet contains javascript code for a single function: - function cold_reverse_search_criteria() { javascript code . } -- I have this entry in my sitemap: map:match pattern=**.js map:read src="{1}.js" mime-type=text/jscript/ /map:match (I've also tried text/javascript). However, this does not work. I get error on page whenever I try to access the javascript function from the .js file. When I look at the source for the HTML page in the browser, it shows script src="cold_reverse_script.js" language=javascript /script just as I've written it in the xsl file, but does not show the code that is in the .js file. If I put the javascript function code directly into the script/script tags, it works fine, but I'd like to use the external .js file. Any help would be greatly appreciated. Thanks, Beth Naquin SAGEM MORPHO Inc. 1145 Broadway Plaza STE 200 Tacoma, WA 98402 253-597-8245
Re: Include external javascript file
You must add a pipeline for every filetype you wish to call in your application. Put your *.js files in the js directory and add the following to your pipelines map:match pattern=*.js map:read src=js/{1}.js mime-type=text/javascript/ /map:match Now you can call any external javascript file directly, but it will be served from the js directory. Adjust to your liking. Bert At 12:54 28/05/2002 -0700, you wrote: A cocoon newbie question: I am trying to include a javascript function from an external .js file into my xsl stylesheet. I have the following in the xsl stylesheet: head ... script src=cold_reverse_script.js language=javascript /script /head The file cold_reverse_script.js is in the same directory as the xsl stylesheet contains javascript code for a single function: - function cold_reverse_search_criteria() { javascript code . } -- I have this entry in my sitemap: map:match pattern=**.js map:read src={1}.js mime-type=text/jscript/ /map:match (I've also tried text/javascript). However, this does not work. I get error on page whenever I try to access the javascript function from the .js file. When I look at the source for the HTML page in the browser, it shows script src=cold_reverse_script.js language=javascript /script just as I've written it in the xsl file, but does not show the code that is in the .js file. If I put the javascript function code directly into the script/script tags, it works fine, but I'd like to use the external .js file. Any help would be greatly appreciated. Thanks, Beth Naquin SAGEM MORPHO Inc. 1145 Broadway Plaza STE 200 Tacoma, WA 98402 253-597-8245 - 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: html2jpg
Graaf, Edgar de (fin) wrote: Hi, I want to make a jpg from a html. Is there someone who at least converts html to svg? Search for one of the HTML-XSLFO converters (AntennaHouse is often mentioned) and generate a FO file, then use FOP's SVG renderer to create a SVG, then render it with Batik. It's a rather fragile process, though. J.Pietschmann - 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: relative path
Christoph Stocker wrote: xsl:variable name=stylesheet3 select='D:/Develop/Apache Tomcat 4.0/webapps/cocoon/onlinereg/css/home.css'/ Try select='file:///D:/Develop/Apache Tomcat 4.0/we...'/ J.Pietschmann - 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: Command line help
Mike: Where can I find docs for using cocoon in command line mode? Unfortunately, there are no docs for this *yet*. However, check out the run scripts (in xml-cocoon2). Depending on your version of Cocoon (and platform of course) you may need to edit run.sh to reflect the directory structure of lib. To see what options are available, run the appropriate script with the --help option. Also, check Cocoon's build script which calls the command line to generate docs. If anyone would like to write a quick How-To about the command line (or anything else), please give me a holler! Thanks, Diana [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: encoding of form data
From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]] Hi! I know this question was asked a month ago, but the thread ended without a real solution to the problem. The problem in short: Form data with special chars (i. e. german umlauts) is not encoded correctly in the FormValidatorAction. The suggested solutions were: 1) set UNIX: LOCALE=... 2) set JVM -Dfile.encoding option 3) set request.setCharacterEncoding(utf-8) I think 1 and 2 are more than dirty hacks, and they don't work for me. 3 also didn't work. I guess it's quite clear because it should be executed before any request parameter are read. In the sitemap examples (which I used for my tests) the FormValidatorAction is processed befor any of my xml/xsp files were touched. You must do it in own action before FormValidatorAction. Vadim I guess the best solution is a parameter passed to the FormValidatorAction which specifies the encoding type of the form data. Or has anyone a working solution for this? Thanks, Gerhard - 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]
Session Contexts : How to know if a context has been created or not?
Hallo, I'm wondering if there is any way to know if a context in the session has been created or not? When I try to access a context that has not been created yet, like using session:getxml, I get an error from the session transformer, so I must know first if the context is there or not. Thanks in advance. -- Ramy Mamdouh Kamel Software Engineer Ute Imkenberg [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]
pls confirm: cocoon won't work on OSX
I've tried the following: Tomcat 4.0.1 w/ cocoon 2.0 Tomcat 4.0.1 w/ cocoon 2.0.2 Tomcat 4.0.4b1 w/ cocoon 2.0 Jetty 4 w/ cocoon 2.0 Tomcat 4.0.4b1 w/ cocoon 1.8 Each time the servlet container works fine, cocoon does not. The only luck I've had is with Murray Todd's old pkg file which is no longer available and is one year out of date. I am about ready to give up. Has anyone out there actually installed cocoon 2 on OS X? That's all I need to know. --paul - 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]
Cocoon from Java 1.3 to Java 1.4 Problem
Hello all, I am trying to move cocoon to use Java 1.4 and I am having problems. I have tried the advice on the cocoon site about moving the updated xalan and xerces jar files and rebuilding the cocoon under java 1.4 then running it but it still doesnt work. Has anyone else had problems trying to go from 1.3 to 1.4 with cocoon?? Please let me know if anyone has a solution. Below i have pasted the error that I am getting. Thanks, Dave Newman Here is the error I am getting. Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon.new/ path-info stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:383) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328) ... 3 more org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:383) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:536) - 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: Global parameters
You can do the following Encompass the pipeline with an action say map:pipeline !-- Specific XSP generation pipeline -- map:act type =parametersSet map:parameter name=global-context-root value=/accordianew / map:parameter name=global-application-dir value=C:\Projects\Accordia\Development\Rating\src\testcases / map:match pattern =.. map:parameter name=application-home-dir value={../global-application-dir}/ /map:match map:match pattern =.. /map:match map:match pattern =.. /map:match /map:act /map:pipeline sitemap entry for action parametersSet map:actions map:action type=parametersSet src= src=com.accordia.action.handlers.GlobalParametersSetHandler / ... /map:actions Hope it was helpful . Regds, Chiths -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 9:56 AM To: '[EMAIL PROTECTED]' Subject: RE: Global parameters I believe that there is currently no way to do this, but there happened to be a similar proposal recently on the dev mailing list. You should be able to find the discussion here: http://marc.theaimsgroup.com/?t=10224924482r=1w=2 Geoff Howard -Original Message- From: Eduardo Godoy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 12:49 PM To: [EMAIL PROTECTED] Subject: Global parameters Hi Folks, I'd like to know how to define a global parameter for all my pipeline ... for example... the Soap Host name ... this parameter has to be used by XSP and Actions. Right now I have to define the parameter for each map:act entry and for each map:match. so, maybe this is not the best way to define the global parameters ... any idea? or something to read ? Thanks Eduardo. - 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: pls confirm: cocoon won't work on OSX
I've tried the following: Tomcat 4.0.1 w/ cocoon 2.0 Tomcat 4.0.1 w/ cocoon 2.0.2 Tomcat 4.0.4b1 w/ cocoon 2.0 Jetty 4 w/ cocoon 2.0 Tomcat 4.0.4b1 w/ cocoon 1.8 Um, you might try Tomcat 4.0.4b1 with Cocoon 2.0.2 We run it on Win 2K with the 1.4 JDK... - 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]
Sitemap object in xsp
Hi there, After an action is executed in a pipeline, a map object is returned. Now my question comes -- how could I possibly obtain this map object in xsp? any response appreciated. :) KC __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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: C2 Performance under high load
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi Cocooners, preparing for a livesite build with C2 I'm looking for tips that improve C2's (besides external help from proxys and load balancers) performance under high load, say 1500 - 2000 concurrent users. That's not enough information... If we assume 10 sec think time for the user, it will bring your number down to 150-200 requests per second, and if your pages are light enough and hardware is powerful enough to allow Cocoon to send response in 100 ms (with say 20 threads working in parallel), this will result in requirement of 15-20 concurrent connections, which is real. Vadim Any experiences here? Regards, Michael - 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: .htc how to
Did you get this to work? I don't know much about htc's except that I have used the MS sample calendar.htc. I can't figure out how to set the rule for it with Cocoon. How did you do it? I tried: map:match pattern=calendar.htc map:generate src=chart/calendar.htc/ map:serialize type=html/ /map:match Note: My htc file is not well-formed xml. Is this the problem for me? Thanks, Kelly -Original Message- From: Stephen Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 6:39 PM To: [EMAIL PROTECTED] Subject: RE: .htc how to You must serve the .htc from Cocoon--do you have a rule for it in your sitemap? -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 8:07 PM To: [EMAIL PROTECTED] Subject: .htc how to i have a behavor (microsoft .htc) attached in a stylesheet i aply this style into a div element in a .xml page when i transofrm this .xml using xsl in IE6 i recieve re corect result but through cocoon i see everything except the result i'm waiting from .htc any idea ? thanks - 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: svg2jpeg or svg2png
From: Dude [mailto:[EMAIL PROTECTED]] is anyone able to use svg2jpeg or svg2png under jdk 1.4.0 (headless) and linux? it dont work! i tested cocoon_203_branch and cocoon_dev_2-1 with tomcat_dev_4-1. It was working with tomcat 4.0.4b1 http://xml.apache.org/cocoon/installing/index.html: Installing on Tomcat 4.0.4b1 LE with JDK 1.4.0 Vadim its important to me ... see my mail svg error for details thx dude - 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]
Database Action assistance request.
I have been poking around trying to find out whether DatabaseSelectAction can help me. There is very little written about this action and I wonder whether it has ever been used (or even tested). My problem is as follows: I have a column in a table in a database that I am able to access from XSP and Java with no problems. In the interest of elegance I would like to make the item available to an XSLT Transformation as a parameter. All I want to do is supply the key column 'name', get the corresponding row and then use the value of the field 'company' later in my pipeline as: {company}. Sitemap.xmap contains: map:actions map:action name=select-user logger=databaseselectaction src=org.apache.cocoon.acting.DatabaseSelectAction/ /map:actions And the matching pipeline entry is: map:match pattern=process !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=context://alpha/descriptors/params.xml/ map:parameter name=validate value=username/ !-- generate protected content -- map:act type=form-validator map:parameter name=descriptor value=context://alpha/descriptors/getfiles_form.xml/ map:parameter name=validate value=filename/ !-- form-validation success -- map:act type=select-user map:parameter name=descriptor value=context://alpha/descriptors/getuser.xml/ map:generate type=serverpages src=docs/process.xsp/ map:transform src=stylesheets/dynamic-page2html.xsl /map:transform map:serialize/ /map:act /map:act !-- form-validation failure -- map:redirect-to uri=pickdoc/ /map:act !-- session-validation failed == redirect to login-page -- map:redirect-to session=true uri=login/ /map:match The value username is captured by a form earlier in the session and exists as a session attribute. root parameter name=username type=string nullable=no/ !--parameter name=company type=string/-- connectionphoenix/connection table name=users keys key param=username dbcol=name type=string mode=form/ /keys values value param=company dbcol=company type=string/ /values /table /root I include the username in the URL as I don't know how else to supply it to the Action. I have read the databaseSelectAction code and understand how the SELECT statement is generated. I have recompiled cocoon.jar with additional getLogger().debug( yadayadayada. ) statements but these never generate output. Anyone care to tell me why ? I have had some success with cocoon but I am finding it difficult to get through to some advanced features because of the sparse documentation. - 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]
ContentEditable in Mozilla
FYI, the great guys at Q42 have written a clone of IE's contentEditable for Mozilla. Check it out at http://xopus.org/index.jsp?menu=mozce : although still rudimentary, it shows a lot of potential. Sylvain -- Sylvain Wallez Anyware Technologies Apache Cocoon http://www.anyware-tech.com mailto:[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]
svg2jpeg or svg2png
is anyone able to use svg2jpeg or svg2png under jdk 1.4.0 (headless) and linux? it dont work! i tested cocoon_203_branch and cocoon_dev_2-1 with tomcat_dev_4-1. its important to me ... see my mail svg error for details thx dude -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net - 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]
Interaction anyone?
Anyone know anything about this product for MacOSX? I have just posted a link to an article on my weblog (http://radio.weblogs.com/0103021/). How does it compare to Cocoon? 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 = - 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]
Fw: XSLTC and Cocoon
Folks, The XSLTC group is at a hold again. Anyone interested to work with Tom to resolve the issues? I am sorry if I sound pushy, especially when I am not helping myself. My focus is currently in another area of Cocoon, as some of you know. Recently there have been a number of people asking to get their hands on a faster XSLT transformer. This is a good chance to contribute to the cause. If this effort is not to be dragging for long, please step up and work with Tom. Cheers, Ivelin - Original Message - From: Tom Amiro [EMAIL PROTECTED] To: Ivelin Ivanov [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 3:33 PM Subject: Re: XSLTC and Cocoon Ivelin, Ivelin Ivanov wrote: Tom, Were the replies to your request satisfactory? Are you able to continue work on XLTC Cocoon? Ivelin I guess my reply would be, not yet. Here was my last email to which I believe Stefano was going to respond, but I haven't heard anything yet. So I'm just waiting. tom Given Sylvain's reply that an update would solve the NPE problem, I checked out the xml-cocoon2 respository. After making some modifications so it would use XSLTC rather than Xalan, I built cocoon.war and tried deploying it with Tomcat. On starting up Tomcat, there was a problem with Cocoon 2002-05-22 14:04:45 HostConfig[localhost]: Deploying web application archive cocoon.war 2002-05-22 14:04:45 StandardHost[localhost]: Installing web application at context path /cocoon from URL jar:file:/net/bigblock/files18/tamiro/wspack-fcs/webapps/cocoon.war!/ 2002-05-22 14:04:50 WebappLoader[/cocoon]: Deploying class repositories to work directory /net/bigblock/files18/tamiro/wspack-fcs/work/Standard Engine/localhost/cocoon 2002-05-22 14:07:06 WebappLoader[/cocoon]: Deploy class files /WEB-INF/classes to /net/bigblock/files18/tamiro/wspack-fcs/work/Standard Engine/localhost/cocoon/ WEB-INF/classes 2002-05-22 14:07:07 StandardManager[/cocoon]: Seeding random number generator class java.security.SecureRandom 2002-05-22 14:07:07 StandardManager[/cocoon]: Seeding of random number generator has been completed 2002-05-22 14:07:07 StandardWrapper[/cocoon:Cocoon2]: Marking servlet Cocoon2 as unavailable 2002-05-22 14:07:07 StandardContext[/cocoon]: Servlet /cocoon threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.coc oon.servlet.CocoonServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:896) Anyone have an idea what may be wrong? If not, could someone send me another war file configured for XSLTC that has the update to fix the NPE problem. So far I haven't been able to pinpoint any XSLTC specific bugs that are preventing Cocoon from using XSLTC. Tom -- Tom Amiro -- SQA Engineer Sun XML Technology Development voice: 781-442-0589 Fax: 781-442-1437 eMail: tom.amiro@.sun.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: .htc how to
Use a reader If you use map:match, it will use the XML generator, implying that your source calendar,htc, should be xml map:read. Regds, Chiths -Original Message- From: Kelly Cole [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 4:20 PM To: '[EMAIL PROTECTED]' Subject: RE: .htc how to Did you get this to work? I don't know much about htc's except that I have used the MS sample calendar.htc. I can't figure out how to set the rule for it with Cocoon. How did you do it? I tried: map:match pattern=calendar.htc map:generate src=chart/calendar.htc/ map:serialize type=html/ /map:match Note: My htc file is not well-formed xml. Is this the problem for me? Thanks, Kelly -Original Message- From: Stephen Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 6:39 PM To: [EMAIL PROTECTED] Subject: RE: .htc how to You must serve the .htc from Cocoon--do you have a rule for it in your sitemap? -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 8:07 PM To: [EMAIL PROTECTED] Subject: .htc how to i have a behavor (microsoft .htc) attached in a stylesheet i aply this style into a div element in a .xml page when i transofrm this .xml using xsl in IE6 i recieve re corect result but through cocoon i see everything except the result i'm waiting from .htc any idea ? thanks - 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] - 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]
map object in xsp
Hi there, After an action is executed in a pipeline, a map object is returned. Now my question comes -- how could I possibly obtain this map object in xsp? any response appreciated. :) KC __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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: Sitemap object in xsp
From: Kenny Chow [mailto:[EMAIL PROTECTED]] Hi there, After an action is executed in a pipeline, a map object is returned. Now my question comes -- how could I possibly obtain this map object in xsp? any response appreciated. :) Here is the response: It is not possible. Use request's or session's attributes to pass information. The only other possibility is to pass sitemap parameters to the XSP explicitly: map:act type=mine map:generate type=serverpages src=mine.xsp map:parameter name=param-name value={param-name}/ /map:generate /map:act But you have to know all parameter names and they should be fixed. Vadim KC - 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]
build target with no samples?
Is there a build target with no samples, javadoc etc included? We have been building cocoon, manually stripping out everything we don't want out on our live site, then moving in our own sitemap and xconf files, with all supporting files. This is fine if you never update your cocoon version, but is hard to repeat easily. Does anyone else have a system that works for them for customizing the build in a way that doesn't have to be recreated after a cvs update? Geoff Howard - 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]
How to redirect Using Redirector....?
Hello, I am trying to redirect the user to some url in act function, it execute the related xsp page, but don't display any thing on browser. your help will be highly appriciatable Thanks and regards, Manish Jain The code is like... if (((String)request.getAttribute(PermissionDenied)).equals(true)) { request.setAttribute(PermissionDenied,false); redirector.redirect(false,showerror); } catch(IOException io) { System.out.println(can not do rediect+io); } return ; } - 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: build target with no samples?
Check out: http://sourceforge.net/projects/chello/ a hello world app, minimal configuration, comes with lots of goodies - ant, cruisecontrol etc. I have been using it for a couple of days, really very helpful. Dan Geoff Howard wrote: Is there a build target with no samples, javadoc etc included? We have been building cocoon, manually stripping out everything we don't want out on our live site, then moving in our own sitemap and xconf files, with all supporting files. This is fine if you never update your cocoon version, but is hard to repeat easily. Does anyone else have a system that works for them for customizing the build in a way that doesn't have to be recreated after a cvs update? Geoff Howard - 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: Session Contexts : How to know if a context has been created or not?
Hi, there is no functionality to get the list of available session contexts. The current philosophie is that you as the developer have to know them, because you have to explicitly create a session context with sesssion:createcontext name=xyz/. But if you need this functionality, send a patch ;) In addition the three contexts request, response and temp are always available. Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Ramy Mamdouh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 7:24 PM To: [EMAIL PROTECTED] Subject: Session Contexts : How to know if a context has been created or not? Hallo, I'm wondering if there is any way to know if a context in the session has been created or not? When I try to access a context that has not been created yet, like using session:getxml, I get an error from the session transformer, so I must know first if the context is there or not. Thanks in advance. -- Ramy Mamdouh Kamel Software Engineer Ute Imkenberg [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]