Great! Thanks!
Mirek
Thorsten Scherler wrote:
In addition:
You will then need to request
localhost:8888/my.html
salu2
El jue, 06-10-2005 a las 14:06 +0200, Thorsten Scherler escribió:
Try changing
<map:match pattern="my">
to
<map:match pattern="my.xml">
IMO that should do the job.
El jue, 06-10-2005 a las 13:59 +0200, Miroslav Mocek escribió:
I'd like to create index with links to the files in the dir.
I've wrote xsl, which produces this xml document:
<document>
<header>
<title>Welcome to MyProj</title>
</header>
<body>
<section id="overview">
<link href="http://localhost:8888/my/first.xml">first</link>
<link href="http://localhost:8888/my/second.xml">second</link>
</section>
</body>
</document>
Is is called is sitemap.xmap:
<map:match pattern="my">
<map:generate type="directory" src="{project:content.xdocs}/my">
<map:parameter name="depth" value="2"/>
</map:generate>
<map:transform src="resources/stylesheets/directory2document.xsl"/>
<map:serialize type="xml"/>
</map:match>
However I get only the xml (complete paste above) as result, not skinned
html.
(http://forrest.apache.org/docs_0_80/your-project.html#adding_new_content_type
- That will intercept the request for the body content, for only this
specific "download" document, and will transform it into the
intermediate Forrest "document" format. The normal Forrest machinery
will handle the aggregation with navigation menus etc. and will apply
the normal skin.)
? Thanks
Mirek