cziegeler 01/06/19 06:34:49
Modified: src/org/apache/cocoon/xml Tag: cocoon_20_branch
IncludeXMLConsumer.java
Log:
startDTD/endDTD are not forwarded as they can only occur before the first
startElement.
Revision Changes Path
No revision
No revision
1.4.2.1 +8 -8 xml-cocoon2/src/org/apache/cocoon/xml/IncludeXMLConsumer.java
Index: IncludeXMLConsumer.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/xml/IncludeXMLConsumer.java,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- IncludeXMLConsumer.java 2001/05/31 17:39:11 1.4
+++ IncludeXMLConsumer.java 2001/06/19 13:34:48 1.4.2.1
@@ -15,11 +15,13 @@
/**
* A special purpose <code>XMLConsumer</code> used for including files.
- * It basically ignores the <code>startDocument</code> and
- * </code>endDocument</code> messages.
+ * It basically ignores the <code>startDocument</code>,
+ * </code>endDocument</code>, <code>startDTD</code> and <code>endDTD</code>
+ * messages.
*
* @author <a href="mailto:[EMAIL PROTECTED]>Berin Loritsch</a>
- * @version $Revision: 1.4 $ $Date: 2001/05/31 17:39:11 $
+ * @author <a href="mailto:[EMAIL PROTECTED]>Carsten Ziegeler</a>
+ * @version $Revision: 1.4.2.1 $ $Date: 2001/06/19 13:34:48 $
*/
public class IncludeXMLConsumer extends AbstractXMLConsumer {
final private ContentHandler contentHandler;
@@ -85,14 +87,12 @@
}
public void startDTD(String name, String public_id, String system_id)
- throws SAXException {
- if(lexicalHandler != null)
- lexicalHandler.startDTD(name,public_id,system_id);
+ throws SAXException {
+ // Ignored
}
public void endDTD() throws SAXException {
- if(lexicalHandler != null)
- lexicalHandler.endDTD();
+ // Ignored
}
public void startEntity(String name) throws SAXException {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]