* @see org.apache.fop.fo.FONode#endOfNode
*/
protected void endOfNode() throws FOPException {
- if (!blockItemFound) {
- missingChildElementError("marker* (%block;)+");
+ if (!this.blockItemFound) {
+ String contentModel = "marker* (%block;)+";
+ if (getUserAgent().validateStrictly()) {
+ missingChildElementError(contentModel);
+ } else {
+ StringBuffer message = new StringBuffer(
+ errorText(getLocator()));
+ message.append(getName())
+ .append(" is missing child elements. ")
+ .append("Required Content Model: ")
+ .append(contentModel);
+ getLogger().warn(message.toString());
+ }
}
}
public String getId() {
return id;
}
-
+
}