home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!--
- Copyright 1999-2004 The Apache Software Foundation
-
- Licensed 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.
- -->
- <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "../../dtd/document-v10.dtd">
-
- <!--
- <![CDATA[ CVS Version: $Id: selector.template,v 1.6 2004/04/21 00:35:27 crossley Exp $
- ]]>
-
- Using this TemplateSelector:
-
- * replace TemplateSelector by the name of the selector you are describing
- * write concrete description
-
- -->
- <document>
- <header>
- <title>TemplateSelector in Cocoon</title>
- <version>0.9</version>
- <type>Technical document</type>
- <authors>
- <person name="Your Name" email="your-email"/>
- </authors>
- <abstract>This document describes the TemplateSelector of Cocoon.</abstract>
- </header>
- <body>
- <s1 title="TemplateSelector">
- <table>
- <tr>
- <td>NAME</td><td>template</td>
- </tr>
- <tr>
- <td>WHAT</td><td>The <code>TemplateSelector</code> component is used to
- select...
- </td>
- </tr>
- <tr>
- <td>TYPE</td><td>Selector, Sitemap Component</td>
- </tr>
- <tr>
- <!-- choose Core, the block name, or Scratchpad
- depending on where TemplateSelector sources live
- -->
- <td>BLOCK</td><td>Core/Block-Name/Scratchpad</td>
- </tr>
- <tr>
- <td>CLASS</td><td>org.apache.cocoon.reading.TemplateSelector</td>
- </tr>
- <!-- uncomment following tr if TemplateSelector is deprecated -->
- <!--tr>
- <td>DEPRECATED</td><td>Cocoon 2.0, 2.1</td>
- </tr-->
- <tr>
- <td>SINCE</td><td>Cocoon X.Y</td>
- </tr>
- <tr>
- <td>CACHEABLE</td><td>not applicable</td>
- </tr>
- </table>
- </s1>
- <s1 title="Description">
- <p>
- A general description of TemplateSelector
- </p>
- </s1>
- <s1 title="Usage">
- <p>
- A usage scenario of TemplateSelector
- </p>
- <s2 title="Sitemap pipeline examples">
- <p></p>
- <source><![CDATA[
- <map:match pattern="*.xyz">
- <map:read type="template"
- src="{1}"
- mime-type="type/sub-type">
- <!-- option sitemap parameters -->
- </map:read>
- </map:match>
- ]]></source>
- </s2>
-
- <s2 title="Sitemap component configuration example">
- <p></p>
- <source><![CDATA[
- <map:selectors...
- <map:selector name="template"
- src="org.apache.cocoon.reading.TemplateSelector"
- logger="sitemap.selector.template"
- />
- <!-- optional selector configuration -->
- ...
- </map:selectors>
- ...
- ]]></source>
- </s2>
- <s2 title="Configuration">
- <p>
- Explain the sitemap selector configuration, options when declaring template selector
- </p>
- </s2>
- <s2 title="Setup">
- <p>
- Explain the sitemap selector setup, ie options when using template selector
- </p>
- </s2>
- <s2 title="Effect on Object Model and Sitemap Parameters">
- <p>
-
- </p>
- </s2>
- </s1>
- <s1 title="Bugs/Caveats">
- <p>
- Describe limitation, bugs of TemplateSelector
- </p>
- </s1>
- <s1 title="History">
- <p>
- MM-DD-YY: initial creation
- </p>
- </s1>
- <s1 title="See also">
- <p>
- <!-- Links to related components pages. -->
- A general documentation about selectors is available at
- <link href="../concepts/matchers_selectors.html">Matchers and Selectors</link>.
- </p>
- </s1>
- </body>
- </document>
-
-