| <?xml version="1.0" encoding="UTF-8"?> |
| <html xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:xhtml="http://www.w3.org/1999/xhtml" |
| xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- $Id: index_en.xml 169299 2005-05-09 12:00:43Z jwkaltz $ --> |
| <head> |
| <title>Lenya Tutorial - How to create a new doctype</title> |
| </head> |
| <body> |
| <h1>Lenya Tutorial - How to create a new doctype</h1> |
| |
| <p>NOTE: Also see the <a href="http://wiki.apache.org/lenya/AddingCustomDocType">Wiki</a></p> |
| |
| <h2>The standard way</h2> |
| |
| <p> |
| Add a link where people can click on: <em>config/menus/menu.xsp</em> |
| </p> |
| |
| <p> |
| Create a usecase sitemap where the "flow" is defined: <em>usecase-create-my_doctype.xmap</em> |
| </p> |
| |
| <p> |
| Define what class shall be used for the actual creation: <em>config/doctypes/doctypes.xconf</em> |
| </p> |
| |
| <p> |
| In many cases a new document is created based on a sample: <em>config/doctypes/samples/my_doctype.xml</em> |
| The name of the sample needs to be configured within <em>config/doctypes/doctypes.xconf</em> |
| </p> |
| |
| <p> |
| Add doctype such that XSLT can be found: <em>parameter-doctype.xmap</em> |
| </p> |
| |
| <p> |
| Create XSLT: <em>xslt/my_doctype2xhtml.xsl</em> |
| </p> |
| |
| <p> |
| OPTIONAL: Create new menu: <em>menus.xmap</em>, <em>config/menus/my_doctype.xsp</em> |
| </p> |
| |
| <p> |
| Create workflow: <em>config/workflow/my_doctype.xml</em>, <em>config/doctypes/doctypes.xconf</em> |
| </p> |
| |
| </body> |
| </html> |