X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fexamples.xml;h=4805c29069a95457b585d1649fe18073e975a485;hb=aa36decbdd330b8858eac641056bf607a8eea8a1;hp=ab8b64a51dfc740f0787ca09602e32c78ac3abc8;hpb=25a37c9be836f891281688788a7a1f967ea2b2cb;p=idzebra-moved-to-github.git diff --git a/doc/examples.xml b/doc/examples.xml index ab8b64a..4805c29 100644 --- a/doc/examples.xml +++ b/doc/examples.xml @@ -1,5 +1,5 @@ - + Example Configurations @@ -10,7 +10,7 @@ driven by a master configuration file, which may refer to other subsidiary configuration files. By default, they try to use zebra.cfg in the working directory as the - master file; but this can be changed using the -t + master file; but this can be changed using the -c option to specify an alternative master configuration file. @@ -76,7 +76,7 @@ minimal file that just tells zebraidx where to find the default indexing rules, and how to parse the records: - profilePath: .:../../tab:../../../yaz/tab + profilePath: .:../../tab recordType: grs.sgml @@ -147,7 +147,9 @@ The problem with the previous example is that you need to know the structure of the documents in order to find them. For example, when we wanted to know the genera for which Matt Wedel is an - author, we had to formulate a complex XPath + author + (Sauroposeidon proteles), + we had to formulate a complex XPath 1=/GENUS/SPECIES/AUTHOR/@name which embodies the knowledge that author names are specified in the name attribute of the @@ -216,6 +218,12 @@ want to support the BIB-1 attribute set. Then we need to tell it which elements of its record pertain to access point 1003. + + We need to create an Abstract Syntax + file named after the document element of the records we're + working with, plus a .abs suffix - in this case, + GENUS.abs - as follows: + @@ -232,39 +240,6 @@ - - - -