find-articles

Aaron Straup Cope

This work is licensed under the Creative Commons Attribution-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Revision History
Revision 1.02004-10-23

Initial release.

Abstract

This is an XSLT 1.0 stylesheet for pruning a collection of (DocBook) articles by ID, title or author.


Table of Contents

-

Usage

Example 1. 

 # prune list of articles by author

 $> xsltproc -o ~/tmp/kraus.xml \
             --stringparam author 'Clifford Krauss' \
             ./find-articles.xsl \
             /nyt/2004/10/03.xml

 # generate XSL-FO document

 $> xsltproc -o ~/tmp/krauss.fo \
             /path/to/docbook/fo.xsl \
             ~/tmp/krauss.xml

 # generate PDF file

 $> fop -fo  ~/tmp/krauss.fo 
        -pdf ~/tmp/krauss.pdf

Consult the documentation for your favourite XSLT processor. This template accepts the following parameters, in order of precedence :

  • id. String. Typically a URL, this is the unique ID associated with an article.

  • title. String. The title assigned to an article in its articleinfo section.

  • author. String. The first name and surname, separated by a single space, of an author assigned to an article in its articlinfo /authorgroup /author section(s).

Requirements

Nothing special.