[Mono-bugs] [Bug 59889][Blo] New - Spurious ID reference errors reported at end of XML file when using validating reader

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Jun 2004 14:53:08 -0400 (EDT)


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 tcabanski@oai.cc.

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

--- shadow/59889	2004-06-09 14:53:08.000000000 -0400
+++ shadow/59889.tmp.3684	2004-06-09 14:53:08.000000000 -0400
@@ -0,0 +1,126 @@
+Bug#: 59889
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tcabanski@oai.cc               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Spurious ID reference errors reported at end of XML file when using validating reader
+
+I get the following XML Schema error, which I believe is not correct, 
+when using the Validating Reader in Mono Beta 2:
+
+There are missing ID references: Link0003 Link0008 Link0006 Link0011 
+Link0005 Link0014 XML at line 71 position 1.  (This is at the end of the 
+file.)
+
+Interestingly, it does not complain on the element that actually contains 
+the ref.  Rather, it only complains at the end of the file.  If I change 
+one of the refs to be actually invalid (e.g. change rRef="Link0003" to 
+rRef="Link003a"), the error happens at the end of the file and on the 
+element with the invalid rRef attribute, which more closely matches the 
+behavior in the Microsoft .NET runtime.
+
+The XML file is as follows.  I believe it is valid.  It works fine under 
+the Microsoft .NET 1.1 framework:
+
+<?xml version='1.0' encoding='utf-8' ?>  
+<JDF ID="bookTest" Type="Product" JobID="bookJob" Status="Waiting" 
+Version="1.1"  
+xmlns="http://www.CIP4.org/JDFSchema_1_1">  
+  <!--Generated by the CIP4 C++ open source JDF Library version CIP4 
+JDFWriter 1.0.01 beta-->  
+  <ResourcePool>  
+    <Component ID="Link0003" ComponentType="PartialProduct" 
+Class="Quantity" Amount="100.22" Status="Unavailable" 
+DescriptiveName="Teacher's Book"/>  
+    <Component ID="Link0005" ComponentType="PartialProduct" 
+Class="Quantity" Amount="2000.0" Status="Unavailable" 
+DescriptiveName="Cover">  
+      <!--This cover is reused by both-->  
+    </Component>  
+    <LayoutIntent ID="Link0006" Class="Intent" Status="Available">  
+      <Dimensions Range="576 756~648 828" DataType="XYPairSpan" 
+Preferred="612 793"/>  
+    </LayoutIntent>  
+    <LayoutIntent ID="Link0008" Class="Intent" Status="Available">  
+      <Dimensions Range="576 756~648 828" DataType="XYPairSpan" 
+Preferred="612 792"/>  
+      <Pages DataType="IntegerSpan" Preferred="240"/> 
+    </LayoutIntent>  
+    <Component ID="Link0011" ComponentType="PartialProduct" 
+Class="Quantity" Amount="1000" Status="Unavailable" 
+DescriptiveName="Student's Book">  
+      <!--Students Book Intent-->  
+    </Component>  
+    <LayoutIntent ID="Link0014" Class="Intent" Status="Available">  
+      <Dimensions Range="576 756~648 828" DataType="XYPairSpan" 
+Preferred="612 792"/>  
+      <Pages DataType="IntegerSpan" Preferred="198"/>  
+    </LayoutIntent>  
+  </ResourcePool>  
+  <AuditPool>  
+    <Created Author="Rainer's JDFWriter 0.2000" TimeStamp="2000-11-
+01T12:46:56+01:00"/>  
+  </AuditPool>  
+  <JDF ID="Link0002" Type="Product" Status="Waiting" JobPartID="0" 
+DescriptiveName="Teacher's  
+Edition">  
+    <ResourcePool>  
+      <Component ID="Link0009" ComponentType="PartialProduct" 
+Class="Quantity" Amount="100" Status="Unavailable" 
+DescriptiveName="Insert"/>  
+    </ResourcePool>  
+    <ResourceLinkPool>  
+      <ComponentLink rRef="Link0003" Usage="Output" Amount="100"/>  
+      <ComponentLink rRef="Link0009" Usage="Input" Amount="100"/>  
+      <ComponentLink rRef="Link0005" Usage="Input" Amount="100"/>  
+    </ResourceLinkPool>  
+    <JDF ID="Link0007" Type="Product" Status="Waiting" JobPartID="2" 
+DescriptiveName="Teacher's  
+Insert">  
+      <ResourceLinkPool>  
+        <LayoutIntentLink rRef="Link0008" Usage="Input"/>  
+        <ComponentLink rRef="Link0009" Usage="Output" Amount="100"/>  
+      </ResourceLinkPool>  
+    </JDF>  
+  </JDF>  
+  <JDF ID="Link0004" Type="Product" Status="Waiting" JobPartID="1" 
+DescriptiveName="Cover">  
+    <ResourceLinkPool>  
+      <ComponentLink rRef="Link0005" Usage="Output" Amount="2000"/>  
+      <LayoutIntentLink rRef="Link0006" Usage="Input"/>  
+    </ResourceLinkPool>  
+  </JDF>  
+  <JDF ID="Link0010" Type="Product" Status="Waiting" JobPartID="3" 
+DescriptiveName="Student's  
+Edition">  
+    <ResourcePool>  
+      <Component ID="Link0013" ComponentType="PartialProduct" 
+Class="Quantity" Amount="1000" Status="Unavailable" 
+DescriptiveName="Insert"/>  
+    </ResourcePool>  
+    <ResourceLinkPool>  
+      <ComponentLink rRef="Link0011" Usage="Output" Amount="1000"/>  
+      <ComponentLink rRef="Link0013" Usage="Input" Amount="1000"/>  
+      <ComponentLink rRef="Link0005" Usage="Input" Amount="1000"/>  
+    </ResourceLinkPool>  
+    <JDF ID="Link0012" Type="Product" Status="Waiting" JobPartID="4" 
+DescriptiveName="Student's  
+Insert">  
+      <ResourceLinkPool>  
+        <ComponentLink rRef="Link0013" Usage="Output" Amount="1000"/>  
+        <LayoutIntentLink rRef="Link0014"  Usage="Input"/>  
+      </ResourceLinkPool>  
+    </JDF>  
+  </JDF>  
+</JDF>