In org.apache.xalan.xsltc.compiler.AttributeSet
is the following method. _name is a QName, who's equals just checks for
the objects being the same (using ==). Since EMPTYSTRING is a String, and _name
is a QName, then
(_name.equals(EMPTYSTRING)))
will always be false.
public void parseContents(Parser parser) {
// Get this attribute set's name
final String name = getAttribute("name");
if (!XMLChar.isValidQName(name)) {
ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name,
this);
parser.reportError(Constants.ERROR, err);
}
_name = parser.getQNameIgnoreDefaultNs(name);
if ((_name == null) || (_name.equals(EMPTYSTRING))) {
ErrorMsg msg = new ErrorMsg(ErrorMsg.UNNAMED_ATTRIBSET_ERR, this);
parser.reportError(Constants.ERROR, msg);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]