PhoenixmlDb.XSLT
TransformParameterOptions
Reads the parameter-bearing options of fn:transform — stylesheet-params, template-params and tunnel-params.
#TransformParameterOptions
Namespace: PhoenixmlDb.Xslt
Reads the parameter-bearing options of
fn:transform
—
stylesheet-params
,
template-params
and
tunnel-params
.
Lives in one place and is called from BOTH fn:transform implementations —
XsltTransformProvider
for XQuery callers and
XsltTransformFunction
for XSLT ones. Nine defects in a single week were "one of that pair had a fix its twin lacked", so a second copy of this would be a tenth waiting to happen.
The values are NOT string-valued. static-params are strings because they are consumed at compile time, and both call sites do that correctly — but these three carry real XDM values, and flattening a node or a map into its string value here would lose it silently.
#Methods
#Read(Collections.Generic.IDictionary<Object,Object>,String)
Extracts one parameter option as QName-keyed values, or null when the option is absent. QName keys are canonicalized onto the ids the stylesheet parser uses; anything else is taken as a no-namespace local name, matching how the neighbouring options treat theirs.