cocoon redirect
Hi all, I want to log when the user follows an external link of an HTML page. I put an internal link instead (with the external link as a parameter),that uses the session context (xsl:session) to get the user ID and writes a log record to a SQL database using the sql transformer. Afterwards, I would then link to redirect to the external link. But when I use the map:redirect-to command, my pipeline is not executed. If I serialize before, it is executed but the redirect is not performed. How do I log an external link using session and sql transformer with an redirect at the end of the pipiline? Thank you very much for your help! Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
PDF Forms and XSL:FO
Is it possible to generate PDF forms (editable fields within PDF) using XSL:FO?Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
XSP Problem
I use Cocoon 2.0.4 for JDK1.3 on Weblogic 7.0 SP1. I need to use Xalan Extensions to write _javascript_ in my XSL. I use Xalan 2.5.D1 and the XercesImpl that comes with it. If I add the xalan.jar, xercesImpl.jar in my weblogic's classpath the Xalan Extensions work, but the Cocoon's XSP fail with the following error: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling source_xsp: Line 101, column 25: unclosed character literal Line 101, column 24: illegal start of expression Line 0, column 0: 2 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-traceorg.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling source_xsp: Line 101, column 25: unclosed character literal Line 101, column 24: illegal start of expression Line 0, column 0: 2 errors I would like to know if there are any changes I would have to make to cocoon.conf to make this work.Any ideas?Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Xalan Java Extensions and Cocoon
I am new to Cocoon and Xalan. I am trying to use the Xalan extensions so that I can write _javascript_ programs within XSL and tranform them into html using Cocoon. I am trying the example given in http://xml.apache.org/xalan-j/extensions.html This does not work with Cocoon. XML Source Document: ?xml version="1.0"?doc name first="David" last="Marston"/ name first="David" last="Bertoni"/ name first="Donald" last="Leslie"/ name first="Emily" last="Farmer"/ name first="Jack" last="Donohue"/ name first="Myriam" last="Midy"/ name first="Paul" last="Dick"/ name first="Robert" last="Weir"/ name first="Scott" last="Boag"/ name first="Shane" last="Curcuru"//doc XSL for transforming is: ?xml version="1.0"? xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" xmlns:counter="MyCounter" extension-element-prefixes="counter" version="1.0" xalan:component prefix="counter" elements="init incr" functions="read" xalan:script lang="_javascript_" var counters = new Array(); function init (xslproc, elem) { name = elem.getAttribute ("name"); value = parseInt(elem.getAttribute ("value")); counters[name] = value; return null; } function read (name) { // Return a string. return "" + (counters[name]); } function incr (xslproc, elem) { name = elem.getAttribute ("name"); counters[name]++; return null; } /xalan:script /xalan:component xsl:template match="/" HTML H1Names in alphatebical order/H1 counter:init name="index" value="1"/ xsl:for-each select="doc/name" xsl:sort select="@last"/ xsl:sort select="@first"/ p xsl:text[/xsl:text xsl:value-of select="counter:read('index')"/ xsl:text]. /xsl:text xsl:value-of select="@last"/ xsl:text, /xsl:text xsl:value-of select="@first"/ /p counter:incr name="index"/ /xsl:for-each /HTML /xsl:template/xsl:stylesheet The Sitemap Configuration is: map:match pattern="xalaneg.html" map:generate type="file" src="" / map:transform type="xslt" src="" / map:serialize type="html" / /map:match I have bsf.jar, js.jar and jsstyle.jar in WEB-INF\lib of cocoon and also in the server classpath. Environment: OS: Windows XP App Server: Weblogic 7.0 (SP1) JDK: JDK1.3.1 Cocoon version: Cocoon 2.0.4 The HTML output I get is: Names in alphatebical order [ What have I missed here? Thanks. Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
map:resource and map:aggregate about (where is the problem)
hi i try to use a xml file as a data repository and get data (generate xml output using .xsl) i have into my sitemap this match map:match pattern=xmldb/*.* map:generate src=../htdocs/xmldb/{1}_{../locale}.xml/ map:transform src=../htdocs/xmldb/{2}.xsl/ map:serialize type=xml/ /map:match when i make a call using a URL just like http://.../xmldb/data.trans?locale=el where data_el.xml is my data repository and trans.xsl is my xsl file everything work fine but ! i want this xml output to be a part of a greater xml output so i try to use aggregate my code map:resource name=dynbuilder map:aggregate element=site map:part src=cocoon:/xmldb/{../1}.{../2}.trans label=content/ /map:aggregate map:serialize type=xml/ /map:resource in this code map:part src=cocoon:/... / seems to bring No content i try to modify my map:resource as map:resource name=dynbuilder map:generate src=cocoon:/xmldb/{../1}.{../2}.trans label=content/ map:serialize type=xml/ /map:resource and i get no content too i call this resource using map:match pattern=dynbuilder.*.* map:call resource=dynbuilder/ /map:match http:///dynbuilder.data.trans?locale=el is here something i do wrong? thnx stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregating XML
i use another one approach i aggregate a some xml files in sitemap then i reorder elements inside the final xml [layout.xsl] and send the result for processing map:resource name=sitebuilder map:aggregate element=site map:part src=cocoon:/xml/Layout.xml/ map:part src=cocoon:/xml/xHead.xml/ map:part src=cocoon:/xml/xCommon.xml/ map:part src=cocoon:/xml/c{../1}.xml label=content/ map:part src=cocoon:/xml/xFoot.xml/ /map:aggregate map:transform src=../htdocs/sitestyle/layout.xsl/ map:transform src=../htdocs/core/xsl/core.xsl/ map:serialize type=html/ /map:resource in layout.xml i have instruction where i want to put my elements site . . . osm:pageSettings osm:copy select=common/ !-- copy here the container with contentID=common-- /osm:pageSettings . . . osm:container xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:osm=http://osmosis.gr/osml/1.0; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsi:noNamespaceSchemaLocation=./core/schema/generated.xsd contentID=common osm:commonSettings xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:osm=http://osmosis.gr/osml/1.0; osm:stylesheet osm:cssthemes/osml_main_size.css/osm:css osm:cssthemes/osml_main_layout.css/osm:css osm:cssthemes/osml_main_color.css/osm:css /osm:stylesheet /osm:commonSettings /osm:container /site and the xsl that reorder my xml .. .. xsl:template match=osm:copy xsl:call-template name=getContent xsl:with-param name=select select=@select/ /xsl:call-template /xsl:template .. .. xsl:template name=getContent xsl:param name=select/ xsl:apply-templates select=//osm:container[@contentID=$select]/ /xsl:template xsl:template match=node()|@* priority=-1 xsl:copy xsl:apply-templates select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template hope all this can help you Stavros Kounis osmosis networks consulting http://www.osmosis.gr On Wed, 29 Jan 2003, Jeff Ramsdale wrote: Hi there, I'm relatively new to Cocoon and XML and I've been lurking on the list for a while. I have a problem that's stymied me--perhaps someone could help me? I want to build an aggregate web page from a set of simple XHTML pages by extracting the contents of their bodies and aggregating them. I have an XML file that designates the structure of the page: ?xml version=1.0? page column moduleAboutIntro.xhtml/module moduleAboutQContinued.xhtml/module /column column moduleAboutQ3.xhtml/module /column /page I have a stylesheet that I mean to use to aggregate the files, but I haven't figured out a way to pull in the bodies of the files designated by the XML above. I've designated below where I've been inserting my test code: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:output method=html / xsl:template match=/ html xsl:call-template name=page / /html /xsl:template xsl:template name=page xsl:apply-templates/ /xsl:template xsl:template match=column p xsl:textColumn/xsl:text br / xsl:apply-templates select=module / /p /xsl:template xsl:template match=module xsl:variable name=mod xsl:value-of select=. / /xsl:variable !-- HERE'S THE MISSING CODE -- xsl:textModule/xsl:text br / /xsl:template /xsl:stylesheet What's the missing piece? I tried using xinclude and cinclude, but my impression is that they are intended for an XML file to include another XML file, not for a stylesheet to include XML. (I do understand that a stylesheet _IS_ XML, though, so perhaps I just missed how I should have done that?). I also tried to do a map:aggregate from my pipeline, but couldn't figure out how to do that based on the contents of my XML file. If my approach is misguided, feel free to correct me. Also, if I should know of other projects doing similar things, do let me know. (I'm just beginning to read about Forrest, for instance.) Thanks, all! Jeff - Please check that your question has not already been answered in the FAQ before posting.
Re: Cocoon hosting - experiences?
tomcat 4.0.1 cocoon 2.0rc2 Apache/1.3.22 (Unix) (Red-Hat/Linux) the server up is from the release date of cocoon 2.0rc2 we are serving 3 sites (24/7) using cocoon (wirtual hosting) without any problem and we are almost satisfied with the performance i notice that in this server are up and runing 3 more postnuke sites all this time we have to restart tomcat no more than 5 times. stavros kounis On Thu, 30 Jan 2003, SAXESS - Hussayn Dabbous wrote: i'm using this combination: apache-1.3.26 (mod_jk, SSL) tomcat-4.1.18 cocoon-2.0.4 DB2-UDB-7.1 Secureway-LDAP-3.2.1 i'm serving my companies website with this. My overall Uptime of the site is 100% but that may not say anything, because the site is only running since one month. My site is rather simple (int terms of cocoon usage) at the moment. But it serves the pages dynamically directly from xml (the navigation is dynamically created). i'm satisfied in all aspects. But im running the service on my own hardware (PC/Linux), so i have no problems with and we are any provider. i dont know, how problematic it is to get a provider to run a webapp. but that shouldn't be a big technical problem... Besides this i'm currently building a highly dynamic webapplication, that serves as a metasearch engine. the frontend is pure cocoon. also here im satisfied with the current results. regards, hussayn gv wrote: Hello, I am curious about people's experiences with setting up live Cocoon sites with a Web host: Any hosts that seem particularly good (or bad)? How about uptime for the Cocoon servlet and the servlet container? Any controls for restarting if needed? Satisfied with the version of Cocoon, Java, and whatever database is provided? Or, are you using an ordinary Web host and pushing out the Cocoon-created content as static pages? I'd appreciate anything you could share on this. I'm a huge fan of Cocoon and am finding it very useful to build sites. I'm still mostly using it to create static pages, but wondering if there are brighter options out there. Thank you, John __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setup natch for dummies
hi our problem: we want to send our work for a presentation to some people but our work run only under cocoon the question: is there any project that have an almost ready bat process that install java, tomcat, cocoon (based in pre-configuration files)? so we create a CD and send this to those people? i know that something simila (apache, mysql, php) exist the idea is something like a runtime cocoon environment stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NewBee - Dynamically created XML
use aggregation in site map to create a final xml from some xml fragments we have test many ways to solve a problem like this from xsp (dynamic pages) to c or x include but we have a least descide touse sitemap aggregation stavros On Mon, 13 Jan 2003, Steve Millington wrote: Being a newbee to Cocoon, I am wondering if someone can help me with a quick strategy to solve the following problem. I already have a Java program that can produce XML text. For example, I have a java Bean that has a generate() method that returns a String that contains a valid XML fragment. I would like to use this generate XML in a pipeline, but I can't figure it out. The method of attack I used was to use XSP and have an xsp page something like: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xsp:structure xsp:includecom.mystuff.MyBean/xsp:include /xsp:structure page xsp:logic MyBean mb = new MyBean(); String theXML = mb.generate(); /xsp:logic xsp:exprtheXML/xsp:expr /page /xsp:page This does not work as I had hoped. The 'theXML' data is not placed into the XML tag tree, but rather is used as CDATA inside my page tag. Is there something cunning I can do to persuade xsp that the data should be used to generate XML tag structure, rather than it being textual data. Or maybe I am barking up the wrong Tree. I would write some implementation of Generator, but that looked a bit too complex for my liking since it would probably require the coding of MyBean to produce some sore of parsed XML rather than the text. Thanks for any help. Steve - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ESQL and JavaScript
can someone explain me how is it possible this code to be valid without syntax errors? how can we have a markup language elemend [esql:any/] inside a javascript function (){ } or your are talking about something else than clientside javascript thnx stavros On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote: Hi, just like this: ... script type=text/javascript language=JavaScript function example() { i=0; esql:connection esql:poolxxx/esql:pool esql:execute-query esql:query SELECT description, service_id FROM report WHERE report_id = xsp:exprreport_id/xsp:expr) ORDER BY display_order /esql:query esql:results esql:row-results document.getElementById (SERVICE_ID).options[i++] = new Option(esql:get-string column =description/,esql:get-string column=service_id/); /esql:row-results /esql:results esql:no-results document.getElementById (SERVICE_ID).options[i++] = new Option(,); /esql:no-results esql:error-results ... /esql:error-results /esql:execute-query /esql:connection service_dropdown_change(); } /script ... Jonny |-+ | || |-+ --| | | --| On 08.Jan.2003 -- 11:50 AM, [EMAIL PROTECTED] wrote: Hi, I know its not the (to be harmless) nicest way, but my ESQL in JavaScript works fine. I just wanted to know if it is possible in Javascript-Functions to place passed parameters in ESQL-Statements. I'm missing something here: how do you manage to have ESQL in javascript? AFAIK there is no logicsheet for esql + javascript XSP. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n catalogue and sql [act howto]
hi konstantin i plan to create an action that will create sitiemap variables for specific request-parameters not for use only with i18n is there any simple action or any howto create an action for cocoon? i need just a point to start form (something for example) thnx stavros On Wed, 8 Jan 2003, Konstantin Piroumian wrote: From: Cocoon User [EMAIL PROTECTED] hi martin this is a way to send a parameter inside your xsl file (pretty good) but i need something else i want to use a request parameter as a variable inside my sitemap example if i have http://../...?locale=el src={locale}_data.xml point to el_data.xml (i have do something similar using a action just like in i18n example from 2.1 version of cocoon but i'm wondering if there is another way to do this without action) Another possibility is to create an InputModule that will act exactly like the LocaleAction, so you'll be able to use it like this: src={i18n:locale}_data.xml and even now you can use the 'request-param' module for that: src={request-param:locale}_data.xml Konstantin thnx stavros On 5 Jan 2003, Martin Lüthi wrote: You can use the request parameter like this: map:transform src=stylesheets/mystyle.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=region value={request:locale}/ /map:transform Cheers Martin Cocoon User [EMAIL PROTECTED] writes: i know how to make a src file selection based to requested url using matches http://./el/test http://./en/test map:match pattern=*/* map:generate src={1}_{2}.xml/ /map:patch but how can do something similar using parameter? http:///test?locale=el http:///test?locale=en using {1} or {2} i refer to first or second * in pattern but how can i refer to locale prameter value inside map:match/ ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n catalogue and sql
hi martin this is a way to send a parameter inside your xsl file (pretty good) but i need something else i want to use a request parameter as a variable inside my sitemap example if i have http://../...?locale=el src={locale}_data.xml point to el_data.xml (i have do something similar using a action just like in i18n example from 2.1 version of cocoon but i'm wondering if there is another way to do this without action) thnx stavros On 5 Jan 2003, Martin Lüthi wrote: You can use the request parameter like this: map:transform src=stylesheets/mystyle.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=region value={request:locale}/ /map:transform Cheers Martin Cocoon User [EMAIL PROTECTED] writes: i know how to make a src file selection based to requested url using matches http://./el/test http://./en/test map:match pattern=*/* map:generate src={1}_{2}.xml/ /map:patch but how can do something similar using parameter? http:///test?locale=el http:///test?locale=en using {1} or {2} i refer to first or second * in pattern but how can i refer to locale prameter value inside map:match/ ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n Transformation problem
i have a similar problem solved using child element and not attributes input valuei18n:text i18n:key=key_textsome text/i18n:text/value /input then i have 2 step transformation first i18n transformation to replace i18n tags with the right content secend xslt tranformation to generete the element i want with attributes input value=some i18n transformed text/ maybe this can help you regards Stavros On Sun, 5 Jan 2003, Murari Dhoot wrote: Hello Friends, I am applying a i18n Transformation on the following button input value=Search type=submit name=cocoon-action i18n:attr=value/input Actually depending upon the value of Button i.e. Search , i am calling a method, but if i apply i18n transformaion the value of button changed and i m not able to call that method. So what i need display value of button should change but passing value should always be Search using i18n??? how to do this Thanks in advance Thanks and Regards, Murari Dhoot - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic query in xsp:logic and esql:query
i use to build queries in in logic too , into a variable this code work for me: xsp:logic int lookup = 0; String slookup = ; String lookupstr = ; String colfilter = ; slookup = request.getParameter(lookup); lookupstr = request.getParameter(lookupstr); if (slookup != null){ lookup = Integer.parseInt(slookup); } if (lookup == 1) { colfilter =WHERE instr(fname,'.concat(lookupstr).concat(')); } /xsp:logic ... ... ... esql:queryselect contact_id, fname, mname, lname from contacts xsp:exprcolfilter/xsp:expr /esql:query hope can help stavros On Sun, 5 Jan 2003, Lajos Moczar wrote: Yves - Why not build your select statement as a string variable inside an xsp:logic block after the root user tag, and then reference it thusly: esql:query xsp:exprmyQuery/xsp:expr /esql:query I do this all the time and it works perfectly. Regards, Lajos - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a case for Cocoon?
hi ines if your people never have seen an html then they will produce very simple html output paragraphs, with or without titles, images , bulets and tables (nothing more is needed im most cases) so u can design a simple collection of elements and a xsd schema that describe those element and there attributes then you can give an xml editor and this schema to those people this is an easy way to make people create xml files in the way u want then u have to create a machine that will run unter cocoon who will be the presentation layer for this xml files there is a project we work on and soon will be free for download that make exactly what u want. (this not final for the moment but if you are familiar with xml.xsl.javascript i thing that u can use it) and all this under cocoon contact me direct if you want more informations Stavros S. Kounis http://www.osmosis.gr [EMAIL PROTECTED] On Fri, 3 Jan 2003, Ines Robbers wrote: Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon 204 - core.log - [become bigger without requests]
hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[more] cocoon 204 - core.log - [become bigger without requests]
the core.log entry is: DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM total Memory: 66650112 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 24154624 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: Memory is low = false On Fri, 3 Jan 2003, Cocoon User wrote: hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I use map:aggregate for XSL files?
we have a system that produce web site drived form a xslt collection we have a core.xsl file and include into this all others usinc xsl:include using relative to core.xsl paths thats work fine and completly transparent to cocoon. so we can use this xslt collection with or without cocoon regard Stavros Kounis http://www.osmosis.gr On Wed, 1 Jan 2003, leona s wrote: Hi All, I have a rather large application that has a huge XSL file that I would like to break down into smaller files. Is it possible to use aggregate to do this? The problem is establishing the attributes of the xsl:stylesheet element in the root; I don't see a way to do this with map:aggregate. Thanks very much, Leona Slepetis [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sql xsp and redirection
hi people and happy new year i try to build a sible address book using mySQL and xsp to understand how thing work i have two xsp files that only execute update and delete queries and display a success or failure message is it posible to call a .xsp file (for delete query execution) and then this .xsp do a redirection to main.xsp file? i'm looking for a xsp implementation (not using java script, i have do this) something like Header(Location: main.php?arg=blabla) in php thnx stavros ++ (my litle pool: how many lines of code will cocoon have at the end of 2003?) ++ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n catalogue and sql
hi konstantin i know how to make a src file selection based to requested url using matches http://./el/test http://./en/test map:match pattern=*/* map:generate src={1}_{2}.xml/ /map:patch but how can do something similar using parameter? http:///test?locale=el http:///test?locale=en using {1} or {2} i refer to first or second * in pattern but how can i refer to locale prameter value inside map:match/ ? thnx stavros On Mon, 30 Dec 2002, Konstantin Piroumian wrote: From: Cocoon User [EMAIL PROTECTED] hy people i have found very usefull the i18n processing but what happend when you have large text? It's not recommended to use i18n transformer for large texts. There are several other ways to solve that task: use XInclude/CInclude, XSLT with document() function, sitemap aggregation, etc. Another possibility is to use separate content files for different languages, e.g: index_en.xml, index_ru.xml, ..., and then use an action or an input module to retrieve the needed one based on the user's locale (you can use LocaleAction and its 'language' sitemap parameter). is it possible for catalogues to retrieve data from an sql server mySQL for example Recently there was commited a patch that allowed to use any source as input for the XML catalogue, so you can easily use 'cocoon:/' protocol or any other to retrieve your dictionary data from a database. Note, that implementation of i18n and especially the catalogue handling part is quite different in 2.0.x and 2.1-dev versions. Konstantin xml page -ID- catalogue -ID- data from SQL thnx stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
i18n catalogue and sql
hy people i have found very usefull the i18n processing but what happend when you have large text? is it possible for catalogues to retrieve data from an sql server mySQL for example xml page -ID- catalogue -ID- data from SQL thnx stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange output when i use i18n transformation
hello people i have a very strange output when i use i18n when i use element i18n:textsomething/i18n:text /element and i ask xsl:value-of select=//element disable-output-escaping=yes/ i get in output: %0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09something%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09 its very strange because when i remove the i18n element and try with element something /element i get in output the something string this hapend only when i get the elements value and i put it into a parameter look at xsl code that follow a part of my xml code - osm:hlink id= class=mainlink hclass=hmainlink outerclass= targetURLsitebuilder.Services/targetURL osm:linkparam name=locale osm:paramvalueen/osm:paramvalue /osm:linkparam osm:text..: i18n:text i18n:key=hmn_servicesarticle_text1/i18n:text/osm:text /osm:hlink osm:hlink id= class=mainlink hclass=hmainlink outerclass= targetURLsitebuilder.Activities/targetURL osm:linkparam name=locale osm:paramvalue i18n:text i18n:key=locale_langlocale_lang/i18n:text /osm:paramvalue /osm:linkparam osm:text..: i18n:text i18n:key=hmn_activitiesarticle_text1/i18n:text/osm:text /osm:hlink the xsl part that make the trasformation xsl:template match=osm:hlink span xsl:attribute name=classxsl:value-of select=@outerclass//xsl:attribute a onmouseover=changeUp(this) onmouseout=changeOut(this) xsl:attribute name=href xsl:value-of select=./targetURL/?xsl:call-template name=osm:linkparam/ /xsl:attribute xsl:attribute name=classxsl:value-of select=@class//xsl:attribute xsl:attribute name=oclassxsl:value-of select=@class//xsl:attribute xsl:attribute name=hclassxsl:value-of select=@hclass//xsl:attribute xsl:attribute name=namexsl:value-of select=@name//xsl:attribute xsl:value-of select=./osm:text disable-output-escaping=yes/ /a /span /xsl:template xsl:template name=osm:linkparam xsl:value-of select=./osm:linkparam/@name disable-output-escaping=yes/=xsl:value-of select=./osm:linkparam/osm:paramvalue disable-output-escaping=yes/ /xsl:template and the output in browser source span xmlns:fo=http://www.w3.org/1999/XSL/Format; class= a onmouseout=changeOut(this) onmouseover=changeUp(this) href=sitebuilder.Services?locale=en class=mainlink oclass=mainlink hclass=hmainlink name=..: services /a /span span xmlns:fo=http://www.w3.org/1999/XSL/Format; class= a onmouseout=changeOut(this) onmouseover=changeUp(this) href=sitebuilder.Activities?locale%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09en%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09 here is the problem . why i get this very strange string: %0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09 between locale and en class=mainlink oclass=mainlink hclass=hmainlink name=..: activities /a /span my browser display this string as one space any idea? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [demostration] Re: xsl through pipelin [anyone can help?]
in patern getXSL now i read a xsl file i want to read(generate) a xml file and trasform it to xsl using another xsl but i have problem with name spaces (and i dont know if its possible) how can an xsl file generate elements that belongs to xsl namespace too i think about to use for the produced xsl name space prefix other than xsl but is this possible and how cocoon will react ? (i know that this is more an XML/XSL than cocoon about question sorry about this) thnx for your reply stavros On Tue, 24 Dec 2002, Luca Morandini wrote: Stavros, ok, I've downloaded the demo and installed it... could you tell me where is, exactly, the problem ? Best regards, P.S. I'm about to go out for a trip: if you want some help from me hurry up... in a couple of hours I will be out of your reach ! - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: [demostration] Re: xsl through pipelin [anyone can help?] i have a working demo that pass a xsl file through pipeline and call it using cocoon:/ protocol to transform other .xml's but i have problems to create this .xsl using xml/xsl (confused with namespaces) demo files are: http://www.osmosis.gr/temp/osDynXSL.zip stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl through pipeline [NOT supported???]
in my case when i call http://...cocoon/generateXSL where generateXSL is a pipeline that produce the xsl i want i get in my browser the right (produced) xsl file. but this file make to sense when i call it using cocoon:/ protocol in an other pipeline to transform a xml file maybe this approach dosnt supported from cocoon (yet..) if this is not my fault (if i dont miss somenthing then is a good idea to make a post to -dev- list) i dont understand what can be the content of your test.html is it a xml file or an empty file? in my case i want instead of your test.html to have xslInstructions.xml On Mon, 23 Dec 2002, Anna Afonchenko wrote: Hi Stavros. Here are my pipelines for using xsl generated through Cocoon: map:match pattern=try map:generate src=ub/violations.html/ map:transform type=xslt-saxon src=cocoon://generateXsl/ map:serialize type=xml/ /map:match map:match pattern=generateXsl map:generate src=ub/test.html/ map:transform type=xslt-saxon src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match In pipeline generateXsl I use dummy html for generator, because for some reason, if I try to write instead: map:match pattern=generateXsl map:generate src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match then what I get calling cocoon/try is the stylesheet generateXSL (exactly as if I was just calling cocoon/generateXsl) - I don't understand this, but maybe someone more experienced than me on this list can explain it to us. But maybe you should also use dummy html/xml in generator? BTW, now I posted a message about creating some more complicated stylesheets through Cocoon, because when I try to create some more complicated xsl, I get an error. But for some simple xsl it works fine for me, so check both your pipelines and your xsl. Good luck. Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:03 PM Subject: Re: xsl through pipeline [NOT supported???] hi anna thnx for your reply i try this very simple sample before go on and i dont get the result i want. it very strange to be any problem in .xsl becaus its very simple. is it possible to send me a snapshot of your sitemap where your .xsl pass (and generated) through a pipeline? stavros i u want to contact me directly use: [EMAIL PROTECTED] On Mon, 23 Dec 2002, Anna Afonchenko wrote: Cocoon definitely supports using transformer that is itself generated by some pipeline. At least, it works for me. Maybe you have some problems in your xsl? - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 23, 2002 1:58 AM Subject: xsl through pipeline [NOT supported???] i try to transform a .xml using a .xsl that will be generated using a pipeline in my sitemap i have map:match pattern=myXML map:generate src=./myxml.xml/ map:transform src=./myxsl.xsl/ map:serialize type=xml/ /map:match map:match pattern=myXMLagain map:generate src=myxml.xml/ map:transform src=cocoon:/getXSL/ map:serialize type=xml/ /map:match map:match pattern=getXSL map:generate src=./myxsl.xsl/ map:serialize type=xml/ /map:match -- this is a very simple example (there is no transformation in getXSL, if this work i will try to produce the .xsl) when i call http:///myXML i get the results i wait for when i call http:///getXSL i see in my browser my xsl file (in xml format) but whet i call http:///myXMLagain i dont get any error msg but i dont get any results it seems like cocoon just ignore [map:transform src=cocoon:/getXSL/] line os get an empty xsl. maybe this is something that cocoon not support or something else ? i try to produce dynamic the xsl file. i want users be able to describe xsl's files using a simple xml. thnx stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: xsl through pipeline [NOT supported???]
i have try to ask http:///cocoon/generateXSL/ with a browser and save the output (XSL) im my disk then i use this XSL to transform a xml file (into xmlspy) and everything are OK. another one test using map:transform src=savedXSL.xsl/ my transformation work fine (savedXSL.xsl is the file i have get above) replace this entry with map:transform src=cocoon:/generateXSL/ my pipeline give me an output other than i expect(i thing that map:transform src=cocoon:/generateXSL/ return an empty .xsl file) maybe we need the cocoons guru help :-) stavros (what a problem 2 days before christmas ) On Mon, 23 Dec 2002, Anna Afonchenko wrote: Stavros What happens if you try to generate your xsl outside cocoon (using batch file) and then just use it as a transformer in your pipeline (i.e. without calling the cocoon:/ protocol)? If you get the right answer there, then I think the problem is with cocoon, but it is strange, because I don't see any dramatic difference between your sitemap and mine. But as I said, I'm new to cocoon, so I may be wrong. Maybe somebody else will be able to give better answer. Good luck Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:45 PM Subject: Re: xsl through pipeline [NOT supported???] in my case when i call http://...cocoon/generateXSL where generateXSL is a pipeline that produce the xsl i want i get in my browser the right (produced) xsl file. but this file make to sense when i call it using cocoon:/ protocol in an other pipeline to transform a xml file maybe this approach dosnt supported from cocoon (yet..) if this is not my fault (if i dont miss somenthing then is a good idea to make a post to -dev- list) i dont understand what can be the content of your test.html is it a xml file or an empty file? in my case i want instead of your test.html to have xslInstructions.xml On Mon, 23 Dec 2002, Anna Afonchenko wrote: Hi Stavros. Here are my pipelines for using xsl generated through Cocoon: map:match pattern=try map:generate src=ub/violations.html/ map:transform type=xslt-saxon src=cocoon://generateXsl/ map:serialize type=xml/ /map:match map:match pattern=generateXsl map:generate src=ub/test.html/ map:transform type=xslt-saxon src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match In pipeline generateXsl I use dummy html for generator, because for some reason, if I try to write instead: map:match pattern=generateXsl map:generate src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match then what I get calling cocoon/try is the stylesheet generateXSL (exactly as if I was just calling cocoon/generateXsl) - I don't understand this, but maybe someone more experienced than me on this list can explain it to us. But maybe you should also use dummy html/xml in generator? BTW, now I posted a message about creating some more complicated stylesheets through Cocoon, because when I try to create some more complicated xsl, I get an error. But for some simple xsl it works fine for me, so check both your pipelines and your xsl. Good luck. Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:03 PM Subject: Re: xsl through pipeline [NOT supported???] hi anna thnx for your reply i try this very simple sample before go on and i dont get the result i want. it very strange to be any problem in .xsl becaus its very simple. is it possible to send me a snapshot of your sitemap where your .xsl pass (and generated) through a pipeline? stavros i u want to contact me directly use: [EMAIL PROTECTED] On Mon, 23 Dec 2002, Anna Afonchenko wrote: Cocoon definitely supports using transformer that is itself generated by some pipeline. At least, it works for me. Maybe you have some problems in your xsl? - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 23, 2002 1:58 AM Subject: xsl through pipeline [NOT supported???] i try to transform a .xml using a .xsl that will be generated using a pipeline in my sitemap i have map:match pattern=myXML map:generate src=./myxml.xml/ map:transform src=./myxsl.xsl/ map:serialize type=xml/ /map:match map:match pattern=myXMLagain map:generate src=myxml.xml/ map:transform src=cocoon:/getXSL/ map:serialize type=xml/ /map:match map:match pattern=getXSL map:generate src=./myxsl.xsl/ map:serialize type=xml/ /map:match -- this is a very simple example (there is no transformation in getXSL, if this work i will try to produce the .xsl) when i call http:///myXML i get the results i wait for when i call
[solved!?]Re: xsl through pipeline [NOT supported???]
atleast i have a simple example that works i call an xsl through pipeline but using only generation and serialization (i just read the .xsl using a pipeline) and use this xsl for transformation into another pipeline using cocoon:/ protocol i'll put this example in url tomorow now i'm a litle confused how to create a xsl from a xml---xsl--transformation i have found very usefull your post anna...thnx stavros On Mon, 23 Dec 2002, Anna Afonchenko wrote: If you say that when you call the generateXSL pipeline and it gives you the right xsl, it should provide the same xsl when called using the cocoon:/ protocol. Can you write your exact pipelines and give the xsl files? Please omit all unnecessary stuff. Regards, Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 2:03 PM Subject: Re: xsl through pipeline [NOT supported???] i have try to ask http:///cocoon/generateXSL/ with a browser and save the output (XSL) im my disk then i use this XSL to transform a xml file (into xmlspy) and everything are OK. another one test using map:transform src=savedXSL.xsl/ my transformation work fine (savedXSL.xsl is the file i have get above) replace this entry with map:transform src=cocoon:/generateXSL/ my pipeline give me an output other than i expect(i thing that map:transform src=cocoon:/generateXSL/ return an empty .xsl file) maybe we need the cocoons guru help :-) stavros (what a problem 2 days before christmas ) On Mon, 23 Dec 2002, Anna Afonchenko wrote: Stavros What happens if you try to generate your xsl outside cocoon (using batch file) and then just use it as a transformer in your pipeline (i.e. without calling the cocoon:/ protocol)? If you get the right answer there, then I think the problem is with cocoon, but it is strange, because I don't see any dramatic difference between your sitemap and mine. But as I said, I'm new to cocoon, so I may be wrong. Maybe somebody else will be able to give better answer. Good luck Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:45 PM Subject: Re: xsl through pipeline [NOT supported???] in my case when i call http://...cocoon/generateXSL where generateXSL is a pipeline that produce the xsl i want i get in my browser the right (produced) xsl file. but this file make to sense when i call it using cocoon:/ protocol in an other pipeline to transform a xml file maybe this approach dosnt supported from cocoon (yet..) if this is not my fault (if i dont miss somenthing then is a good idea to make a post to -dev- list) i dont understand what can be the content of your test.html is it a xml file or an empty file? in my case i want instead of your test.html to have xslInstructions.xml On Mon, 23 Dec 2002, Anna Afonchenko wrote: Hi Stavros. Here are my pipelines for using xsl generated through Cocoon: map:match pattern=try map:generate src=ub/violations.html/ map:transform type=xslt-saxon src=cocoon://generateXsl/ map:serialize type=xml/ /map:match map:match pattern=generateXsl map:generate src=ub/test.html/ map:transform type=xslt-saxon src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match In pipeline generateXsl I use dummy html for generator, because for some reason, if I try to write instead: map:match pattern=generateXsl map:generate src=ub/generateXSL.xsl/ map:serialize type=xml/ /map:match then what I get calling cocoon/try is the stylesheet generateXSL (exactly as if I was just calling cocoon/generateXsl) - I don't understand this, but maybe someone more experienced than me on this list can explain it to us. But maybe you should also use dummy html/xml in generator? BTW, now I posted a message about creating some more complicated stylesheets through Cocoon, because when I try to create some more complicated xsl, I get an error. But for some simple xsl it works fine for me, so check both your pipelines and your xsl. Good luck. Anna - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:03 PM Subject: Re: xsl through pipeline [NOT supported???] hi anna thnx for your reply i try this very simple sample before go on and i dont get the result i want. it very strange to be any problem in .xsl becaus its very simple. is it possible to send me a snapshot of your sitemap where your .xsl pass (and generated) through a pipeline? stavros i u want to contact me directly use: [EMAIL PROTECTED] On Mon, 23 Dec 2002, Anna Afonchenko wrote: Cocoon definitely supports using transformer that is itself
xsl through pipeline [NOT supported???]
i try to transform a .xml using a .xsl that will be generated using a pipeline in my sitemap i have map:match pattern=myXML map:generate src=./myxml.xml/ map:transform src=./myxsl.xsl/ map:serialize type=xml/ /map:match map:match pattern=myXMLagain map:generate src=myxml.xml/ map:transform src=cocoon:/getXSL/ map:serialize type=xml/ /map:match map:match pattern=getXSL map:generate src=./myxsl.xsl/ map:serialize type=xml/ /map:match -- this is a very simple example (there is no transformation in getXSL, if this work i will try to produce the .xsl) when i call http:///myXML i get the results i wait for when i call http:///getXSL i see in my browser my xsl file (in xml format) but whet i call http:///myXMLagain i dont get any error msg but i dont get any results it seems like cocoon just ignore [map:transform src=cocoon:/getXSL/] line os get an empty xsl. maybe this is something that cocoon not support or something else ? i try to produce dynamic the xsl file. i want users be able to describe xsl's files using a simple xml. thnx stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new to cocoon... trouble creating sandbox
have u edit your sitemap? can you send the part of your sitemap with the refence to this resource? stavros On Fri, 20 Dec 2002, J. Norment wrote: Running XP/Tomcat 4.1.18/cocoon 2.0.4 ... Tried to create webapps/cocoon-dev by copying webapps/cocoon to webapps/cocoon-dev and copying sitemap.xmap and WEB-INF. ( Doing this at the suggestion of a tutorial. ) put helloworld.xml and helloworld.xsp into cocoon-dev/tutorial. localhost/cocoon-dev/helloworld.xml produces an error: resource-not-found cocoon-dev/helloworld.xml . Can you tell from that information what I'm doing incorrectly? Thanks. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I cant get the latest nightly download to work
i have the same problem solved by the following instruction from geof howard Copy xalan*.jar, xerces*.jar and xml-apis.jar from WEB-INF\lib (or from lib\core in cvs) to %TOMCAT_HOME%\common\endorsed The docs at one point only mentioned %JAVA_HOME%\jre\lib\endorsed but later tomcat versions use -Djava.endorsed.dirs to override the standard jdk defined location. stavros On Fri, 20 Dec 2002, aps olute wrote: I just downloaded xml-cocoon2_20021220172546.tar.gz, extracted it and did per the instructions to compile and no errors : ./build.sh -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_ HOME/webapps webapp Did above twice and copied build/cocoon/cocoon.war to $TOMCAT_HOME/webapps/ typed http://localhost:8080/cocoon and got an error: Cocoon 2 - Internal server error type fatal message Failed to execute pipeline. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.CascadingIOException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property!: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property! ...more errors __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pipeline parameter forward is it possible?
what i have to do: i have content.xml i can call this file using 2 parameters /content.xml?lang=GR /content.xml?lang=EN the problem is that i dont call this resource directly but through a pipeline map:resources map:resource name=buildsite map:aggregate element=site map:part src=menu.xml/ map:part src=content.xml/ /map:aggregate map:serialize type=xml/ /map:resource /map:resources map:pipeline map:match pattern=site map:call resource=buildsite/ /map:match /map:pipeline THE question: how can i call http://./site?lang=GR and then into the sitemap pass this [lang=GR] to map:resource any idea? thnx stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build error [latest CVS 2002.12.20]
i try to build latest cocoon 2 CVS ans i recieve the follow error msg compile: [xslt] Processing C:\CVS\cocoon\xml-cocoon2\module.xml to C:\CVS\cocoon\xml -cocoon2\build\cocoon\work\blocks-build.xml [xslt] Loading stylesheet C:\CVS\cocoon\xml-cocoon2\tools\src\blocks-build. xsl [xslt] Failed to process C:\CVS\cocoon\xml-cocoon2\module.xml BUILD FAILED file:C:/CVS/cocoon/xml-cocoon2/build.xml:2217: java.io.FileNotFoundException: C: \CVS\cocoon\xml-cocoon2\module.xml (The system cannot find the file specified) Total time: 38 seconds - i have succesfull build a 2 days old CVS snapshot - when i look into \xml-cocoon2 i see that there is not module.xml file stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FIXED] Re: build error [latest CVS 2002.12.20]
i have update my cvs snapshot after some hours there is a new build.xml and project-info.xml files someone has fixed this thnx On Fri, 20 Dec 2002, Cocoon User wrote: i try to build latest cocoon 2 CVS ans i recieve the follow error msg compile: [xslt] Processing C:\CVS\cocoon\xml-cocoon2\module.xml to C:\CVS\cocoon\xml -cocoon2\build\cocoon\work\blocks-build.xml [xslt] Loading stylesheet C:\CVS\cocoon\xml-cocoon2\tools\src\blocks-build. xsl [xslt] Failed to process C:\CVS\cocoon\xml-cocoon2\module.xml BUILD FAILED file:C:/CVS/cocoon/xml-cocoon2/build.xml:2217: java.io.FileNotFoundException: C: \CVS\cocoon\xml-cocoon2\module.xml (The system cannot find the file specified) Total time: 38 seconds - i have succesfull build a 2 days old CVS snapshot - when i look into \xml-cocoon2 i see that there is not module.xml file stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build Cocoon2.1 CVS [ERROR]
i try to build cocoon 2.1 CVS [2002.12.18 snapshot] environment: win XP jakarta-tomcat-4.1.17 j2sdk1.4.1_01 i put the .war file into webapp folder an start tomcat when i ask cocoon [http://.:8080/cocoon] i recieve the follow error (copy - paste) from error.log: ERROR (2002-12-18) 11:53.44:153 [access] (/cocoon/documents/index.html) Thread-9/CocoonServlet: Problem with Cocoon servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.CascadingIOException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property!: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property! at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:519) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) any idea? i remember the days i try to build cocoon2rc1 i have to comment some lines in sitemap.xmap and recombile to have a working .war stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: removing cocoon from my url base [performance ??]
yes but what about the performance maybe this way has effects to cocoon performance ? stavros On Wed, 18 Dec 2002, Luca Morandini wrote: Mirco, I presume something like this: map:match pattern=** map:mount uri-prefix= src=file:///c:/something/mysite/ check-reload=yes reload-method=synchron/ /map:match should work. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 1:04 PM To: cocoon-users Subject: removing cocoon from my url base I've my cocoon application running on something like: http://localhost/cocoon/something/mysite I'd like to get mysite using a simpler URL like: http://localhost How can I do this? I know I can change the Tomcat server.xml, and point the docBase of the ROOT web application to the location of the cocoon web app, for example: Context path= docBase=cocoon dubug=0 reloadable=true/ Now I've http://localhost/something/mysite How can I remove something/mysite ? Thanks in advance Mirco - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: integrate IF THEN ELSE conditions in a simple XSP page
try something like xsp:logic int rowID = esql:get-string column=ID/; if (rowID == 3){ bla bla .. your code } xsp:logic stavros esql:get-string column=ID/ On Wed, 18 Dec 2002 [EMAIL PROTECTED] wrote: Hi, How can I quickly add a condition in someting like : tdesql:get-string column=ID//td If I want to add a condition like : If ID = 3 then font color = red else font color = green ? I'm using XSP pages. Thank you for your help! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FIXED] RE: build Cocoon2.1 CVS [ERROR]
that was the problem thnx Geof stavros On Wed, 18 Dec 2002, Geoff Howard wrote: You haven't followed the jdk 1.4 specific instructions (or they are still incorrect for recent tomcat). Copy xalan*.jar, xerces*.jar and xml-apis.jar from WEB-INF\lib (or from lib\core in cvs) to %TOMCAT_HOME%\common\endorsed The docs at one point only mentioned %JAVA_HOME%\jre\lib\endorsed but later tomcat versions use -Djava.endorsed.dirs to override the standard jdk defined location. Geoff Howard -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 5:11 AM To: [EMAIL PROTECTED] Subject: build Cocoon2.1 CVS [ERROR] i try to build cocoon 2.1 CVS [2002.12.18 snapshot] environment: win XP jakarta-tomcat-4.1.17 j2sdk1.4.1_01 i put the .war file into webapp folder an start tomcat when i ask cocoon [http://.:8080/cocoon] i recieve the follow error (copy - paste) from error.log: ERROR (2002-12-18) 11:53.44:153 [access] (/cocoon/documents/index.html) Thread-9/CocoonServlet: Problem with Cocoon servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.CascadingIOException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property!: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property! at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p rocessXMLPipeline(AbstractProcessingPipeline.java:519) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessi ngPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p rocess(AbstractProcessingPipeline.java:484) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.i nvoke(SerializeNode.java:149) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:164) any idea? i remember the days i try to build cocoon2rc1 i have to comment some lines in sitemap.xmap and recombile to have a working .war stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon samples live [why not]
i have test today for my first time cocoon2.1 cvs when i asks http:/./cocoon i have notice than in my local machine i have cocoon's web site when i call /cocoon/samples i get all the refactored samples i have try to ask /cocoon/samples from the xml.apache.org live web site without to get any responce. why we dont have all this sample live to anyone? stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon samples live [why not]
cocoon it's a great project (last 16 months we have develop about 5 commercial site xml based served by a virtual hosting cocoon based server) the best way for any one to accept cocoon is to see the examples online without to have to install cocoon himself. try to make cocoon so popular as apache web server :-) stavros On Wed, 18 Dec 2002, Geoff Howard wrote: Because for now, the site at xml.apache.org is static-only by decree to conserve the shared resources across all sites. It is a shame, but may not be so much longer because cocoon is in the process of being promoted to a top level apache project and my understanding is that that will carry with it the option of eating one's own dog food as the saying goes. Correct me if I'm wrong, but I don't think Tomcat's examples are available on the live site either. Geoff Howard -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 12:28 PM To: [EMAIL PROTECTED] Subject: cocoon samples live [why not] i have test today for my first time cocoon2.1 cvs when i asks http:/./cocoon i have notice than in my local machine i have cocoon's web site when i call /cocoon/samples i get all the refactored samples i have try to ask /cocoon/samples from the xml.apache.org live web site without to get any responce. why we dont have all this sample live to anyone? stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon container: tomcat or not?
after one year from the first stable cocoon 2 version is tomcat the best container for cocoon? we use the first cocoon2 rc1 version on tomcat the last 18 months in production. we have test other cocoon2 versions in development environment but never something else than tomcat! your experiences from other containers? stavros kounis http://www.osmosis.gr - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
i18n - greek sample
we have add greek language in i18n refactored sample where can we send all this files to be part of the official i18n refactored samples Stavros Kounis http://www.osmosis.gr - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp:logic pure java or not?
i have noticed that inside xso:logic we can have code (variables, functions ..etc) eg: xsp:logic private syncronized Date getToday(){ today = new Date(); } /xsp:logic is it pure java or something else ? is there any reference online out there ? thnx Stavro Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml+xsl - xsp
is i possible to create an .xsp from a xml-xsl compination (through cocoon) an then ask from cocoon to execute this .xsp? and all this on the fly? i want to call http://../some.xsp and cocoon create the some.xsp and then execute it thnx stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xinclude support or not?
is there any working example under cocoon i try to use xinclude inside an .xsp but without success my code quotation xi:include href=source.xml / /quotation is somethingi have missed or just there is no xinclude support from cocoon? thnx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP create dynamic an element
i call an .xsp page like http://.../viewer.xsp?image=test.gif i send the image file name but i dont know how to create an image element with dynamic content for the src attribute i have the follow .xsp code xsp:page xsp:logic xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:xsp=http://apache.org/xsp; String imageDisplay = request.getParameter(image); how can i create here an img element with src attribute the content of imageDisplay string variable? exaple img src={imageDisplay content} width=100 height=100/ /xsp:page thnx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp !!!
i use to include common xsp files using entities On Wed, 27 Nov 2002, Hong Gia Dinh wrote: Hi all I got a problem and tried to solve it! i want to have a common 'common.xsp' file containing all the common values and i have other personal files that uses all the common values! so how can i use it ?? can i include/import a xsp file in oter xsp file? i tried to use aggregate but it doesn't work! can u all show me? Cheers - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp simple or not?
into an .xsp file i have .. .. xi:include href=cPlace.xml/ .. .. and work fine the i try to put some logic .. .. xsp:logic String thePage= xsp-request:get-parameter name=page/; if (thePage.equals(place)){ xi:include href=cPlace.xml/ } /xsp:logic .. .. i dont get any error message but i dont see the included file ...!! can anyone help me? i want to include a file into an .xsp page based in a give parameter when i call this .xsp thnx Stavro Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp include xml
is it possible to include an xml file relative to a give parameter? http://../page.xsp?page=first ... ... .. xsp:logic String thePage = {how can i assign the page parameter content to thePage var???} if (thePage.equals(first){ {.. how can i include first.xml..?} } .. ... thnx Kounis stavros i use entities to include .xml files into .xml - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp and dtd
is it possible to generate document type declaration DTD dynamic using xsp i'm thinking to generate something like !DOCTYPE thePage [ !ENTITY remote SYSTEM http://www.osmosis.gr/xml/xsp-plain/esql; ] dynamic in a xsp the problep is that all this string are before xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/ ... ... ... so i can not put instruction outside xsp:page element i want to be able to parse to href for remote entity as a parameter) the goal is to have a .xsp file that will include an other one .xml file. the included .xml will be relative to a parameter demo.xsp?includeFile=http://a.url.com/external.xml thanx - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLHTTP and cocoon [site map how to]
i have succesfull write a js that create an xmlobject and then post it using xmlhttp i have too succesfull post this xml stream to .php and java servlet . server side i just echo this stream and return this echo to js how can i modify sitemap to make cocoon ready to receive this stream and send a responce back to js. thanks stavros s. kounis On Tue, 1 Oct 2002, Giuseppe Bonelli wrote: Kounis, you have to insert the js snippet in a function and attach the function to whatever event you want. baseurl is a variable containing the url pointing to the map:match pattern=foo/bar in the cocoon sitemap. The data flow is as follow: 1. a browser event triggers the js function 2. the js function send the xml data to the cocoon sitemap 3. the cocoon sitemap process the xml file through a source write transformer 4. the cocoon map returns to the browser a status message (and eventually other generated xml) 5. the js function exits Your mileage may vary, but the principle is this. --peppo -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: martedi 1 ottobre 2002 0.30 To: [EMAIL PROTECTED] Subject: RE: XMLHTTP and cocoon [baseurl ?] thanx for the answer but can u give me an axample how to call this cocoon patern what's the baseurl? On Mon, 30 Sep 2002, Giuseppe Bonelli wrote: Here are a few snippets i use to exchange xml data from a client side js and cocoon2. My scenario is: the client browser save an xml file on the server using the source write transformer. If you need to echo the file back to the browser, just serialize it again, eventually after another transformation. Hope this helps --peppo The client side js snippet: { ... reqxml=the-xml-you-want-to-transfer-to-cocoon xmlhttp.open(POST, baseurl, false); xmlhttp.send(reqxml); var resxml=xmlhttp.responseXML; //alert(resxml.xml); if (!reqxml.documentElement) { alert(could not parse:\n\n+xmlhttp.responseText); return null; } // C2 error handling try { //check the response status var buf=resxml.documentElement; //alert(buf.childNodes.item(0).getAttribute(result)); if (buf.childNodes.item(0).getAttribute(result) != success) { var errmsg = resxml.documentElement.text; if (!ignoreErrors) alert(Non e stato possibile salvare sul server il file.\n\n Il server ha risposto: +errmsg); return null; } else { var fname=resxml.documentElement.childNodes.item(0).getAttribute(src); var pos=fname.indexOf('xdocs/'); fname=fname.slice(pos+6,fname.length-18); alert(Una nuova versione del file '+fname+.xml' e stata salvata con successo sul server\n\nBuona continuazione!); } } catch (e) { if (!ignoreErrors) alert(Server returned an error, but was not understood by the editor.\n\n); return null; } }, in the sitemap: map:match pattern=save map:generate type=stream/ map:transform type=write-source/ map:serialize type=xml/ /map:match NB: the error handling is done on the basis of the xml generated by the source write transformer used in the sitemap. See the docs for details. -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: lunedi 30 settembre 2002 11.21 To: [EMAIL PROTECTED] Subject: XMLHTTP and cocoon hi folks i have make an html form than post an XML file (object with javascript) using XMLHTTP is there any way in cocoon to receive this post an simple echo this XML object in browser? (if not cocoon a tomcat webapp) i want to find a very simple example to test if i can transport an XML object from a client (IE6) to the server where a cocoon and tomcat are installed thnx Kounis Stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
[final] Re: cocoon second instance
the only thing i have to do is to put cocoon-something.war into webapp directory and restart tomcat now i have as many instances of cocoon i want i access them http://localhost:8080/cocoon/ http://loclahost:8080/cocoo-new/ .. .. thanks Kounis Stavros On Wed, 9 Oct 2002, Vadim Gritsenko wrote: Barbara Post wrote: Or use an unzipping tool to deploy/unzip the .war then copy the content where you want with any name you want for the containing folder. Then modify Tomcat's server.xml : add a new context path. Last step is not necessary. Just put cocoon-new.war into webapps, or unzip into webapps/cocoon-new - either way, you will get second cocoon deployed in http://localhost:port/cocoon-new/ Vadim Just my 2 cents ;-) - Original Message - From: Katzigas Dimitris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 1:09 PM Subject: Re: cocoon second instance Ok got it. I think that tomcat creates a subdirectory under webapps/ by the name of the war file that you deploy. e.g. If you deploy the cocoon-new.war i think that it will create a cocoon-new/ subdirectory under webapps/. I haven't test it with cocoon but works with othes war files. Good Luck. Dimitris Katzigas. - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 1:58 PM Subject: Re: cocoon second instance yep but i dont want to touch my working installation (i can not modify something that work in production machine) On Wed, 2 Oct 2002, Katzigas Dimitris wrote: Stavro Rename the 2.0.1rc installation directory from /webapps/cocoon to /webapps/cocoon.old then copy the new war file as it is in the webapps/ directory and restart Tomcat. Your old cocoon instalation won't be damaged, but you can't use it anymore unless you rename again the directory /webapps/cocoon.old to /webapps/cocoon. Dimitris Katzigas - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 1:45 PM Subject: cocoon second instance hi folks i have cocoon 2.0.1rc working into omcats /web-app i want to test cocoon 2.0.3 binary distribution without to upgrade or cancel my old installation can i put cocoon's 2.0.3 cocoon.war into /web-app as cocoon_new.war and restart tomcat how will tomcat then deploy this .war is it possible tomcat overwrite my old (but working) cocoon installation? thnx kounis stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon second instance
hi folks i have cocoon 2.0.1rc working into omcats /web-app i want to test cocoon 2.0.3 binary distribution without to upgrade or cancel my old installation can i put cocoon's 2.0.3 cocoon.war into /web-app as cocoon_new.war and restart tomcat how will tomcat then deploy this .war is it possible tomcat overwrite my old (but working) cocoon installation? thnx kounis stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon second instance
yep but i dont want to touch my working installation (i can not modify something that work in production machine) On Wed, 2 Oct 2002, Katzigas Dimitris wrote: Stavro Rename the 2.0.1rc installation directory from /webapps/cocoon to /webapps/cocoon.old then copy the new war file as it is in the webapps/ directory and restart Tomcat. Your old cocoon instalation won't be damaged, but you can't use it anymore unless you rename again the directory /webapps/cocoon.old to /webapps/cocoon. Dimitris Katzigas - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 1:45 PM Subject: cocoon second instance hi folks i have cocoon 2.0.1rc working into omcats /web-app i want to test cocoon 2.0.3 binary distribution without to upgrade or cancel my old installation can i put cocoon's 2.0.3 cocoon.war into /web-app as cocoon_new.war and restart tomcat how will tomcat then deploy this .war is it possible tomcat overwrite my old (but working) cocoon installation? thnx kounis stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLHTTP and cocoon
hi folks i have make an html form than post an XML file (object with javascript) using XMLHTTP is there any way in cocoon to receive this post an simple echo this XML object in browser? (if not cocoon a tomcat webapp) i want to find a very simple example to test if i can transport an XML object from a client (IE6) to the server where a cocoon and tomcat are installed thnx Kounis Stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLHTTP and cocoon [baseurl ?]
thanx for the answer but can u give me an axample how to call this cocoon patern what's the baseurl? On Mon, 30 Sep 2002, Giuseppe Bonelli wrote: Here are a few snippets i use to exchange xml data from a client side js and cocoon2. My scenario is: the client browser save an xml file on the server using the source write transformer. If you need to echo the file back to the browser, just serialize it again, eventually after another transformation. Hope this helps --peppo The client side js snippet: { ... reqxml=the-xml-you-want-to-transfer-to-cocoon xmlhttp.open(POST, baseurl, false); xmlhttp.send(reqxml); var resxml=xmlhttp.responseXML; //alert(resxml.xml); if (!reqxml.documentElement) { alert(could not parse:\n\n+xmlhttp.responseText); return null; } // C2 error handling try { //check the response status var buf=resxml.documentElement; //alert(buf.childNodes.item(0).getAttribute(result)); if (buf.childNodes.item(0).getAttribute(result) != success) { var errmsg = resxml.documentElement.text; if (!ignoreErrors) alert(Non e stato possibile salvare sul server il file.\n\n Il server ha risposto: +errmsg); return null; } else { var fname=resxml.documentElement.childNodes.item(0).getAttribute(src); var pos=fname.indexOf('xdocs/'); fname=fname.slice(pos+6,fname.length-18); alert(Una nuova versione del file '+fname+.xml' e stata salvata con successo sul server\n\nBuona continuazione!); } } catch (e) { if (!ignoreErrors) alert(Server returned an error, but was not understood by the editor.\n\n); return null; } }, in the sitemap: map:match pattern=save map:generate type=stream/ map:transform type=write-source/ map:serialize type=xml/ /map:match NB: the error handling is done on the basis of the xml generated by the source write transformer used in the sitemap. See the docs for details. -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: lunedi 30 settembre 2002 11.21 To: [EMAIL PROTECTED] Subject: XMLHTTP and cocoon hi folks i have make an html form than post an XML file (object with javascript) using XMLHTTP is there any way in cocoon to receive this post an simple echo this XML object in browser? (if not cocoon a tomcat webapp) i want to find a very simple example to test if i can transport an XML object from a client (IE6) to the server where a cocoon and tomcat are installed thnx Kounis Stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
post data in XML format
think about how POST work. with POST we can send data (single values) from a form to server over HTTP is it possible to send data from a client (IE) using a form(or anything else) in XML format and how can cocoon recieve this xml stuctured data and handle them (create the .xml file local or parse this file in memory) any suggestion about the technologies i have to look ? thank i dont know if this is the right list kounis stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLform DEMO
hi guys do u know where can i find tutorial or demostrations or a reference about XMLforms in cocoon? thanks kounis stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mySQL connection pool
i have an mySQL database: myDB with one table myTable running at localhost can you please give me an example of connection pool syntax for cocoon.xconf file ? thank Kounis Stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mySQL driver ? and performance
1. where can i find mySQL driver for cocoon ? 2. i use to get data from mySQL using php can anyone comment the performance of cocoon retrieving data from mySQL compiring to php thnx Kounis Stavros - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
open xml in .js
i have a .xml web site serve it using cocoon into a .xml file i have information i want to use as data into an .js file using the following code gD.async=false; M gD.load(celebrations.xml);M gD.setProperty(SelectionLanguage, XPath)M using ie6 (local) i get all .xml into gD object serving my pages using cocoon after those line gD appear to be an empty object any help/idea? thanks stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: open xml in .js
cocoon try to make xsl transformation On Thu, 27 Jun 2002, Piroumian Konstantin wrote: From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 6:56 PM To: [EMAIL PROTECTED] Subject: open xml in .js i have a .xml web site serve it using cocoon into a .xml file i have information i want to use as data into an .js file using the following code gD.async=false; M gD.load(celebrations.xml);M gD.setProperty(SelectionLanguage, XPath)M using ie6 (local) i get all .xml into gD object serving my pages using cocoon after those line gD appear to be an empty object any help/idea? Check that you can get that file when you simply type http://host/your-path/celebrations.xml in browser. -- Konstantin Piroumian [EMAIL PROTECTED] thanks stavros kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .htc how to (pipeline)
please can you give an example of your pipeline thanks kounis stavros On Sun, 2 Jun 2002, Bert Van Kets wrote: I have a browser based editor using htc files without any problem. I just created a pipeline that read the external files. Everything works like a charm. I'm using Cocoon 2.1-dev. Bert At 11:51 1/06/2002 +0300, you wrote: .htc files are nothing more than .js files plus they are working just like VS's class modules so .htc are not well-formed xml they are not xml i dontd understand why cocoon dont handle .htc file just like .js On Tue, 28 May 2002, Kelly Cole wrote: 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] - 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: Include external javascript file
U have to edit your sitemap file so cocoon know how to handle .js files On Tue, 28 May 2002, Naquin, Beth 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: .htc how to
.htc files are nothing more than .js files plus they are working just like VS's class modules so .htc are not well-formed xml they are not xml i dontd understand why cocoon dont handle .htc file just like .js On Tue, 28 May 2002, Kelly Cole wrote: 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]
cocoon web log system
we r thinking about to setup a weblog system phpnuke like as a community place for cocoon users anyone who want to apply this project please reply to [EMAIL PROTECTED] Stavros S. Kounis Research Development Department osmosis.gr | networks consulting services web : http://www.osmosis.gr contact : [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 web log system
do U know any weblog system or community about cocoon? stavros On Sat, 1 Jun 2002, Alex McLintock wrote: At 09:57 01/06/2002, you wrote: we r thinking about to setup a weblog system phpnuke like as a community place for cocoon users anyone who want to apply this project please reply to [EMAIL PROTECTED] Why not contribute to one of the existing Cocoon sites instead of dividing the activity Alex Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software. - 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]
.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]
upload dir
i'm using cocoon 2.0.rc2 with tomcat and apache how can i change the upload for the upload.xsp? thanks kounis stavros osmosis.gr - 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: upload dir [outside cocoon]
is it possible to upload something into a directory outside cocoons installation? for example into /tmp ore /home thank kounis stavros On Thu, 7 Mar 2002, Olivier Rossel wrote: Cocoon User wrote: i'm using cocoon 2.0.rc2 with tomcat and apache how can i change the upload for the upload.xsp? thanks kounis stavros osmosis.gr the upload dir is defined in your WEB-INF/web.xml The upload dir is unique to your cocoon instance. - 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]
pdf and greek
how can i transform xml files into pdf when into the xml's are greek fonts thanks kounis stavros (i can not post in this list ... 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: (newbie) virtual host
i use apache for the virtual hosting apache point to a .html file this html is alink to tomcat /home/site1.com/htdocs /home/site2.com/htdocs using apache www.site1.com --- /home/site1.com/htdocs/index.html then using index.html --..tomcat.. .. /home/site1.com/htdocs/*.xml for each vhosti i have a seperate sitemap.xmap kounis stavros http://www.osmosis.gr gounisclubmobil.com On Sat, 16 Feb 2002, Francesco Lunelli wrote: Hello to everybody. I have just installed Cocoon2 overe Jakarta-Tomcat 4.0.1 and it works fine. But actually I am managine some different virtual hosts with romcat. I would like to know if it is possible to use Coccon to transform xml pages for this multiple virtual hosts. If I have for example www.mydomain1.com and www.mydomain2.com and I have my xml and xsl files sored in 2 different directories, I need that the index.xml page could be transformed in index.html , without haveing cocoon path in my url. I have tried to create 2 virtual hosts in tomcat, but cocoon doesn't perform the transformation. I created 2 different directories like these cocoon/mydomani1 and cocoon/mydomain2 mapped in server.xml as www.mydomani1.com and www.mydomain2.com, I reach the right directory but I can't get the cocoon trnsformation. I added the right map:match to sitemap. If I try to get the page from the main site www/cocoon/mydomain1 I get the transformation, but not if I try to access directly wihtout coccon in my path. Is there a way to manage multiple virtual hosts? Thanks to everybody Francesco Lunelli - 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 and non-English characters in jsp
try use disable-output-escape=yes in your XSL its an atribute that apply to text elemnts this work in my case exept the content of meta tags in metatags content i get the same kind of characters like u kounis stavros http://www.osmosis.gr On Thu, 24 Jan 2002, Gasper wrote: I have the one with the 11-Jan-2002 date from the http://xml.apache.org/cocoon/dist/. I got the new JSPEngine.java and JSPEngineImpl.java and JspGenerator.java from Code Repository. Now my characters get encoded like this: #154;eth;egrave;aelig;#158; this is the source from my jsp page as seen in the browser. The actual encoding to a diffrent encoding does not happen I guess. I tried a xsp page with my utf-8 chars in, but with the same result (#154;eth;egrave;aelig;#158;). I guess now I have to solve how cocoon or maybe tomcat encodes characters. If somebody found it out for XSP let my know, please! Any ideas? Thanks Gasper - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 1:33 AM Subject: RE: Cocoon2 and non-English characters in jsp What Cocoon version do you have? Only Cocoon post-2.0 release from CVS have correct handling of JSP encoding. (See http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/changes.xml?rev=1.75conte nt-type=text/vnd.viewcvs-markup, first mention of JSPEngine) Vadim -Original Message- From: Gasper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 7:16 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon2 and non-English characters in jsp The encoding for a jsp is done like this: %@page contentType=text/html; charset=iso-8859-2% But this does not help. ?xml version=1.0 encoding=iso-8859-2? On top of my jsp doesn't help either. I've also tried the following in my sitemap.xmap but with no success. map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingiso-8859-2/encoding /map:serializer Any other ideas? Thanks very much. Gasper - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 9:36 PM Subject: RE: Cocoon2 and non-English characters in jsp From: Gasper [mailto:[EMAIL PROTECTED]] Hello If I use non-English characters in my jsp's, they appear in the browser as question marks. How can I specify the encoding for my page served by cocoon2? First you have to define encoding in your JSP source file. Look into JSP spec for a way to do this (I don't remember) Vadim - 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]
cocoon cache
i have change the content of my .xml pages but cocoon server the old information i thing that is something with the cache how can i ask from cocoon to rebuild or ignore the cache and translate again the .xml files thanks kounis stavros - 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: Problem with Cocoon2 [baltik !!!]
SVG serializer try to get the source version (not binari) comment all the entries about SVG ind sitemap.xmap an precompile the source code i think that u have to follow the intructions of the lines at the end of the readme file otherwise u need to install a xserver i dont have try this solution because i dont need SVG if u want i can send u my sitemap.xmap to use before recompile the source code kounis stavros On Sun, 20 Jan 2002, Rodrigues Luc wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Sorry fo my poor english langage. I try to get cocoon2 work on my linux box that describe as follows: *Start of description*** My box: Linux servhuit 2.4.16-686-smp #1 SMP Wed Nov 28 10:00:01 EST 2001 \ i686 unknown - From xml.apache.org (package in bin format in .tar.gz) cocoon-2.0-bin.tar.gz - From debian woody (package in .deb format) tomcat-3.3-2 work fine apache-1.3.22-5work fine apache-common-1.3.22-5 ibapache-mod-jk-3.3-2 see note libapache-mod-perl-1.26-1 libapache-mod-ssl-2.8.5-2 libxerces-java-1.4.3-1 libxalan2-java2.0.1-1 libxalan2-java-doc2.0.1-1 - From IBM (package in bin format in .tar.gz) work fine java version 1.3.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010925 (JIT \ enabled: jitc)) *End of description* So when I call this machine over my network with netscape browser http://servhuit.maison.luc/cocoon or via lynx at http://localhost:8080/cocoon on the server I get an error, I paste an part of my cocoon.log.3: * Start of cocoon.log.3: *** ERROR (2002-01-20) 12:19.19:881 [cocoon ] (/cocoon/) Thread-17/ \ Handler: Error compiling sitemap java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/ \ SVGDOMImplementation at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init \ (SAXSVGDocumentFactory.java:59) at org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44) at org.apache.cocoon.serialization.SVGSerializer.init \ (SVGSerializer.java:53) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java(Compiled Code)) at org.apache.avalon.excalibur.component.DefaultComponentFactory. \ newInstance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown \ Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown \ Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow \ (Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool. \ initialize(Unknown Source) at org.apache.avalon.excalibur.component.PoolableComponentHandler.\ initialize(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector. \ addComponent(Unknown Source) at org.apache.cocoon.sitemap.SitemapComponentSelector.\ addSitemapComponent(SitemapComponentSelector.java:91) at org.apache.cocoon.sitemap.AbstractSitemap.load_component \ (AbstractSitemap.java:232) at org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers\ (sitemap_xmap.java:950) at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:365) at org.apache.avalon.excalibur.component.DefaultComponentFactory. \ newInstance(Unknown Source) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler. \ initialize(Unknown Source) at org.apache.cocoon.components.language.generator.GeneratorSelector. \ addGenerator(GeneratorSelector.java:135) at org.apache.cocoon.components.language.generator. \ ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:345) at org.apache.cocoon.components.language.generator. \ ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:179) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:498) * End of cocoon.log.3: * Note: mode_jk have /etc/tomcat/worker.propertie for windows machine, so I adapted it for my PATHs on linux machine (PATH Separator and directory). What I have missing ? - -- Luc {;-)\ [EMAIL PROTECTED] / ^ - \ [EMAIL PROTECTED]( (o) (o) ) _oOOO_(_)_OOOo_ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Pour information voir http://www.gnupg.org iD8DBQE8SrT56hmn7OfIo8ERAjHHAJ4s0xBhkbsHhE4ZsGF9dBeLpiBZzACguDci 9/o/VoBdgChvz6k/oRnThjc= =SBLw -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe,
problem ? RE: Avoid extreme caching?
can i delete the cache files of cocoon manualy? this will not cause problems in cocoon function? is there any other way to clear cocoon cache files? On Sun, 20 Jan 2002, Luca Morandini wrote: Jozsa, have you already tried to delete the files contained under $TOMCAT_HOME/work ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Jozsa Kristof [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 20, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: Avoid extreme caching? Hi, I'm using Cocoon in JBoss3 fresh snapshots. My actual problem is, that sometimes, when I change the sitemap, re-jar my cocoon project from ant, and redeploy; NOTHING changes in the results. Not even stopping and restarting JBoss makes Cocoon realize the changes. I have some hairy examples from the past days: 1. rename a source file both in the sitemap and on the filesystem, repack, redeploy, and it still looks for the old name. The logs show clearly how it lookups a non-existent name, lookups to a string which doesn't even exists in the sitemap anymore! 2. erase one of my own -not anymore needed- Transformer component completely from the sitemap (both calls and the definition itself), and Cocoon cannot live without it, I had to place back my obsolete jar into WEB-INF/lib, else Cocoon doesn't start up at all. The Transformer's name of course couldn't be find in the sitemap either.. Now, I'd like to ask for some advice how to avoid such effects, they're very very annoying. I can't even imagine myself _where_ Cocoon caches all these above, at least a whole JBoss restart should help on it. tia, Christopher ps. shall I crosspost to jboss-user? I guess that's only Cocoon related, but not sure -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide - 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]
encoding How TO
i have cocoon2.0rc2 with tomcat in a redhat machine i need to generate HTML pages from a HTML/XSL combination everything works fine but i recieve pages in Unicode format how can a change this i want iso-8859-7 but when i try somthing into the xsl file nothign happend. it is something into cocoon's conf files ? thanks kounis stavros - 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 and .swf (flash files)
i want to serve xml pages tha have .swf files inside (macromedia flash movies) for .gif file i use map:match pattern=*.gif map:read src=img/{1}.gif mime-type=image/gif/ /map:match but i dont know what map is needing for .swf i try to use something just like gif's but dosent work any idea? thanks kounis stavros - 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]
upgrade from c2.rc2 or NOT? Re: [Announcement] Apache Cocoon 2.0Release
after a hard work for about a month i have install cocoon version2.0rc2 how difficult is the upgrade from this version to the stable version. i need to reinstall tomcat? or just to compile the new cocoon version? what about configuration files? thanks kounis stavros On Thu, 29 Nov 2001, Carsten Ziegeler wrote: Apache Cocoon 2.0 Released -- The Apache Cocoon development community is very proud to announce the long-awaited first stable release of the next generation of Apache Cocoon. Apache Cocoon is an XML framework that raises the usage of XML and XSLT technologies for server applications to a new level. Designed for performance and scalability around pipelined SAX processing, Cocoon offers a flexible environment based on the separation of concerns between content, logic and style. A centralized configuration system and sophisticated caching top this all off and help you to create, deploy and maintain rock-solid XML server applications. Today, most web engineers consider XML as the key for an improved web model and web site managers see XML as a way to reduce costs and ease production. In an era where services rather than software will be key for economic success, a better and less expensive model for web publishing will be a winner, especially one based on open standards. This release of Cocoon is a complete rewrite of the first generation that removes all of those design constraints that emerged during almost three years of worldwide use. This release is considered stable in both implementation and on the API it provides: this means that the Apache Cocoon development community is now fully committed to preserve backwards compatibility with this release. We value the time and energy that our users will spend in order to deploy Cocoon technologies in their solutions and will make all possible effort to keep Cocoon a solid platform to work on. For more information about Apache Cocoon, please go to http://xml.apache.org/cocoon/ Thank for your interest and thanks to all who made this possible. The Apache Cocoon Worldwide Community - 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]
no cocoon.properties WHY?
i can not find cocoon.properties in my cocoon's dir no cocoon.properties entry into web.xml any idea please? kounis stavros - 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: no cocoon.properties WHY?
cocoon2 + tomcat 4 On Wed, 28 Nov 2001, Sidharth wrote: which version are u using?? - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 4:37 PM Subject: no cocoon.properties WHY? i can not find cocoon.properties in my cocoon's dir no cocoon.properties entry into web.xml any idea please? kounis stavros - 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]
cocoon path outside cocoon's dir
i have install apache cocoon2 and tomcat4 my web site warks when i puut all files into /cocoon/docs/samples/myDir/ but i want to have my website files into /home/myDir/ i have try this: map:generate src=docs/samples/myDir/{1}.xml/ and work fine but when i try to modify this line to this one map:generate src=/home/myDir/{1].xml/ i recieve errors i think that i can not point to files outside cocoon's path is this true how can i have my site files into a directory in /home/? thanks kounis stavros - 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]