[Mono-bugs] [Bug 79683][Nor] New - Cannot parser DocBook DTD

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 17 10:28:25 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by p.kullmann at arenae.ch.

http://bugzilla.ximian.com/show_bug.cgi?id=79683

--- shadow/79683	2006-10-17 10:28:24.000000000 -0400
+++ shadow/79683.tmp.19358	2006-10-17 10:28:25.000000000 -0400
@@ -0,0 +1,95 @@
+Bug#: 79683
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: p.kullmann at arenae.ch               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot parser DocBook DTD
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+The DTDReader has a problem understanding the docbook DTDs (eg version 4.2).
+
+Steps to reproduce the problem:
+1. Make a simple xml file test.xml as follows (also attached):
+
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+     "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<para>Hello</para>
+
+2. Run the following program (also attached):
+
+using System;
+using System.Xml;
+
+public class test {
+
+  public static void Main() {
+    XmlDocument doc = new XmlDocument();
+    doc.Load("test.xml");
+  }
+}
+
+Actual Results:
+
+The program reports an error in the DTD: 
+
+
+Unhandled Exception: System.Xml.XmlException: a name did not start with a
+legal character 37 (%)
+http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod Line 5406, position 7.
+  at System.Xml.DTDReader.ReadNameOrNmToken (Boolean isNameToken) [0x00000] 
+  at System.Xml.DTDReader.ReadName () [0x00000] 
+  at System.Xml.DTDReader.ReadAttributeDefinition () [0x00000] 
+  at System.Xml.DTDReader.ReadAttListDecl () [0x00000] 
+  at System.Xml.DTDReader.CompileDeclaration () [0x00000] 
+  at System.Xml.DTDReader.ProcessDTDSubset () [0x00000] 
+  at System.Xml.DTDReader.ProcessDTDSubset () [0x00000] 
+  at System.Xml.DTDReader.ProcessDTDSubset () [0x00000] 
+  at System.Xml.DTDReader.GenerateDTDObjectModel () [0x00000] 
+  at System.Xml.XmlTextReader.GenerateDTDObjectModel (System.String name,
+System.String publicId, System.String systemId, System.String
+internalSubset, Int32 intSubsetStartLine, Int32 intSubsetStartColumn)
+[0x00000] 
+  at System.Xml.XmlTextReader.ReadDoctypeDecl () [0x00000] 
+  at System.Xml.XmlTextReader.ReadDeclaration () [0x00000] 
+  at System.Xml.XmlTextReader.ReadContent () [0x00000] 
+  at System.Xml.XmlTextReader.Read () [0x00000] 
+  at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] 
+  at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] 
+  at Mono.Xml.DTDValidatingReader.Read () [0x00000] 
+  at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] 
+  at System.Xml.XmlValidatingReader.Read () [0x00000] 
+  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00000] 
+  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] 
+  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] 
+  at System.Xml.XmlDocument.Load (System.String filename) [0x00000] 
+  at test.Main () [0x00000] 
+
+
+Expected Results:
+
+No output. The DTD should be OK. 
+
+How often does this happen? 
+
+Always
+
+Additional Information:
+
+The same program runs without problems in MS.Net 1.1.


More information about the mono-bugs mailing list