newbie question with wildcard in sitemap
hi cocooners, i have the following directory structrue: cocoon:| |protected- |-docs - |-home |-fr |. |-stylsheets |-descriptors |-css and the followinf sitemap: map:match pattern=do-login !-- first validate whether submitted values are ok -- map:act type=form-validator map:parameter name=descriptor value=context://protected/descriptors/params.xml/ map:parameter name=validate value=username/ !-- now try to log in -- map:act type=db-authenticator map:parameter name=descriptor value=context://protected/descriptors/auth.xml/ !-- now go to protected area -- map:redirect-to uri=home/home.section/ /map:act /map:act !-- something was wrong, try it again -- map:redirect-to uri=error/ /map:match * after a successfull login i call the uri home/home.section and then i have the following match: map:match pattern=*/*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=context://protected//descriptors/params.xml/ map:parameter name=validate value=username,department_id,theme/ !-- generate protected content -- !-- map:generate type=serverpages src=docs/protected.xsp/ -- !-- map:transform src=stylesheets/{theme}-page2html.xsl/ -- map:generate src=docs/home/home.xml/ map:transform src=stylesheets/page.xsl map:parameter name=section value=home/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:transform src=stylesheets/menupage.xsl map:parameter name=section value=home/ map:parameter name=request-url value=home.section/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=css-stylesheet value=default.css/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:serialize/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=login/ /map:match * well this works fine, nut i want to substitute map:generate src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml / because i have many ressources, but this dont work :-(, why that ? thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question with wildcard in sitemap
You have a map:act/ surrounding not only this map:generate/. This map:act/ makes it necessary to use {../1}: map:generate src=docs/{../1}/home.xml / Regards, Joerg Sliman Bouchareb wrote: hi cocooners, i have the following directory structrue: cocoon:| |protected- |-docs - |-home |-fr |. |-stylsheets |-descriptors |-css and the followinf sitemap: map:match pattern=do-login !-- first validate whether submitted values are ok -- map:act type=form-validator map:parameter name=descriptor value=context://protected/descriptors/params.xml/ map:parameter name=validate value=username/ !-- now try to log in -- map:act type=db-authenticator map:parameter name=descriptor value=context://protected/descriptors/auth.xml/ !-- now go to protected area -- map:redirect-to uri=home/home.section/ /map:act /map:act !-- something was wrong, try it again -- map:redirect-to uri=error/ /map:match * after a successfull login i call the uri home/home.section and then i have the following match: map:match pattern=*/*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=context://protected//descriptors/params.xml/ map:parameter name=validate value=username,department_id,theme/ !-- generate protected content -- !-- map:generate type=serverpages src=docs/protected.xsp/ -- !-- map:transform src=stylesheets/{theme}-page2html.xsl/ -- map:generate src=docs/home/home.xml/ map:transform src=stylesheets/page.xsl map:parameter name=section value=home/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:transform src=stylesheets/menupage.xsl map:parameter name=section value=home/ map:parameter name=request-url value=home.section/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=css-stylesheet value=default.css/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:serialize/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=login/ /map:match * well this works fine, nut i want to substitute map:generate src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml / because i have many ressources, but this dont work :-(, why that ? thanx -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Question: Where do I add actions to sitemap?
Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question: Where do I add actions to sitemap?
Actions go *inside* components (actions are a type of component, like generator, serializer, transformer, etc.): map:sitemap ... map:components map:actions.../map:actions map:generators/map:transformers/ etc. etc. HTH /S Ross Bleakney [EMAIL PROTECTED] wrote: Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 MSN: [EMAIL PROTECTED] __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Where do I add actions to sitemap?
Nevermind, I found the answer: put the actions element inside components/components Thanks, Ross On Wed, 2003-05-28 at 17:35, Ross Bleakney wrote: Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question about CSS display
Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Check your sitemap ... You probably don't have the correct pipeline/match for it. Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Joe, you're question is so wide. Here is how I use a CSS in an XSL file. load the CSS. map:pipeline map:match pattern=style/*.css map:read mime-type=text/css src=demo/{1}.css/ /map:match /map:pipeline load the file : map:match pattern=welcome map:generate type=file src=proto/xml/welcome.xml/ map:transform type=xslt src=proto/xsl/welcome.xsl/ map:serialize type=html/ /map:match In the XSL file : xsl:template match=/ html head link rel=stylesheet type=text/css href=style.css/ -- link to the style. /head body xsl:apply-templates/ /body /html /xsl:template hope this help. At 17:19 28/03/2003 +0100, you wrote: Hello Joe, you don't give very exact error description, only it does not work. So it's only possible to guess. Or you give us more information. I guess the error is a missing or a wrong match for the CSS. The information you can provide: 1. Which URL do you type in the browser for the Cocoon delivered HTML. 2. How does the according match pattern in the sitemap for the docbook transformation look like. 3. How does the link/ tag for the CSS in the generated HTML look like? 4. How does the according match pattern in the sitemap for the CSS look like? The transformation offline or in Cocoon may be different (but I don't really think so), but has nothing to do with the loading of the CSS. Regards, Joerg Joe Williams wrote: Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
The link to the stylesheet appears in the HTML output. I am using a sub-sitemap with the pipeline: map:pipeline map:match pattern=book map:generate src=book.xml/ map:transform src=book.xsl map:parameter name=css-stylesheet value=book.css/ /map:transform map:serialize/ /map:match map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match /map:pipeline And I am adding the parameters to my DocBook customization layer, per Norm and Bob's documentation: xsl:param name=html.stylesheet select='book.css'/ xsl:param name=html.stylesheet.typetext/css/xsl:param - Original Message - From: Yves Vindevogel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 9:27 AM Subject: Re: Newbie question about CSS display Check your sitemap ... You probably don't have the correct pipeline/match for it. Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
It's a little bit confused but if you want to do it. You should declare do : map:pipeline map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match /map:pipeline then : map:pipeline map:match pattern=book map:generate src=book.xml/ map:transform src=book.xsl map:parameter name=css-stylesheet value=cocoon:/book.css/ -- I'm not really sure value attribute can get a cocoon protocol, but why not. /map:transform map:serialize/ /map:match /map:pipeline In the xsl document : xsl:param name=css-stylesheet select=book.css/ -- I'm not sure this is working because if you want to call an URL, you should use the document() fonction like this. document('host:8080/book.css). xsl:param name=html.stylesheet.typetext/css/xsl:param Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Hello Joe, Joe Williams wrote: Thanks for the response, let me see if this makes things clearer. I'm not getting an error message, but the formatting changes to the DocBook XSL (by means of my CSS) do not appear in the browser. The URL: http://myserver:8080/cocoon/book/book This succeeds in calling the document. When I view the source of the displayed HTML, the link to the CSS stylesheet appears: link href=book.css rel=stylesheet type=text/css so far everything seems to be clear and ok. Try to access http://myserver:8080/cocoon/book/book.css in your browser to see if you get the CSS. Therefore, I expect the changes to appear, but they do not. The CSS is in the same directory (book) as the XML source (book.xml) the XSL stylesheet (book.xsl) and the CSS (book.css) This is more or less not interesting for the browser. Important is only the mapping in the sitemap. You wrote already you have the following two pipelines: map:pipeline map:match pattern=book map:generate src=book.xml/ map:transform src=book.xsl map:parameter name=css-stylesheet value=book.css/ /map:transform map:serialize/ /map:match map:match pattern=*.css map:read src={1}.css mime-type=text/css/ /map:match /map:pipeline Only here (= for the sitemap) the directories are interesting. As you wrote the pipeline it's correct to have both files in the same directory. What do you want to reach with map:parameter name=css-stylesheet value=book.css/ ?? Do you have a global xsl:param name=css-stylesheet/ in your book.xsl? Otherwise the map:parameter/ is useless. You already configured your DocBook with xsl:param name=html.stylesheet select='book.css'/ and that's correct. This only for clarification. Test the stylesheet independent of the DocBook HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm, I don't know. If not, what do you get? I have not tried Lionel's suggestions yet, but will do so. Sorry, but this won't help you much. You don't want to include the CSS in the DocBook HTML, but a link element refering to the CSS. So you only must pass the CSS's name and not the CSS itself to the XSLT stylesheet. Using document('host:8080/book.css') won't work either, because you can't read text with it, only XML. And the third suggestion using a xsl:template match=// can break the DocBook transformation completely. Use the parameterization as suggested by Norman Walsh and as you already did it. Regards, Joerg - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] Hello Joe, you don't give very exact error description, only it does not work. So it's only possible to guess. Or you give us more information. I guess the error is a missing or a wrong match for the CSS. The information you can provide: 1. Which URL do you type in the browser for the Cocoon delivered HTML. 2. How does the according match pattern in the sitemap for the docbook transformation look like. 3. How does the link/ tag for the CSS in the generated HTML look like? 4. How does the according match pattern in the sitemap for the CSS look like? The transformation offline or in Cocoon may be different (but I don't really think so), but has nothing to do with the loading of the CSS. Regards, Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
When I try to reach the CSS directly, I get a Cocoon error (see below). What do you want to reach with map:parameter name=css-stylesheet value=book.css/ ?? Do you have a global xsl:param name=css-stylesheet/ in your book.xsl? No, I do not. I commented that line out, and the link to the CSS still appears in the HTML result, so it obviously doesn't do anything useful here. Not sure why I put that in there, except for my newbieness...just hacking around to see if I could get it to work. This only for clarification. Test the stylesheet independent of the DocBook HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm, I don't know. If not, what do you get? When I follow the suggestion to access the CSS alone, I get this error: type resource-not-found message Resource not found description The requested URI /cocoon/book/book.css was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/book/book.css path-info book/book.css - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
This only for clarification. Test the stylesheet independent of the DocBook HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm, I don't know. If not, what do you get? When I follow the suggestion to access the CSS alone, I get this error: type resource-not-found message Resource not found description The requested URI /cocoon/book/book.css was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/book/book.css path-info book/book.css Stupid mail client, simply ignores the reply-to header ... I wrote, that the above error message is probably caused by the not found CSS file on a place, where it should be to found, because it's specified in the sitemap. There can not be many reasons: 1. the file is not in the same directory as the xml (according to the earlier sent match patterns and pipelines), 2. the pipeline for the CSS does not look like the sent one 3. or there is another pipeline matching on *.css before the sent one. And this one searches for the CSS file on another place on the disk. A look into the log file, especially for stacktraces, will help I think. Maybe one can see a FileNotFoundException (or Resource...) with the specified path, where the file was searched for. Regards, Joerg -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
1. the file is not in the same directory as the xml (according to the earlier sent match patterns and pipelines), 2. the pipeline for the CSS does not look like the sent one 3. or there is another pipeline matching on *.css before the sent one. And this one searches for the CSS file on another place on the disk. A look into the log file, especially for stacktraces, will help I think. Maybe one can see a FileNotFoundException (or Resource...) with the specified path, where the file was searched for. In access.log: WARN (2003--3-28) 16:41.55.945 [access] (/cocoon/book/book.css) Thread-7/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: book/book.css In sitemap.log: DEBUG (2003-03-28) 16:41:55.909 [sitemap] (/cocoon/book/book.css) Thread-7/sitemap_xmap: Matched wildcard pattern book/* DEBUG (2003-03-28) 16:41:55.909 [sitemap] (/cocoon/book/book.css) Thread-7/AbstractSitemap: Current Sitemap Parameters: PARAM: VALUE: 'book.css' PARAM: '0' VALUE: 'book'/book.css' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Ah, interesting ;-) As I expected it ... Please have a look into the log files. You should get more information there, e.g. something like a stacktrace. It seems, that the book.css can't be found on the disk, where it should be to found (as you specified it in the sitemap). But the pipeline matching on *.css you sent already in this thread looked ok. Maybe another pipeline matches already earlier on *.css in the sitemap? There is a *.css in the main sitemap. Would that conflict with this one in this sub-sitemap (cocoon/book/sitemap.xmap)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display--CORRECTION
There is no *.css in main sitemap, but I have not looked through all the files. - Original Message - From: Joe Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:52 PM Subject: Re: Newbie question about CSS display Ah, interesting ;-) As I expected it ... Please have a look into the log files. You should get more information there, e.g. something like a stacktrace. It seems, that the book.css can't be found on the disk, where it should be to found (as you specified it in the sitemap). But the pipeline matching on *.css you sent already in this thread looked ok. Maybe another pipeline matches already earlier on *.css in the sitemap? There is a *.css in the main sitemap. Would that conflict with this one in this sub-sitemap (cocoon/book/sitemap.xmap)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Hello Joe, you don't give very exact error description, only it does not work. So it's only possible to guess. Or you give us more information. I guess the error is a missing or a wrong match for the CSS. The information you can provide: 1. Which URL do you type in the browser for the Cocoon delivered HTML. 2. How does the according match pattern in the sitemap for the docbook transformation look like. 3. How does the link/ tag for the CSS in the generated HTML look like? 4. How does the according match pattern in the sitemap for the CSS look like? The transformation offline or in Cocoon may be different (but I don't really think so), but has nothing to do with the loading of the CSS. Regards, Joerg Joe Williams wrote: Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about CSS display
Thanks for the response, let me see if this makes things clearer. I'm not getting an error message, but the formatting changes to the DocBook XSL (by means of my CSS) do not appear in the browser. The URL: http://myserver:8080/cocoon/book/book This succeeds in calling the document. When I view the source of the displayed HTML, the link to the CSS stylesheet appears: link href=book.css rel=stylesheet type=text/css Therefore, I expect the changes to appear, but they do not. The CSS is in the same directory (book) as the XML source (book.xml) the XSL stylesheet (book.xsl) and the CSS (book.css) I have not tried Lionel's suggestions yet, but will do so. - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 10:19 AM Subject: Re: Newbie question about CSS display Hello Joe, you don't give very exact error description, only it does not work. So it's only possible to guess. Or you give us more information. I guess the error is a missing or a wrong match for the CSS. The information you can provide: 1. Which URL do you type in the browser for the Cocoon delivered HTML. 2. How does the according match pattern in the sitemap for the docbook transformation look like. 3. How does the link/ tag for the CSS in the generated HTML look like? 4. How does the according match pattern in the sitemap for the CSS look like? The transformation offline or in Cocoon may be different (but I don't really think so), but has nothing to do with the loading of the CSS. Regards, Joerg Joe Williams wrote: Forgive the elementary nature of this question, but I am new to Cocoon, my background is documentation and not development, and I have read and searched for an explanation for this weirdness without success. Using DocBook XML and the DocBook XSL with a customization layer, I want to change the styles using a CSS. My formatting changes are displayed when I run the transformation from the command line, but not when I use Cocoon. Is this to be expected, or what? Does the transformation occur differently when using Cocoon than when using Xalan alone? A helpful link or answer would be appreciated. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie question
Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - 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: newbie question
Tellis, Cocoon is aimed at generating dynamic content, first and foremost. Anyway, you can, as the Cocoon-based Forrest does, generate static content out of XMLs in batch mode and then drop them in a web-serves, to improve performance. Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Tellis George [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:16 AM To: [EMAIL PROTECTED] Subject: newbie question Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - 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: newbie question
Tellis You ask is cocoon good for static pages or can it be used for highly interactive dynamic pages? Very short version answer is: Yes, Cocoon can be used for both. Slightly longer: Cocoon essentially *is* a servlet, designed to enable the creation of XML (from static files, databases, web services or other sources) and provide an efficient and effective framework for manipluating that XML into a variety of output formats (including all the ones you list). Cocoon works whether you have a single file or a whole multitude with any combination of static or dynamic. Even longer (from the Cocoon Home Page at: http://xml.apache.org/cocoon/) Designed for performance and scalability around pipelined SAX processing, Cocoon offers a flexible environment based on a separation of concerns between content, logic, and style. Cocoon's centralized configuration system helps you to create, deploy, and maintain rock-solid XML server applications. Cocoon interacts with most data sources, including filesystems, RDBMS, LDAP, native XML databases, and network-based data sources. It adapts content delivery to the capabilities of different devices like HTML, WML, PDF, SVG, and RTF, to name just a few. You can run Cocoon as a Servlet as well as through a powerful, commandline interface. The deliberate design of its abstract environment gives you the freedom to extend its functionality to meet your special needs in a highly modular fashion. By now this should have answered your question (but you probably have others!) - look through the Overview ( http://xml.apache.org/cocoon/overview.html ) and browse from there - also look at the http://wiki.cocoondev.org/Wiki.jsp?page=Main Wiki site; mostly maintained by folk who also asking questions and trying to explain what they find to others... [EMAIL PROTECTED] 27/01/2003 12:16:04 Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. - 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: newbie question
from my experience i can say, cocoon can be used for highly dynamic pages. You have to individually check on performance issues, but in general until today i have been quite satisfied with what i can gain from using it. I must admit, that i currently only use the basics. never tried the esql thing, and more sophisticated onse, but so far im very shure, it can be used especially in a multi channel environment. hussayn Tellis George wrote: Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - 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] -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 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: newbie question
On Monday 27 January 2003 18:16, Tellis George wrote: My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Consensus here is; WEYWY What Ever You Want You Get or so it seems... - 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: newbie question
Thanks for the excellent information. One of my main concern was how to integrate cocoon with existing services and servlets without necessarily making them part of cocoon ... From: Derek Hohls [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: newbie question Date: Mon, 27 Jan 2003 12:36:06 +0200 Tellis You ask is cocoon good for static pages or can it be used for highly interactive dynamic pages? Very short version answer is: Yes, Cocoon can be used for both. Slightly longer: Cocoon essentially *is* a servlet, designed to enable the creation of XML (from static files, databases, web services or other sources) and provide an efficient and effective framework for manipluating that XML into a variety of output formats (including all the ones you list). Cocoon works whether you have a single file or a whole multitude with any combination of static or dynamic. Even longer (from the Cocoon Home Page at: http://xml.apache.org/cocoon/) Designed for performance and scalability around pipelined SAX processing, Cocoon offers a flexible environment based on a separation of concerns between content, logic, and style. Cocoon's centralized configuration system helps you to create, deploy, and maintain rock-solid XML server applications. Cocoon interacts with most data sources, including filesystems, RDBMS, LDAP, native XML databases, and network-based data sources. It adapts content delivery to the capabilities of different devices like HTML, WML, PDF, SVG, and RTF, to name just a few. You can run Cocoon as a Servlet as well as through a powerful, commandline interface. The deliberate design of its abstract environment gives you the freedom to extend its functionality to meet your special needs in a highly modular fashion. By now this should have answered your question (but you probably have others!) - look through the Overview ( http://xml.apache.org/cocoon/overview.html ) and browse from there - also look at the http://wiki.cocoondev.org/Wiki.jsp?page=Main Wiki site; mostly maintained by folk who also asking questions and trying to explain what they find to others... [EMAIL PROTECTED] 27/01/2003 12:16:04 Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. - 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] _ Stay in touch with MSN Messenger http://messenger.msn.co.uk - 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: newbie question
hy, Tellis im just working on a project, where: 1.) an existing webapp can't be merged with the cocoon-webapp due to incompatible jar versions 2.) the existing webapp may not be modified, except the creation of an additional XML-layer for read/write access. I am working on howto get a cocoon-based presentation layer in the middle between the legacyapp and the browser frontend. Things start working and i make quick progress at the moment. If you are interested, i can tell more about this... regards, hussayn Tellis George wrote: Thanks for the excellent information. One of my main concern was how to integrate cocoon with existing services and servlets without necessarily making them part of cocoon ... -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 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: newbie question
Tellis OK; this is getting into deeper waters again, it is certainly possible (and is often discussed on this mailing list) but some of the explanations of 'how" are probably best left until you understand a little of why/how Cocoon operates. A lot will also depend on which services and servlets you are working with and how *they* are configured and what their capabilities/limitations are. Derek [EMAIL PROTECTED] 27/01/2003 01:25:39 Thanks for the excellent information. One of my main concern was how to integrate cocoon with existing services and servlets without necessarily making them part of cocoon ...From: "Derek Hohls" [EMAIL PROTECTED]Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: Re: newbie questionDate: Mon, 27 Jan 2003 12:36:06 +0200TellisYou ask "is cocoon good for static pages or can it be used forhighly interactive dynamic pages?"Very short version answer is:Yes, Cocoon can be used for both.Slightly longer:Cocoon essentially *is* a servlet, designed to enable the creation ofXML (from static files, databases, web services or other sources) andprovide an efficient and effective framework for manipluating that XMLinto a variety of output formats (including all the ones you list).Cocoonworks whether you have a single file or a whole multitude with anycombination of static or dynamic.Even longer (from the Cocoon Home Page at:http://xml.apache.org/cocoon/)Designed for performance and scalability around pipelined SAXprocessing, Cocoon offers a flexible environment based on a separation of concernsbetween content, logic, and style. Cocoon's centralized configurationsystemhelps you to create, deploy, and maintain rock-solid XML serverapplications.Cocoon interacts with most data sources, including filesystems, RDBMS,LDAP, native XML databases, and network-based data sources.It adapts content delivery to the capabilities of different deviceslikeHTML, WML, PDF, SVG, and RTF, to name just a few.You can run Cocoon as a Servlet as well as through a powerful,commandline interface.The deliberate design of its abstract environment gives you the freedomto extend its functionality to meet your special needs in a highlymodular fashion.By now this should have answered your question (but you probably haveothers!) -look through the Overview ( http://xml.apache.org/cocoon/overview.html) andbrowse from there - also look at thehttp://wiki.cocoondev.org/Wiki.jsp?page=MainWiki site; mostly maintained by folk who also asking questions andtrying to explainwhat they find to others... [EMAIL PROTECTED] 27/01/2003 12:16:04 Hi,I am quite new to cocoon. I am evaulating web publishing frameworks formycompany.Although Cocoon sounds very promising I am not entiely sure because thepages in myweb application are not static. All of them are dynamically generatedon thefly. The backend servicesalthough still under design may be developed using JINI, objectdatabases,LDAP etcThe main reason why I was drawn to cocoon was its multichanelcapabilities.We may want to targetthe pages to a number of devices - mobiles, PDAs, PCs etc Myoriginal(very simplistic) design wasto simply have servlets generate XML and then transform these usingXSLT.This is where I thought cocoon would help.My question is - is cocoon good for static pages or can it be used forhighly interactive dynamic pages?RegardsTellis_Stay in touch with absent friends - get MSN Messengerhttp://messenger.msn.co.uk-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]--This message has been scanned for viruses and dangerous content byMailScanner, and is believed to be clean."The CSIR exercises no editorial control over E-mail messages and/orattachments thereto/links referred to therein originating in theorganisation and the views in this message/attachments thereto aretherefore not necessarily those of the CSIR and/or its employees.The sender of this e-mail is, moreover, in terms of the CSIR's Conditionsof Service, subject to compliance with the CSIR's internal E-mail andInternet Policy."-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]_Stay in touch with MSN Messenger http://messenger.msn.co.uk-Please check that your question has not already been answered in theFAQ before posting.
Re: newbie question
Tellis Also have a look at: http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet As you can see, it assumes some knowledge of Cocoon wrt to pipelines and other jargon - but you may be able to get the essence of it [EMAIL PROTECTED] 27/01/2003 01:25:39 Thanks for the excellent information. One of my main concern was how to integrate cocoon with existing services and servlets without necessarily making them part of cocoon ...From: "Derek Hohls" [EMAIL PROTECTED]Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: Re: newbie questionDate: Mon, 27 Jan 2003 12:36:06 +0200TellisYou ask "is cocoon good for static pages or can it be used forhighly interactive dynamic pages?"Very short version answer is:Yes, Cocoon can be used for both.Slightly longer:Cocoon essentially *is* a servlet, designed to enable the creation ofXML (from static files, databases, web services or other sources) andprovide an efficient and effective framework for manipluating that XMLinto a variety of output formats (including all the ones you list).Cocoonworks whether you have a single file or a whole multitude with anycombination of static or dynamic.Even longer (from the Cocoon Home Page at:http://xml.apache.org/cocoon/)Designed for performance and scalability around pipelined SAXprocessing, Cocoon offers a flexible environment based on a separation of concernsbetween content, logic, and style. Cocoon's centralized configurationsystemhelps you to create, deploy, and maintain rock-solid XML serverapplications.Cocoon interacts with most data sources, including filesystems, RDBMS,LDAP, native XML databases, and network-based data sources.It adapts content delivery to the capabilities of different deviceslikeHTML, WML, PDF, SVG, and RTF, to name just a few.You can run Cocoon as a Servlet as well as through a powerful,commandline interface.The deliberate design of its abstract environment gives you the freedomto extend its functionality to meet your special needs in a highlymodular fashion.By now this should have answered your question (but you probably haveothers!) -look through the Overview ( http://xml.apache.org/cocoon/overview.html) andbrowse from there - also look at thehttp://wiki.cocoondev.org/Wiki.jsp?page=MainWiki site; mostly maintained by folk who also asking questions andtrying to explainwhat they find to others... [EMAIL PROTECTED] 27/01/2003 12:16:04 Hi,I am quite new to cocoon. I am evaulating web publishing frameworks formycompany.Although Cocoon sounds very promising I am not entiely sure because thepages in myweb application are not static. All of them are dynamically generatedon thefly. The backend servicesalthough still under design may be developed using JINI, objectdatabases,LDAP etcThe main reason why I was drawn to cocoon was its multichanelcapabilities.We may want to targetthe pages to a number of devices - mobiles, PDAs, PCs etc Myoriginal(very simplistic) design wasto simply have servlets generate XML and then transform these usingXSLT.This is where I thought cocoon would help.My question is - is cocoon good for static pages or can it be used forhighly interactive dynamic pages?RegardsTellis_Stay in touch with absent friends - get MSN Messengerhttp://messenger.msn.co.uk-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]--This message has been scanned for viruses and dangerous content byMailScanner, and is believed to be clean."The CSIR exercises no editorial control over E-mail messages and/orattachments thereto/links referred to therein originating in theorganisation and the views in this message/attachments thereto aretherefore not necessarily those of the CSIR and/or its employees.The sender of this e-mail is, moreover, in terms of the CSIR's Conditionsof Service, subject to compliance with the CSIR's internal E-mail andInternet Policy."-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]_Stay in touch with MSN Messenger http://messenger.msn.co.uk-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- This message has been scanned for viruses and dangerous content by
Re: newbie question
Hi Derek, Hussayn, Thanks for the replies. Now that I know it is very much in the realms of possibility, I will read up a bit more on cocoon and understand how it works. Once I read up a bit more I should be able to ask more specific questions Thanks a lot for all your support Regards Tellis From: Derek Hohls [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: newbie question Date: Mon, 27 Jan 2003 13:55:07 +0200 Tellis Also have a look at: http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet As you can see, it assumes some knowledge of Cocoon wrt to pipelines and other jargon - but you may be able to get the essence of it [EMAIL PROTECTED] 27/01/2003 01:25:39 Thanks for the excellent information. One of my main concern was how to integrate cocoon with existing services and servlets without necessarily making them part of cocoon ... From: Derek Hohls [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: newbie question Date: Mon, 27 Jan 2003 12:36:06 +0200 Tellis You ask is cocoon good for static pages or can it be used for highly interactive dynamic pages? Very short version answer is: Yes, Cocoon can be used for both. Slightly longer: Cocoon essentially *is* a servlet, designed to enable the creation of XML (from static files, databases, web services or other sources) and provide an efficient and effective framework for manipluating that XML into a variety of output formats (including all the ones you list). Cocoon works whether you have a single file or a whole multitude with any combination of static or dynamic. Even longer (from the Cocoon Home Page at: http://xml.apache.org/cocoon/) Designed for performance and scalability around pipelined SAX processing, Cocoon offers a flexible environment based on a separation of concerns between content, logic, and style. Cocoon's centralized configuration system helps you to create, deploy, and maintain rock-solid XML server applications. Cocoon interacts with most data sources, including filesystems, RDBMS, LDAP, native XML databases, and network-based data sources. It adapts content delivery to the capabilities of different devices like HTML, WML, PDF, SVG, and RTF, to name just a few. You can run Cocoon as a Servlet as well as through a powerful, commandline interface. The deliberate design of its abstract environment gives you the freedom to extend its functionality to meet your special needs in a highly modular fashion. By now this should have answered your question (but you probably have others!) - look through the Overview ( http://xml.apache.org/cocoon/overview.html ) and browse from there - also look at the http://wiki.cocoondev.org/Wiki.jsp?page=Main Wiki site; mostly maintained by folk who also asking questions and trying to explain what they find to others... [EMAIL PROTECTED] 27/01/2003 12:16:04 Hi, I am quite new to cocoon. I am evaulating web publishing frameworks for my company. Although Cocoon sounds very promising I am not entiely sure because the pages in my web application are not static. All of them are dynamically generated on the fly. The backend services although still under design may be developed using JINI, object databases, LDAP etc The main reason why I was drawn to cocoon was its multichanel capabilities. We may want to target the pages to a number of devices - mobiles, PDAs, PCs etc My original (very simplistic) design was to simply have servlets generate XML and then transform these using XSLT. This is where I thought cocoon would help. My question is - is cocoon good for static pages or can it be used for highly interactive dynamic pages? Regards Tellis _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. - 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
Newbie Question - Sunshine sample problem
Hi, When I tried to login (guest,guest) to the sunspotdemo at: http://localhost:8080/cocoon/sunspotdemo-portal I get the following: --- Cocoon 2 - Internal server error --- type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/usr/local/jakarta-tomcat-5.0.0/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat-5.0.0/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat-5.0.0/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) Machine P4 - 2GHZ My Environment (extracted from cocoon status): classpath * /usr/java/j2sdk1.4.1_01/lib/tools.jar * /usr/local/jakarta-tomcat-5.0.0/bin/bootstrap.jar memory total 47.5 MB ( 49811456 ) free 1558.64 KB ( 1596048 ) jre version 1.4.1_01 java-vendor Sun Microsystems Inc. operating-system name Linux architecture i386 version 2.4.18-18.8.0 Store-Janitor - org.apache.cocoon.components.store.MRUMemoryStore (hash = 0xe0e515) Any Help would be appreciated, TIA, Gal Nitzan - 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]
Newbie question :Eqsl does not work !!!
I have problems to get an output of my db-data. The database-pool(connection to my db) works fine, I had tested it with the esql.xsp file which came with the cocoon application ( I changed the original pool with my db-pool and it read the data correctly from my database (mysql)). In the basic.xml file I tested also a xsp:logic expression which works fine. I got also problems to use a logicsheet ... may be this could be a hint ? Sorry for this long posting, but I am new to xml/cocoon and thought I could be helpful to see the whole structure of this test-application. Thank you in advance !!! my directory structure: directory structure: /cocoon /test basic.xsl sitemap.xmap /xsp basic.xml my basic.xsl file: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=page html head titlexsl:value-of select=title//title /head body h1xsl:value-of select=title//h1 pxsl:value-of select=greeting//p pxsl:value-of select=db//p /body /html /xsl:template /xsl:stylesheet my basic.xml file: ?xml version=1.0? xsp:page laguage=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page titleSelect from Database/title greetingHere is the result:/greeting esql:connection esql:poolxmldb/esql:pool esql:execute-query esql:queryselect * from document where DocID=1/esql:query esql:results esql:row-results db esql:get-columns/ /db /esql:row-results /esql:results /esql:execute-query /esql:connection /page /xsp:page my sitemap.xmap: !-- minimal sitemap for Cocoon 2 test -- map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- === Components -- map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:selectors default=browser/ map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcherFactory/ /map:matchers /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern=xsp/* map:generate type=serverpages src=xsp/{1}/ map:transform type=xslt src=basic.xsl/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap X - 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]
newbie question: aggregation?
Hello - I am working on Cocoon 2.0.2 and Tomcat 4.0.4. I have an existing xml - xsl stylesheet - html module set up that publishes reports. I would like to use cocoon to do this transformation for me. Thus I would like to change my existing xsl stylesheet as minimally as possible. My situation is this: my xml data is passed to one main xsl stylesheet (main.xsl) which calls a few other xsl styleshees (via: xsl:call- template /. Currently, main.xsl includes: header.xsl, body.xsl, footer.xsl. main.xsl like so: xsl:include href=header.xsl / xsl:include href=body.xsl / xsl:include href=footer.xsl / and these three xsl templates are called later: (ie: xsl:call-template name=header /) How would this be mimicked in Cocoon? Would I need to use map:aggregate / to aggregate the html output from the included stylesheets? How exactly is this done? And what are the map:part /? Or is aggregation totally not the way to go? Because currently when I use my existing xsl template (with the include and call-template commands) I get an error saying the template is not found. Is this doable with my existing xsl templates? Any help would be appreciated. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A newbie question
hi, I am a newbie to use cocoon,and get a question. I use cocoon 2.1 and tomcat 4.0.4 beta3. when i type http://localhost:8080/cocoon, it's right. but when i copy the "hello world" sample from "$CATALINA_HOME/webapps/cocoon/sample/hello-world" to"$CATALINA_HOME/webapps/cocoon/hello-world" and type http://localhost:8080/cocoon/hello-world/hello.html it response a error page,that note"resource not found", why and what relation have between main sitemap and substitute sitemap? by the way, what mean like "{1}.rdf ,{2}.rdf"? thinks advance.
RE: A newbie question
[please, use plain text in your posts] Thought I do not have 2.1 here, I think that the problem is that every directory in 'samples' is auto-mounted by the sitemap (this mean that every request that start with samples/xxx are handled by the sitemap in samples/xxx.) Read the doc (or comments in the sitemap) to find how to (auto)mount other directory. (hint : check the sitemap in /mount/) fabien. -Message d'origine- De: Jack Dong [mailto:[EMAIL PROTECTED]] Date: lundi 24 juin 2002 09:10 À: [EMAIL PROTECTED] Objet: A newbie question hi, I am a newbie to use cocoon,and get a question. I use cocoon 2.1 and tomcat 4.0.4 beta3. when i type http://localhost:8080/cocoon, it's right. but when i copy the hello world sample from $CATALINA_HOME/webapps/cocoon/sample/hello-world to$CATALINA_HOME/webapps/cocoon/hello-world and type http://localhost:8080/cocoon/hello-world/hello.html it response a error page,that noteresource not found, why and what relation have between main sitemap and substitute sitemap? by the way, what mean like {1}.rdf ,{2}.rdf? thinks advance. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A newbie question
On Monday, June 24, 2002, at 03:09 AM, Jack Dong wrote: by the way, what mean like {1}.rdf ,{2}.rdf? Please take a moment to read: http://xml.apache.org/cocoon/userdocs/matchers/matchers.html http://xml.apache.org/cocoon/userdocs/concepts/matchers_selectors.html If you are still confused, report back to this list about what you find unclear about the above docs. (Please note that matchers.html was edited earlier this month.) Thanks. -- Diana P.S. TODO: FAQ similar to above. Simple and Nested sitemap parameter Snippet docs. Perhaps simple concepts in Snippet docs are more accessible than docs? - 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: renewed Newbie Question
Hi, Well then I should make another list ;-) A. Backup your cocoon + tomcat (copy it in a zip or something) B. Shutdown tomcat C. Delete ROOT (in webapps of tomcat) D. rename cocoon to ROOT E. Open your sitemap and mount the directory of the user (look in the example sitemap how to do that) F. Create a sitemap for that subdirectory. G. Start tomcat Instead of E F you can also do (in the sitemap.xmap of cocoon) map:match pattern=**.xml map:generate src = {1}.xml/ !--map:transform src=whatever/-- map:serialize type = xml/ /map:match the wildcard will fill the {1}. When you call http://localhost/~user/hello-page.xml {1} will contain ~user/hello-page.xml Cocoon will for example load: C:\tomcat4\webapps\ROOT\~user\hello-page.xml If you add a tranformation each xml matching the wildcard will be transformed... ps. to change the port goto server.xml of tomcat and search for org.apache.catalina.connector.http.HttpConnector. Change port 8080 to 80. -Oorspronkelijk bericht- Van: Jens Nie [mailto:[EMAIL PROTECTED]] Verzonden: maandag 27 mei 2002 21:42 Aan: [EMAIL PROTECTED] Onderwerp: Re: renewed Newbie Question Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin): If I understand you correctly you want users to be able to place xml in cocoon that is processed by cocoon. Well: 1. Create a subdirectory in ../cocoon/ 2. Mount that directory (in the sitemap.xmap of /cocoon/) 3. In that subdirectory you place a sitemap.xmap 4. Per user make a directory and give them access. 5. If you want them to be able to run xsp you add the following to the sitemap: map:match pattern=apidoc/**.xsp map:generate type = serverpages src = docs/{1}.xsp/ !--map:transform src=whatever/-- map:serialize type = html/ /map:match Well at first thank you for that suggestion. But i think it does not exactly match what i wan't to do using cocoon. See the following example: http://localhost:8080/cocoon/samples/hello/hello-page.xml gives me the simplest xml-to html transform possible. That's taken from the live samples section of cocoon, and is working pretty well. As far as i understand the whole thing, this works because tomcat running at localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path and it's an xml-document. What I wan't to have working is the same thing with the following url: http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml or even better http://localhost/~user/hello-page.xml that is really all that would be satisfying (at the moment of course) Thanks for any help jneines -- Dipl.-Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
renewed Newbie Question
Hi cocooners, i just asked that question a couple of days before, but did not receive any response to it. And i suppose it's simple for you gurus. So i'm about to try again. I have installed the jakarta-tomcat and cocoon packages shipped with the Suse-8.0 LinuX-Distribution. The examples work fine. The question is: what changes do i have to make to apache/tomcat/cocoon configuration to make cocoon processing work in user homepages? Any sugestions? Sincerly jneines -- Dipl. Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: renewed Newbie Question
But what do i have to do, if i would like to dynamical transform XML to XHTML in a userhompage? Say be trying to access http://myserver/~user/hello-page.xml? All you have to do is tell tomcat (or whatever servlet container you use) send (or redirect), http://myserver/~* to your cocoon app. Though this is not a Cocoon related question, it is in the FAQ (go to http://localhost:8080/cocoon, click on documentation, then FAQ and read them. -Message d'origine- De: Jens Nie [mailto:[EMAIL PROTECTED]] Date: lundi 27 mai 2002 13:34 À: [EMAIL PROTECTED] Objet: renewed Newbie Question Hi cocooners, i just asked that question a couple of days before, but did not receive any response to it. And i suppose it's simple for you gurus. So i'm about to try again. I have installed the jakarta-tomcat and cocoon packages shipped with the Suse-8.0 LinuX-Distribution. The examples work fine. The question is: what changes do i have to make to apache/tomcat/cocoon configuration to make cocoon processing work in user homepages? Any sugestions? Sincerly jneines -- Dipl. Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: renewed Newbie Question
If I understand you correctly you want users to be able to place xml in cocoon that is processed by cocoon. Well: 1. Create a subdirectory in ../cocoon/ 2. Mount that directory (in the sitemap.xmap of /cocoon/) 3. In that subdirectory you place a sitemap.xmap 4. Per user make a directory and give them access. 5. If you want them to be able to run xsp you add the following to the sitemap: map:match pattern=apidoc/**.xsp map:generate type = serverpages src = docs/{1}.xsp/ !--map:transform src=whatever/-- map:serialize type = html/ /map:match -Oorspronkelijk bericht- Van: Jens Nie [mailto:[EMAIL PROTECTED]] Verzonden: maandag 27 mei 2002 13:34 Aan: [EMAIL PROTECTED] Onderwerp: renewed Newbie Question Hi cocooners, i just asked that question a couple of days before, but did not receive any response to it. And i suppose it's simple for you gurus. So i'm about to try again. I have installed the jakarta-tomcat and cocoon packages shipped with the Suse-8.0 LinuX-Distribution. The examples work fine. The question is: what changes do i have to make to apache/tomcat/cocoon configuration to make cocoon processing work in user homepages? Any sugestions? Sincerly jneines -- Dipl. Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: renewed Newbie Question
Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin): If I understand you correctly you want users to be able to place xml in cocoon that is processed by cocoon. Well: 1. Create a subdirectory in ../cocoon/ 2. Mount that directory (in the sitemap.xmap of /cocoon/) 3. In that subdirectory you place a sitemap.xmap 4. Per user make a directory and give them access. 5. If you want them to be able to run xsp you add the following to the sitemap: map:match pattern=apidoc/**.xsp map:generate type = serverpages src = docs/{1}.xsp/ !--map:transform src=whatever/-- map:serialize type = html/ /map:match Well at first thank you for that suggestion. But i think it does not exactly match what i wan't to do using cocoon. See the following example: http://localhost:8080/cocoon/samples/hello/hello-page.xml gives me the simplest xml-to html transform possible. That's taken from the live samples section of cocoon, and is working pretty well. As far as i understand the whole thing, this works because tomcat running at localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path and it's an xml-document. What I wan't to have working is the same thing with the following url: http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml or even better http://localhost/~user/hello-page.xml that is really all that would be satisfying (at the moment of course) Thanks for any help jneines -- Dipl.-Phys. Jens Nie Fachbereich Physik, Universität Osnabrück [EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: renewed Newbie Question
On Monday 27 May 2002 03:41 pm, you wrote: Well at first thank you for that suggestion. But i think it does not exactly match what i wan't to do using cocoon. See the following example: http://localhost:8080/cocoon/samples/hello/hello-page.xml Umm ... could you put in a hostname that points to your site. 'localhost' is different for everybody. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Question
Hello toghether I'm a XML newbie and a Cocoon newbie, too... I wrote an example XML File and the appropriate XML schema. How to validate the XML File? (I guess I have to validate it because there are rules that you can't fill in this or that in a certain element... every advice would be helpful... thanks in advance mas - Please check that your question has not already been answered in 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 Question
Have you tried XMLSpy? (www.altova.com) Arje -Oorspronkelijk bericht- Van: Sorin Marti [mailto:[EMAIL PROTECTED]] Verzonden: 19 April 2002 11:23 Aan: [EMAIL PROTECTED] Onderwerp: Newbie Question Hello toghether I'm a XML newbie and a Cocoon newbie, too... I wrote an example XML File and the appropriate XML schema. How to validate the XML File? (I guess I have to validate it because there are rules that you can't fill in this or that in a certain element... every advice would be helpful... thanks in advance mas - Please check that your question has not already been answered in 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: Newbie Question
Arjé Cahn wrote: Have you tried XMLSpy? (www.altova.com) I'm not using Windows... is there an xml-spy for Unix? - Please check that your question has not already been answered in 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 Question
Sorin, why not use Xerces instead ? Though I used it only for DTD validation, it has schema validation too... Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Sorin Marti [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 11:43 AM To: [EMAIL PROTECTED] Subject: Re: Newbie Question Arjé Cahn wrote: Have you tried XMLSpy? (www.altova.com) I'm not using Windows... is there an xml-spy for Unix? - Please check that your question has not already been answered in 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: Newbie Question
You could do it with a parser like Xerces. (xml.apache.org) public void parseXml(String xml) throws SAXException, IOException{ try { XMLReader parser = XMLReaderFactory.createXMLReader( org.apache.xerces.parsers.SAXParser); parser.setContentHandler(this.xmlConsumer); parser.setErrorHandler(this); try { //if (validate parser instanceof XMLReader) if ( parser instanceof XMLReader ){ ((XMLReader)parser).setFeature( http://xml.org/sax/features/validation;, true ((XMLReader)parser).setFeature( http://xml.org/sax/features/namespaces;, true ((XMLReader)parser).setFeature(http://apache.org/xml/features/validation/sc hema,true ); ((XMLReader)parser).setFeature( http://apache.org/xml/features/nonvalidating/load-external-dtd;, true ); ((XMLReader)parser).setFeature( http://apache.org/xml/features/validation/schema-full-checking;, true ); } } catch (Exception ex) { } parser.parse(new InputSource( new StringReader(xml)) ); } catch (org.xml.sax.SAXParseException spe) { spe.printStackTrace(System.err); } } You have to do the right import etc.. regards, Edgar -Oorspronkelijk bericht- Van: Sorin Marti [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 19 april 2002 11:23 Aan: [EMAIL PROTECTED] Onderwerp: Newbie Question Hello toghether I'm a XML newbie and a Cocoon newbie, too... I wrote an example XML File and the appropriate XML schema. How to validate the XML File? (I guess I have to validate it because there are rules that you can't fill in this or that in a certain element... every advice would be helpful... thanks in advance mas - Please check that your question has not already been answered in 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: Newbie Question
Sorin: I wrote an example XML File and the appropriate XML schema. How to validate the XML File? (I guess I have to validate it because there are rules that you can't fill in this or that in a certain element... One way to learn how to do this is to check out Elliotte Rusty Harold's draft version of Processing XML with Java, specifically this chapter: http://www.cafeconleche.org/books/xmljava/chapters/ch07.html It walks you through how to configure and use your own XMLReader objects to validate your files. Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
threading (newbie question)
Folks, I'd like to access multiple sources of information simultaneously. I'm new to Cocoon. I see two possibilities: (1) Use map:aggregate to access multiple map:part elements. This is delightfully granular but may or may not meet the goal of simultaneous access. Can threads be used with an individual map:part? (2) Define a custom "super" generator that itself spawns multiple threads and collates the incoming data. This meets the simulataneous criterion but doesn't seem very granular. I think I can see how to specify "source A" versus "source B" to the superGenerator (via actions?) but how can I use map:aggregate? Comments? Advice? Alternative approaches? thanks, Mike [EMAIL PROTECTED] ps. Cocoon is fascinating. Kudos to everyone working on the project, the tutorials (Bonebreaker rocks!), and the mailing list. - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Newbie question about patterns in sitemap.xmap
Hi, I couldn't find an answer to this question in the archives or in the Cocoon docs so apologies if it's a dumb one. I'm simply trying to match a filename pattern in the sitemap.xmap for testing purposes. The file names could be like this Item1.html, Item2.html and so on, or item1.html, item2.html and so on. In grep I can match these patterns using [Ii]tem[0-9*].html but when I use this in the sitemap like this map:match pattern=xslt/[Ii]tem[0-9*].html it can't find the files. Is it possible to use these kind of expressions or do I need to try something else? Thanks George - Please check that your question has not already been answered in 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 question about patterns in sitemap.xmap
George Agnelli wrote: Hi, I couldn't find an answer to this question in the archives or in the Cocoon docs so apologies if it's a dumb one. I'm simply trying to match a filename pattern in the sitemap.xmap for testing purposes. The file names could be like this Item1.html, Item2.html and so on, or item1.html, item2.html and so on. In grep I can match these patterns using [Ii]tem[0-9*].html but when I use this in the sitemap like this map:match pattern=xslt/[Ii]tem[0-9*].html it can't find the files. Is it possible to use these kind of expressions or do I need to try something else? Thanks George Try: map:match type=regexp pattern=xslt/[Ii]tem[0-9*].html You need to tell Cocoon that you're using a Regular Expression instead of a normal pattern. Hope this helps.. Tony - Please check that your question has not already been answered in 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 question::Redundant logging...
giacomo wrote: !-- add this line -- category name=store.janitor log-level=ERROR/ Shouldn't it be store-janitor instead? This is how DEBUG messages are tagged in my logs (using C2.0.1). Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - 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: Newbie question::Redundant logging...
On Mon, 11 Feb 2002, Ugo Cei wrote: giacomo wrote: !-- add this line -- category name=store.janitor log-level=ERROR/ Shouldn't it be store-janitor instead? This is how DEBUG messages are tagged in my logs (using C2.0.1). Oh, yes, sorry, your version is the correct one. Giacomo - Please check that your question has not already been answered in 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 question::Redundant logging...
Stephen, you could change the log level from DEBUG to ERROR by editing logkit.xconf. Check previuos postings on how to do this. Mind, you will loose valuable logging information during development. Best regards - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Stephen Clarke [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 7:59 AM To: Cocoon Subject: Newbie question::Redundant logging... Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Grateful for any pointers on how to stop this logging behavior, or whatever it is. -- Best, Stephen Clarke - Please check that your question has not already been answered in 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: Newbie question::Redundant logging...
On Sun, 10 Feb 2002, Stephen Clarke wrote: Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Change the logkit.xconf file to: ... categories category name=core log-level=DEBUG log-target id-ref=core/ log-target id-ref=error/ !-- add this line -- category name=store.janitor log-level=ERROR/ /category ... to get rid of those messages. Giacomo Grateful for any pointers on how to stop this logging behavior, or whatever it is. -- Best, Stephen Clarke - Please check that your question has not already been answered in 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: Newbie question::Redundant logging...
- Original Message - From: giacomo [EMAIL PROTECTED] To: Cocoon [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 1:35 PM Subject: Re: Newbie question::Redundant logging... On Sun, 10 Feb 2002, Stephen Clarke wrote: Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Change the logkit.xconf file to: ... categories category name=core log-level=DEBUG log-target id-ref=core/ log-target id-ref=error/ !-- add this line -- category name=store.janitor log-level=ERROR/ /category ... to get rid of those messages. Hi, Thanks to both Giacomo and Luca for taking the trouble to reply. I've made all kinds of changes. Unfortunately, none seemed to work. My logkit.xconf does not contain a category name=core line. I tried putting the category child inside every parent category i have. I also tried adding the entire sample you gave as a new category node. Earlier, I had changed the web.xml init-param to FATAL-ERROR. So I tried changing it back again, but none of these worked. This is how the categories node of my logkit.xconf looks. It hasn't changed since I installed Cocoon2.0. categories category name=cocoon log-level=DEBUG log-target id-ref=cocoon/ /category category name=root log-level=DEBUG log-target id-ref=root/ category name=store log-level=DEBUG log-target id-ref=components/ log-target id-ref=filter/ /category category name=xslt log-level=DEBUG log-target id-ref=components/ log-target id-ref=filter/ /category /category /categories Where should I put that additional line? I would be grateful for any further help. Thanks again. -- Stephen Clarke - Please check that your question has not already been answered in 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 question::Redundant logging...
Hi, Stephen Clarke wrote: - Original Message - From: giacomo [EMAIL PROTECTED] To: Cocoon [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 1:35 PM Subject: Re: Newbie question::Redundant logging... On Sun, 10 Feb 2002, Stephen Clarke wrote: I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 This is how the categories node of my logkit.xconf looks. It hasn't changed since I installed Cocoon2.0. Logging categories changed a lot between 2.0 and 2.0.1. Giacomo described the procedure for 2.0.1. categories category name=cocoon log-level=DEBUG log-target id-ref=cocoon/ /category category name=root log-level=DEBUG log-target id-ref=root/ category name=store log-level=DEBUG ^ Change ths to ERROR log-target id-ref=components/ log-target id-ref=filter/ /category category name=xslt log-level=DEBUG log-target id-ref=components/ log-target id-ref=filter/ /category /category /categories Where should I put that additional line? I would be grateful for any further help. Thanks again. Martin -- Martin Holz [EMAIL PROTECTED] phone: 0049-30-39977 218 FIZ CHEMIE BERLIN - Please check that your question has not already been answered in 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 question::Redundant logging...
Hi, http://xml.apache.org/cocoon/faq.html#faq-26 ~Gerhard --- Boren's Law: When in doubt, mumble. --- -Original Message- From: Stephen Clarke [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 7:59 AM To: Cocoon Subject: Newbie question::Redundant logging... Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Grateful for any pointers on how to stop this logging behavior, or whatever it is. -- Best, Stephen Clarke - Please check that your question has not already been answered in 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: Newbie question::Redundant logging...
Stephen Clarke wrote: - Original Message - From: giacomo [EMAIL PROTECTED] To: Cocoon [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 1:35 PM Subject: Re: Newbie question::Redundant logging... On Sun, 10 Feb 2002, Stephen Clarke wrote: I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 This is how the categories node of my logkit.xconf looks. It hasn't changed since I installed Cocoon2.0. Logging categories changed a lot between 2.0 and 2.0.1. Giacomo described the procedure for 2.0.1. categories category name=cocoon log-level=DEBUG log-target id-ref=cocoon/ /category category name=root log-level=DEBUG log-target id-ref=root/ category name=store log-level=DEBUG ^ Change ths to ERROR log-target id-ref=components/ log-target id-ref=filter/ /category category name=xslt log-level=DEBUG log-target id-ref=components/ log-target id-ref=filter/ /category /category /categories Where should I put that additional line? I would be grateful for any further help. Thanks again. Hi Martin, Thanks. That worked well. {:-) -- Best, Stephen Clarke - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question::Redundant logging...
Hello, I have noticed that Cocoon writes the following four lines in my log file every ten seconds. This is preventing my hard drive from spinning down and unnecessarily busying the drive. Is there any way to stop it? My development server is rarely visited, but I like to leave it running on minimum power just in case. DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().totalMemory()=10067968 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getHeapsize()=6000 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getJVM().freeMemory()=935640 DEBUG (2002-02-10) 06:37.10:682 [root.sto] (Unknown-URI) Unknown-thread/StoreJanitorImpl: getFreememory()=100 Grateful for any pointers on how to stop this logging behavior, or whatever it is. -- Best, Stephen Clarke - Please check that your question has not already been answered in 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: Using ?xml-stylesheet? tag with Cocoon (newbie question)
hi, reading docs about Cocoon2.0 the xml-processing instruction were abandoned, so by design choice ?xml-stylesheet? was replaced by the sitemap/pipeline/transform definitions. In Cocoon1 xml-stylesheet was by design the way to select the stylesheet processing, this is no longer true for Cocoon2. One solution might be to use CVS, or any RevisionControlSystem to allow several developers access their own stylesheets... hope it helps.. Christopher A. Brooks wrote: Bernard, see http://xml.apache.org/cocoon/faq.html Bernard Right, so this is the correct web page for the Cocoon FAQs, but it doesn't actually say anything about how I can get Cocoon to do transformations on the embedded ?xml-stylesheet? tags instead of looking to the sitemap file. Is there anyway to do this that you (or others!) know of? Cya, Chris -- Christopher A. Brooks Graduate Student, U of S Email: [EMAIL PROTECTED] Mail: Christopher Brooks Department of Computer Science University of Saskatchewan 57 Campus Drive Saskatoon, Saskatchewan, S7N 5A9 Canada -Original Message- From: Christopher A. Brooks [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 3:39 To: [EMAIL PROTECTED] Subject: Using ?xml-stylesheet? tag with Cocoon (newbie question) Hi, I'm fairly green to working with Cocoon, but have scoured through some previous postings and tried to hunt through other resources on the net and have found no answer to this question (note: the mailing list refers to http://xml.apache.org/cocoon/faqs.html at the bottom of every message, but the URL gets a 404 error). To cut to the chase, I would like to have my XML files transformed to HTML using the embedded ?xml-stylesheet? tag instead of defining the XSL file in the sitemap file. Is there a way to do this? If not, is there a quick way I can allow a number of different developers working in different directories to switch the stylesheets they are using without changing things in the sitemap file? Thanks, season greetings to all, Chris -- Christopher A. Brooks Graduate Student, U of S Email: [EMAIL PROTECTED] Mail: Christopher Brooks Department of Computer Science University of Saskatchewan 57 Campus Drive Saskatoon, Saskatchewan, S7N 5A9 Canada - Please check that your question has not already been answered in 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]
Using ?xml-stylesheet? tag with Cocoon (newbie question)
Hi, I'm fairly green to working with Cocoon, but have scoured through some previous postings and tried to hunt through other resources on the net and have found no answer to this question (note: the mailing list refers to http://xml.apache.org/cocoon/faqs.html at the bottom of every message, but the URL gets a 404 error). To cut to the chase, I would like to have my XML files transformed to HTML using the embedded ?xml-stylesheet? tag instead of defining the XSL file in the sitemap file. Is there a way to do this? If not, is there a quick way I can allow a number of different developers working in different directories to switch the stylesheets they are using without changing things in the sitemap file? Thanks, season greetings to all, Chris -- Christopher A. Brooks Graduate Student, U of S Email: [EMAIL PROTECTED] Mail: Christopher Brooks Department of Computer Science University of Saskatchewan 57 Campus Drive Saskatoon, Saskatchewan, S7N 5A9 Canada - Please check that your question has not already been answered in 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: Using ?xml-stylesheet? tag with Cocoon (newbie question)
see http://xml.apache.org/cocoon/faq.html Bernard -Original Message- From: Christopher A. Brooks [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 3:39 To: [EMAIL PROTECTED] Subject: Using ?xml-stylesheet? tag with Cocoon (newbie question) Hi, I'm fairly green to working with Cocoon, but have scoured through some previous postings and tried to hunt through other resources on the net and have found no answer to this question (note: the mailing list refers to http://xml.apache.org/cocoon/faqs.html at the bottom of every message, but the URL gets a 404 error). To cut to the chase, I would like to have my XML files transformed to HTML using the embedded ?xml-stylesheet? tag instead of defining the XSL file in the sitemap file. Is there a way to do this? If not, is there a quick way I can allow a number of different developers working in different directories to switch the stylesheets they are using without changing things in the sitemap file? Thanks, season greetings to all, Chris -- Christopher A. Brooks Graduate Student, U of S Email: [EMAIL PROTECTED] Mail: Christopher Brooks Department of Computer Science University of Saskatchewan 57 Campus Drive Saskatoon, Saskatchewan, S7N 5A9 Canada - Please check that your question has not already been answered in 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: Java code being dumped to browser. (newbie question)
On Mon, Dec 10, 2001 at 01:50:24PM -0500, Matthew Crocker wrote: Jeremy Crosbie wrote: My guess is you need to specify you are using the LDAP transformer like so map:transform type=ldap src=crocker/eldap.xsl / . This requires that you have defined this transformer in the first place, which is not done in the default sitemap in the distribution. Add: map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer / to the map:transformers element in the sitemap. I already put in the map:transformer entry and when I add 'type=ldap' to my transformer line in the pipe line I get : ldap://localhost uid=matthew dc=crocker,dc=com base true 0 * 0 false error objectClass as output to the browser. This looks like the ldap transformer is parsing the eldapbasicsample.xml file and dumping it the screen without actually doing any LDAP look. I have slapd running in another window and I do not see any connection attempts made to the ldap server. The above output happens when I have the following pipeline map:pipeline map:match pattern=crocker map:generate src=crocker/eldapbasicsample.xml/ Try this: map:generate type=serverpages src=crocker/eldapbasicsample.xml/ this is my guessing. map:transform type=ldap src=crocker/eldap.xsl/ map:serialize type=html/ /map:match /map:pipeline And I have the following in my transformer map map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ /map:transformers HTH, hubert. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java code being dumped to browser. (newbie question)
Hello all, I'm setting up cocoon2 with tomcat, both are latest versions from the website. The examples from tomcat and cocoon2 work fine. I'm also trying to setup ELDAP and I'm having some trouble. I created a pipeline in sitemap.xmap and when I bring up the URL in the browser I see that the eldapbasiccample.xml is being transformed by the eldap.xsl logicsheet but then the resulting java code is dumped to the browser. I need to know how to get cocooon2 to execute the code and the process the resulting XML - HTML for display on the browser. Here is my pipeline info, I'm sure it is something I'm missing but I just can't figure it out with the docs in the distrbution. map:pipeline map:match pattern=crocker map:generate src=crocker/eldapbasicsample.xml/ map:transform src=crocker/eldap.xsl/ map:serialize type=html/ /map:match /map:pipeline I'm assuming I just need another transform entry to process the java but I don't know which one to put it. Thanks for any help -Matt - Please check that your question has not already been answered in 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: Java code being dumped to browser. (newbie question)
My guess is you need to specify you are using the LDAP transformer like so map:transform type=ldap src=crocker/eldap.xsl / . This requires that you have defined this transformer in the first place, which is not done in the default sitemap in the distribution. Add: map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer / to the map:transformers element in the sitemap. -Original Message- From: Matthew Crocker [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:27 AM To: [EMAIL PROTECTED] Subject: Java code being dumped to browser. (newbie question) Hello all, I'm setting up cocoon2 with tomcat, both are latest versions from the website. The examples from tomcat and cocoon2 work fine. I'm also trying to setup ELDAP and I'm having some trouble. I created a pipeline in sitemap.xmap and when I bring up the URL in the browser I see that the eldapbasiccample.xml is being transformed by the eldap.xsl logicsheet but then the resulting java code is dumped to the browser. I need to know how to get cocooon2 to execute the code and the process the resulting XML - HTML for display on the browser. Here is my pipeline info, I'm sure it is something I'm missing but I just can't figure it out with the docs in the distrbution. map:pipeline map:match pattern=crocker map:generate src=crocker/eldapbasicsample.xml/ map:transform src=crocker/eldap.xsl/ map:serialize type=html/ /map:match /map:pipeline I'm assuming I just need another transform entry to process the java but I don't know which one to put it. Thanks for any help -Matt - Please check that your question has not already been answered in 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: Java code being dumped to browser. (newbie question)
Jeremy Crosbie wrote: My guess is you need to specify you are using the LDAP transformer like so map:transform type=ldap src=crocker/eldap.xsl / . This requires that you have defined this transformer in the first place, which is not done in the default sitemap in the distribution. Add: map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer / to the map:transformers element in the sitemap. I already put in the map:transformer entry and when I add 'type=ldap' to my transformer line in the pipe line I get : ldap://localhost uid=matthew dc=crocker,dc=com base true 0 * 0 false error objectClass as output to the browser. This looks like the ldap transformer is parsing the eldapbasicsample.xml file and dumping it the screen without actually doing any LDAP look. I have slapd running in another window and I do not see any connection attempts made to the ldap server. The above output happens when I have the following pipeline map:pipeline map:match pattern=crocker map:generate src=crocker/eldapbasicsample.xml/ map:transform type=ldap src=crocker/eldap.xsl/ map:serialize type=html/ /map:match /map:pipeline And I have the following in my transformer map map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ /map:transformers - Please check that your question has not already been answered in 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 Question abt number of xsls
Hi, Thankx Adam !!! for your reply. I checked what you said .. sounds good. but all the examples i found with the cocoon 1.8.2 was using a separate stylesheet. in the code snippet you have shown here, is the to-chtml.xsl and to-html.xsl enough for all the pages. if i am going to support two MLs HTML and CHTML is a single generic xsl for each ML sufficient?? If so . building that generic xsl depends on the XML tags i define in my application.. or is there any stylesheets which are freely available so that i will follow the protocol defined for the XML tags decided by the provider of the xsl. I feel if there are any predefined xsl i would prefer and follow the tags defined by that ... because as i am not too good in writing xsls, following the protocol will save lot of my development time. if there are any links for stylesheets to convert from XML to any ML in a generic way, please can you give me some links. It will be very helpful for me Thankz in advance, regards, Arun.N - Original Message - From: Adam A R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19, 2001 11:48 AM Subject: Re: newbie Question abt number of xsls Hi Arun, Yes. It is possible to use one .xsl for each ML If you are using Cocoon 1.8 then use the media=xxx parameter in the processing instruction to specify the useragent for the xsl. eg. ?cocoon-process type=xslt? ?xml-stylesheet href=xsl/to-hdml.xsl type=text/xsl media=up? ?xml-stylesheet href=xsl/to-chtml.xsl type=text/xsl media=imode? ... ... ... ?xml-stylesheet href=xsl/to-html.xsl type=text/xsl? !-- This is the default. -- But for this to work, you should configure User-Agents(Browsers) in the cocoon.properties file. part of my cocoon.properties looks like this. ## ## # User Agents (Browsers) # ## # NOTE: numbers indicate the search order. This is very important since # some words may be found in more than one browser description. (MSIE is # presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...) # # for example, the explorer=MSIE tag indicates that the XSL stylesheet # associated to the media type explorer should be mapped to those browsers # that have the string MSIE in their user-Agent HTTP header. browser.0 = up=UP.Browser/ browser.1 = explorer=MSIE browser.2 = pocketexplorer=MSPIE browser.3 = handweb=HandHTTP browser.4 = avantgo=AvantGo browser.5 = imode=DoCoMo browser.6 = opera=Opera browser.7 = lynx=Lynx browser.8 = java=Java browser.9 = wap=Nokia browser.10 = wap=UP browser.11 = wap=Wapalizer browser.12 = mozilla5=Mozilla/5 browser.13 = mozilla5=Netscape6/ browser.14 = netscape=Mozilla ## I dont know much of C2. Though I have installed it... lately I am running short of time. Someone on the list might be able to explain it for C2. But, as far as I know you will have to use Matchers for using each stylesheet depending on the user-agent. Can anybody shed light on how to do this in C2?? cheers Adam - Original Message - From: Arun.N To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 9:06 PM Subject: newbie Question abt number of xsls Hi, Is it possible to have only one xsl for each type ML ie one for WAP one for and one for HTML generation and etc. And all the xml page should use the same stylesheet. according to the useragent it should pick one of the xsl in all the pages. I have a senario where there are 200 pages in the application. As far as my understanding for each page we should write an xsl and one for each type o f ML. Is there any generic approach ? because the application will have lots of pages if there is one to one. ie, as of now i have to support html wap and chtml ... that becomes 200 xmls + 600 xsl !!! Please suggest me what to do ?? I also welcome someother sort of implementaion also. Thankx in advance, Arun.N - Please check that your question has not already been answered in 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: newbie Question abt number of xsls
Hi Arun, I havent found any standard XSL to convert to HTML/HDML/WML/CHTML! :-( Just in case if you find them please forward them to me. Thanks in advance. I personally think that a single XSL for sinlge ML should suffice. Though I am not a very good XSL author, I managed to write XSLs to write forms in HTML/HDML from single XML file. But, I dont have XSLs which cover the complete list of tags in HTML/HDML/CHTML I am attaching a sample xml, to-html.xsl and to-hdml.xsl file with this email. The to-hdml.xsl is a live example of bad xsl authoring. Because it uses the ![CDATA[.]] tag. But couldnt help it since I dont have a HDMLFormatter and HTMLFormatter puts the DOCTYPE declaration at the top!! eeeks!!! Hope the files help you. If you find anything incorrect/wrong(or just dont like the template) please feel free to change the XSL. But, also give the changes to me so that I will incorporate them ;-) Note:- The XSL can only convert only process the following elements from HTML. 1. form, 2. input type(only one submit per form. and cannot use cancel/clear input types) 3. select... / option 4. checkbox 5. anchor I know, one requires much more ... but one can only write to the Lowest Common Denominator(LCD) to the various formats, in which the data must be presented. Find workarounds if possible Or dont support them!! Cheers, Adam - Original Message - From: Arun.N [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19, 2001 6:25 PM Subject: Re: newbie Question abt number of xsls Hi, Thankx Adam !!! for your reply. I checked what you said .. sounds good. but all the examples i found with the cocoon 1.8.2 was using a separate stylesheet. in the code snippet you have shown here, is the to-chtml.xsl and to-html.xsl enough for all the pages. if i am going to support two MLs HTML and CHTML is a single generic xsl for each ML sufficient?? If so . building that generic xsl depends on the XML tags i define in my application.. or is there any stylesheets which are freely available so that i will follow the protocol defined for the XML tags decided by the provider of the xsl. I feel if there are any predefined xsl i would prefer and follow the tags defined by that ... because as i am not too good in writing xsls, following the protocol will save lot of my development time. if there are any links for stylesheets to convert from XML to any ML in a generic way, please can you give me some links. It will be very helpful for me Thankz in advance, regards, Arun.N - Original Message - From: Adam A R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19, 2001 11:48 AM Subject: Re: newbie Question abt number of xsls Hi Arun, Yes. It is possible to use one .xsl for each ML If you are using Cocoon 1.8 then use the media=xxx parameter in the processing instruction to specify the useragent for the xsl. eg. ?cocoon-process type=xslt? ?xml-stylesheet href=xsl/to-hdml.xsl type=text/xsl media=up? ?xml-stylesheet href=xsl/to-chtml.xsl type=text/xsl media=imode? ... ... ... ?xml-stylesheet href=xsl/to-html.xsl type=text/xsl? !-- This is the default. -- But for this to work, you should configure User-Agents(Browsers) in the cocoon.properties file. part of my cocoon.properties looks like this. ## ## # User Agents (Browsers) # ## # NOTE: numbers indicate the search order. This is very important since # some words may be found in more than one browser description. (MSIE is # presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...) # # for example, the explorer=MSIE tag indicates that the XSL stylesheet # associated to the media type explorer should be mapped to those browsers # that have the string MSIE in their user-Agent HTTP header. browser.0 = up=UP.Browser/ browser.1 = explorer=MSIE browser.2 = pocketexplorer=MSPIE browser.3 = handweb=HandHTTP browser.4 = avantgo=AvantGo browser.5 = imode=DoCoMo browser.6 = opera=Opera browser.7 = lynx=Lynx browser.8 = java=Java browser.9 = wap=Nokia browser.10 = wap=UP browser.11 = wap=Wapalizer browser.12 = mozilla5=Mozilla/5 browser.13 = mozilla5=Netscape6/ browser.14 = netscape=Mozilla ## I dont know much of C2. Though I have installed it... lately I am running short of time. Someone on the list might be able to explain it for C2. But, as far as I know you will have to use Matchers for using each stylesheet depending on the user-agent. Can anybody shed light on how to do this in C2?? cheers Adam - Original Message - From: Arun.N To: [EMAIL PROTECTED] Sent: Saturday, November
Re: newbie Question abt number of xsls
Hi Arun, Yes. It is possible to use one .xsl for each ML If you are using Cocoon 1.8 then use the media=xxx parameter in the processing instruction to specify the useragent for the xsl. eg. ?cocoon-process type=xslt? ?xml-stylesheet href=xsl/to-hdml.xsl type=text/xsl media=up? ?xml-stylesheet href=xsl/to-chtml.xsl type=text/xsl media=imode? ... ... ... ?xml-stylesheet href=xsl/to-html.xsl type=text/xsl? !-- This is the default. -- But for this to work, you should configure User-Agents(Browsers) in the cocoon.properties file. part of my cocoon.properties looks like this. ## ## # User Agents (Browsers) # ## # NOTE: numbers indicate the search order. This is very important since # some words may be found in more than one browser description. (MSIE is # presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...) # # for example, the explorer=MSIE tag indicates that the XSL stylesheet # associated to the media type explorer should be mapped to those browsers # that have the string MSIE in their user-Agent HTTP header. browser.0 = up=UP.Browser/ browser.1 = explorer=MSIE browser.2 = pocketexplorer=MSPIE browser.3 = handweb=HandHTTP browser.4 = avantgo=AvantGo browser.5 = imode=DoCoMo browser.6 = opera=Opera browser.7 = lynx=Lynx browser.8 = java=Java browser.9 = wap=Nokia browser.10 = wap=UP browser.11 = wap=Wapalizer browser.12 = mozilla5=Mozilla/5 browser.13 = mozilla5=Netscape6/ browser.14 = netscape=Mozilla ## I dont know much of C2. Though I have installed it... lately I am running short of time. Someone on the list might be able to explain it for C2. But, as far as I know you will have to use Matchers for using each stylesheet depending on the user-agent. Can anybody shed light on how to do this in C2?? cheers Adam - Original Message - From: Arun.N To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 9:06 PM Subject: newbie Question abt number of xsls Hi, Is it possible to have only one xsl for each type ML ie one for WAP one for and one for HTML generation and etc. And all the xml page should use the same stylesheet. according to the useragent it should pick one of the xsl in all the pages. I have a senario where there are 200 pages in the application. As far as my understanding for each page we should write an xsl and one for each type of ML. Is there any generic approach ? because the application will have lots of pages if there is one to one. ie, as of now i have to support html wap and chtml ... that becomes 200 xmls + 600 xsl !!! Please suggest me what to do ?? I also welcome someother sort of implementaion also. Thankx in advance, Arun.N - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie Question abt number of xsls
Hi, Is it possible to have only one xsl for each type ML ie one for WAP one for and one forHTML generation and etc. And all the xml page should use the same stylesheet. according to the useragent it should pick one of the xsl in all the pages. I have a senario where there are 200 pages in the application. As far as my understanding for each page we should write an xsl and one for each type of ML. Is there any generic approach ? because the application will have lots of pages if there is one to one. ie, as of now i have to support html wap and chtml ... that becomes 200 xmls + 600 xsl !!! Please suggest me what to do ?? I also welcome someother sort of implementaion also. Thankx in advance, Arun.N
Newbie Question
Hello all, I am trying to get started, I have installed cocoon successfully and I am able to view the examples via local host. I have the following scenario: HTML file --1- FO file --2-- PDF File I have the XSL stylesheet to do the conversion 1 and the html file. I have ran these independently using saxon, then FOP so I know the underlying code is correct. But I am not sure how to actually execute each stage in Cocoon (cocoon functions - to produce the FO file etc). I apologize for the basic level of this question. Tanz - Please check that your question has not already been answered in 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 Question (Static HTML from Cocoon2)
Oh. Yes. I hit the wrong button! .-) Arno giacomo schrieb: On Mon, 24 Sep 2001, Arno Illmann wrote: Arno Please post in english or in private. TIA Giacomo oder z.B mit Webcopier (mein favorite, ist auch freeware) oder noch anderen offline browsern. Aber warum eine static version ? mfg, Arno Sebastian Mäder schrieb: Hi there, my name is sebastian and im a trainee on a company in Gemany. Im was building a website with xhtml and cocoon2 .. Now my big boss said to me, that i have to build a STATIC HTML VERSION of my cocoon site, and I don't know how I can do this. The only way I know is, to save from Browser, but that's not the way. Are there any instructions for the sitemap.xmap or a batch file, which generated this static version ?? I will hope you can help me. How can I get this information? THX Sebastian - Please check that your question has not already been answered in 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] -- Arno Illmann Uerdinger Str. 22 47799 Krefeld 02151/601142 [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]
Newbie Question (Static HTML from Cocoon2)
Hi there, my name is sebastian and im a trainee on a company in Gemany. Im was building a website with xhtml and cocoon2 .. Now my big boss said to me, that i have to build a STATIC HTML VERSION of my cocoon site, and I don't know how I can do this. The only way I know is, to save from Browser, but that's not the way. Are there any instructions for the sitemap.xmap or a batch file, which generated this static version ?? I will hope you can help me. How can I get this information? THX Sebastian - Please check that your question has not already been answered in 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 Question (Static HTML from Cocoon2)
i have to build a STATIC HTML VERSION of my cocoon site wget (www.gnu.org/software/wget) should allow you to do this - it will recursively pull HTML pages from an HTTP connection and save them as static files. -- -- Bertrand Delacrétaz, www.codeconsult.ch -- web technologies consultant - OO, Java, XML, C++ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question (Static HTML from Cocoon2)
oder z.B mit Webcopier (mein favorite, ist auch freeware) oder noch anderen offline browsern. Aber warum eine static version ? mfg, Arno Sebastian Mäder schrieb: Hi there, my name is sebastian and im a trainee on a company in Gemany. Im was building a website with xhtml and cocoon2 .. Now my big boss said to me, that i have to build a STATIC HTML VERSION of my cocoon site, and I don't know how I can do this. The only way I know is, to save from Browser, but that's not the way. Are there any instructions for the sitemap.xmap or a batch file, which generated this static version ?? I will hope you can help me. How can I get this information? THX Sebastian - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Arno Illmann Uerdinger Str. 22 47799 Krefeld 02151/601142 [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: Newbie Question (Static HTML from Cocoon2)
Hello, Cocoon also includes a command line utility for this. Run java -jar cocoon.jar -help for usage description (the cocoon.jar file contains a Class-Path manifest so as long as cocoon.jar is in your cocoon lib directory your classpath should be set up automatically.) Regards, --mike -Original Message- From: Sebastian Mäder [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 2:51 AM To: [EMAIL PROTECTED] Subject: Newbie Question (Static HTML from Cocoon2) Hi there, my name is sebastian and im a trainee on a company in Gemany. Im was building a website with xhtml and cocoon2 .. Now my big boss said to me, that i have to build a STATIC HTML VERSION of my cocoon site, and I don't know how I can do this. The only way I know is, to save from Browser, but that's not the way. Are there any instructions for the sitemap.xmap or a batch file, which generated this static version ?? I will hope you can help me. How can I get this information? THX Sebastian - Please check that your question has not already been answered in 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: Newbie Question (Static HTML from Cocoon2)
For a real-world example of a Cocoon website being generated offline, have a look at the jakarta-avalon documentation system. All driven by Ant.. pretty cool :) wget is probably less hassle though. --Jeff On Mon, Sep 24, 2001 at 10:51:15AM +0200, Sebastian Mäder wrote: Hi there, my name is sebastian and im a trainee on a company in Gemany. Im was building a website with xhtml and cocoon2 .. Now my big boss said to me, that i have to build a STATIC HTML VERSION of my cocoon site, and I don't know how I can do this. The only way I know is, to save from Browser, but that's not the way. Are there any instructions for the sitemap.xmap or a batch file, which generated this static version ?? I will hope you can help me. How can I get this information? THX Sebastian - Please check that your question has not already been answered in 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]
newbie question: Cocoon 2
Hello, what is cocoon trying to tell me by returning an error page with: type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon embedded exception org.apache.avalon.framework.component.ComponentException: Could not access the Component for role: org.apache.cocoon.components.parser.Parser etc... thanks for any help andreas - Please check that your question has not already been answered in 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: Dynamic stylesheets (Newbie question)
Kevin, there are many ways of doing what you want to do, outside of modifying your code as has already been suggested. You can generate Cocoon processing instructions dynamically in your XML, using the xsp:pi tag (see http://xml.apache.org/cocoon/xsp.html for instructions on this.) You can also chain stylesheets using the xsl:processing-instruction tag, which is how I prefer to do it. You can grab your request parameters (mode=view, etc.) either by using XSP in your object.xml or using xsl:param name=mode/ at the root level of your stylesheet (see Using query parameters during XSL transformation in http://xml.apache.org/cocoon/guide.html for more info on that.) For simplicity, let's assume your XML looks like this (either a static XML file or the output from your XSP page): page modeview/mode stuff.../stuff /page Your stylesheet would look like this: xsl:template match=/page xsl:processing-instruction name=cocoon-process type=xslt /xsl:processing-instruction xsl:choose xsl:when test=mode='view' xsl:processing-instruction name=xml-stylesheet href=view.xsl type=text/xsl /xsl:processing-instruction /xsl:when xsl:when test=mode='edit' xsl:processing-instruction name=xml-stylesheet href=edit.xsl type=text/xsl /xsl:processing-instruction /xsl:when /xsl:choose xsl:apply-templates select=stuff/ /xsl:template ... -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Dynamic stylesheets (Newbie question) I currently have two XML documents, object-view.xml and object-edit.xml. Both are identical except for one word in one line. object-view.xml calls this stylesheet: ?xml-stylesheet type=text/xsl href=view.xsl? while object-edit.xml calls this one: ?xml-stylesheet type=text/xsl href=edit.xsl? It seems silly and inefficient to have two XML documents for this. What I want to do is have just one XML file and access these two different renditions like this (or some other easy method): http://servername:8080/cocoon/object.xml?mode=view http://servername:8080/cocoon/object.xml?mode=edit I am surprised I cannot find an answer to this problem. I learned that XML/XSLT can't do this alone, and then I figured Cocoon can do this, but I have searched FAQ, archive and docs. Am I not looking in the right place or using the proper terms? Any pointers appreciated. I've got 1.8.2 installed with Jakarta Tomcat 3.2.3. Thanks, --Kevin - Please check that your question has not already been answered in 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: Dynamic stylesheets (Newbie question)
--- Kevin Ashworth [EMAIL PROTECTED] wrote: I currently have two XML documents, object-view.xml and object-edit.xml. Both are identical except for one word in one line. Since the two are identicals except for one line (by one word), I guess you don't need two XML as you don't need two XSL either.One XML and one XSL can handle this job. What you could do is to write the line in which the two XML are different in such a way that the xml element of that line, contains attribute having as value the word which makes the difference between the two lines. For instance: Let's say I have two shirts, one blue and the other one black.If I consider the shirt as xml element, I can point out the difference of color like this: shirt color=blue some text here/shirt shirt color=black some other text here/shirt Then you'll design your XSL in this way: IF color=blue SHOW this IF color=black SHOW this other In your case , maybe you could write your XML in this way: Object purpose=view.xml/Object Object purpose=edit.xml/Object Then your stylesheet will check if the purpose value is view.xml, then do the view job, else if the value is edit.xml then do the edit job. I hope this solve your problem. Bobo object-view.xml calls this stylesheet: ?xml-stylesheet type=text/xsl href=view.xsl? while object-edit.xml calls this one: ?xml-stylesheet type=text/xsl href=edit.xsl? It seems silly and inefficient to have two XML documents for this. What I want to do is have just one XML file and access these two different renditions like this (or some other easy method): http://servername:8080/cocoon/object.xml?mode=view http://servername:8080/cocoon/object.xml?mode=edit I am surprised I cannot find an answer to this problem. I learned that XML/XSLT can't do this alone, and then I figured Cocoon can do this, but I have searched FAQ, archive and docs. Am I not looking in the right place or using the proper terms? Any pointers appreciated. I've got 1.8.2 installed with Jakarta Tomcat 3.2.3. Thanks, --Kevin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie question: (XML-XSLT) cached - session logic - browser??
Hi, im pretty new to cocoon2 so i need some advice about the best aproach for my problem; I got a quite large XML file which i use a XSL stylesheet to extract only parts of, but the XML file might change so i set this up as the generator. map:match pattern=toc.html map:generate src=largefile.xml/ map:transform src=toc.xsl/ ... perform logic on the result based on sessions ... map:serialize type=html/ /map:match Then based on the the user's session state i want to perform logic on the extract, to hide and show elements (this is a session based toc). What can i use to do this, a XSP, JSP, write a new generator/transformer/serializer ? Is it possible to place session handling in a custom serializer? is this a job for a transformer, and will i then have to implement it myself and is it then possible to add session handling? Should i create a custom generator, if so how to implement caching and session handling? I'm quite good at java, but i'm new to cocoon and need some pointers in the right direction. in advance thanks! mvh Karl - Please check that your question has not already been answered in 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 question: (XML-XSLT) cached - session logic - browser??
Just create an XSP page, with a template matching the root element of your xml page. Then do some if-then-else based on your session. In each 'if' body you do something like this: if (some_session_based_expression) { xsl:call-template name=henk/ } else if () The template 'henk' is inserted in the place of the call. If it just consists of content, it looks like this: xsl:template name=henk xsp:content !-- xsl code that applies templates to the parts you want -- /xsp:content /xsl:template This way you get 1 producer/generator, which can produce all the different pages you want (that is, sections of your XML document) based on some viariables in the session. I use this technique to validate users: The XML document: nsp:auth group=users success !-- data you want to show when the user is logged in and belongs to that group -- /success fail nsp:login-form/ !-- or some other xml code.. -- /fail /nsp:auth The xsp page: xsl:template match=nsp:auth xsp:logic if (userInGroup(xsl:value-of select=@group/)) { xsp:content xsl:apply-templates select=success/ /xsp:content } else { xsp:content xsl:apply-templates select=fail/ /xsp:content } /xsp:logic /xsl:template The UserInGroup checks the session for a user object, standard code.. Hope this helps, Kenney Westerhof On Thu, 9 Aug 2001, Karl Oie wrote: Hi, im pretty new to cocoon2 so i need some advice about the best aproach for my problem; I got a quite large XML file which i use a XSL stylesheet to extract only parts of, but the XML file might change so i set this up as the generator. map:match pattern=toc.html map:generate src=largefile.xml/ map:transform src=toc.xsl/ ... perform logic on the result based on sessions ... map:serialize type=html/ /map:match Then based on the the user's session state i want to perform logic on the extract, to hide and show elements (this is a session based toc). What can i use to do this, a XSP, JSP, write a new generator/transformer/serializer ? Is it possible to place session handling in a custom serializer? is this a job for a transformer, and will i then have to implement it myself and is it then possible to add session handling? Should i create a custom generator, if so how to implement caching and session handling? I'm quite good at java, but i'm new to cocoon and need some pointers in the right direction. in advance thanks! mvh Karl - Please check that your question has not already been answered in 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: newbie question: (XML-XSLT) cached - session logic - browser??
i think i understand, but won't this put a lot of processing on the server? the toc.xsl takes about 3 minutes to generate. if i apply the logic in the XSP page the page will have to process the entire XML document each time? mvh karl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 9. august 2001 18:15 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: newbie question: (XML-XSLT) cached - session logic - browser?? Just create an XSP page, with a template matching the root element of your xml page. Then do some if-then-else based on your session. In each 'if' body you do something like this: if (some_session_based_expression) { xsl:call-template name=henk/ } else if () The template 'henk' is inserted in the place of the call. If it just consists of content, it looks like this: xsl:template name=henk xsp:content !-- xsl code that applies templates to the parts you want -- /xsp:content /xsl:template This way you get 1 producer/generator, which can produce all the different pages you want (that is, sections of your XML document) based on some viariables in the session. I use this technique to validate users: The XML document: nsp:auth group=users success !-- data you want to show when the user is logged in and belongs to that group -- /success fail nsp:login-form/ !-- or some other xml code.. -- /fail /nsp:auth The xsp page: xsl:template match=nsp:auth xsp:logic if (userInGroup(xsl:value-of select=@group/)) { xsp:content xsl:apply-templates select=success/ /xsp:content } else { xsp:content xsl:apply-templates select=fail/ /xsp:content } /xsp:logic /xsl:template The UserInGroup checks the session for a user object, standard code.. Hope this helps, Kenney Westerhof On Thu, 9 Aug 2001, Karl Oie wrote: Hi, im pretty new to cocoon2 so i need some advice about the best aproach for my problem; I got a quite large XML file which i use a XSL stylesheet to extract only parts of, but the XML file might change so i set this up as the generator. map:match pattern=toc.html map:generate src=largefile.xml/ map:transform src=toc.xsl/ ... perform logic on the result based on sessions ... map:serialize type=html/ /map:match Then based on the the user's session state i want to perform logic on the extract, to hide and show elements (this is a session based toc). What can i use to do this, a XSP, JSP, write a new generator/transformer/serializer ? Is it possible to place session handling in a custom serializer? is this a job for a transformer, and will i then have to implement it myself and is it then possible to add session handling? Should i create a custom generator, if so how to implement caching and session handling? I'm quite good at java, but i'm new to cocoon and need some pointers in the right direction. in advance thanks! mvh Karl - Please check that your question has not already been answered in 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]
FW: newbie question: (XML-XSLT) cached - session logic - browser??
Thank you very much, i will try this now (just have to read about XSP and sessions first :-)... Just a final question about C2 as it seems you know about it's inner working. The class that gets created as a cache for my largefile.xml document. does it contain my entire document? (since i could delete the original file...) is it keept in memory? I would have to buy some more ram chips i guess ;-) mvh karl On Thu, 9 Aug 2001, Karl Oie wrote: i think i understand, but won't this put a lot of processing on the server? the toc.xsl takes about 3 minutes to generate. if i apply the logic in the XSP page the page will have to process the entire XML document each time? Well not exactly. The entire document gets processed ONLY when you ask the page for the first time. A class is generated then, consisting of your toc.xsl applied to the original document. If your xsp file was empty, the result would be a java-file which produces your XML document as SAX events. You COULD delete your xml file once the java file is generated, because it is not needed anymore (but you shouldn't because cocoon depends on the file to be there ;) So basically your xml document is replaced by code that fires SAX events to the contenthandler (the first stylesheet in your pipeline). Therefore, everytime your page gets requested the cached class file gets called. Your xml page will not be entirely passed through the pipeline, because not all the code that fires the SAX events get called. I hope you understand.. You might want to try this out with a small xml file, consisting of only 2 tags, and a simple if-then-else statement depending on a query parameter 'section=one' or 'two'. Check the generated source file, it should be in tomcats 'work' dir under $TOMCAT_HOME/work/localhost%F8080/[servlet-zone]/org/apache/www/..._xml.java that should clarify it for you (search for the 'generate' function). There is another way to accomplish this. This is done as follows: let your XSP page add an XML tag in the result, for instance if () { xsp:content some-tag-one /xsp:content } else !-- some other tag -- and let your stylesheet (NOT toc.xsl :)) check for that tag, and then process some part of your input xml file. This way, the document WILL get parsed EVERY time, ENTIRELY. THis is the slow and ugly way. So use XSP and it will be fast ;) (btw: i've coded my own cocoon clone with XSP which is a lot faster than cocoon, simply because it is not as modular as cocoon. That's why I understand cocoon so well :)) Hope this helps, if not, feel free to ask. mvh karl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 9. august 2001 18:15 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: newbie question: (XML-XSLT) cached - session logic - browser?? Just create an XSP page, with a template matching the root element of your xml page. Then do some if-then-else based on your session. In each 'if' body you do something like this: if (some_session_based_expression) { xsl:call-template name=henk/ } else if () The template 'henk' is inserted in the place of the call. If it just consists of content, it looks like this: xsl:template name=henk xsp:content !-- xsl code that applies templates to the parts you want -- /xsp:content /xsl:template This way you get 1 producer/generator, which can produce all the different pages you want (that is, sections of your XML document) based on some viariables in the session. I use this technique to validate users: The XML document: nsp:auth group=users success !-- data you want to show when the user is logged in and belongs to that group -- /success fail nsp:login-form/ !-- or some other xml code.. -- /f ail /nsp:auth The xsp page: xsl:template match=nsp:auth xsp:logic if (userInGroup(xsl:value-of select=@group/)) { xsp:content xsl:apply-templates select=success/ /xsp:content } else { xsp:content xsl:apply-templates select=fail/ /xsp:content } /xsp:logic /xsl:template The UserInGroup checks the session for a user object, standard code.. Hope this helps, Kenney Westerhof On Thu, 9 Aug 2001, Karl Oie wrote: Hi, im pretty new to cocoon2 so i need some advice about the best aproach for my problem; I got a quite large XML file which i use a XSL stylesheet to extract only parts of, but the XML file might change so i set this up as the generator. map:match pattern=toc.html map:generate src=largefile.xml/ map:transform src=toc.xsl/ ... perform logic on the result based on sessions ... map:serialize type=html/ /map:match Then based on the the user's session state i want to perform logic on the extract, to hide and show elements
Newbie Question: can't access some of Cocoon2's samples
Hi Cocooners, How's the craic? I'd been working so far with Cocoon1.8 but was very intrigued by Cocoon2 and decided eventually to give it a chance. Here is my environment: OS = Windows NT 4 Java = JDK 1.3 Application Server: BEA WebLogic 6 I built Cocoon2, then followed the installation instructions to the letter (http://xml.apache.org/cocoon2/install.html) and finally managed to access the Welcome Page after starting WebLogic. So far so good. Naturally, my first reaction is to try out the samples provided. Because I was essentially interested in XSP, I click on the Simple XSP Example link. No problemo. Actually, I can access everything related to Dynamic Content. When I try the simplest example though, named Multimedia Hello World HTML that transforms a simple XML page into an HTML page, I constantly obtain the following error: -- Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.5 404 Not Found The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. -- I tried to modify the sitemap.xmap file but with no success. I found nothing in the FAQ related to that. I'm surprised to see that Cocoon2 seems to work with more complicated examples. I'm baffled. Has anybody else ever experienced the same problem? If so, how did you solve it? Do you have suggestions? Please help me, and I'll drink a glass of Jameson tonight in your honor!! Thanks a bunch, Xavier - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Newbie question again
On Monday, June 11, 2001, at 08:51 AM, Aleksey Globets wrote: Ok, I will try to ask in another way. If I plan to create two contexts in Tomcat pointed to different directories and to use Cocoon within it. So how I can use it? Do I need to copy and rename /cocoon directory or something else? Nope. You just add the context to the server.xml file, like this: Context path=/foo docBase=/path/to/foo debug=0 reloadable=true /Context Then you need to copy the WEB-INF directory (with cocoon.properties and web.xml) to the /path/to/foo directory. As long as the Cocoon jars are in Tomcat's classpath, it'll work. Restart Tomcat, and you're in business. -- Petteri - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Newbie question again
Quoting Aleksey Globets [EMAIL PROTECTED]: Ok, I will try to ask in another way. If I plan to create two contexts in Tomcat pointed to different directories and to use Cocoon within it. So how I can use it? Do I need to copy and rename /cocoon directory or something else? Yes. Giacomo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Newbie question
I'm not sure what you are asking. Cocoon will always look for those jars in that directory. If you wish to install cocoon in a directory other than /cocoon, then you should change the configuration information when you first build cocoon. I'm not sure but I think that particular parameter is in build.xml. Karl Hallowell [EMAIL PROTECTED] -Original Message- From: Aleksey Globets [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: [C2] Newbie question Hi, I just install C2. It works fine. But if I plan to use cocoon from other directory then /cocoon then do I need to copy all JARs from /cocoon/WEB-INF/lib directory to a new one? Best, Aleksey Globets - Please check that your question has not already been answered in 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]