You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general-cvs@xml.apache.org by vg...@apache.org on 2007/02/24 03:14:29 UTC

svn commit: r511190 [11/17] - in /xml/site/targets/xindice: ./ 1.0/ community/howto/ community/howto/compilation/ community/howto/installation/ dev/ images/ skin/ skin/css/ skin/images/ skin/scripts/ skin/translations/

Modified: xml/site/targets/xindice/guide-developer.html
URL: http://svn.apache.org/viewvc/xml/site/targets/xindice/guide-developer.html?view=diff&rev=511190&r1=511189&r2=511190
==============================================================================
--- xml/site/targets/xindice/guide-developer.html (original)
+++ xml/site/targets/xindice/guide-developer.html Fri Feb 23 18:14:25 2007
@@ -1,301 +1,361 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!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=UTF-8">
 <meta content="Apache Forrest" name="Generator">
-<meta name="Forrest-version" content="0.6">
-<meta name="Forrest-skin-name" content="forrest-site">
+<meta name="Forrest-version" content="0.8-dev">
+<meta name="Forrest-skin-name" content="pelt">
 <title>Xindice 1.1 Developer Guide</title>
-<link type="text/css" href="skin/page.css" rel="stylesheet">
+<link type="text/css" href="skin/basic.css" rel="stylesheet">
+<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">
+<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">
+<link type="text/css" href="skin/profile.css" rel="stylesheet">
+<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>
+<link rel="shortcut icon" href="">
 </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"><a href="http://www.apache.org/">apache</a> &gt; <a href="http://xml.apache.org/">xml.apache</a> &gt; <a href="http://xml.apache.org/xindice/">xindice</a><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="http://xml.apache.org"><img class="logoImage" alt="XML Apache" src="images/group-logo.gif"></a></td>
-<!--================= end Group Logo ==================-->
-<!--================= start Project Logo ==================--><td width="100%" align="center" bgcolor="#294563"><a href="http://xml.apache.org/xindice/"><img class="logoImage" alt="Xindice" src="images/xindice.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="xml.apache.org" name="as_sitesearch" type="hidden"><input size="15" name="as_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 XML 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>
+<body onload="init()">
+<script type="text/javascript">ndeSetTextSize();</script>
+<div id="top">
+<!--+
+    |breadtrail
+    +-->
+<div class="breadtrail">
+<a href="http://www.apache.org/">apache</a> &gt; <a href="http://xml.apache.org/">xml.apache</a> &gt; <a href="http://xml.apache.org/xindice/">xindice</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>
+</div>
+<!--+
+    |header
+    +-->
+<div class="header">
+<!--+
+    |start group logo
+    +-->
+<div class="grouplogo">
+<a href="http://xml.apache.org"><img class="logoImage" alt="XML Apache" src="images/group-logo.gif" title="Apache XML Project"></a>
+</div>
+<!--+
+    |end group logo
+    +-->
+<!--+
+    |start Project Logo
+    +-->
+<div class="projectlogo">
+<a href="http://xml.apache.org/xindice/"><img class="logoImage" alt="Xindice" src="images/xindice.gif" title="Apache Xindice: Native XML database"></a>
+</div>
+<!--+
+    |end Project Logo
+    +-->
+<!--+
+    |start Search
+    +-->
+<div class="searchbox">
+<form action="http://www.google.com/search" method="get" class="roundtopsmall">
+<input value="xml.apache.org" name="sitesearch" type="hidden"><input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google">&nbsp; 
+                    <input name="Search" value="Search" type="submit">
 </form>
-</td>
-<!--================= end 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 class="base-selected" href="index.html">Home</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><td width="6"><img alt="" height="8" width="6" src="skin/images/spacer.gif"></td><td valign="bottom">
-<table summary="non selected tab" style="height: 1.6em" border="0" cellpadding="0" cellspacing="0">
-<tr>
-<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a class="base-not-selected" href="community/howto/index.html">How-Tos</a></td><td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-right.gif"></td>
-</tr>
-<tr>
-<td colspan="3" height="1"></td>
-</tr>
-</table>
-</td><td width="6"><img alt="" height="8" width="6" src="skin/images/spacer.gif"></td><td valign="bottom">
-<table summary="non selected tab" style="height: 1.6em" border="0" cellpadding="0" cellspacing="0">
-<tr>
-<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a class="base-not-selected" href="1.0/index.html">1.0</a></td><td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-right.gif"></td>
-</tr>
-<tr>
-<td colspan="3" height="1"></td>
-</tr>
-</table>
-</td><td width="6"><img alt="" height="8" width="6" src="skin/images/spacer.gif"></td><td valign="bottom">
-<table summary="non selected tab" style="height: 1.6em" border="0" cellpadding="0" cellspacing="0">
-<tr>
-<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a class="base-not-selected" href="dev/index.html">Dev</a></td><td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="skin/images/tab-right.gif"></td>
-</tr>
-<tr>
-<td colspan="3" height="1"></td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</div>
-<!--================= end Tabs ==================-->
-</td><td bgcolor="#294563"></td>
-</tr>
-<tr>
-<td height="10" bgcolor="#4C6C8F" colspan="4"></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">&nbsp;</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>
+</div>
+<!--+
+    |end search
+    +-->
+<!--+
+    |start Tabs
+    +-->
+<ul id="tabs">
+<li class="current">
+<a class="selected" href="index.html">Home</a>
+</li>
 <li>
-<font color="#CFDCED">Project</font>
-<ul>
-    
+<a class="unselected" href="community/howto/index.html">How-Tos</a>
+</li>
 <li>
-<a href="index.html">Overview</a>
+<a class="unselected" href="1.0/index.html">1.0</a>
 </li>
-    
 <li>
-<a href="news.html">News</a>
+<a class="unselected" href="dev/index.html">Dev</a>
 </li>
-    
+</ul>
+<!--+
+    |end Tabs
+    +-->
+</div>
+</div>
+<div id="main">
+<div id="publishedStrip">
+<!--+
+    |start Subtabs
+    +-->
+<div id="level2tabs"></div>
+<!--+
+    |end Endtabs
+    +-->
+<script type="text/javascript"><!--
+document.write("Last Published: " + document.lastModified);
+//  --></script>
+</div>
+<!--+
+    |breadtrail
+    +-->
+<div class="breadtrail">
+             
+             &nbsp;
+           </div>
+<!--+
+    |start Menu, mainarea
+    +-->
+<!--+
+    |start Menu
+    +-->
+<div id="menu">
+<div onclick="SwitchMenu('menu_1.1', 'skin/')" id="menu_1.1Title" class="menutitle">Project</div>
+<div id="menu_1.1" class="menuitemgroup">
+<div class="menuitem">
+<a href="index.html" title="About Apache Xindice">About</a>
+</div>
+<div class="menuitem">
+<a href="news.html" title="News">News</a>
+</div>
+<div class="menuitem">
+<a href="license.html" title="License">License</a>
+</div>
+<div class="menuitem">
+<a href="changes.html" title="Change Log">Changes</a>
+</div>
+<div class="menuitem">
+<a href="todo.html" title="TODO List">Todo</a>
+</div>
+<div class="menuitem">
+<a href="http://xml.apache.org/xindice/download.cgi">Download</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_selected_1.2', 'skin/')" id="menu_selected_1.2Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>
+<div id="menu_selected_1.2" class="selectedmenuitemgroup" style="display: block;">
+<div class="menuitem">
+<a href="guide-administrator.html">Administrator Guide</a>
+</div>
+<div class="menuitem">
+<a href="guide-user.html">User Guide</a>
+</div>
+<div class="menupage">
+<div class="menupagetitle">Developer Guide</div>
+</div>
+<div class="menuitem">
+<a href="guide-tools.html">Commandline Tool Guide</a>
+</div>
+<div class="menuitem">
+<a href="guide-xpath.html">XPath Guide</a>
+</div>
+<div class="menuitem">
+<a href="faq.html">FAQ</a>
+</div>
+<div class="menuitem">
+<a href="http://wiki.apache.org/xindice">Wiki</a>
+</div>
+<div class="menuitem">
+<a href="api/index.html">Javadocs</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.3', 'skin/')" id="menu_1.3Title" class="menutitle">Community</div>
+<div id="menu_1.3" class="menuitemgroup">
+<div class="menuitem">
+<a href="contributing.html">Contributing</a>
+</div>
+<div class="menuitem">
+<a href="who.html">Who we are</a>
+</div>
+<div class="menuitem">
+<a href="mail.html">Mailing lists</a>
+</div>
+<div class="menuitem">
+<a href="http://xml.apache.org/svn.html">Code Repository</a>
+</div>
+<div class="menuitem">
+<a href="http://issues.apache.org/bugzilla/buglist.cgi?query_format=specific&bug_status=__open__&product=Xindice">Bug database</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.4', 'skin/')" id="menu_1.4Title" class="menutitle">Resources</div>
+<div id="menu_1.4" class="menuitemgroup">
+<div class="menuitem">
+<a href="related.html">Related links</a>
+</div>
+<div class="menuitem">
+<a href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a>
+</div>
+</div>
+<div id="credit"></div>
+<div id="roundbottom">
+<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>
+<!--+
+  |alternative credits
+  +-->
+<div id="credit2"></div>
+</div>
+<!--+
+    |end Menu
+    +-->
+<!--+
+    |start content
+    +-->
+<div id="content">
+<script language="Javascript" type="text/javascript">
+function printit() {
+  if (window.print) {
+    window.focus();
+    window.print();
+  }
+}
+        </script><script language="Javascript" type="text/javascript">
+var NS = (navigator.appName == "Netscape");
+var VERSION = parseInt(navigator.appVersion);
+if (VERSION > 3) {
+  document.write('<div title="Print this Page" class="printlink">');
+  document.write('  <a class="dida" href="javascript:printit()">');
+  document.write('    <img alt="print - icon" src="skin/images/printer.gif" class="skin">');
+  document.write('    <br>');
+  document.write('  PRINT</a>');
+  document.write('</div>');
+}
+        </script>
+<div title="Portable Document Format" class="pdflink">
+<a class="dida" href="guide-developer.pdf"><img alt="PDF -icon" src="skin/images/pdfdoc.gif" class="skin"><br>
+        PDF</a>
+</div>
+<h1>Xindice 1.1 Developer Guide</h1>
+<div id="minitoc-area">
+<ul class="minitoc">
+<li>
+<a href="#Introduction+to+Programming+Xindice">Introduction to Programming Xindice</a>
+<ul class="minitoc">
 <li>
-<a href="license.html">License</a>
+<a href="#Accessing+the+Server">Accessing the Server</a>
+<ul class="minitoc">
+<li>
+<a href="#API%27s">API's</a>
+</li>
+</ul>
 </li>
-    
 <li>
-<a href="changes.html">Changes</a>
+<a href="#Introducing+the+XML%3ADB+XML+Database+API">Introducing the XML:DB XML Database API</a>
 </li>
-    
 <li>
-<a href="todo.html">Todo</a>
+<a href="#Setting+up+Your+Build+Environment">Setting up Your Build Environment</a>
 </li>
-    
 <li>
-<a href="http://xml.apache.org/xindice/download.cgi">Download</a>
+<a href="#Preparing+the+Server+For+the+Examples">Preparing the Server For the Examples</a>
+</li>
+<li>
+<a href="#Diving+in+With+an+Example+Program">Diving in With an Example Program</a>
+<ul class="minitoc">
+<li>
+<a href="#Simple+XML%3ADB+Example+Program">Simple XML:DB Example Program</a>
 </li>
-    
-  
 </ul>
 </li>
 <li>
-<font color="#CFDCED">Documentation</font>
-<ul>
-    
-<li>
-<a href="guide-administrator.html">Administrator Guide</a>
+<a href="#Accessing+Xindice+Remotely">Accessing Xindice Remotely</a>
+</li>
+</ul>
 </li>
-    
 <li>
-<a href="guide-user.html">User Guide</a>
+<a href="#Managing+Documents">Managing Documents</a>
+<ul class="minitoc">
+<li>
+<a href="#Creating+a+Collection">Creating a Collection</a>
+<ul class="minitoc">
+<li>
+<a href="#Creating+a+Collection-N10225">Creating a Collection</a>
+</li>
+</ul>
 </li>
-    
 <li>
-<span class="sel"><font color="#ffcc00">Developer Guide</font></span>
+<a href="#Working+with+Documents">Working with Documents</a>
+<ul class="minitoc">
+<li>
+<a href="#Example+Document">Example Document</a>
 </li>
-    
 <li>
-<a href="guide-tools.html">Commandline Tool Guide</a>
+<a href="#Adding+an+XML+File+to+the+Database">Adding an XML File to the Database</a>
 </li>
-    
 <li>
-<a href="guide-xpath.html">XPath Guide</a>
+<a href="#Retrieving+an+XML+Document+from+the+Database">Retrieving an XML Document from the Database</a>
 </li>
-    
 <li>
-<a href="faq.html">FAQ</a>
+<a href="#Deleting+an+XML+Document+from+the+Database">Deleting an XML Document from the Database</a>
 </li>
-    
+</ul>
+</li>
+</ul>
+</li>
+<li>
+<a href="#Using+XPath+to+Query+the+Database">Using XPath to Query the Database</a>
+<ul class="minitoc">
 <li>
-<a class="external" href="http://wiki.apache.org/xindice">Wiki</a>
+<a href="#Introduction">Introduction</a>
 </li>
-    
 <li>
-<a href="api/index.html">Javadocs</a>
+<a href="#Using+the+XML%3ADB+Java+API">Using the XML:DB Java API</a>
+<ul class="minitoc">
+<li>
+<a href="#Querying+with+XPath">Querying with XPath</a>
+</li>
+</ul>
 </li>
-  
 </ul>
 </li>
 <li>
-<font color="#CFDCED">Community</font>
-<ul>
-    
+<a href="#Using+XUpdate+to+Modify+the+Database">Using XUpdate to Modify the Database</a>
+<ul class="minitoc">
 <li>
-<a href="contributing.html">Contributing</a>
-</li>
-    
+<a href="#Introduction-N102CB">Introduction</a>
+<ul class="minitoc">
 <li>
-<a href="who.html">Who we are</a>
+<a href="#Basic+XUpdate+Insert+Command">Basic XUpdate Insert Command</a>
+</li>
+</ul>
 </li>
-    
 <li>
-<a href="mail.html">Mailing lists</a>
+<a href="#XUpdate+Commands">XUpdate Commands</a>
 </li>
-    
 <li>
-<a href="http://xml.apache.org/svn.html">Code Repository</a>
+<a href="#XUpdate+Node+Construction">XUpdate Node Construction</a>
 </li>
-    
 <li>
-<a class="external" href="http://issues.apache.org/bugzilla/buglist.cgi?query_format=specific&bug_status=__open__&product=Xindice">Bug database</a>
+<a href="#Using+the+XML%3ADB+API+for+XUpdate">Using the XML:DB API for XUpdate</a>
+<ul class="minitoc">
+<li>
+<a href="#Using+XUpdate+to+modify+the+database">Using XUpdate to modify the database</a>
+</li>
+</ul>
 </li>
-  
 </ul>
 </li>
 <li>
-<font color="#CFDCED">Resources</font>
-<ul>
-    
+<a href="#Storing+metadata">Storing metadata</a>
+<ul class="minitoc">
 <li>
-<a href="related.html">Related links</a>
+<a href="#Enabling+metadata">Enabling metadata</a>
 </li>
-    
 <li>
-<a class="external" href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a>
+<a href="#Using+metadata">Using metadata</a>
+</li>
+<li>
+<a href="#Sample+metadata+code">Sample metadata code</a>
 </li>
-  
 </ul>
 </li>
+<li>
+<a href="#Example+Application">Example Application</a>
+<ul class="minitoc">
+<li>
+<a href="#Address+Book">Address Book</a>
+</li>
+</ul>
+</li>
+<li>
+<a href="#Experimental+Features">Experimental Features</a>
+</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">
-                &nbsp;
-                
-                </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">
-                &nbsp;
-                
-                </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 colspan="2" align="left" width="100%">
-<div class="content">
-<table class="title" summary="">
-<tr>
-<td valign="middle">
-<h1>Xindice 1.1 Developer Guide</h1>
-</td><script language="Javascript" type="text/javascript">
-function printit() {
-  if (window.print) {
-    window.focus();
-    window.print();
-  }
-}
-</script><script language="Javascript" type="text/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="guide-developer.pdf"><img alt="PDF" src="skin/images/pdfdoc.gif" class="skin"><br>
-        PDF</a></td>
-</tr>
-</table>
     
-<div class="frame note">
+<div class="note">
 <div class="label">Note</div>
 <div class="content">
       If you notice incorrectness in this documentation, please
@@ -305,11 +365,10 @@
 </div>
     
 <a name="N10025"></a><a name="Introduction+to+Programming+Xindice"></a>
-<h3>Introduction to Programming Xindice</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Introduction to Programming Xindice</h2>
+<div class="section">
 <a name="N1002B"></a><a name="Accessing+the+Server"></a>
-<h4>Accessing the Server</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Accessing the Server</h3>
 <p>
           The Xindice server can be accessed either programmatically through
           the server's APIs, or from the command line using the provided
@@ -318,8 +377,7 @@
           refer to the <a href="guide-user.html">Xindice Users Guide</a>.
         </p>
 <a name="N10038"></a><a name="API%27s"></a>
-<h5>API's</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>API's</h4>
 <p>
             Xindice currently offers three layers of APIs that can be used to
             develop applications.
@@ -355,17 +413,16 @@
             </li>
           
 </ul>
-</div>
 <p>
           The most common API for end user applications is the XML:DB XML
           Database API that was developed by the
-          <a class="external" href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a>.
+          <a href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a>.
           This API is a vendor neutral API intended to make it possible to build
           applications that will work with more then one XML database
           without too much difficulty. This is similar to the capabilities
           provided by JDBC for relational databases. More information about this
           API can be found on the XML:DB Initiative web site,
-          <a class="external" href="http://xmldb-org.sourceforge.net/">http://xmldb-org.sourceforge.net</a>. Most
+          <a href="http://xmldb-org.sourceforge.net/">http://xmldb-org.sourceforge.net</a>. Most
           programming examples in this manual will use the XML:DB API. The
           Xindice implementation of the API is a Core Level 1 implementation.
         </p>
@@ -384,13 +441,11 @@
 <p>
           The final API for Xindice is the Core Server API.
         </p>
-</div>
 <a name="N10066"></a><a name="Introducing+the+XML%3ADB+XML+Database+API"></a>
-<h4>Introducing the XML:DB XML Database API</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Introducing the XML:DB XML Database API</h3>
 <p>
           XML:DB API is being developed by the
-          <a class="external" href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a> to
+          <a href="http://xmldb-org.sourceforge.net/">XML:DB Initiative</a> to
           facilitate the development of applications that function with
           minimal change on more then one XML database. This is roughly
           equivalent to the functionality provided by JDBC or ODBC for
@@ -484,10 +539,8 @@
           for all the command line tools can be found in
           <span class="codefrag">xindice/java/src/org/apache/xindice/tools/command</span>.
         </p>
-</div>
 <a name="N100B3"></a><a name="Setting+up+Your+Build+Environment"></a>
-<h4>Setting up Your Build Environment</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Setting up Your Build Environment</h3>
 <p>
           Before you can build applications for Xindice you need to make sure you
           have your build environment properly setup. This mainly consists of
@@ -545,10 +598,8 @@
           </li>
         
 </ul>
-</div>
 <a name="N10105"></a><a name="Preparing+the+Server+For+the+Examples"></a>
-<h4>Preparing the Server For the Examples</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Preparing the Server For the Examples</h3>
 <p>
           Before we get to some example code, we need to do a little work to setup the
           server. Don't worry nothing hard.
@@ -586,13 +637,10 @@
 <p>
           That wasn't so bad and now we're set to look at some example code.
         </p>
-</div>
 <a name="N1012D"></a><a name="Diving+in+With+an+Example+Program"></a>
-<h4>Diving in With an Example Program</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Diving in With an Example Program</h3>
 <a name="N10133"></a><a name="Simple+XML%3ADB+Example+Program"></a>
-<h5>Simple XML:DB Example Program</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Simple XML:DB Example Program</h4>
 <p>
             This example simply executes an XPath query against a
             collection, retrieves the results as text and prints them out.
@@ -642,7 +690,6 @@
 
 }
           </pre>
-</div>
 <p>
           Before diving into the gory detail of what this program is doing, let's
           run it and see what we get back.
@@ -835,10 +882,8 @@
           close on the collection will result in a
           resource leak within the server.
         </p>
-</div>
 <a name="N101E1"></a><a name="Accessing+Xindice+Remotely"></a>
-<h4>Accessing Xindice Remotely</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Accessing Xindice Remotely</h3>
 <p>
           By default Xindice assumes that the client and server are running on
           the same machine, and the server is running on port 8888. In most
@@ -866,11 +911,10 @@
           right after its creation.
         </p>
 </div>
-</div>
     
 <a name="N10204"></a><a name="Managing+Documents"></a>
-<h3>Managing Documents</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Managing Documents</h2>
+<div class="section">
 <p>
         In this chapter we'll look at using the XML:DB API to manage documents
         within the Xindice server. As part of this we'll look at some sample code
@@ -888,8 +932,7 @@
         however Xindice does not implement anything beyond XMLResource.
       </p>
 <a name="N10210"></a><a name="Creating+a+Collection"></a>
-<h4>Creating a Collection</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Creating a Collection</h3>
 <p>
           Before we can work with any data in the database we need to create
           a collection to hold our data.
@@ -908,8 +951,7 @@
           collection.
         </p>
 <a name="N10225"></a><a name="Creating+a+Collection-N10225"></a>
-<h5>Creating a Collection</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Creating a Collection</h4>
 <pre class="code">
 package org.apache.xindice.examples;
 
@@ -963,7 +1005,6 @@
 }
 }
           </pre>
-</div>
 <p>
           With this example you can see a basic example of how to create the
           <span class="codefrag">CollectionManager</span> service and use it to create
@@ -982,10 +1023,8 @@
           and the source code for the command line tools. Future versions of
           this documentation will cover this area in more detail.
         </p>
-</div>
 <a name="N1023D"></a><a name="Working+with+Documents"></a>
-<h4>Working with Documents</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Working with Documents</h3>
 <p>
           Now that we have a collection to store our data, we need to add
           some data to it. We could use the command line tools
@@ -1000,8 +1039,7 @@
           Each address book entry is stored in a seperate XML file.
         </p>
 <a name="N10249"></a><a name="Example+Document"></a>
-<h5>Example Document</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Example Document</h4>
 <pre class="code">
   &lt;person&gt;
     &lt;fname&gt;John&lt;/fname&gt;
@@ -1014,14 +1052,12 @@
     &lt;address type="work"&gt;9967 W. Shrimp Ave.&lt;/address&gt;
   &lt;/person&gt;
           </pre>
-</div>
 <p>
           If we store this example XML into a file we can then load it into
           our addressbook collection using a simple program.
         </p>
 <a name="N10257"></a><a name="Adding+an+XML+File+to+the+Database"></a>
-<h5>Adding an XML File to the Database</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Adding an XML File to the Database</h4>
 <pre class="code">
 package org.apache.xindice.examples;
 
@@ -1075,7 +1111,6 @@
 }
 }
           </pre>
-</div>
 <p>
           Much of this program is similar to what we've already seen in our
           other XML:DB programs. Really the only difference is the code to add
@@ -1108,8 +1143,7 @@
           collection from which it was originally created.
         </p>
 <a name="N10278"></a><a name="Retrieving+an+XML+Document+from+the+Database"></a>
-<h5>Retrieving an XML Document from the Database</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Retrieving an XML Document from the Database</h4>
 <pre class="code">
 package org.apache.xindice.examples;
 
@@ -1151,10 +1185,8 @@
 }
 }
           </pre>
-</div>
 <a name="N10283"></a><a name="Deleting+an+XML+Document+from+the+Database"></a>
-<h5>Deleting an XML Document from the Database</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Deleting an XML Document from the Database</h4>
 <pre class="code">
 package org.apache.xindice.examples;
 
@@ -1192,15 +1224,12 @@
 }
           </pre>
 </div>
-</div>
-</div>
     
 <a name="N10290"></a><a name="Using+XPath+to+Query+the+Database"></a>
-<h3>Using XPath to Query the Database</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Using XPath to Query the Database</h2>
+<div class="section">
 <a name="N10296"></a><a name="Introduction"></a>
-<h4>Introduction</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Introduction</h3>
 <p>
           Xindice currently supports XPath as a query language. In many
           applications XPath is only applied at the document level but in
@@ -1211,10 +1240,8 @@
           The Xindice server also support the creation of indexes on
           particular XPaths to speed up commonly used XPath queries.
         </p>
-</div>
 <a name="N102A0"></a><a name="Using+the+XML%3ADB+Java+API"></a>
-<h4>Using the XML:DB Java API</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Using the XML:DB Java API</h3>
 <p>
           The XML:DB API defines operations for searching single documents as
           well as collections of XML documents using XPath. These operations
@@ -1223,8 +1250,7 @@
           an entire collection you use the <span class="codefrag">query()</span> method.
         </p>
 <a name="N102AF"></a><a name="Querying+with+XPath"></a>
-<h5>Querying with XPath</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Querying with XPath</h4>
 <p>
             This example simply executes an XPath query against a
             collection, retrieves the results as text and prints them out.
@@ -1274,17 +1300,14 @@
 }
 }
           </pre>
-</div>
 <p>TODO: cover namespace support</p>
 </div>
-</div>
     
 <a name="N102C5"></a><a name="Using+XUpdate+to+Modify+the+Database"></a>
-<h3>Using XUpdate to Modify the Database</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Using XUpdate to Modify the Database</h2>
+<div class="section">
 <a name="N102CB"></a><a name="Introduction-N102CB"></a>
-<h4>Introduction</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Introduction</h3>
 <p>
           XUpdate is a specification under development by the XML:DB Initiative
           to enable simpler updating of XML documents. It is useful within the
@@ -1292,13 +1315,13 @@
           for general XML applications. XUpdate gives you a declarative method
           to insert nodes, remove nodes, and change nodes within an XML
           document. The syntax is specified in the
-          <a class="external" href="http://xmldb-org.sourceforge.net/xupdate/xupdate-wd.html">
+          <a href="http://xmldb-org.sourceforge.net/xupdate/xupdate-wd.html">
           XUpdate working draft</a> available on the XML:DB Initiative website.
         </p>
 <p>
           The XUpdate implementation in Xindice is based around the
           Lexus XUpdate implementation that was developed by the
-          <a class="external" href="http://www.infozone-group.org/">Infozone Group</a>.
+          <a href="http://www.infozone-group.org/">Infozone Group</a>.
         </p>
 <p>
           The general model around XUpdate is to use an
@@ -1313,8 +1336,7 @@
           applying a change to the selected nodes.
         </p>
 <a name="N102E8"></a><a name="Basic+XUpdate+Insert+Command"></a>
-<h5>Basic XUpdate Insert Command</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Basic XUpdate Insert Command</h4>
 <pre class="code">
 &lt;xupdate:modifications version="1.0"
   xmlns:xupdate="http://www.xmldb.org/xupdate"&gt;
@@ -1331,11 +1353,8 @@
 &lt;/xupdate:insert-after&gt;
 &lt;/xupdate:modifications&gt;
           </pre>
-</div>
-</div>
 <a name="N102F4"></a><a name="XUpdate+Commands"></a>
-<h4>XUpdate Commands</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">XUpdate Commands</h3>
 <ul>
           
 <li>
@@ -1374,10 +1393,8 @@
           </li>
         
 </ul>
-</div>
 <a name="N10328"></a><a name="XUpdate+Node+Construction"></a>
-<h4>XUpdate Node Construction</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">XUpdate Node Construction</h3>
 <ul>
           
 <li>
@@ -1409,10 +1426,8 @@
           </li>
         
 </ul>
-</div>
 <a name="N10353"></a><a name="Using+the+XML%3ADB+API+for+XUpdate"></a>
-<h4>Using the XML:DB API for XUpdate</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Using the XML:DB API for XUpdate</h3>
 <p>
            The XML:DB API provides an XUpdateQueryService to enable executing
            XUpdate commands against single documents or collections of
@@ -1430,8 +1445,7 @@
          
 </p>
 <a name="N1036B"></a><a name="Using+XUpdate+to+modify+the+database"></a>
-<h5>Using XUpdate to modify the database</h5>
-<div style="margin-left: 0 ; border: 2px">
+<h4>Using XUpdate to modify the database</h4>
 <pre class="code">
 import org.xmldb.api.base.*;
 import org.xmldb.api.modules.*;
@@ -1477,12 +1491,10 @@
 }
            </pre>
 </div>
-</div>
-</div>
      
 <a name="N10378"></a><a name="Storing+metadata"></a>
-<h3>Storing metadata</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Storing metadata</h2>
+<div class="section">
 <p>
          Xindice allows a developer to store metadata that is associated with
          any collection or document. Metadata is data that is associated with
@@ -1535,8 +1547,7 @@
          XML.
        </p>
 <a name="N10391"></a><a name="Enabling+metadata"></a>
-<h4>Enabling metadata</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Enabling metadata</h3>
 <p>
            To turn on metadata storage in Xindice, edit the system.xml configuration
            file and set the "use-metadata" attribute of the root-collection element to
@@ -1550,7 +1561,7 @@
   Dec 30, 2002 10:21:51 AM org.apache.xindice.core.Database setConfig
   INFO: Meta information initialized
          </pre>
-<div class="frame note">
+<div class="note">
 <div class="label">Note</div>
 <div class="content">
            This example is from the output of Tomcat.  The output from other
@@ -1558,10 +1569,8 @@
            initialized") should be identical.
          </div>
 </div>
-</div>
 <a name="N103A5"></a><a name="Using+metadata"></a>
-<h4>Using metadata</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Using metadata</h3>
 <p>
            How you use metadata is really up to you, the application developer.
            There are many potential uses depending on your application.  One
@@ -1570,10 +1579,8 @@
            controlled by a finite state machine, but each document's current
            state would be stored in the metadata associated with it.
          </p>
-</div>
 <a name="N103AF"></a><a name="Sample+metadata+code"></a>
-<h4>Sample metadata code</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Sample metadata code</h3>
 <p>
            Currently the metadata accessors are implemented as non-standard meta
            information service which can be obtained via XML:DB API (name
@@ -1652,25 +1659,23 @@
 ## collection's revised metadata.
 print Dumper($result);
          </pre>
-</div>
-<div class="frame fixme">
+<div class="fixme">
 <div class="label">Fixme (dviner)</div>
 <div class="content">
          Make this example java instead of perl.
        </div>
 </div>
-<div class="frame note">
+<div class="note">
 <div class="label">Note</div>
 <div class="content">Metadata is currently only exposed in the XML-RPC accessor.</div>
 </div>
 </div>
     
 <a name="N103C8"></a><a name="Example+Application"></a>
-<h3>Example Application</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Example Application</h2>
+<div class="section">
 <a name="N103CE"></a><a name="Address+Book"></a>
-<h4>Address Book</h4>
-<div style="margin-left: 0 ; border: 2px">
+<h3 class="h4">Address Book</h3>
 <p>
           The address book example is a simple servlet based application
           constructued using Xindice. For more information on this example look
@@ -1680,12 +1685,11 @@
           TODO: Add more detail about building servlet applications.
         </p>
 </div>
-</div>
 
     
 <a name="N103DF"></a><a name="Experimental+Features"></a>
-<h3>Experimental Features</h3>
-<div style="margin-left: 0 ; border: 2px">
+<h2 class="h3">Experimental Features</h2>
+<div class="section">
 <p>
         There are a couple of features in Xindice that are definitely
         experimental. These features can be interesing to explore to see some
@@ -1694,36 +1698,30 @@
       </p>
 </div>
   
-<div class="attribution">by&nbsp;Kimbro Staken,&nbsp;Dave Viner; <span class="version">
-          version 193056</span>
+<p align="right">
+<font size="-2">by&nbsp;Kimbro Staken,&nbsp;Dave Viner</font>
+</p>
 </div>
+<!--+
+    |end content
+    +-->
+<div class="clearboth">&nbsp;</div>
+</div>
+<div id="footer">
+<!--+
+    |start bottomstrip
+    +-->
+<div class="lastmodified">
+<script type="text/javascript"><!--
+document.write("Last Published: " + document.lastModified);
+//  --></script>
+</div>
+<div class="copyright">
+        Copyright &copy;
+         2001-2007 The Apache Software Foundation.</div>
+<!--+
+    |end bottomstrip
+    +-->
 </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></td>
-</tr>
-<tr>
-<td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">
-              Copyright &copy; 2001-2003&nbsp;
-              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>

Modified: xml/site/targets/xindice/guide-developer.pdf
URL: http://svn.apache.org/viewvc/xml/site/targets/xindice/guide-developer.pdf?view=diff&rev=511190&r1=511189&r2=511190
==============================================================================
Binary files - no diff available.



---------------------------------------------------------------------
To unsubscribe, e-mail: general-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: general-cvs-help@xml.apache.org