Obtained from:
Submitted by:
Reviewed by:
Switched to SAXParseException for duplicate ID's found in document.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198007
13f79535-47bb-0310-9956-
ffa450edef68
* This methods checks that the id isn't already used by another
* fo and sets the id attribute of this object.
*/
- private void setupID() {
+ private void setupID() throws SAXParseException {
Property prop = this.propertyList.get(PR_ID);
if (prop != null) {
String str = prop.getString();
id = str;
idrefs.add(id);
} else {
- getLogger().warn("duplicate id:" + str + " ignored");
+ throw new SAXParseException("Property id \"" + str +
+ "\" previously used; id values must be unique" +
+ " in document.", locator);
}
}
}