You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by le...@cocoon.apache.org on 2004/08/18 17:59:30 UTC
[Cocoon Lenya Wiki] Updated: AddingCustomDocType
Date: 2004-08-18T08:59:29
Editor: TorstenSchlabach <ts...@gmx.net>
Wiki: Cocoon Lenya Wiki
Page: AddingCustomDocType
URL: http://wiki.apache.org/cocoon-lenya/AddingCustomDocType
no comment
Change Log:
------------------------------------------------------------------------------
@@ -137,6 +137,31 @@
* Add presentation pipelines in {{{mypub/sitemap.xmap}}} if you need special pipelines for your doctype
+Make sure you understand that for your new doctype you don't need a replacement for page2xhtml.xsl but for xhtml2xhtml. The reason is this:
+
+Transforming a document to a page in the browser is always a two-step process,
+
+ # using {doctype}2xhtml.xsl the document (which might be any arbritary XML such as the link list, Docbook, a RSS feed, etc.) is turned into an XHTML presentation.
+ # this XHTML is then processed to contain nagivation, menus and the like using page2xhtml.
+
+If you have 5 doctypes in your publication, for example:
+
+ * rss
+ * linklist
+ * gallery
+ * docbook
+ * xhtml
+
+the concept would be
+
+{{{
+document -> rss2xhtml --+
+document -> linklist2xhtml --+
+document -> gallery2xhtml --+---> page2xhtml.xsl -> Browser
+document -> docbook2xhtml --+
+document -> xhtml2xhtml.xsl --+
+}}}
+
== Menus ==
Configure the menus (either 1. or 2.)
=== Using an existing menu ===
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org