Expression arg2Expr = getArg2();
if (null != arg2Expr)
{
String dfName = arg2Expr.execute(xctxt).str();
QName qname = new QName(dfName, xctxt.getNamespaceContext());
dfs = ss.getDecimalFormatComposed(qname);
if (null == dfs)
{
warn(xctxt, XSLTErrorResources.WG_NO_DECIMALFORMAT_DECLARATION,
new Object[]{ dfName }); //"not found!!!
//formatter = new java.text.DecimalFormat(patternStr);
}
else
{
//formatter = new java.text.DecimalFormat(patternStr, dfs);
formatter = new java.text.DecimalFormat();
formatter.setDecimalFormatSymbols(dfs);
formatter.applyLocalizedPattern(patternStr);
}
}
//else
if (null == formatter)
{
// look for a possible default decimal-format
if (ss.getDecimalFormatCount() > 0)
dfs = ss.getDecimalFormatComposed(new QName(""));
if (dfs != null)
{
formatter = new java.text.DecimalFormat();