Re: Dynamically generate RSS feed for Cocoon portal from XML files
Hi, I would like to dynamically generate an RSS feed from currently available XML files in a folder on my webserver to be displayed in the Cocoon portal. I did that some days ago ... This was my approach: 1. Use the directory generator to generate the list of files in your folder 2. Transform the file list to cinclude statements 3. Transform the the list with the cinclude transformer 4. Apply a nice xsl wich selects the stuff you want to have in your rss feed ;-) You pipeline will look like this: map:match pattern=foobar map:generate type=dir src=your/dir// map:transform src=dir2cinclude.xsl/ map:transform type=cinclude/ map:transform src=cinclude2rss.xsl/ map:serialize type=xml/ /map:match don't know if it's the best way, but it simply works maybe there are some performance problems if you have many and/or large files kind regards Jens Maukisch - sn AG netBank solutions Klingenderstr. 5mailto:[EMAIL PROTECTED] D-33100 Paderborn http://www.s-und-n.de - CeBIT 2003 * Hannover * 12.-19.3.2003 Besuchen Sie uns auf dem Stand der Software AG Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: entity encoding error within an inline java script
Hi, I am using the standard Cocoon config (Xalan, Xerces ..) The default Transformer is XSLTC. It is configured in the sitemap.xmap in your cocoon folder. Just search for map:transformers. You will find there a transformer named 'xalan' and one named 'xsltc' (and course many other transformers). You can set the default transformer there or you can specify it directly in the pipeline using e.g.: map:transform src=data.xsl type=xalan/ to use xalan instead of the default transformer. What is xsltc ??? its just an xsl processor kind regards Jens Maukisch - sn AG netBank solutions Klingenderstr. 5mailto:[EMAIL PROTECTED] D-33100 Paderborn http://www.s-und-n.de - CeBIT 2003 * Hannover * 12.-19.3.2003 Besuchen Sie uns auf dem Stand der Software AG Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting a folder to be seen
Hi, how do i get cocoon to recognize that I have a folder with XML files that I want parsed and shown on a website in its folder? Don't know if i got the point but I've to possible answers :-) Do you want to show all the xml files in the folder at the same time ? If yes, you can use the Directory Generator (http://xml.apache.org/cocoon/userdocs/generators/directory-generator.html) and the cinclude Transformer to do this. Or do you want that you just can point to one xml file in the folder like this: http://foo.bar/cocoon/myapp/myfolder/my.xml ? Then you can use a pipeline: map:match pattern=myfolder/* map:generate src={1}/ map:transform src=mystyle.xsl/ map:serialze/ /map:match I hope that one of these answers fits to your question ;-) kind regards Jens Maukisch - sn AG netBank solutions Klingenderstr. 5mailto:[EMAIL PROTECTED] D-33100 Paderborn http://www.s-und-n.de - CeBIT 2003 * Hannover * 12.-19.3.2003 Besuchen Sie uns auf dem Stand der Software AG Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading Cocoon 2.1 with CVS ?
Hi, Whats the CVS command for version 2.1 dev? cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co cocoon-2.1 ??? kind regards Jens Maukisch - sn AG netBank solutions Klingenderstr. 5mailto:[EMAIL PROTECTED] D-33100 Paderborn http://www.s-und-n.de - CeBIT 2003 * Hannover * 12.-19.3.2003 Besuchen Sie uns auf dem Stand der Software AG Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]