jaxp/src/share/classes/com/sun/org/apache/xerces/internal/xinclude/XIncludeHandler.java
equal
deleted
inserted
replaced
941 boolean success = this.handleIncludeElement(attributes); |
941 boolean success = this.handleIncludeElement(attributes); |
942 if (success) { |
942 if (success) { |
943 setState(STATE_IGNORE); |
943 setState(STATE_IGNORE); |
944 } |
944 } |
945 else { |
945 else { |
946 reportFatalError("NoFallback", |
946 reportFatalError("NoFallback"); |
947 new Object[] { attributes.getValue(null, "href") }); |
|
948 } |
947 } |
949 } |
948 } |
950 else if (isFallbackElement(element)) { |
949 else if (isFallbackElement(element)) { |
951 this.handleFallbackElement(); |
950 this.handleFallbackElement(); |
952 } |
951 } |
1000 if (isIncludeElement(element)) { |
999 if (isIncludeElement(element)) { |
1001 // if we're ending an include element, and we were expecting a fallback |
1000 // if we're ending an include element, and we were expecting a fallback |
1002 // we check to see if the children of this include element contained a fallback |
1001 // we check to see if the children of this include element contained a fallback |
1003 if (getState() == STATE_EXPECT_FALLBACK |
1002 if (getState() == STATE_EXPECT_FALLBACK |
1004 && !getSawFallback(fDepth + 1)) { |
1003 && !getSawFallback(fDepth + 1)) { |
1005 reportFatalError("NoFallback", |
1004 reportFatalError("NoFallback"); |
1006 new Object[] { "unknown" }); |
|
1007 } |
1005 } |
1008 } |
1006 } |
1009 if (isFallbackElement(element)) { |
1007 if (isFallbackElement(element)) { |
1010 // the state would have been set to normal processing if we were expecting the fallback element |
1008 // the state would have been set to normal processing if we were expecting the fallback element |
1011 // now that we're done processing it, we should ignore all the other children of the include element |
1009 // now that we're done processing it, we should ignore all the other children of the include element |