[ You are here: XTF -> Programming -> Pass-Through Configuration Tags ]

Pass-Through Configuration Tags

XTF's configuration files (such as textIndexer.conf, crossQuery.conf, etc.) are of course used to control operation of the various tools. But you can also use these files to configure your own stylesheets. Essentially, you can add any tag you like to the configuration file, and then you can access it later in your stylesheets. In this way, you can centralize all the parameters you might wish to control in one place.

For instance, let's say we add the following to crossQuery.conf:
<fruit-color value="purple"/>
Now the crossQuery servlet will make the new parameter fruit-color.value available to every stylesheet it runs, including the Query Parser, Result Formatter, and Error Generator stylesheets. A stylesheet can access it like this:
<xsl:param name="fruit-color.value"/>
Note that the name for the parameter consists of both the element name and the attribute name.