User Guide

Style Files 139
Style Files
The following style files are required to enable indexing of XML files. Default style
files are installed into in the
cfusion\verity\common\style directory (Windows)
and
opt/coldfusion/verity/common/style directory (Linux and UNIX).
Configuring style files
This section discusses style file configuration used to support XML document
filtering.
style.uni file
To index XML documents, the style.uni must include the following lines:
type: "text/xml"
/format-filter = "flt_xml"
/charset= guess
/def-charset = 8859
Configuring the style.xml file
By default, the XML filter indexes regions of the document delimited by XML tags as
zones, with the zones given the same name as the XML tag. META tags are
automatically indexed as fields unless they are in a suppressed region.
To modify the default behavior, you create a style file named
style.xml. You can
specify field and zone indexing for regions of the document delimited by XML tags
and skip regions of the document delimited by XML tags.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?note: this is a sample comment line?>
<style.xml version="2.6.0">
<?note:
? this following line dictates all xmltags be ignored
? <ignore xmltag="*" />
?>
<?note:
Style File Description
style.uni
Invokes the XML filter for indexing XML documents.
style.xml
Modifies the default behavior of the XML filter. (optional)
style.ufl
Defines custom fields in XML documents. The fields must also be
defined in the
style.xml file.
style.dft
Invokes the Verity universal filter by default so all document types
can be indexed into one collection. You can modify the
style.dft
file to invoke the XML filter instead of the universal filter, as
described below.