Selects the first of a set of Resources (usually files) that exists in the context.

The 'test' expression is interpreted as a context-rooted ('/' = context) path, resolved by the servlet container, not a Source.

A parameter, <map:parameter src="prefix" value="/"/>

may be supplied to the selector instance. This prefix is prepended to all test expressions before evaluation. The default prefix is '/', meaning that all expressions are context root-relative, unless explicitly overridden.
For example, we could define a ResourceExistsSelector with:
{{{ <map:selector name="resource-exists"


And use it to build a PDF from XSL:FO or a higher-level XML format with:
{{{<map:match pattern="**.pdf">

}}}

ResourceExistsSelector (last edited 2009-09-20 23:40:46 by localhost)