cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Yestrau" <ca...@criticalmass.com>
Subject CLI - Not Resolving Links
Date Fri, 13 Aug 2004 15:40:22 GMT
I am having issues with the CLI resolving paths.

Please see configurations below:

Below is output from the CLI:
^                 			/mywebsite/en/work.html
^                 			/mywebsite/en/about.html
^                 			/mywebsite/en/contact.html
[1/0]	[0/4] 1.9606s	1.3Kb		mywebsite/en/contact.html

Below is my cli.xconf configuration:

<cocoon verbose="true"
        follow-links="true"
        precompile-only="false"
        confirm-extensions="false"
		confirm-links="false">
   <context-dir>build/webapp</context-dir>
   <config-file>build/webapp/WEB-INF/cocoon.xconf</config-file>
   <work-dir>build/work</work-dir>
   <dest-dir>build/dest</dest-dir>

<accept>*/*</accept>
<include pattern="**"/>

<uris name="MyWebSite" follow-links="true">
	<uri type="append" src-prefix="mywebsite/" src="en/home.html"
dest="build/dest/mywebsite_version_1"/>
</uris>

Below is my main sitemap mount configuration:
<map:match pattern="mywebsite**">
	<map:mount check-reload="yes"
src="file:///C:/CVSProjects/mywebsite/sitemap.xmap" uri-prefix="mywebsite"/>
</map:match>

Below is the mounted sitemap configuration:
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

	<map:views>
	    <map:view from-position="last" name="links">
	      <map:serialize type="links"/>
	    </map:view>
	</map:views>

	<map:pipelines>

			<map:match pattern="*/**/*.html">
				<map:generate src="xml/{1}/{3}.xml"/>
				<map:transform src="xsl/container.xsl">
					<map:parameter name="use-request-parameters" value="true"/>
					<map:parameter name="language" value="{1}"/>
				</map:transform>
				<map:serialize type="xhtml"/>
			</map:match>

 			<map:match pattern="**/*.html">
				<map:generate src="xml/{1}/{2}.xml"/>
 				<map:transform src="xsl/container.xsl">
					<map:parameter name="use-request-parameters" value="true"/>
					<map:parameter name="language" value="{1}"/>
				</map:transform>
				<map:serialize type="xhtml"/>
			</map:match>

	</map:pipelines>
</map:sitemap>

It seems as if the CLI is only processing the first link
mywebsite/en/contact.html, because it has a relative context? How can one
make it crawl the other html pages? Note, all the page links have a href
with absolute values (ie., /mywebsite/en/ is appended to each *.html value)
is this the root of the problem?

Any help on this is greatly appreciated, as I am at a loss,
Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message