// but we can cope with any java.util.Comparator
private boolean isDefault = false;
public void prepareAttributes() throws TransformerConfigurationException {
AttributeCollection atts = getAttributeList();
String nameAtt = null; // collation name for use in expressions
String classAtt = null; // Java class name of Collator
String strengthAtt = null; // primary, secondary, tertiary, or identical
String decompositionAtt = null; // canonical, full, or none
String langAtt = null; // identifies a locale: country+language
String rulesAtt = null; // collation rules as used in RuleBasedCollator
String defaultAtt = null;
for (int a=0; a<atts.getLength(); a++) {
int nc = atts.getNameCode(a);
String f = getNamePool().getClarkName(nc);
if (f==StandardNames.NAME) {
nameAtt = atts.getValue(a).trim();
} else if (f==StandardNames.CLASS) {
classAtt = atts.getValue(a).trim();
} else if (f==StandardNames.STRENGTH) {
strengthAtt = atts.getValue(a).trim();
} else if (f==StandardNames.DECOMPOSITION) {
decompositionAtt = atts.getValue(a).trim();
} else if (f==StandardNames.LANG) {
langAtt = atts.getValue(a).trim();
} else if (f==StandardNames.RULES) {
rulesAtt = atts.getValue(a).trim();
} else if (f==StandardNames.DEFAULT) {
defaultAtt = atts.getValue(a).trim();
} else {
checkUnknownAttribute(nc);
}
}