exist
exist copied to clipboard
[feature] Make active configuration available to xquery.
Is your feature request related to a problem? Please describe.
expath package authors might wish to modify what happens during installation based on the settings of an instances conf.xml. Memory, Enabled indexes, xsl transformer class, all come to mind.
Describe the solution you'd like
I'd like there to be an xquery function, e.g. util:conf() that provides an instances conf.xml
Describe alternatives you've considered
trial and error, do an xsl3 transform, if it fails, try xsl2, then xsl1 … Parsing the exist.log for relevant lines.
Good Idea / Bad Idea ?
see #3062
good idea
There are some things in the conf.xml that should not be visible apart to anyone apart from dba so we should probably consider the security implications of how that would be achieved...