RegexXMLReader Documentation

An Implementation of the XMLReader Interface

Elizabeth Barham

Copyright (c) 2003 Elizabeth Barham

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the appendix entitled "GNU Free Documentation License".

This product includes software developed by the Apache Software Foundation (http://www.apache.org/).

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

$Revision: 1.12 $ - $Date: 2003/09/20 03:29:32 $


To Jesus Christ: You were there when I needed You.

Table of Contents
1. Introduction
1.1. Purpose
1.2. History
1.3. Rationale
2. The RegexXMLReader Stylesheet
2.1. Introduction
2.2. Directives
2.2.1. for-each
2.2.2. replace
2.2.3. group
2.2.4. match-string
2.2.5. text
2.2.6. warning
2.2.7. error
2.2.8. otherwise
2.2.9. attribute
2.2.10. match
2.2.11. split
2.2.12. call-template
2.2.13. wrapper
2.2.14. pull-out-following-split
2.3. Embedded Attributes
2.3.1. match
3. Using RegexXMLReader from within an Application
4. Using RegexXMLReader from the Command-Line
5. Tutorial
5.1. A Simple CSV Example
A. GNU Free Documentation License
A.1. PREAMBLE
A.2. APPLICABILITY AND DEFINITIONS
A.3. VERBATIM COPYING
A.4. COPYING IN QUANTITY
A.5. MODIFICATIONS
A.6. COMBINING DOCUMENTS
A.7. COLLECTIONS OF DOCUMENTS
A.8. AGGREGATION WITH INDEPENDENT WORKS
A.9. TRANSLATION
A.10. TERMINATION
A.11. FUTURE REVISIONS OF THIS LICENSE
A.12. ADDENDUM: How to use this License for your documents
List of Tables
2-1. for-each Attributes
2-2. replace Attributes
2-3. group Attributes
2-4. attribute Attributes
2-5. match Attributes
2-6. split Attributes
2-7. call-template Attributes
2-8. pull-out-following-split Attributes
List of Examples
2-1. text Example
2-2. warning Example
2-3. error Example
2-4. otherwise Example
2-5. attribute Example
2-6. match Example
2-7. split Example
2-8. call-template Example
2-9. wrapper Example