Sample Sitemap.xmap file
Title: Sample Sitemap.xmap file Hey Guys, I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by copying the entire Cocoon directory over like some pof you suggested. I am trying to trim down the sitemap file though so that I dont include all of the samples directories and whatnot and seem to be having a tough time with it. Does anyone have a sitemap file that is cleaned up that I could use to start from, or does anyone have ny other ideas of creating a new webapp? Thanks All Jaimes Blunt
RE: Sample Sitemap.xmap file
Jaimes, Here is a VERY simple sitemap that only takes a request for a PDF file and process the input XML file against the appropriate XSL file. This may be a good starting point if you don't need a bunch of other stuff. Hope it helps! Bob SITEMAP.XMAP ?xml version=1.0 encoding=iso-8859-1? map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0; !-- use the standard 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:transformers default=xslt/ /map:components map:pipelines map:pipeline !-- Respond to *.pdf requests -- map:match pattern=*.pdf map:generate src={1}.xml/ map:transform src=bol.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline /map:pipelines /map:sitemap -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Sample Sitemap.xmap file Hey Guys, I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by copying the entire Cocoon directory over like some pof you suggested. I am trying to trim down the sitemap file though so that I dont include all of the samples directories and whatnot and seem to be having a tough time with it. Does anyone have a sitemap file that is cleaned up that I could use to start from, or does anyone have ny other ideas of creating a new webapp? Thanks All Jaimes Blunt - 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: Sample Sitemap.xmap file
Thanks for the sample file, but I am having some problems with it, getting the following error: ComponentSelector could not find the component for hint: wildcard Jaimes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: RE: Sample Sitemap.xmap file Jaimes, Here is a VERY simple sitemap that only takes a request for a PDF file and process the input XML file against the appropriate XSL file. This may be a good starting point if you don't need a bunch of other stuff. Hope it helps! Bob SITEMAP.XMAP ?xml version=1.0 encoding=iso-8859-1? map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0; !-- use the standard 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:transformers default=xslt/ /map:components map:pipelines map:pipeline !-- Respond to *.pdf requests -- map:match pattern=*.pdf map:generate src={1}.xml/ map:transform src=bol.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline /map:pipelines /map:sitemap -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Sample Sitemap.xmap file Hey Guys, I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by copying the entire Cocoon directory over like some pof you suggested. I am trying to trim down the sitemap file though so that I dont include all of the samples directories and whatnot and seem to be having a tough time with it. Does anyone have a sitemap file that is cleaned up that I could use to start from, or does anyone have ny other ideas of creating a new webapp? Thanks All Jaimes Blunt - 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: Sample Sitemap.xmap file
Jaimes, I'm sorry, but I have just gotten involved with this technology...I believe the line that handles wildcards is this one: map:matchers default=wildcard/ This works fine for me using Cocoon on WinXP and WebSphere 4.0. Not sure how your setup handles wildcards, but I'm sure someone here can offer more help than I can! Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: RE: Sample Sitemap.xmap file Thanks for the sample file, but I am having some problems with it, getting the following error: ComponentSelector could not find the component for hint: wildcard Jaimes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: RE: Sample Sitemap.xmap file Jaimes, Here is a VERY simple sitemap that only takes a request for a PDF file and process the input XML file against the appropriate XSL file. This may be a good starting point if you don't need a bunch of other stuff. Hope it helps! Bob SITEMAP.XMAP ?xml version=1.0 encoding=iso-8859-1? map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0; !-- use the standard 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:transformers default=xslt/ /map:components map:pipelines map:pipeline !-- Respond to *.pdf requests -- map:match pattern=*.pdf map:generate src={1}.xml/ map:transform src=bol.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline /map:pipelines /map:sitemap -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Sample Sitemap.xmap file Hey Guys, I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by copying the entire Cocoon directory over like some pof you suggested. I am trying to trim down the sitemap file though so that I dont include all of the samples directories and whatnot and seem to be having a tough time with it. Does anyone have a sitemap file that is cleaned up that I could use to start from, or does anyone have ny other ideas of creating a new webapp? Thanks All Jaimes Blunt - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sample Sitemap.xmap file
You are talking about two different things. The sitemap Robert sent will only work as a _SUB_sitemap mounted off a self-sufficient sitemap that defines all the needed components. I've included one below that should get you what you want. It will handle static xml as well as xsp, which should handle most basic usage. Note also that not many of the examples will run on this sitemap. You could probably get rid of more, but I wanted to leave at least the default in each component category. That long selectors configuration for browser selector is probably a good candidate if you're not using it. Geoff Howard BASIC sitemap.xmap: ?xml version=1.0 encoding=UTF-8? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- === Components -- map:components map:generators default=file map:generator label=content,data logger=sitemap.generator.file name=file pool-grow=4 pool-max=32 pool-min=8 src=org.apache.cocoon.generation.FileGenerator/ map:generator label=content,data logger=sitemap.generator.serverpages name=serverpages pool-grow=2 pool-max=32 pool-min=4 src=org.apache.cocoon.generation.ServerPagesGenerator/ /map:generators map:transformers default=xslt map:transformer logger=sitemap.transformer.xslt name=xslt pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db use-delifalse/use-deli /map:transformer /map:transformers map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size /map:serializer /map:serializers map:matchers default=wildcard map:matcher logger=sitemap.matcher.wildcard name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers map:selectors default=browser map:selector logger=sitemap.selector.browser name=browser src=org.apache.cocoon.selection.BrowserSelector !-- # NOTE: The appearance indicates 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; ...) -- browser name=explorer useragent=MSIE/ browser name=pocketexplorer useragent=MSPIE/ browser name=handweb useragent=HandHTTP/ browser name=avantgo useragent=AvantGo/ browser name=imode useragent=DoCoMo/ browser name=opera useragent=Opera/ browser name=lynx useragent=Lynx/ browser name=java useragent=Java/ browser name=wap useragent=Nokia/ browser name=wap useragent=UP/ browser name=wap useragent=Wapalizer/ browser name=mozilla5 useragent=Mozilla/5/ browser name=mozilla5 useragent=Netscape6// browser name=netscape useragent=Mozilla/ /map:selector /map:selectors map:actions /map:actions /map:components !-- === Views === -- map:views map:view from-label=content name=content map:serialize type=xml/ /map:view /map:views !-- === Resources = -- map:resources /map:resources !-- == Action sets -- map:action-sets /map:action-sets !-- === Pipelines = -- map:pipelines map:pipeline /map:pipeline /map:sitemap!-- end of file -- __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]