Given marked up xml and a filter, this style sheet will produce result xml that matches the filter. The filter is called the "candidate" and the marked up xml the "reference" below.
The filter language lets you express "and" (among classes) "or" (among options within a given class), and includes a rudimentary subclassing mechanism (available for a given option). The filters are strings with reserved character such as space, "|" and "-".
A filter applies unless it contains the string "false".
It comes with a Unit test, to allow easier debugging; the test is obtained by running the style sheet against any XML, and the output is given through xsl:message
.
Copyright © 2005 World Wide Web Consortium, (M.I.T., ERCIM, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/. W3C software licensing rules apply.
Ian Jacobs - $Id: 13-filter-utils.xsl,v 1.41 2007/11/12 17:22:10 ijacobs Exp $