public string NumberFormat(IList<XPathItem> value, string formatString,
double lang, string letterValue, string groupingSeparator, double groupingSize)
{
// REVIEW: For each execution of xsl:number new Format() object is created.
// Then there is no AVTs we can build this object once and reuse it later to improve performance.
NumberFormatter formatter = new NumberFormatter(formatString, (int)lang, letterValue, groupingSeparator, (int)groupingSize);
return formatter.FormatSequence(value);
}