dfURI = env.getURIForPrefix(parts[0]);
} catch (QNameException e) {
throw new StaticError("Invalid decimal format name. " + e.getMessage());
}
DecimalFormatManager dfm = ((ExpressionContext)env).getXSLStylesheet().getDecimalFormatManager();
requireFixup = true;
dfm.registerUsage(dfURI, dfLocalName, this);
// this causes a callback to the fixup() method, either now, or later if it's a forwards reference
} else {
// we need to save the namespace context
nsContext = env.getNamespaceResolver();
}
} else {
// two arguments only: it uses the default decimal format
if (env instanceof ExpressionContext) {
// this is XSLT
DecimalFormatManager dfm = ((ExpressionContext)env).getXSLStylesheet().getDecimalFormatManager();
dfm.registerUsage("", "", this);
// Note: if using the "default default", there will be no fixup call.
} else {
// using saxon:decimal-format in some other environment
}
}