1 /* |
1 /* |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
3 */ |
3 */ |
4 |
4 |
5 /* |
5 /* |
6 * Copyright 2005 The Apache Software Foundation. |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
|
7 * contributor license agreements. See the NOTICE file distributed with |
|
8 * this work for additional information regarding copyright ownership. |
|
9 * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
10 * (the "License"); you may not use this file except in compliance with |
|
11 * the License. You may obtain a copy of the License at |
7 * |
12 * |
8 * Licensed under the Apache License, Version 2.0 (the "License"); |
13 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * you may not use this file except in compliance with the License. |
|
10 * You may obtain a copy of the License at |
|
11 * |
|
12 * http://www.apache.org/licenses/LICENSE-2.0 |
|
13 * |
14 * |
14 * Unless required by applicable law or agreed to in writing, software |
15 * Unless required by applicable law or agreed to in writing, software |
15 * distributed under the License is distributed on an "AS IS" BASIS, |
16 * distributed under the License is distributed on an "AS IS" BASIS, |
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * See the License for the specific language governing permissions and |
18 * See the License for the specific language governing permissions and |
18 * limitations under the License. |
19 * limitations under the License. |
19 */ |
20 */ |
20 |
21 |
21 package com.sun.org.apache.xerces.internal.impl; |
22 package com.sun.org.apache.xerces.internal.impl; |
22 |
|
23 |
23 |
24 import com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDDescription; |
24 import com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDDescription; |
25 import com.sun.org.apache.xerces.internal.impl.validation.ValidationManager; |
25 import com.sun.org.apache.xerces.internal.impl.validation.ValidationManager; |
26 import com.sun.org.apache.xerces.internal.util.NamespaceSupport; |
26 import com.sun.org.apache.xerces.internal.util.NamespaceSupport; |
27 import com.sun.org.apache.xerces.internal.util.XMLChar; |
27 import com.sun.org.apache.xerces.internal.util.XMLChar; |
1104 } |
1104 } |
1105 fReadingDTD=false; |
1105 fReadingDTD=false; |
1106 if (!moreToScan) { |
1106 if (!moreToScan) { |
1107 // end doctype declaration |
1107 // end doctype declaration |
1108 if (!fEntityScanner.skipChar(']')) { |
1108 if (!fEntityScanner.skipChar(']')) { |
1109 reportFatalError("EXPECTED_SQUARE_BRACKET_TO_CLOSE_INTERNAL_SUBSET", |
1109 reportFatalError("DoctypedeclNotClosed", new Object[]{fDoctypeName}); |
1110 null); |
|
1111 } |
1110 } |
1112 fEntityScanner.skipSpaces(); |
1111 fEntityScanner.skipSpaces(); |
1113 if (!fEntityScanner.skipChar('>')) { |
1112 if (!fEntityScanner.skipChar('>')) { |
1114 reportFatalError("DoctypedeclUnterminated", new Object[]{fDoctypeName}); |
1113 reportFatalError("DoctypedeclUnterminated", new Object[]{fDoctypeName}); |
1115 } |
1114 } |