RE: How to have prompt for download?
I think you are right, but it seems to be more complicated than I initially thought. In the Cocoon2 sitemap.xmap, I can designate relationships. I noticed that on my *.doc files, it does not matter if I have a mime-type specified or not. In the Tomcat map.xml file, you can also define what applications go with what extensions. Just for fun, I associated *.bin with Word and Word came up. Finally, there is the lovely Windows file association which I recently was reminded about. Even if made the definition for *.doc files in sitemap.xmap and map.xml the same as the *.bin files, Word would still load. I could not find the extras menu, but any application changes would be out of my scope. I would not be able to change the application settings for all users who access my web site. I guess that is why most Word documents are compressed as ZIP files. And here I thought it was just to save space and not ensure a download prompt... As for the priorities, I suspect that first is Cocoon, then Tomcat and finally Windows. But thanks for your reply, it did help me figure out this out a litte better. -Original Message- From: Jörg Heinicke [mailto:[EMAIL PROTECTED]] Sent: October 3, 2001 8:47 PM To: [EMAIL PROTECTED] Subject: Re: How to have prompt for download? I think, this is a problem of Windows not of Cocoon. Because I have a German version of Windows I can't tell you the right way. I try to explain it: In the explorer we have a menu named 'Extras', it should be named similarly in English, there 'directory options', 'file types', search for '.doc', modify the options of '.doc', there is an option meaning 'confirm opening before download', this must be switched to yes. Hope this helps, Joerg - Original Message - From: Hewko, Doug [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 8:18 PM Subject: How to have prompt for download? How would you set up Cocoon2 to download a file instead of opening an application for it? In my sitemap.xml, I have some word documents defined as follows so I can put them all in one physical path. map:match pattern=_documents/**.doc map:read src=xmldocs/{1}.doc mime-type=application/msword/ /map:match What would I need to change if I want Windows to give the open or save prompt instead of automatically opening Word? - 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]
How to have prompt for download?
How would you set up Cocoon2 to download a file instead of opening an application for it? In my sitemap.xml, I have some word documents defined as follows so I can put them all in one physical path. map:match pattern=_documents/**.doc map:read src=xmldocs/{1}.doc mime-type=application/msword/ /map:match What would I need to change if I want Windows to give the open or save prompt instead of automatically opening Word? - 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: ide recommendations?
I tried Xcelerator but it doesn't work. It needs MSXML3, which uses outdated specificiations and I am using MSXML4. -Original Message- From: Liam Morley [mailto:[EMAIL PROTECTED]] Sent: October 2, 2001 9:55 AM To: [EMAIL PROTECTED] Subject: RE: ide recommendations? Apparently Xcelerator is supposed to be nice, don't remember where it is. You should be able to find it on either download.com or google.com. Liam Morley -Original Message- From: Marty McClelland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: ide recommendations? For the past six months I have been using notepad for writing xsp and xsl pages. This works - but I miss the debugging tools of an ide. Does anyone have experience with an ide that is useful in debugging xsp/xsl pages? marty - 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]
Unable to pass a parameter
Can someone please help me pass a parameter to a XSL stylesheet? I have been trying without luck and do not know why this will not work with Cocoon2. I've been told it should be possible, but no luck and I can't find anything in the archives to help me. I know that this is a Cocoon2 problem because others have validated that the XSL is correct with non-Cocoon processors. In my examples below, I was hoping that clicking on the click here text would change the value of my parameter. But no luck. If I add ?paramtest=something after my URL, I also get no parameter passed. Here's my XML: ?xml version=1.0 encoding=iso-8859-1? ?xml-stylesheet href=test.xsl type=text/xsl? resource xml file value /resource Here's my XSL: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; !-- determine output of transform -- xsl:output method=html encoding=iso-8859-1 indent=yes/ xsl:param name=paramtest select='on'/ !-- master template-- xsl:template match=/ html body parameter value=xsl:value-of select=$paramtest/ br /br / xml value=xsl:value-of select=//resource/ br /br / a xsl:attribute name=hreftest.html?paramtest=12/xsl:attribute Click here/a /body /html /xsl:template /xsl:stylesheet - 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: Why doesn't Cocoon2 recognize [position() lt; last()] ??
Sure, that would be great. As I've said before, I am new to all of this, especially setting up a server. It was a major accomplishment just getting Tomcat to work. :) The only things I installed was JDK 1.3.1 (which will not have an impact here) and Xerces, which I installed so I can create XML documents. (Primarly for the new people and to correct any errors I may have, Xerces in a XML parser.) On my failed attempt for Cocoon1, I did install Xalan (because it sounded good) but since my XML and XSL works fine without it, I didn't bother for Cocoon2. This is probably a very stupid question, but how would one know what add-ons are required? Assuming that I need Xalan, how would you know given my other XSL transformations work? And I am having another XSL problem (tables in FO), so how would I know what to install? I do not want to install everything blindly, nor do I yet intuitively know what does what. This might be beyond the scope of this list, and if so, please respond privately but I suspect others may benefit from the discussion. Thanks for your help. -Original Message- From: Morrison, John [mailto:[EMAIL PROTECTED]] Sent: August 16, 2001 7:21 AM To: '[EMAIL PROTECTED]' Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Cocoon itself doesn't understand xml. All it knows is how to hand it off to a parser/transformer. There _may_ be some settings which can be sent to xalan which Cocoon doesn't know/send, if you can tell us what it is I'm sure we can accomodate it...? If you look in the /lib directory you'll find all the jar files Cocoon relies on to work. If you want more details find the document 'jars' (xml in cvs, html when built, available on the website). J. -Original Message- From: Hewko, Doug [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 August 2001 12:17 pm To: '[EMAIL PROTECTED]' Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ?? I would like to find out why it doesn't work.. I am running Cocoon2. Why would I need Xalan? Cocoon should be able to handle the code since it handled everything else I've given it. I do not understand John's question through. The output would be set from the sitemap.xmap. I just plugged in my XML and XSL there, and let Cocoon do the work. Is this a bug with Cocoon2? -Original Message- From: Morrison, John [mailto:[EMAIL PROTECTED]] Sent: August 13, 2001 10:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Also, check versions - is C2 running with the version you manually generated the output from? -Original Message- From: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: Monday, 13 August 2001 3:47 pm To: [EMAIL PROTECTED] Subject: AW: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Well, you should try it with xalan standalone, to make sure thats really a cocoon and not a xalan bug. Im quite sure its a xalan bug, not from cocoon, because all XSLT processing is managed throgh xalan (as far as i know). -Ursprüngliche Nachricht- Von: Hewko, Doug [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 13. August 2001 16:42 An: Stefan Seifert Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Thanks for the reply. FYI. From a XSL list which says that this is a Cocoon2 bug... I get the following outputs. Xalan: Jeff/555-1234/555-4321/lightgrey#13; David/383-1234/383-4321/lightblue#13; Roger/888-1234/888-4321/lightyellow#13; MSXML: Jeff/555-1234/555-4321/lightgrey David/383-1234/383-4321/lightblue Roger/888-1234/888-4321/lightyellow I'm not sure why this isn't working for you. It may be a bug in Cocoon's position() function. I don't have Cocoon here, but you might want to try playing around with the predicate and see. Also, the xsl:text#xD;#xA;/xsl:text node inserts carriage-return/line-feed characters, which are usually stripped by a browser, so br/ is probably more appropriate for your environment. hope this helps some... -Original Message- From: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: August 13, 2001 10:37 AM To: Hewko, Doug Subject: AW: Why doesn't Cocoon2 recognize [position() lt; last()] ?? I think in this case, this is not a cocoon-bug, but a xalan-bug (which cocoon uses internally for XSLT), and xalan has its own mailing lists, too (see apache website). Stefan - 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
Why doesn't Cocoon2 recognize [position() lt; last()] ??
Hi! I have an XSL stylesheet that I typed from a tutorial and it would not work under Cocoon2. Yet, it worked fine when I used MSXML4. (Thus, the only difference between Cocoon and MS is the parser.) If requested, I can attach the entire stylesheet and XML documents, but the offending template is: xsl:template match=Member xsl:for-each select=*[position() lt; last()] xsl:value-of select=./ xsl:value-of select=$delimiter/ /xsl:for-each xsl:value-of select=*[last()]/ /xsl:template For some reason, Cocoon does not go through each node in the xsl:for-each select=*[position() lt; last()] line. The best I could get Cocoon2 to do is to only look at the last node. Does anyone know why? - 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: Why doesn't Cocoon2 recognize [position() lt; last()] ??
Thanks! Using your help, I did get the expected output by replacing last() with the eventual translation, 4. So my new line read xsl:if test=position()lt;4 . Now, can you please explain what you meant by a XSL-Problem? Should my original line work according to the W3 recommendations, or is it the way the parsers interpret things? Again, it works using MSXML4.0 but not Cocoon2. Just wondering so I could identify future instances that are similar. Thanks again. -Original Message- From: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: August 13, 2001 8:19 AM To: [EMAIL PROTECTED] Subject: AW: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Its not a cocoon, but a XSL-Problem. Try the following: xsl:template match=Member xsl:for-each select=* xsl:if test=position()1 xsl:value-of select=$delimiter/ /xsl:if xsl:value-of select=./ /xsl:for-each /xsl:template Stefan -Ursprüngliche Nachricht- Von: Hewko, Doug [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 13. August 2001 14:01 An: '[EMAIL PROTECTED]'; cib Betreff: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Hi! I have an XSL stylesheet that I typed from a tutorial and it would not work under Cocoon2. Yet, it worked fine when I used MSXML4. (Thus, the only difference between Cocoon and MS is the parser.) If requested, I can attach the entire stylesheet and XML documents, but the offending template is: xsl:template match=Member xsl:for-each select=*[position() lt; last()] xsl:value-of select=./ xsl:value-of select=$delimiter/ /xsl:for-each xsl:value-of select=*[last()]/ /xsl:template For some reason, Cocoon does not go through each node in the xsl:for-each select=*[position() lt; last()] line. The best I could get Cocoon2 to do is to only look at the last node. Does anyone know why? - 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: Problems with Cocoon2 b2
Did you set your classpath=c:\xerces\xerces.jar;c:\jdk1.3.1\lib\tools.jar and JAVA_HOME=c:\jdk1.3.1? I ended up using the j2sdk-1_3_1-win.exe file. I could not get cocoon2 to work from just JDK 1.3.1 myself... Hope this helps. -Original Message- From: Pedro Pastor [mailto:[EMAIL PROTECTED]] Sent: August 8, 2001 9:57 AM To: [EMAIL PROTECTED] Subject: Problems with Cocoon2 b2 Hello all, I have just entered to this list and before posting this question i have browsed the FAQ and the list-archives. I found people posting this same question but with no satisfactory answer. I had Cocoon2 b1 up and running with Tomcat 3.2.1 and Tomcat 4.0 b6. When it came out I tried to install Cocoon2 b2 but and internal server error appeared in both cases. The only answer to this question that I found in the archives was to compile Cocoon2 b2 with jdk 1.3, but I have jdk 1.3.1 installed. Have I got something missed ? Thank you very much in advance. Pedro Pastor University of Alicante Spain - 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: Problems when installing Cocoon with Tomcat 3.1
Someone should create a FAQ for this... Did you install JSWDK (http://java.sun.com/products/jsp/archive.html)? Did you set your JAVA_HOME path to your JDK 1.3.1? (ie: c:\jdk1.3.1) Did you set up your CLASSPATH (c:\xerces\xerces.jar;c:\jdk1.3.1\lib\tools.jar)? Are you using Tomcat? (Web server?) Or what server are you using? -Original Message- From: Monika Kubosch Dahl [mailto:[EMAIL PROTECTED]] Sent: August 8, 2001 9:30 AM To: [EMAIL PROTECTED] Subject: Problems when installing Cocoon with Tomcat 3.1 Hello. I have downloaded Cocoon and run the build.bat. I have the cocoon.war and cocoon.jar in the right directories, but I can't find any cocoon.properties file (neighter in the bin/ or the build/classes/org/apache/cocoon/ directory). How do I get this file?? I also wonder what I should do with the zip.sig file Is this a zip-file or what? When I try to access cocoon on http://localhost:8080/cocoon I get a Cocoon2 internal server error. Can anyone help me? best regards, Monika K. Dahl [EMAIL PROTECTED] Oslo Norway - 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: Cocoon2 changing links on me....
Thanks. Sorry for the mis-post, but how do you know if it is XSL to Coccon2? The code worked perfectly when I was coding client-side. The only change was instead of having my browser parse it, Cocoon2 was. Thus, it seemed like the way Cocoon2 was handling things. -Original Message-From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]Sent: August 2, 2001 9:32 AMTo: [EMAIL PROTECTED]Subject: RE: Cocoon2 changing links on me Hi, These are basic XSLT questions, and have nothing to do with Cocoon - use XSLT mail lists in future. Here is an answer: you must write this in one line: xsl:attribute name="href"mailto:xsl:value-of select="member/e_mail"/@ccra-adrc.gc.ca/xsl:attributeOR use xsl:text: xsl:attribute name="href" xsl:textmailto:xsl:value-of select="member/e_mail"/@ccra-adrc.gc.ca/xsl:text /xsl:attribute Vadim -----Original Message-From: Hewko, Doug [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 02, 2001 9:04 AMTo: '[EMAIL PROTECTED]'Subject: Cocoon2 changing links on me Why do I get http://localhost/cocoon/%0D%0A%09%09mailto:[EMAIL PROTECTED]instead of mailto:[EMAIL PROTECTED]when I am trying a href in Cocoon2? How could I get rid of the http://localhost/cocoon/that is being prefixed? Here is what my stylesheet looks like: xsl:template match="teammembers" xsl:if test="member[@contact='yes']" If you have any questions or inquiries, d please do not hesitate to contactxsl:value-of select="member/name"/at xsl:value-of select="member/phone/number"/, or e-mail axsl:attribute name="href"mailto:xsl:value-of select="member/e_mail"/@ccra-adrc.gc.ca/xsl:attributeimg src="_images/email.gif" style="cursor:hand" border="0"//a /xsl:if /xsl:template
RE: relative links
Yes you can. I defined my Cocoon2 settings to take _images as a relative link, which I place in my tomcat\webapps\cocoon\xmlimages directory. The images/**.gif definition is there by default. In the sitemap.xmap file, look for the following: map:match pattern=images/**.gif map:read src=resources/images/{1}.gif mime-type=image/gif/ /map:match map:match pattern=_images/**.gif map:read src=xmlimages/{1}.gif mime-type=image/gif/ /map:match map:match pattern=_images/**.jpg map:read src=xmlimages/{1}.jpg mime-type=image/jpg/ /map:match map:match pattern=images/**.jpg map:read src=resources/images/{1}.jpg mime-type=image/jpg/ /map:match map:match pattern=images/**.png map:read src=resources/images/{1}.png mime-type=image/png/ /map:match Hope this helps. -Original Message- From: Fiore, Francois [mailto:[EMAIL PROTECTED]] Sent: August 3, 2001 9:50 AM To: '[EMAIL PROTECTED]' Subject: relative links Hi everyone ! I am using cocoon to transform a JSP page formatted as an XML page to html using an XSL stylesheet.Everything is fine except that in the XSL page I have some relative links to pictures which don't work. I checked to put the pictures in the right directory. This is quite surprising because in the XSL page I also put a form with a relative link as action to the jsp page itself and it works ok. Have I not set up everything correctly for getting the images ??? Can't we use relative links ??? I am a bit confused !! thanks for your help Hope this question is not too stupid cause I've got the feeling I am missing something ... francois -- This communication contains confidential information intended solely for the use of the individual/s and/or entity or entities to whom it was intended to be addressed. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this communication in error, please contact the sender immediately, delete this communication from your system, and do not disclose its contents to any third party, or use its contents. Any opinions expressed are solely those of the author and do not necessarily represent those of Orchestream Ltd or its group of companies unless otherwise specifically stated. - 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: beginner
Hi! I just installed Cocoon2 myself. Modify the sitemap in your \tomcat\webapps\cocoon directory. I never changed the cocoon.xconf, so I do not know what it does, but there's one in the same directory. The stylesheets are in the stylesheets directory (from tomcat\webapps\cocoon) , but after changing the sitemap, I created my own. Docs would probably be the same. Hope this answers your question. -Original Message- From: raghu [mailto:[EMAIL PROTECTED]] Sent: August 1, 2001 2:58 AM To: [EMAIL PROTECTED] Subject: beginner Hello all, I am a cocoon beginner, i want to create a new application(a portal), where should i put all my xml, xsl documents and should i change the original sitemap and cocoon.xconf to suit my needs, or should i put my docs in a separate directory and copy sitemap.xmap and cocoon.xconf to it and then do changes? hope my question is clear enough, please reply, raghu black holes are, when GOD is dividing by zero - 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]
Strange error messages...
I am receiving an error from Cocoon2 that I do not know. Is there a central repository that can help me interpret the error messages? The error I have is: org.xml.sax.SAXParseException: The encoding declaration is required in the text declaration. - 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: tomcat crash with cocoon 2
I had to use JSDWK from URL is: http://java.sun.com/products/jsp/archive.html -Original Message- From: Christophe Frey [mailto:[EMAIL PROTECTED]] Sent: August 1, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: tomcat crash with cocoon 2 I've install a new version of tomcat 3.2.2 and set it to work with cocoon (create the war file, put it in the webapp directory, delete the jaxp.jar, rename the parser.jar to zparser.jar, put the xerces... in the lib etc...). Tomcat starts and work fine until if I access the example but as soon as I tryed to access the cocoon servlet it crash ?? Anyone has an idea I'm using jdk 1.2.2 Thanks ___ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble getting Cocoon2 to work...
Dave Smith, John Peters, Java Guru, et al., Thanks for your help! I eventally got Cocoon to work. Seems like I had the wrong JDK specified. - 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 program for Cocoon2?
I am eager to get started programming server-side XML in Cocoon2. First, is there a document that says where I can place my own code to run them in Cocoon2? Where are the samples files located? I am looking at the samples, and found http://localhost:8080/cocoon/hello.svg;. Yet, there is no hello.svg file on my hard drive. I would like to know where this code is generated. 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]
Problems running Cocoon2
Help! I am trying to get Cocoon2 to work and am getting the following error: ** START OF ERROR MESSAGE *** type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet embedded exception stacktrace org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:61) at org.apache.cocoon.Cocoon.configure(Cocoon.java:216) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) embedded exception org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations at org.apache.cocoon.Cocoon.configure(Cocoon.java:220) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) exception org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations -Original Message- From: Dave Smith [mailto:[EMAIL PROTECTED]] Sent: July 27, 2001 9:43 AM To: [EMAIL PROTECTED] Subject: C2 using X11 Well I got c2 ruuning with jetty (rm javax.xml.jaxp.jar and org.apache.crimson.jar from the lib directory and add xerces_1_4_1.jar) but now I am having another problem. I guess in the default config it uses svgxml,svg2jpeg .. etc and it must use the native java awt libraries that need to connect to an X11 display. Is there any way to get around this? The machine running jetty/cocoon will not have one. java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment .java:58) at sun.awt.motif.MToolkit.clinit(MToolkit.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:498) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489) at java.awt.SystemColor.updateSystemColors(SystemColor.java:342) at java.awt.SystemColor.clinit(SystemColor.java:335) at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy stemColorResolver.java:27) at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75) at org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMa p.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:3 9) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:3 2) at org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.ja va:88) at org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation. java:59)
RE: Problems running Cocoon2
Thanks. I added c:\xerces\xerces-1_4_2\xerces.jar to the start of my CLASSPATH without any luck. There are two JAR files in that directory; xerces and xercesSamples. Did I enter the path incorrectly? -Original Message- From: Jon Peterson [mailto:[EMAIL PROTECTED]] Sent: July 27, 2001 10:36 AM To: [EMAIL PROTECTED] Subject: Re: Problems running Cocoon2 The Xerces library is not being loaded correctly. Please refer to http://xml.apache.org/cocoon2/faq.html#faq-9 for further info. Jon - Original Message - From: Hewko, Doug [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 27, 2001 10:14 AM Subject: Problems running Cocoon2 Help! I am trying to get Cocoon2 to work and am getting the following error: ** START OF ERROR MESSAGE *** type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet embedded exception stacktrace org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser at snip!!! - 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]
Help : Taking the plunge - cocoon
In order to develop XML in a W3C compliant environment, I've decided to abandon my IE5 client-side development and try COCOON. Does anyone know of good resources where I can get help on getting COCOON to work? I've downloaded the product, and unarchived it. The instructions say I need a Java Virtual Machine, so I downloaded JDK 1.2.2. Not sure if that is good. I also downloaded Weblogic (v5.1 with fixpack 9 installed), for the servlet engine, but am unable to get even the COCOON (v 1.8.2) build utility to work. I downloaded XALAN (v J2.2D), even though I do not know what I would use it for. A good start would be does anyone have a list of software that would be required to use COCOON to create XML and use XSL, and also WML documents? I'm installing this on a Windows NT 4 workstation. (My skills and patience are with programming and not configuring computers.) 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]