You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carl Yestrau <ca...@criticalmass.com> on 2004/08/13 17:40:22 UTC
CLI - Not Resolving Links
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
RE: CLI - Not Resolving Links
Posted by Carl Yestrau <ca...@criticalmass.com>.
My appologies, there was a typo in the cli.xconf:
<uri type="append" src-prefix="mywebsite/" src="en/home.html"
dest="build/dest/mywebsite_version_1"/>
should be
<uri type="append" src-prefix="mywebsite/" src="en/contact.html"
dest="build/dest/mywebsite_version_1"/>
-----Original Message-----
From: Carl Yestrau [mailto:carly@criticalmass.com]
Sent: Friday, August 13, 2004 9:40 AM
To: users@cocoon.apache.org
Subject: CLI - Not Resolving Links
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org