[Mono-bugs] [Bug 53178][Blo] Changed - JDF 1.1 schema causes exception on compile

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jan 2004 16:01:01 -0500 (EST)

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.


--- shadow/53178	2004-01-21 14:17:41.000000000 -0500
+++ shadow/53178.tmp.6960	2004-01-21 16:01:01.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 53178
 Product: Mono/Class Libraries
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Blocker
 Component: Sys.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tcabanski@oai.cc               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -58,6 +58,61 @@
 This was working a few days ago against Mono and still works against 
 Microsoft.  My version of the JDF schema is modifed slightly to eliminate 
 problematic restriction facets and enumeration facets that cause problems 
 with the Mono schema compile.  I can supply the modified schema as a 
 download if needed.
+------- Additional Comments From tcabanski@oai.cc  2004-01-21 16:01 -------
+The schema is structured as a main file, jdf.xsd, which contains the 
+following text:
+<?xml version="1.0"?>
+<xs:schema xmlns:jdftyp="http://www.CIP4.org/JDFSchema_1_1_Types" 
+attributeFormDefault="unqualified" elementFormDefault="qualified" 
+version="1.1.a.004" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:import schemaLocation="JDFTypes.xsd" 
+namespace="http://www.CIP4.org/JDFSchema_1_1_Types" />
+  <xs:include schemaLocation="JDFCore.xsd" />
+  <xs:include schemaLocation="JDFCapability.xsd" />
+  <xs:include schemaLocation="JDFResource.xsd" />
+  <xs:include schemaLocation="JDFProcess.xsd" />
+  <xs:include schemaLocation="JDFMessage.xsd" />
+  <xs:element name="JDF" type="jdf:JDFProcessNode" />
+  <xs:element name="JMF" type="jdf:JMFRootMessage" />
+The actual attribute is called BurnOutArea.  It is defined as 
+follows in JdfResource.xsd:
+<xs:attribute name="BurnOutArea" type="jdftyp:XYPair" 
+use="optional" />
+The jdftype prefix refers to the JDFTypes.xsd file, which defines 
+XyPair as:
+<xs:simpleType name="XYPair">
+		<xs:restriction base="jdftyp:NumberList">
+			<xs:length value="2"/>
+		</xs:restriction>
+	</xs:simpleType>
+number list is also defined in JdfTypes.xsd as:
+<xs:simpleType name="NumberList">
+		<xs:list itemType="jdftyp:number"/>
+	</xs:simpleType>
+As is the final base type, number.  As you can see, the pattern 
+facet was commented out to work around an earlier issue I 
+encountered with Mono (some regular expressions valid in schema are 
+not valid in Mono.  I commented them all out as a quick work-around):
+<xs:simpleType name="number">
+		<xs:restriction base="xs:double">
+			<!-- <xs:pattern value="[^N].*"/> -->
+		</xs:restriction>
+	</xs:simpleType>