shannon     2002/12/03 22:28:20

  Modified:    targets/cocoon/userdocs/actions database-actions.html
               targets/cocoon/userdocs/concepts sitemap.html
                        xmlsearching.html
               targets/cocoon/userdocs/generators html-generator.html
                        search-generator.html
               targets/cocoon/userdocs/serializers html-serializer.html
                        link-serializer.html pcl-serializer.html
                        pdf-serializer.html ps-serializer.html
                        svg-serializer.html svgjpeg-serializer.html
                        svgpng-serializer.html svgxml-serializer.html
                        text-serializer.html vrml-serializer.html
                        wap-serializer.html xls-serializer.html
                        xml-serializer.html
               targets/cocoon/userdocs/transformers
                        sourcewriting-transformer.html
               targets/cocoon/userdocs/xsp esql.html logicsheet-forms.html
  Log:
  site update
  
  Revision  Changes    Path
  1.6       +8 -0      
xml-site/targets/cocoon/userdocs/actions/database-actions.html
  
  Index: database-actions.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/actions/database-actions.html,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- database-actions.html     19 Oct 2002 13:32:58 -0000      1.5
  +++ database-actions.html     4 Dec 2002 06:28:18 -0000       1.6
  @@ -131,6 +131,14 @@
                cover a wide range of database management systems.
          </font>
   </p>
  +      
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">
  +        For an overview of column types supported by the modular database
  +        actions, see javadocs for JDBCTypeConversions. The types supported by
  +        the original actions are documented in AbstractDatabaseAction.
  +      </font>
  +</p>
        
   
        
  
  
  
  1.9       +1 -6      xml-site/targets/cocoon/userdocs/concepts/sitemap.html
  
  Index: sitemap.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/cocoon/userdocs/concepts/sitemap.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- sitemap.html      19 Oct 2002 13:32:59 -0000      1.8
  +++ sitemap.html      4 Dec 2002 06:28:18 -0000       1.9
  @@ -1455,10 +1455,6 @@
       
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Mounting sitemaps</b></font>
       
  -<br> 
  -     
  -<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2">Introduction</font>
  -    
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
          Mount points allow sitemaps to be cascaded and site management
  @@ -1521,7 +1517,6 @@
        </font>
   </p>
       
  -    
   <font face="verdana, helvetica, sans serif" size="+1" color="#0086b2">Use 
Cases</font>
        
   <p>
  @@ -2275,7 +2270,7 @@
     
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
  -Learn more about advanced Sitemap features by downloading the free chapter, 
<a 
href="http://www.newriders.com/books/product.asp?product_id={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}";>A
 User's Look at the Cocoon architecture,</a> from Langham and Ziegler's 
<i>Cocoon: Building XML Applications</i> available at the New Riders web site.
  +Learn more about advanced Sitemap features by downloading the free chapter, 
<a 
href="http://www.newriders.com/books/product.asp?product_id={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}";>A
 User's Look at the Cocoon architecture,</a> from Langham and Ziegeler's 
<i>Cocoon: Building XML Applications</i> available at the New Riders web site.
     </font>
   </p>
     
  
  
  
  1.7       +250 -9    
xml-site/targets/cocoon/userdocs/concepts/xmlsearching.html
  
  Index: xmlsearching.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/concepts/xmlsearching.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- xmlsearching.html 19 Oct 2002 13:32:59 -0000      1.6
  +++ xmlsearching.html 4 Dec 2002 06:28:18 -0000       1.7
  @@ -138,9 +138,9 @@
         
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
  -        Indexing describes the process of fetching XML documents from an 
Apache Cocoon
  +        Indexing is the process of fetching XML documents from an Apache 
Cocoon
           instance, and building an index file.
  -        Searching describes the process of querying the once built index.
  +        Searching is the process of querying the once built index.
         </font>
   </p>
       
  @@ -195,7 +195,7 @@
             Specifying the base URL determines the protocol for fetching XML 
resources.
             The  implementation offers to specify <code><font face="courier, 
monospaced">http:</font></code> URLs, 
             crawling an Apache Cocoon instance deployed in a servlet-engine.
  -          Alternativly you may specify an URI, e.g.: <code><font 
face="courier, monospaced">/documents/index.html</font></code>,
  +          Alternatively you may specify an URI, e.g.: <code><font 
face="courier, monospaced">/documents/index.html</font></code>,
             offering to crawl the local Apache Cocoon instance only, either
             servlet-deployed, or in commandline-mode.
           </font>
  @@ -206,7 +206,7 @@
           
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
  -          This processing step fetches an URL resource from Apache Cocoon.
  +          This processing step fetches the URL resource from Apache Cocoon.
           </font>
   </p>
           
  @@ -219,7 +219,7 @@
           
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
  -          The above described crawling component is used by the this 
processing step
  +          The crawling component described above is used by the this 
processing step
             to retrieve a link of an XML document. 
             The link name is augmented by a cocoon view name for fetching the 
XML resource.
           </font>
  @@ -231,6 +231,13 @@
             of a crawler.
           </font>
   </p>
  +        
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">
  +          The Avalon component <code><font face="courier, 
monospaced">SimpleCocoonCrawlerImpl</font></code> is the implementation. 
  +          It can be configured to use a specific view, or default to the 
'content' view.
  +        </font>
  +</p>
         
         
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Generating index</b></font>
  @@ -239,7 +246,7 @@
   <font color="black" face="verdana,helvetica,sanserif">
             A xml resource is fed into a indexing engine.
             Generating an index specifies which elements of an XML resources
  -          should get indexed, how the elements are stored in the indexed.
  +          should get indexed, how the elements are stored in the index.
             Moreover the physical file location of the index is specified by
             this processing step.
           </font>
  @@ -268,6 +275,10 @@
               <code><font face="courier, monospaced">[EMAIL 
PROTECTED]</font></code>.
             </font>
   </li>
  +          
  +<li>
  +<font face="verdana, helvetica, sans serif">XML elements that match the 
names you configured in cocoon.xconf are added as stored fields.</font>
  +</li>
           
   </ul>
   </blockquote>
  @@ -338,7 +349,7 @@
   <font color="black" face="verdana,helvetica,sanserif">
           As both Avalon components <code><font face="courier, 
monospaced">LuceneXMLIndexer</font></code>, and 
           <code><font face="courier, 
monospaced">LuceneCocoonSearcher</font></code> may use the same Lucene index, 
you must
  -        take care of the Lucene index structure in both compoents.
  +        take care of the Lucene index structure in both components.
         </font>
   </p>
         
  @@ -361,14 +372,14 @@
   <li>
   <font face="verdana, helvetica, sans serif">Each XML element generates a 
Lucene field having the same name as the XML element name.
             For example searching for occurences of <code><font face="courier, 
monospaced">Cocoon</font></code> inside of an XML abstract
  -          elemen, use query-string <code><font face="courier, 
monospaced">abstact:Cocoon</font></code>.
  +          element, use query-string <code><font face="courier, 
monospaced">abstact:Cocoon</font></code>.
           </font>
   </li>
           
   <li>
   <font face="verdana, helvetica, sans serif">Each XML attribute generates a 
Lucene field having the name
             <code><font face="courier, monospaced">[EMAIL 
PROTECTED]</font></code>. 
  -          For example searching for occurences of <code><font face="courier, 
monospaced">Cocoon</font></code> inside of an XML title attribute
  +          For example searching for occurrences of <code><font 
face="courier, monospaced">Cocoon</font></code> inside of an XML title attribute
             of s1 element, use query-string <code><font face="courier, 
monospaced">[EMAIL PROTECTED]:Cocoon</font></code>.
           </font>
   </li>
  @@ -389,6 +400,13 @@
             the information stored in the Lucene index.
           </font>
   </li>
  +        
  +<li>
  +<font face="verdana, helvetica, sans serif">
  +          Further Stored fields can be added, depending on your 
configuration. 
  +          Stored fields are returned in the hits found by the engine.
  +        </font>
  +</li>
         
   </ul>
   </blockquote>
  @@ -405,12 +423,114 @@
         </font>
   </p>
         
  +<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>example</b></font>
  +                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This would set up the 
crawler to crawl all of your site, except pages in the 'search' section, also 
we are telling the crawler to use a non-standard cocoon-view for getting the 
links in documents, called <code><font face="courier, 
monospaced">my-search-links</font></code>. </font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;cocoon-crawler logger="core.search.crawler"&gt;
  +  &lt;exclude&gt;.*/search/.*&lt;/exclude&gt;
  +  &lt;link-view-query&gt;cocoon-view=my-search-links&lt;/link-view-query&gt;
  +&lt;/cocoon-crawler&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This tells the indexer 
to use the non-standard 'my-search-content' view to retrieve the content for 
indexing. Also it tells the indexer that we would like to have any <code><font 
face="courier, monospaced">title</font></code> or <code><font face="courier, 
monospaced">subtitle</font></code> XML elements in the document added to the 
index as stored fields, so they can be retrieved and displayed to the user with 
any hits they get.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;lucene-xml-indexer logger="core.search.lucene"&gt;
  +  &lt;store-fields&gt;title, subtitle&lt;/store-fields&gt;
  +  
&lt;content-view-query&gt;cocoon-view=my-search-content&lt;/content-view-query&gt;
  +&lt;/lucene-xml-indexer&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +      
  +      
   <p>
   <font color="black" face="verdana,helvetica,sanserif">
           Setting up the sitemap component SearchGenerator takes place in the
           <code><font face="courier, monospaced">sitemap.xmap</font></code> 
file.
         </font>
   </p>
  +      
  +<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>example</b></font>
  +                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This would generate a 
document from a search, getting the query and other information from request 
parameters.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;map:generate type="search"/&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This would generate a 
document from a search, getting the query from the sitemap parameter '1' and 
other information from request parameters.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;map:generate type="search"&gt;
  +  &lt;map:parameter name="query" value="{1}"/&gt;
  +&lt;/map:generate&gt;        
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +      
       
       
       
  @@ -513,6 +633,127 @@
         </font>
   </p>
       
  +    
  +<font face="verdana, helvetica, sans serif" size="+2" 
color="#0086b2">Extending the Sample</font>
  +<hr style="color: #0086b2" size="1">
  +      
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">
  +        It is easy to extend the search sample to display more information 
about the search hit than just the url of the resource.</font>
  +</p>
  +                     
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">In order to show, for 
example, the title and summary of a document, these first need to be added to 
the search index as 'Stored Fields'. Then when the documents are found during a 
search, that information is available to display, from the search engine 
itself.</font>
  +</p>
  +      
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">First, decide which 
fields you want to store.</font>
  +</p>
  +      
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">Decide where is the 
best place in your pipeline for content to be extracted for indexing, it might 
not always be the default view 'content'.</font>
  +</p>
  +      
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">Next, decide if you 
need an XSLT transformation on your documents, to make them more suitable for 
indexing. This may include deciding on one of several titles in your document, 
what part of your document gets added to the summary etc. You might want to 
strip certain tags out because you don't want their content searched. You might 
be able to raise hit scores on documents by re-arranging content, or keeping 
larger amounts of content in fewer tags.</font>
  +</p>
  +                     
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">Now you tell the 
search engine (in cocoon.xconf) which tags you'd like storing.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;lucene-xml-indexer logger="core.search.lucene"&gt;
  +  &lt;store-fields&gt;title, summary&lt;/store-fields&gt;
  +  
&lt;content-view-query&gt;cocoon-view=search-content&lt;/content-view-query&gt;
  +&lt;/lucene-xml-indexer&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +                     
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This example tells the 
indexer to store any tags called 'title' or 'summary' it finds in your 
documents. It also tells the indexer to get it's content from the view called 
'search-content'.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;map:view from-label="search" name="search"&gt;
  +  &lt;map:transform src="search-filter.xsl"/&gt;
  +  &lt;map:serialize type="xml"/&gt;
  +&lt;/map:view&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +                     
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This is how you might 
setup that custom view in your sitemap. You would then add a label attribute 
<code><font face="courier, monospaced">label="search"</font></code> to the 
appropriate place in your pipelines. See the section on views for more 
information.</font>
  +</p>
  +                     
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">After you have 
re-indexed the site, when you do searches, the new fields will be available in 
the XML output by Lucene, in the form of a <code><font face="courier, 
monospaced">search:field</font></code> tag, you will need to modify your XSLT 
that displays the hits to show this.</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;xsl:template match="search:hit"&gt;
  +  &lt;tr&gt;
  +    &lt;td&gt;
  +      &lt;xsl:value-of select="format-number( @search:score, '### %' )"/&gt;
  +    &lt;/td&gt;
  +    &lt;td&gt;
  +      &lt;xsl:value-of select="@search:rank"/&gt;
  +    &lt;/td&gt;
  +    &lt;td&gt;
  +      &lt;a target="_blank" href="[EMAIL PROTECTED]:uri}"&gt;
  +        &lt;xsl:attribute name="title"&gt;
  +          &lt;xsl:value-of select="search:[EMAIL 
PROTECTED]:name='summary']"/&gt;
  +        &lt;/xsl:attribute&gt;
  +        &lt;xsl:value-of select="search:[EMAIL PROTECTED]:name='title']"/&gt;
  +      &lt;/a&gt;
  +    &lt;/td&gt;
  +  &lt;/tr&gt;
  +&lt;/xsl:template&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">This is how the search 
sample's xslt might be changed. All the fields you made for each document are 
available to you as <code><font face="courier, 
monospaced">search:field</font></code> elements in the <code><font 
face="courier, monospaced">search:hit</font></code> elements. The code above 
assumes you only had one 'title' and one 'summary' per document.</font>
  +</p>
       
       
   <font face="verdana, helvetica, sans serif" size="+2" 
color="#0086b2">Summary</font>
  
  
  
  1.9       +50 -1     
xml-site/targets/cocoon/userdocs/generators/html-generator.html
  
  Index: html-generator.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/generators/html-generator.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- html-generator.html       19 Oct 2002 13:32:59 -0000      1.8
  +++ html-generator.html       4 Dec 2002 06:28:18 -0000       1.9
  @@ -167,7 +167,8 @@
   <p>
   <font color="black" face="verdana,helvetica,sanserif">The html generator 
reads an html document from the local file system or from any url.
                       It acts similar to the file generator with the 
difference that it reads
  -                     html documents and converts them using jtidy to 
xhtml.</font>
  +                     html documents and converts them using <a 
href="http://sourceforge.net/projects/jtidy";>JTidy</a>
  +                     to xhtml.</font>
   </p>
                        
   <p>
  @@ -218,6 +219,54 @@
   </tr>
   </table>
   </div>
  +             
  +             
  +<font face="verdana, helvetica, sans serif" size="+2" 
color="#0086b2">Configuring JTidy</font>
  +<hr style="color: #0086b2" size="1">
  +               
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">Without any 
configuration, the generator produces an XHTML document, with the proper 
namespace. However,
  +                  JTidy offers a full range of options for converting the 
HTML document to XML.</font>
  +</p>
  +               
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">These options can be 
specified in a properties file (key=value pairs) whose location is given in the
  +                  component configuration :</font>
  +</p>
  +               
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +                 
  +  &lt;map:generator type="html" 
src="org.apache.cocoon.generation.HTMLGenerator"&gt;
  +    &lt;jtidy-config&gt;jtidy.properties&lt;/jtidy-config&gt;
  +  &lt;/map:generator&gt;
  +                 
  +               </pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +               
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">The <code><font 
face="courier, monospaced">jtidy-config</font></code> URL can be either 
relative (to the application context), one of Cocoon's special
  +                  protocols such as <code><font face="courier, 
monospaced">resouce:</font></code> which searches the file in the 
classpath.</font>
  +</p>
  +               
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">For more information 
on the available configurations, please refer to the
  +                  <a href="http://www.w3.org/People/Raggett/tidy/";>original 
Tidy page</a>. Beware that configuration
  +                  examples shown there use the ':' as a separator when JTidy 
requires a '=' as it is a standard Java properties file.
  +               </font>
  +</p>
                
   
        
  
  
  
  1.8       +24 -0     
xml-site/targets/cocoon/userdocs/generators/search-generator.html
  
  Index: search-generator.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/generators/search-generator.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- search-generator.html     19 Oct 2002 13:33:00 -0000      1.7
  +++ search-generator.html     4 Dec 2002 06:28:18 -0000       1.8
  @@ -214,6 +214,30 @@
   </tr>
   </table>
   </div>
  +
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">or</font>
  +</p>
  +
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +&lt;map:generate type="search"&gt;
  +     &lt;query&gt;your query string&lt;/query&gt;
  +&lt;/map:generate&gt;
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
       
       
   <font face="verdana, helvetica, sans serif" size="+2" 
color="#0086b2">Configuration</font>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/html-serializer.html
  
  Index: html-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/html-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- html-serializer.html      19 Oct 2002 13:33:01 -0000      1.7
  +++ html-serializer.html      4 Dec 2002 06:28:18 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.9       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/link-serializer.html
  
  Index: link-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/link-serializer.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- link-serializer.html      19 Oct 2002 13:33:01 -0000      1.8
  +++ link-serializer.html      4 Dec 2002 06:28:18 -0000       1.9
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><span class="menuselected">Link 
Serializer</span></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/pcl-serializer.html
  
  Index: pcl-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/pcl-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- pcl-serializer.html       19 Oct 2002 13:33:01 -0000      1.7
  +++ pcl-serializer.html       4 Dec 2002 06:28:18 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/pdf-serializer.html
  
  Index: pdf-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/pdf-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- pdf-serializer.html       19 Oct 2002 13:33:01 -0000      1.7
  +++ pdf-serializer.html       4 Dec 2002 06:28:18 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/ps-serializer.html
  
  Index: ps-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/ps-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ps-serializer.html        19 Oct 2002 13:33:01 -0000      1.7
  +++ ps-serializer.html        4 Dec 2002 06:28:18 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/svg-serializer.html
  
  Index: svg-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/svg-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- svg-serializer.html       19 Oct 2002 13:33:01 -0000      1.7
  +++ svg-serializer.html       4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/svgjpeg-serializer.html
  
  Index: svgjpeg-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/svgjpeg-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- svgjpeg-serializer.html   19 Oct 2002 13:33:01 -0000      1.7
  +++ svgjpeg-serializer.html   4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/svgpng-serializer.html
  
  Index: svgpng-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/svgpng-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- svgpng-serializer.html    19 Oct 2002 13:33:01 -0000      1.7
  +++ svgpng-serializer.html    4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/svgxml-serializer.html
  
  Index: svgxml-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/svgxml-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- svgxml-serializer.html    19 Oct 2002 13:33:01 -0000      1.7
  +++ svgxml-serializer.html    4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/text-serializer.html
  
  Index: text-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/text-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- text-serializer.html      19 Oct 2002 13:33:01 -0000      1.7
  +++ text-serializer.html      4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/vrml-serializer.html
  
  Index: vrml-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/vrml-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- vrml-serializer.html      19 Oct 2002 13:33:01 -0000      1.7
  +++ vrml-serializer.html      4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/wap-serializer.html
  
  Index: wap-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/wap-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- wap-serializer.html       19 Oct 2002 13:33:01 -0000      1.7
  +++ wap-serializer.html       4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.4       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/xls-serializer.html
  
  Index: xls-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/xls-serializer.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xls-serializer.html       19 Oct 2002 13:33:01 -0000      1.3
  +++ xls-serializer.html       4 Dec 2002 06:28:19 -0000       1.4
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.8       +3 -0      
xml-site/targets/cocoon/userdocs/serializers/xml-serializer.html
  
  Index: xml-serializer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/serializers/xml-serializer.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- xml-serializer.html       19 Oct 2002 13:33:01 -0000      1.7
  +++ xml-serializer.html       4 Dec 2002 06:28:19 -0000       1.8
  @@ -114,6 +114,9 @@
   <td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="link-serializer.html">Link Serializer</a></td>
   </tr>
   <tr>
  +<td valign="top" bgcolor="#959595" 
background="images/label-background_a.gif"><a class="menu" 
href="ziparchive-serializer.html">Zip archive Serializer</a></td>
  +</tr>
  +<tr>
   <td background="images/label-background_b.gif" bgcolor="#959595" 
valign="top"><img width="120" height="6" src="images/separator.gif"><br>
   <span class="menutitle">Optional</span></td>
   </tr>
  
  
  
  1.4       +27 -72    
xml-site/targets/cocoon/userdocs/transformers/sourcewriting-transformer.html
  
  Index: sourcewriting-transformer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/transformers/sourcewriting-transformer.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- sourcewriting-transformer.html    19 Oct 2002 13:33:02 -0000      1.3
  +++ sourcewriting-transformer.html    4 Dec 2002 06:28:19 -0000       1.4
  @@ -190,9 +190,6 @@
                
   <font face="verdana, helvetica, sans serif" size="+2" color="#0086b2">The 
Tags</font>
   <hr style="color: #0086b2" size="1">
  -                     
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -226,9 +223,6 @@
   </table>
   </div>
                        
  -</font>
  -</p>
  -                     
   <p>
   <font color="black" face="verdana,helvetica,sanserif">In the namespace 
<code><font face="courier, 
monospaced">xmlns:source="http://apache.org/cocoon/source/1.0";</font></code>.</font>
   </p>
  @@ -240,9 +234,6 @@
                
   <font face="verdana, helvetica, sans serif" size="+2" 
color="#0086b2">Definition</font>
   <hr style="color: #0086b2" size="1">
  -                     
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -267,9 +258,6 @@
   </table>
   </div>
                        
  -</font>
  -</p>
  -                     
   <p>
   <font color="black" face="verdana,helvetica,sanserif">The 
SourceWritingTransformer is predefined for you in the main SiteMap.</font>
   </p>
  @@ -281,9 +269,6 @@
   <p>
   <font color="black" face="verdana,helvetica,sanserif">This invokes the 
SourceWritingTransformer on your pipeline.</font>
   </p>
  -                     
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -305,15 +290,9 @@
   </table>
   </div>
                        
  -</font>
  -</p>
  -                     
   <p>
   <font color="black" face="verdana,helvetica,sanserif">Or you can over-ride 
the default serializer here.</font>
   </p>
  -                     
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -336,9 +315,6 @@
   </tr>
   </table>
   </div>
  -                     
  -</font>
  -</p>
                
   
                
  @@ -377,8 +353,10 @@
   </p>
                                        
   <p>
  -<font color="black" face="verdana,helvetica,sanserif">eg: 
  -                                             <div align="center">
  +<font color="black" face="verdana,helvetica,sanserif">eg: </font>
  +</p>
  +                                             
  +<div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
   <tr>
   <td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  @@ -399,8 +377,12 @@
   </tr>
   </table>
   </div> 
  -                                             or
  -                                             <div align="center">
  +                                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">or</font>
  +</p>
  +                                             
  +<div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
   <tr>
   <td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  @@ -424,9 +406,11 @@
   </tr>
   </table>
   </div> 
  -                                             etc.
  -                                     </font>
  +                                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">etc.</font>
   </p>
  +
                                        
   <p>
   <table border="0" cellpadding="0" cellspacing="3" width="100%">
  @@ -490,8 +474,10 @@
   </p>
                                        
   <p>
  -<font color="black" face="verdana,helvetica,sanserif">eg: 
  -                                             <div align="center">
  +<font color="black" face="verdana,helvetica,sanserif">eg:</font>
  +</p>
  +                                             
  +<div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
   <tr>
   <td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  @@ -514,8 +500,12 @@
   </tr>
   </table>
   </div> 
  -                                             or
  -                                             <div align="center">
  +                                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">or</font>
  +</p>
  +                                             
  +<div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
   <tr>
   <td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  @@ -539,8 +529,9 @@
   </tr>
   </table>
   </div> 
  -                                             etc.
  -                                     </font>
  +                                             
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">etc.</font>
   </p>
                                
                                
  @@ -583,9 +574,6 @@
                        
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Notes</b></font>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <blockquote>
   <ul>
  @@ -616,9 +604,6 @@
                                        
   </ul>
   </blockquote>
  -                             
  -</font>
  -</p>
                        
                
                
  @@ -627,9 +612,6 @@
   <hr style="color: #0086b2" size="1">
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Simple Write</b></font>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -662,15 +644,9 @@
   </tr>
   </table>
   </div>
  -                             
  -</font>
  -</p>
                        
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Insert at end</b></font>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -702,15 +678,9 @@
   </tr>
   </table>
   </div>
  -                             
  -</font>
  -</p>
                        
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Replace</b></font>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -742,15 +712,9 @@
   </tr>
   </table>
   </div>
  -                             
  -</font>
  -</p>
                        
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Insert at the beginning</b></font>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -797,9 +761,6 @@
   </tr>
   </table>
   </p>
  -                             
  -</font>
  -</p>
                        
                        
   <font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Sample of the output of these tags</b></font>
  @@ -807,9 +768,6 @@
   <p>
   <font color="black" face="verdana,helvetica,sanserif">This is the kind of 
information that the <code><font face="courier, 
monospaced">SourceWritingTransformer</font></code> outputs to the pipeline, 
replacing the original <code><font face="courier, 
monospaced">source:write</font></code> and <code><font face="courier, 
monospaced">source:insert</font></code> tags</font>
   </p>
  -                             
  -<p>
  -<font color="black" face="verdana,helvetica,sanserif">
                                        
   <div align="center">
   <table border="0" cellpadding="0" cellspacing="4">
  @@ -841,9 +799,6 @@
   </tr>
   </table>
   </div>
  -                             
  -</font>
  -</p>
                        
                
                
  
  
  
  1.9       +90 -2     xml-site/targets/cocoon/userdocs/xsp/esql.html
  
  Index: esql.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/cocoon/userdocs/xsp/esql.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- esql.html 19 Oct 2002 13:33:02 -0000      1.8
  +++ esql.html 4 Dec 2002 06:28:19 -0000       1.9
  @@ -348,7 +348,91 @@
   </div>
   
      
  -<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Refering to results</b></font>
  +<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Dynamic Queries</b></font>
  +    
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">When a query contains 
dynamic parts, e.g. a value that is to be matched,
  +     esql offers two different possibilities to achieve that. First, as the 
  +     query is really a string, it can be constructed like any other string 
by 
  +     concattenation.
  +    </font>
  +</p>
  +
  +   
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +    &lt;xsp:logic&gt;
  +       String orderBy = null;
  +       switch(type) {
  +       case 1: orderBy = "order by name"; break;
  +       case 2: orderBy = "order by salary"; break;
  +       default: orderBy = "";
  +       }
  +    &lt;/xsp:logic&gt;
  +
  +    &lt;!-- ... --&gt;
  +
  +    &lt;esql:query&gt;SELECT name, salary FROM employee 
&lt;xsp:expr&gt;orderBy&lt;/xsp:expr&gt;&lt;/esql:query&gt;
  +
  +</pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +
  +    
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">Note, however, that 
here any string will be part of the actual
  +     statement. In this example it does no harm as the value for the
  +     <code><font face="courier, monospaced">orderBy</font></code> variable 
is completely under the control of
  +     your code. Any malicious attacker could not inject his or her own
  +     code. Thus this technique should not be used when values returned
  +     from the client have to be used.
  +    </font>
  +</p>
  +    
  +<p>
  +<font color="black" face="verdana,helvetica,sanserif">The second variant is 
to use a PreparedStatement for dynamic 
  +     parameters. Since the driver is supposed to keep parameters
  +     distinct from the statement, no code can be injected this way. In
  +     addition, your DBMS puts more effort into optimizing the
  +     statement. PreparedStatements are created whenever a
  +     <code><font face="courier, 
monospaced">&lt;esql:parameter/&gt;</font></code> tag appears in a query. 
  +    </font>
  +</p>
  +   
  +<div align="center">
  +<table border="0" cellpadding="0" cellspacing="4">
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td><td bgcolor="#ffffff">
  +<pre>
  +    &lt;esql:query&gt;SELECT name, salary FROM employee 
  +                WHERE 
name=&lt;esql:parameter&gt;&lt;xsp:expr&gt;name&lt;/xsp:expr&gt;&lt;/esql:parameter&gt;&lt;/esql:query&gt;
  +
  +   </pre>
  +</td><td width="1" bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" 
height="1" width="1" src="images/void.gif"></td>
  +</tr>
  +<tr>
  +<td height="1" width="1" bgcolor="#0086b2"><img border="0" hspace="0" 
vspace="0" height="1" width="1" src="images/void.gif"></td><td height="1" 
bgcolor="#0086b2"><img border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td><td height="1" width="1" bgcolor="#0086b2"><img 
border="0" hspace="0" vspace="0" height="1" width="1" 
src="images/void.gif"></td>
  +</tr>
  +</table>
  +</div>
  +   
  +
  +   
  +<font face="verdana, helvetica, sans serif" size="+1" 
color="#0086b2"><b>Refering to Results</b></font>
   
       
   <p>
  @@ -531,7 +615,11 @@
        tags.  It follows the nesting ideology of <code><font face="courier, 
monospaced">&lt;xsp:logic&gt; ...
         &lt;xsp:content&gt;&lt;/&gt;&lt;/&gt;</font></code>You can nest
        <code><font face="courier, monospaced">&lt;esql:group&gt;</font></code> 
and <code><font face="courier, monospaced">&lt;esql:member&gt;</font></code>
  -     indefinately.</font>
  +     indefinately. <code><font face="courier, 
monospaced">group-on</font></code> can be an attribute of
  +     <code><font face="courier, monospaced">group</font></code> or a text 
node. The value of the text node has
  +     precedence over the attribute. The value can be the column name or the
  +     column number. 
  +     </font>
   </p>
   
       
  
  
  
  1.9       +3 -3      
xml-site/targets/cocoon/userdocs/xsp/logicsheet-forms.html
  
  Index: logicsheet-forms.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/cocoon/userdocs/xsp/logicsheet-forms.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- logicsheet-forms.html     19 Oct 2002 13:33:02 -0000      1.8
  +++ logicsheet-forms.html     4 Dec 2002 06:28:19 -0000       1.9
  @@ -300,19 +300,19 @@
        
   <tr>
         
  -<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">string</font></td><td align="left" valign="top" rowspan="1" 
colspan="1" bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">nullable="yes|no" default="str"</font></td>
  +<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black"><b>string</b></font></td><td align="left" valign="top" 
rowspan="1" colspan="1" bgcolor="#a0ddf0"><font 
face="verdana,helvetica,sanserif" size="-1" color="black">nullable="yes|no" 
default="str"</font></td>
        
   </tr>
        
   <tr>
         
  -<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">long</font></td><td align="left" valign="top" rowspan="1" 
colspan="1" bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">nullable="yes|no" default="123123"</font></td>
  +<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black"><b>long</b></font></td><td align="left" valign="top" rowspan="1" 
colspan="1" bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">nullable="yes|no" default="123123"</font></td>
        
   </tr>
        
   <tr>
         
  -<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">double</font></td><td align="left" valign="top" rowspan="1" 
colspan="1" bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black">nullable="yes|no" default="0.5"</font></td>
  +<td align="left" valign="top" rowspan="1" colspan="1" 
bgcolor="#a0ddf0"><font face="verdana,helvetica,sanserif" size="-1" 
color="black"><b>double</b></font></td><td align="left" valign="top" 
rowspan="1" colspan="1" bgcolor="#a0ddf0"><font 
face="verdana,helvetica,sanserif" size="-1" color="black">nullable="yes|no" 
default="0.5"</font></td>
        
   </tr>
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to