joerg 2003/07/18 23:51:08
Added: site/2.1/userdocs/selectors date-selector.html date-selector.pdf Log: date-selector added, rest updated Revision Changes Path 1.1 cocoon-site/site/2.1/userdocs/selectors/date-selector.html Index: date-selector.html =================================================================== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>DateSelector in Cocoon</title> <link type="text/css" href="../../skin/page.css" rel="stylesheet"> </head> <body text="#000000" bgcolor="#FFFFFF"> <!--================= start Navigation Path ==================--> <table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap="nowrap" valign="middle" bgcolor="#CFDCED" height="20"><img height="1" width="5" alt="" src="../../skin/images/spacer.gif" class="spacer"><!--===== breadcrumb trail (javascript-generated) ====--><font size="2" face="Arial, Helvetica, Sans-serif"><script src="../../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script></font></td> </tr> <tr> <td bgcolor="#4C6C8F" height="2"><img height="2" width="2" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> </table> <!--================= end Navigation Path ==================--> <!--================= start Banner ==================--> <table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!--================= start Group Logo ==================--> <td bgcolor="#294563"><a href=""></a></td> <!--================= end Group Logo ==================--> <!--================= start Project Logo ==================--><td width="100%" align="center" bgcolor="#294563"><a href="http://cocoon.apache.org/"><img border="0" class="logoImage" alt="Apache Cocoon" src="../../images/project-logo.gif"></a></td> <!--================= end Project Logo ==================--> <!--================= start Search ==================--><td valign="top" rowspan="2" bgcolor="#294563"> <form target="_blank" action="http://www.google.com/search" method="get"> <table summary="search" border="0" cellspacing="0" cellpadding="0" bgcolor="#4C6C8F"> <tr> <td colspan="3"><img height="10" width="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td><img height="1" width="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap"><input value="cocoon.apache.org" name="sitesearch" type="hidden"><input size="15" name="q" id="query" type="text"><img height="1" width="5" alt="" src="../../skin/images/spacer.gif" class="spacer"><input name="Search" value="Search" type="submit"> <br> <font face="Arial, Helvetica, Sans-serif" size="2" color="white"> the Apache Cocoon site </font></td><td><img height="1" width="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td><img alt="" border="0" height="10" width="9" src="../../skin/images/search-left.gif"></td><td><img height="1" width="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td><img alt="" border="0" height="10" width="9" src="../../skin/images/search-right.gif"></td> </tr> </table> </form> </td> <!--================= start Search ==================--><td bgcolor="#294563"><img height="10" width="10" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td valign="bottom" bgcolor="#294563" colspan="2"> <!--================= start Tabs ==================--> <div class="tab"> <table summary="tab bar" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="6"><img alt="" height="8" width="6" src="../../skin/images/spacer.gif"></td><td valign="bottom"> <table summary="selected tab" style="height: 1.8em" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="../../skin/images/tabSel-left.gif"></td><td valign="middle" bgcolor="#4C6C8F"><font color="#ffffff" size="2" face="Arial, Helvetica, Sans-serif"><b><a href="../../index.html"><font color="#000000">Home</font></a></b></font></td><td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="../../skin/images/tabSel-right.gif"></td> </tr> </table> </td> </tr> </table> </div> <!--================= end Tabs ==================--> </td><td bgcolor="#294563"><img alt="" width="1" height="1" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td bgcolor="#4C6C8F" colspan="4"><img width="1" height="10" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> </table> <!--================= end Banner ==================--> <!--================= start Menu, NavBar, Content ==================--> <table summary="page content" bgcolor="#ffffff" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <table summary="menu" border="0" cellspacing="0" cellpadding="0"> <tr> <!--================= start left top NavBar ==================--> <td rowspan="3" valign="top"> <table summary="blue line" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#294563"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td bgcolor="#CFDCED"><font color="#4C6C8F" size="4" face="Arial, Helvetica, Sans-serif"> </font></td> </tr> <tr> <td bgcolor="#294563"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> </table> </td> <!--================= end left top NavBar ==================--><td bgcolor="#294563"><img width="1" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap" valign="top" bgcolor="#4C6C8F"> <!--================= start Menu items ==================--> <div class="menu"> <ul> <li> <font color="#CFDCED">Navigation</font> <ul> <li> <a href="../../index.html">Main</a> </li> <li> <a href="../index.html">User Documentation</a> </li> </ul> </li> <li> <font color="#CFDCED">Selectors</font> <ul> <li> <a href="selectors.html">Overview</a> </li> </ul> </li> <li> <font color="#CFDCED">Default</font> <ul> <li> <a href="browser-selector.html">Browser Selector</a> </li> </ul> </li> <li> <font color="#CFDCED">Core</font> <ul> <li> <a href="host-selector.html">Host Selector</a> </li> <li> <a href="parameter-selector.html">Parameter Selector</a> </li> <li> <a href="requestattribute-selector.html">Request Attribute Selector</a> </li> <li> <a href="requestparameter-selector.html">Request Parameter Selector</a> </li> </ul> </li> <li> <font color="#CFDCED">Optional</font> <ul> </ul> </li> <li> <font color="#CFDCED">Scratchpad</font> <ul> <li> <span class="sel"><font color="#ffcc00">Date Selector</font></span> </li> </ul> </li> </ul> </div> <!--================= end Menu items ==================--> </td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td bgcolor="#294563"><img width="1" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td valign="bottom" align="left" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../../skin/images/menu-left.gif"></td><td bgcolor="#4C6C8F"><img height="10" width="10" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../../skin/images/menu-right.gif"></td> </tr> <tr> <td height="1" bgcolor="#294563"><img width="1" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> </table> </td><td valign="top" width="100%"> <table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0"> <!--================= start middle NavBar ==================--> <tr> <td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td align="left" width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td align="left" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif"> </font><img width="10" height="8" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td align="right" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif"> </font><img width="10" height="8" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <tr> <td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <!--================= end middle NavBar ==================--> <!--================= start Content==================--> <tr> <td align="left" width="10"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td><td align="left" width="100%"> <div class="content"> <table class="title" summary=""> <tr> <td valign="middle"> <h1>DateSelector in Cocoon</h1> </td><script Language="Javascript"> function printit(){ if (window.print) { window.print() ; } else { var WebBrowser = '<OBJECT CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" HEIGHT="0" WIDTH="0" ID="WebBrowser1"></OBJECT>'; document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = ""; } } </script><script Language="Javascript"> var NS = (navigator.appName == "Netscape"); var VERSION = parseInt(navigator.appVersion); if (VERSION > 3) { document.write('<td nowrap="nowrap" width="40" align="center">'); document.write(' <a class="dida" href="javascript:printit()">'); document.write(' <img alt="Print this Page" src="../../skin/images/printer.gif" class="skin"><br>'); document.write(' print</a>'); document.write('</td>'); } </script><td nowrap="nowrap" width="40" align="center"><a class="dida" href="date-selector.pdf"><img alt="PDF" src="../../skin/images/pdfdoc.gif" class="skin"><br> PDF</a></td> </tr> </table> <p> <font size="-2">by Your Name</font> </p> <ul class="minitoc"> <li> <a href="#DateSelector">DateSelector</a> </li> <li> <a href="#Description">Description</a> </li> <li> <a href="#Usage">Usage</a> <ul class="minitoc"> <li> <a href="#Sitemap+pipeline+examples">Sitemap pipeline examples</a> </li> <li> <a href="#Sitemap+component+configuration+example">Sitemap component configuration example</a> </li> <li> <a href="#Configuration">Configuration</a> </li> <li> <a href="#Setup">Setup</a> </li> <li> <a href="#Effect+on+Object+Model+and+Sitemap+Parameters">Effect on Object Model and Sitemap Parameters</a> </li> </ul> </li> <li> <a href="#Bugs%2FCaveats">Bugs/Caveats</a> </li> <li> <a href="#History">History</a> </li> <li> <a href="#Copyright">Copyright</a> </li> <li> <a href="#See+also">See also</a> </li> </ul> <a name="N1001D"></a><a name="DateSelector"></a> <h3>DateSelector</h3> <div style="margin-left: 0 ; border: 2px"> <table class="ForrestTable" cellspacing="1" cellpadding="4"> <tr> <td colspan="1" rowspan="1">NAME</td><td colspan="1" rowspan="1">date</td> </tr> <tr> <td colspan="1" rowspan="1">WHAT</td><td colspan="1" rowspan="1">The <span class="codefrag">DateSelector</span> component is used to select... </td> </tr> <tr> <td colspan="1" rowspan="1">TYPE</td><td colspan="1" rowspan="1">Selector, Sitemap Component</td> </tr> <tr> <!-- choose Core, the block name, or Scratchpad depending on where DateSelector sources live --> <td colspan="1" rowspan="1">BLOCK</td><td colspan="1" rowspan="1">Scratchpad</td> </tr> <tr> <td colspan="1" rowspan="1">CLASS</td><td colspan="1" rowspan="1">org.apache.cocoon.reading.DateSelector</td> </tr> <!-- uncomment following tr if DateSelector is deprecated --> <!--tr> <td>DEPRECATED</td><td>Cocoon 2.0, 2.1</td> </tr--> <tr> <td colspan="1" rowspan="1">SINCE</td><td colspan="1" rowspan="1">Cocoon X.Y</td> </tr> <tr> <td colspan="1" rowspan="1">CACHEABLE</td><td colspan="1" rowspan="1">not applicable</td> </tr> </table> </div> <a name="N10083"></a><a name="Description"></a> <h3>Description</h3> <div style="margin-left: 0 ; border: 2px"> <p> A general description of DateSelector </p> </div> <a name="N1008C"></a><a name="Usage"></a> <h3>Usage</h3> <div style="margin-left: 0 ; border: 2px"> <p> A usage scenario of DateSelector </p> <a name="N10094"></a><a name="Sitemap+pipeline+examples"></a> <h4>Sitemap pipeline examples</h4> <div style="margin-left: 0 ; border: 2px"> <p></p> <pre class="code"> <map:match pattern="*.xyz"> <map:read type="date" src="{1}" mime-type="type/sub-type"> <!-- option sitemap parameters --> </map:read> </map:match> </pre> </div> <a name="N100A1"></a><a name="Sitemap+component+configuration+example"></a> <h4>Sitemap component configuration example</h4> <div style="margin-left: 0 ; border: 2px"> <p></p> <pre class="code"> <map:selectors... <map:selector name="date" src="org.apache.cocoon.reading.DateSelector" logger="sitemap.selector.date" /> <!-- optional selector configuration --> ... </map:selectors> ... </pre> </div> <a name="N100AE"></a><a name="Configuration"></a> <h4>Configuration</h4> <div style="margin-left: 0 ; border: 2px"> <p> Explain the sitemap selector configuration, options when declaring date selector </p> </div> <a name="N100B7"></a><a name="Setup"></a> <h4>Setup</h4> <div style="margin-left: 0 ; border: 2px"> <p> Explain the sitemap selector setup, ie options when using date selector </p> </div> <a name="N100C0"></a><a name="Effect+on+Object+Model+and+Sitemap+Parameters"></a> <h4>Effect on Object Model and Sitemap Parameters</h4> <div style="margin-left: 0 ; border: 2px"> <p> </p> </div> </div> <a name="N100CA"></a><a name="Bugs%2FCaveats"></a> <h3>Bugs/Caveats</h3> <div style="margin-left: 0 ; border: 2px"> <p> Describe limitation, bugs of DateSelector </p> </div> <a name="N100D3"></a><a name="History"></a> <h3>History</h3> <div style="margin-left: 0 ; border: 2px"> <p> MM-DD-YY: initial creation </p> </div> <a name="N100DC"></a><a name="Copyright"></a> <h3>Copyright</h3> <div style="margin-left: 0 ; border: 2px"> <p> Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved. </p> </div> <a name="N100E5"></a><a name="See+also"></a> <h3>See also</h3> <div style="margin-left: 0 ; border: 2px"> <p> <!-- Links to related components pages. --> A general documentation about selectors is available at <a href="../concepts/matchers_selectors.html">Matchers and Selectors</a>. </p> </div> </div> </td><td width="10"><img width="10" height="1" alt="" src="../../skin/images/spacer.gif" class="spacer"></td> </tr> <!--================= end Content==================--> </table> </td> </tr> </table> <!--================= end Menu, NavBar, Content ==================--> <!--================= start Footer ==================--> <table summary="footer" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="../../skin/images/spacer.gif" class="spacer"><a href="../../skin/images/label.gif"></a><a href="../../skin/images/page.gif"></a><a href="../../skin/images/chapter.gif"></a><a href="../../skin/images/chapter_open.gif"></a><a href="../../skin/images/current.gif"></a><a href="../..//favicon.ico"></a></td> </tr> <tr> <td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright © 1999-2003 The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!-- document.write(" - "+"Last Published: " + document.lastModified); // --></script></font></td> </tr> <tr> <td colspan="2" align="left" bgcolor="#CFDCED" class="logos"></td> </tr> </table> <!--================= end Footer ==================--> </body> </html> 1.1 cocoon-site/site/2.1/userdocs/selectors/date-selector.pdf <<Binary file>>