2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / System.XML / System.Xml.Schema / ChangeLog
1 2003-09-30  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
2
3         * Forgot to append 8/24/2003 ChangeLog.
4         * BUGS.txt, BUGS-MS.txt : Appended additional bug info.
5         * BuiltInDatatype.cs, ValidationHandler.cs, XmlSchema.cs, 
6           XmlSchemaAll.cs, XmlSchemaAnnotation.cs. XmlSchemaAny.cs,
7           XmlSchemaAnyAttribute.cs, XmlSchemaAttribute.cs,
8           XmlSchemaAttributeGroup.cs, XmlSchemaAttributeGroupRef.cs,
9           XmlSchemaChoice.cs, XmlSchemaCollection.cs,
10           XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
11           XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
12           XmlSchemaContent.cs, XmlSchemaDatatype.cs, XmlSchemaElement.cs,
13           XmlSchemaException.cs, XmlSchemaGroup.cs, XmlSchemaGroupBase.cs,
14           XmlSchemaGroupRef.cs, XmlSchemaIdentityConstraint.cs,
15           XmlSchemaKey.cs, XmlSchemaKeyref.cs, XmlSchemaNotation.cs,
16           XmlSchemaObject.cs, XmlSchemaObjectTable.cs, XmlSchemaParticle.cs,
17           XmlSchemaReader.cs, XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
18           XmlSchemaSimpleContentExtension.cs,
19           XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
20           XmlSchemaSimpleTypeContent.cs, XmlSchemaSimpleTypeList.cs,
21           XmlSchemaSimpleTypeRestriction.cs, XmlSchemaSimpleTypeUnion.cs,
22           XmlSchemaType.cs, XmlSchemaUnique.cs, XmlSchemaUtil.cs,
23           XmlSchemaXPath.cs :
24
25           - Almost all classes are changed to implement schema component
26             constraints, and schema validation using XsdValidatingReader.
27           - better exception messages.
28           - More datatype support.
29           and so on.
30
31 2003-09-14  Lluis Sanchez Gual <lluis@ximian.com>
32
33         * XmlSchema.cs: Do not add schema namespace declaration if it is already
34           declared.
35
36 2003-08-28  Lluis Sanchez Gual <lluis@ximian.com>
37
38         * BuiltInDatatypes.cs, XmlSchemaDatatype.cs: Added double type.
39
40 2003-08-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
41
42         * BuiltInDatatype.cs : XsdDecimal.TokenizedType should be None.
43         * XmlSchemaCollection.cs : Add(uri) should not reject chameleon schema.
44           Add() should compile specified schema.
45
46 2003-08-08  Lluis Sanchez Gual <lluis@ximian.com>
47
48         * BuiltInDatatypes.cs, XmlSchemaDatatype.cs: Added XsdAnyURI,
49           XsdDateTime, XsdDate, XsdTime.
50
51 2003-08-07  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
52
53         * BuiltInDatatypes.cs : Fixed whitespace facet in XsdToken.
54           Tokenized type of nmtokens and entities is string [].
55         * XmlSchema.cs : Changed IsCompile implementation a bit.
56           Compile() should reset compiled contents.
57         * XmlSchemaDatatype.cs : Fixed collapsing Normalize().
58         * XmlSchemaObject.cs : added CompilationId initialization.
59
60 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
61
62         * XmlSchema.cs: Set IsCompiled to true after compiling.
63           In Compile(): ignore included schemas that do not have a value
64           in SchemaLocation. It means that FindElement can return null
65           if the referred schema was ignored. Added check for that case.
66           Compile schema after reading it.
67         * XmlSchemaCollection.cs: The targetNamespace of a schema may
68           be null. Make XmlSchemaCollection work for this case.
69         * BuiltInDataType.cs, XmlSchemaDataType.cs: added new primitive
70           types: float, base64Binary, boolean.
71
72 2003-08-02  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
73
74         * XmlSchema.cs :
75           - Changed missingElementTypeRefs from Hashtable to ArrayList.
76           - Added internal XmlSchemas for keeping imported schemas.
77           - Added private Compile() that takes the original rootSchema and
78             schema location stack for nested inclusion check.
79           - Added basic xs:import and xs:include support.
80           - Compile() is now aware of included XmlSchemaObject items.
81           - Changed Compile() to fill missing elements' types and that of
82             referencing elements.
83           - Read() now adds SourceUri property (although only to itself).
84         * XmlSchemaCollection.cs : Implemented Add().
85         * XmlSchemaCollectionEnumerator.cs :
86           Changed .ctor() to use schema collection as its argument.
87           Fixed Current to return hashtable's Value, instead of Current 
88           (which returns DictionaryEntry).
89         * XmlSchemaComplexType.cs :
90           Added internal static AnyType.
91           Compile() is now searches for its base type into other schemas.
92         * XmlSchemaElement.cs : anyType is supported.
93           It now searches for type information after Compile().
94           SetReferedElementInfo() is now changed to SetSchemaType().
95         * XmlSchemaObjectTable.cs :
96           It had problems similar to schema collection. Now it uses internal
97           class XmlSchemaObjectTableEnumerator to support GetEnumerator().
98         * XmlSchemaParticle.cs : added internal class XmlSchemaParticleEmpty
99           and internal static Empty.
100
101 2003-07-26  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
102
103         * BuiltInDatatype.cs : XsdIDRefs.ParseValue () should be implemented.
104         * XmlSchemaDatatype.cs : public Whitespace and protected Normalize()
105           should be internal.
106
107 2003-07-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
108
109         * XmlSchema.cs : Read() now uses XmlSerializer.Deserialize().
110
111 2003-07-21  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
112
113         * XmlSchema.cs, XmlSchemaElement.cs :
114           added internal MissingElementTypeRefs and support for refering 
115           element's elementType.
116
117 2003-07-20  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
118
119         * XmlSchema.cs : added support for collecting missing type references
120           at compilation-time.
121         * XmlSchemaType.cs, XmlSchemaComplexType.cs, XmlSchemaSimpleType.cs:
122           - Renamed qName to QNameInternal.
123           - Added BaseSchemaType and ContentTypeParticle support.
124
125 2003-07-19  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
126
127         * XmlSchema.cs, XmlSchemaAll.cs, XmlSchemaAnnotated.cs,
128           XmlSchemaAnnotation.cs, XmlSchemaAny.cs, XmlSchemaAnyAttribute.cs,
129           XmlSchemaAttribute.cs, XmlSchemaAttributeGroup.cs,
130           XmlSchemaAttributeGroupRef.cs, XmlSchemaChoice.cs,
131           XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
132           XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
133           XmlSchemaElement.cs, XmlSchemaGroup.cs, XmlSchemaGroupRef.cs,
134           XmlSchemaIdentityConstraint.cs, XmlSchemaImport.cs,
135           XmlSchemaInclude.cs, XmlSchemaKey.cs, XmlSchemaKeyref.cs,
136           XmlSchemaNotation.cs, XmlSchemaObject.cs, XmlSchemaRedefine.cs,
137           XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
138           XmlSchemaSimpleContentExtension.cs,
139           XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
140           XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeRestriction.cs,
141           XmlSchemaSimpleTypeUnion.cs, XmlSchemaUnique.cs,
142           XmlSchemaXPath.cs, 
143           As to Compile() and Validate(),
144           - Added CompilationId and check it while compiling schema components.
145           - Code refactory. Replaced literal xmlns with XmlSchema.Namespace
146           - Replaced XmlSchemaInfo with compiling XmlSchema itself (XmlSchema
147             also has PSVI components inside it, so passing itself seems enough).
148           - Related to above change, IDCollection was moved to XmlSchema, and
149             blockDefault/finalDefault/blockResolved/finalResolved resolution
150             was changed to reference only to schema.BlockDefault/FinalDefault.
151           - The similar change has done against XmlSchemaForm related stuff.
152           - Changed compilation order of schema type definitions (it is
153             workaround). First it compiles types, and then it compiles others.
154         * XmlSchemaElement.cs : added ElementType PSVI contribution support.
155
156 2003-07-19  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
157
158         * BuiltInDatatypes.cs, XmlSchemaDatatype.cs :
159           Added decimal and its derived datatypes.
160           Added abstract XsdAnySimpleType.
161
162 2003-07-15  Lluis Sanchez Gual <lluis@ximian.com>
163
164         * BuiltInDatatype.cs,
165           XmlSchemaDatatype.cs : added unsignedByte type support.
166
167 2003-07-14  Lluis Sanchez Gual <lluis@ximian.com>
168
169         * XmlSchemaDatatype.cs: Fixed compiler warning.
170
171 2003-07-12  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
172
173         * BuiltInDatatype.cs,
174           XmlSchemaDatatype.cs : added NOTATION type support.
175
176 2003-07-06  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
177
178         * added BuiltInDatatype.cs.
179         * XmlSchemaDatatype.cs : [GetType()] added support for some 
180           built-in datatypes.
181
182 2003-05-05  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
183
184         * XmlSchemaAnnotation.cs : It depended on incorrect ReadNode().
185
186 2003-02-19  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
187
188         * XmlSchemaAnnotation.cs : expect the correct closing tag on <appinfo>
189                 and <documentation> elements. (patch by Peter Pentchev)
190         * XmlSchemaObjectEnumerator.cs : cast properly to XmlSchemaObject 
191                 instead of XmlSchema. (patch by Peter Pentchev)
192
193 2002-07-23  Duncan Mak  <duncan@ximian.com>
194
195         * XmlSchemaException.cs: Partiall implement the ISerializable
196         methods. It's not clear now SourceSchemaObject should be deserialized.
197
198 2002-07-22  Tim Coleman  <tim@timcoleman.com>
199         * XmlSchema.cs: Removed isCompiled which is defined as internal
200                 in XmlSchemaObject.
201
202 2002-06-18  Dwivedi, Ajay kumar <adwiv@yahoo.com>
203         
204         * XmlSchema: Started work on Validate methods
205
206 2002-06-18  Dwivedi, Ajay kumar <adwiv@yahoo.com>
207         * XmlSchema: The Read and Write methods are no more [MonoTODO] :)
208         
209         * XmlSchemaAppInfo: Xml Markup is now being read.
210         
211         * XmlSchemaDocumentation: Xml Markup is now being read.
212
213         * All: Unhandled attributes are being handled properly.
214                
215         * All: Reordered the properties in all cs files to match with MS
216                Implementation. This was required since the order is importatnt
217                for the XmlSerializer.
218         
219 2002-06-14  Dwivedi, Ajay kumar <adwiv@yahoo.com>
220         * General: Fixed a few more Bugs
221
222 2002-06-10  Dwivedi, Ajay kumar <adwiv@yahoo.com>
223         * XmlSchemaReader: A Wrapper class around XmlReader with customized
224           methods to suit reading a schema.
225         * General: Implemented Read() method for the schema. There are only
226           a few minor bugs remaining.
227
228 2002-05-25  Dwivedi, Ajay kumar <adwiv@yahoo.com>
229         * BUGS.txt: New file to keep track of bugs
230
231         * ALL: All classes are initialized exactly as in .NET except
232                1. inclusion of language attribute in schema
233                2. ComplexContent's Particle is initialized to null whereas .NET 
234                   to some internal implementation. IMO Null is more appropriate
235
236         * ALL: Changed the Compile methods to return the count of errors.
237
238         * ALL: Complile methods are almost complete. Pass 1453 of 3061 tests.
239                This number should shoot up if we write a parser to read the
240                Schema instead of using reflection (which is slower too)
241
242 2002-05-04  Dwivedi, Ajay kumar <adwiv@yahoo.com>
243         * XmlSchemaUtil.cs: New file added. 
244         
245         * Parser.cs: New file Added. Unused at the moment.
246
247         * XmlSchemaObjectCollection: Fixed GetEnumerator
248         
249         * General: Preprocessing for Attributes and SimpleTypes completed.
250
251 2002-04-26  Duncan Mak  <duncan@ximian.com>
252
253         * ValidationHandler.cs: New file.
254
255         * XmlSchemaInfo.cs: New file.
256
257         * *.cs: More updates from Ajay.
258
259 2002-03-27  Duncan Mak  <duncan@ximian.com>
260
261         * *.cs: Updates from Ajay Dwivedi <AjayKumar.Dwivedi@dresdner-bank.com>.