private StringCollator collator;
public void prepareAttributes() throws XPathException {
AttributeCollection atts = getAttributeList();
String nameAtt = null; // collation name for use in expressions
String defaultAtt = null;
Properties props = new Properties();
for (int a=0; a<atts.getLength(); a++) {
int nc = atts.getNameCode(a);
String f = getNamePool().getClarkName(nc);
if (f==StandardNames.NAME) {
nameAtt = Whitespace.trim(atts.getValue(a));
} else if (f==StandardNames.CLASS) {
props.setProperty("class", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.STRENGTH) {
props.setProperty("strength", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.DECOMPOSITION) {
props.setProperty("decomposition", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.LANG) {
props.setProperty("lang", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.RULES) {
props.setProperty("rules", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.CASE_ORDER) {
props.setProperty("case-order", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.ALPHANUMERIC) {
props.setProperty("alphanumeric", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.IGNORE_CASE) {
props.setProperty("ignore-case", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.IGNORE_MODIFIERS) {
props.setProperty("ignore-modifiers", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.IGNORE_SYMBOLS) {
props.setProperty("ignore-modifiers", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.IGNORE_WIDTH) {
props.setProperty("ignore-width", Whitespace.trim(atts.getValue(a)) );
} else if (f==StandardNames.DEFAULT) {
defaultAtt = Whitespace.trim(atts.getValue(a)) ;
} else {
checkUnknownAttribute(nc);
}
}