In LexicalUnitImpl, you have:
public static LexicalUnit createAttr(LexicalUnit prev, LexicalUnit params) {
return new LexicalUnitImpl(prev, LexicalUnit.SAC_ATTR, "attr", params);
}
So "attr" is handeled like a function with parameters. But "attr" is a lexical unit with a string value. Please look at the javadoc of LexicalUnit#getStringValue().
I'm reporing this agains: $Id: LexicalUnitImpl.java,v 1.3 2008/03/26 02:08:55 sdanig Exp $
Anonymous
The method is completly removed now. There is a new one that behaves right.
Thnaks for reporting.