defaultOutput(searchPath, formatHint, localeHint)
object-set defaultOutput(searchPath, formatHint, localeHint)
This implementation of the defaultOutput
function is similar to the defaultOutput(searchPath)
function, except that it accepts additional parameters. Use formatHint to specify your preferred format and localeHint to specify your preferred locale. These settings will override the user preferences when the output
objects are selected. If you specify an empty hint (""), the user preferences are used.
For example, you can use any of the following:
defaultOutput(searchPath, formatHint, localeHint)
defaultOutput(searchPath, "", localeHint)
defaultOutput(searchPath, formatHint, "")
defaultOutput(searchPath, "", "")
If you specify an empty hint for both formatHint and localeHint, the function works exactly the same way as the defaultOutput
(searchPath) function.
For example, using the format PDF and the locale en-us, the following search path selects the report
object named Customer Invoice and returns the appropriate output
object:
defaultOutput(/content/package/folder[@name='Sample Reports']/report[@name='Customer Invoice'], "PDF", "en-us")