Move some private notes in here.
authorMike Taylor <mike@indexdata.com>
Fri, 30 Aug 2002 01:18:40 +0000 (01:18 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 30 Aug 2002 01:18:40 +0000 (01:18 +0000)
doc/examples.xml

index 2735cb2..0341fd5 100644 (file)
@@ -1,5 +1,5 @@
 <chapter id="examples">
 <chapter id="examples">
- <!-- $Id: examples.xml,v 1.3 2002-08-30 01:17:10 mike Exp $ -->
+ <!-- $Id: examples.xml,v 1.4 2002-08-30 01:18:40 mike Exp $ -->
  <title>Example Configurations</title>
 
  <sect1>
  <title>Example Configurations</title>
 
  <sect1>
@@ -161,7 +161,7 @@ zebraidx -t grs.sgml update records
      The master configuration file, <literal>zebra.cfg</literal>,
      which is as short and simple as it can be:
      <screen>
      The master configuration file, <literal>zebra.cfg</literal>,
      which is as short and simple as it can be:
      <screen>
-       # $Header: /home/cvsroot/idis/doc/examples.xml,v 1.3 2002-08-30 01:17:10 mike Exp $
+       # $Header: /home/cvsroot/idis/doc/examples.xml,v 1.4 2002-08-30 01:18:40 mike Exp $
        # Bare-bones master configuration file for Zebra
        profilePath: .:../../tab:../../../yaz/tab
      </screen>
        # Bare-bones master configuration file for Zebra
        profilePath: .:../../tab:../../../yaz/tab
      </screen>
@@ -178,7 +178,7 @@ zebraidx -t grs.sgml update records
      The BIB-1 attribute set configuration file,
      <literal>bib1.att</literal>, which is also as short as possible:
      <screen>
      The BIB-1 attribute set configuration file,
      <literal>bib1.att</literal>, which is also as short as possible:
      <screen>
-       # $Header: /home/cvsroot/idis/doc/examples.xml,v 1.3 2002-08-30 01:17:10 mike Exp $
+       # $Header: /home/cvsroot/idis/doc/examples.xml,v 1.4 2002-08-30 01:18:40 mike Exp $
        # Bare-bones BIB-1 attribute set file for Zebra
        reference Bib-1
      </screen>
        # Bare-bones BIB-1 attribute set file for Zebra
        reference Bib-1
      </screen>
@@ -196,6 +196,32 @@ zebraidx -t grs.sgml update records
    </listitem>
 -->
 
    </listitem>
 -->
 
+<!--
+       The simplest hello-world example could go like this:
+       
+       Index the document
+       
+       <book>
+          <title>The art of motorcycle maintenance</title>
+          <subject scheme="Dewey">zen</subject>
+       </book>
+       
+       And search it like
+       
+       f @attr 1=/book/title motorcycle
+       
+       f @attr 1=/book/subject[@scheme=Dewey] zen
+       
+       If you suddenly decide you want broader interop, you can add
+       an abs file (more or less like this):
+       
+       attset bib1.att
+       tagset tagsetg.tag
+       
+       elm (2,1)       title   title
+       elm (2,21)      subject  subject
+-->
+
  <!-- Keep this comment at the end of the file
  Local variables:
  mode: sgml
  <!-- Keep this comment at the end of the file
  Local variables:
  mode: sgml