示例#1
0
 /**
  * {@inheritDoc} <br>
  * XSL Content Model: empty
  */
 @Override
 protected void validateChildNode(final Locator loc, final String nsURI, final String localName)
     throws ValidationException {
   if (FO_URI.equals(nsURI)) {
     invalidChildError(loc, nsURI, localName);
   }
 }
示例#2
0
 /**
  * {@inheritDoc} <br>
  * XSL Content Model: marker* (list-item)+
  */
 @Override
 protected void validateChildNode(final Locator loc, final String nsURI, final String localName)
     throws ValidationException {
   if (FO_URI.equals(nsURI)) {
     if (localName.equals("marker")) {
       if (this.hasListItem) {
         nodesOutOfOrderError(loc, "fo:marker", "fo:list-item");
       }
     } else if (localName.equals("list-item")) {
       this.hasListItem = true;
     } else {
       invalidChildError(loc, nsURI, localName);
     }
   }
 }
示例#3
0
 /**
  * {@inheritDoc} <br>
  * XSL Content Model: marker* (list-item-label,list-item-body)
  */
 protected void validateChildNode(Locator loc, String nsURI, String localName)
     throws ValidationException {
   if (FO_URI.equals(nsURI)) {
     if (localName.equals("marker")) {
       if (label != null) {
         nodesOutOfOrderError(loc, "fo:marker", "fo:list-item-label");
       }
     } else if (localName.equals("list-item-label")) {
       if (label != null) {
         tooManyNodesError(loc, "fo:list-item-label");
       }
     } else if (localName.equals("list-item-body")) {
       if (label == null) {
         nodesOutOfOrderError(loc, "fo:list-item-label", "fo:list-item-body");
       } else if (body != null) {
         tooManyNodesError(loc, "fo:list-item-body");
       }
     } else {
       invalidChildError(loc, nsURI, localName);
     }
   }
 }