Date: 2005-01-13T15:57:10
Editor: MarkLundquist
Wiki: Cocoon Wiki
Page: SimpleContentModel
URL: http://wiki.apache.org/cocoon/SimpleContentModel
correction
Change Log:
------------------------------------------------------------------------------
@@ -172,6 +172,8 @@
Sorry, I use a default namespace in my sitemaps, so you'll have to add "map:"
to everything unless you do the same...
+This example assumes that you have a template called "to-html.xslt" that does
your page layout/styling.
+
{{{
<!--
++ Static content
@@ -227,7 +229,10 @@
</match>
<match pattern="**">
- <redirect-to uri="cocoon:/content//{0}" />
+ <generate src="cocoon:/content//{0}" />
+ <transform src="to-html.xslt">
+ <parameter name="path" value="{0} />
+ </transform>
</match>
}}}