String digit;
String patternSeparator;
public void prepareAttributes() throws TransformerConfigurationException {
AttributeCollection atts = getAttributeList();
for (int a=0; a<atts.getLength(); a++) {
int nc = atts.getNameCode(a);
String f = getNamePool().getClarkName(nc);
if (f==StandardNames.NAME) {
name = atts.getValue(a).trim();
} else if (f==StandardNames.DECIMAL_SEPARATOR) {
decimalSeparator = atts.getValue(a);
} else if (f==StandardNames.GROUPING_SEPARATOR) {
groupingSeparator = atts.getValue(a);
} else if (f==StandardNames.INFINITY) {
infinity = atts.getValue(a);
} else if (f==StandardNames.MINUS_SIGN) {
minusSign = atts.getValue(a);
} else if (f==StandardNames.NAN) {
NaN = atts.getValue(a);
} else if (f==StandardNames.PERCENT) {
percent = atts.getValue(a);
} else if (f==StandardNames.PER_MILLE) {
perMille = atts.getValue(a);
} else if (f==StandardNames.ZERO_DIGIT) {
zeroDigit = atts.getValue(a);
} else if (f==StandardNames.DIGIT) {
digit = atts.getValue(a);
} else if (f==StandardNames.PATTERN_SEPARATOR) {
patternSeparator = atts.getValue(a);
} else {
checkUnknownAttribute(nc);
}
}
}