You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Dale Christ <de...@yahoo.com> on 2004/02/07 04:29:17 UTC
sitemap.xmap help needed
All--
Is there anyone that can help me debug a sitemap that I'm putting
together for the blog application. I added some code to retrieve blog
entries by date, but I can't get it working. I modified the one that
exists by month (that works fine), but I'm really confused. I'd be
greateful for any help. The code I have is what I added to
blog.sitemap.xmap. It's attached after this note. Thanks for any help
you can provide.
--Dale
<!-- Archives by day -->
<map:pipeline>
<map:match pattern="*/*/*/*/index.xml">
<map:generate type="directory"
src="content/{1}/entries/{2}/{3}/{4}/">
<map:parameter name="depth" value="3"/>
<map:parameter name="reverse" value="true"/>
</map:generate>
<map:transform src="xslt/archive/xinclude.xsl">
<map:parameter name="year" value="{2}"/>
</map:transform>
<map:transform type="xlink">
<map:parameter name="href" value="content/{1}/dummy.xml"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/*/*/*/lenya-page-body.xml">
<map:aggregate element="cmsbody">
<map:part src="cocoon:/{1}/{2}/{3}/{4}/index.xml"/>
<map:part src="content/{1}/sidebar.xml"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/*/*/*/">
<map:generate
src="cocoon:/{1}/{2}/{3}/{4}/lenya-page-body.xml"/>
<map:transform type="xalan" src="xslt/feed/main-{1}.xsl">
<map:parameter name="relative2root" value="../../.."/>
</map:transform>
<map:transform
src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/archive.xml"/>
<map:serialize type="html"/>
</map:match>
<map:handle-errors type="500"/>
</map:pipeline>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org