2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / System.XML / Mono.Xml.Xsl / ChangeLog
1 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2
3         * Added ScriptCompilerInfo.cs.
4         * MSXslScriptManager.cs : Fixed *true* author's name.
5           Implemented basic msxsl:script support.
6         * Compiler.cs : Added Evidence member.
7
8 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
9
10         * Compiler.cs : Check stylesheet recursion. Check decimal-format name.
11         * GenericOutputter.cs, Outputter.cs, TextOutputter.cs :
12           Added WriteWhitespace() to assure not writing whitespaces as cdata.
13         * XslAttributeSet.cs : Error check if attribute-set contains other than
14           xsl:attribute.  Error should be XsltException.
15         * XslDecimalFormat.cs : Complete equality check.  Allow just one
16           character value for some attributes.
17         * XslStylesheet.cs : Made whitespace control setting overridable.
18           Added Version property (for the future compatibility mode).
19           Check unrecongnized top level element.
20         * XslTemplate.cs : Check priority as a number.
21         * XslTransformProcessor.cs : PushCDataState is now PushElementState, 
22           for xsl:preserve-space and xsl:strip-space support.
23         * XsltCompiledContext.cs : Implemented PreserveWhitespace() (far from
24           incomplete), PushScope and Pop
25
26 2003-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
27
28         * HtmlEmitter.cs : CloseStartElement is needed almost everywhere.
29
30 2003-12-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
31
32         * Compiler.cs : In FromListString(), it should use default ns,
33           not unqualified one.
34         * GenericOutputter.cs : CheckState() - attribute's Prefix should take
35           precedence.  Doctype should be written even if SYSTEM id is absent.
36           Fixed possible multiple xmlns output.
37         * HtmlEmitter.cs :
38           - Encoding output using META element.
39           - Doctype name is fixed (html).
40           - Double quotation on PUBLIC and SYSTEM missing.
41           - Fixed incorrect tag name check for IMG.
42           - '>' should not be escaped.
43         * XmlWriterEmitter.cs :
44           Added newline before doctype.  In WriteComment(), "--" and tail
45           '-' are not allowed (it escapes, while XmlWriter simply rejects).
46         * XslTransformProcessor.cs : cdata-section-elements should enclose
47           direct child tests only.   Added PreserveWhitespace() (incomplete).
48         * XsltCompiledContext.cs : Implemented PreserveWhitespace() (incomplete).
49
50 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
51
52         * IdPattern.cs : This should work against multiple ids.
53
54 2003-11-27 Ben Maurer  <bmaurer@users.sourceforge.net>
55
56         * Compiler.cs
57         * MSXslScriptManager.cs
58         * XslStylesheet.cs
59         * XslTransformProcessor.cs
60         * XsltCompiledContext.cs: Some work on msxsl script.
61
62 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
63
64         (in general: cdata-section-elements support, correct document() 
65         base uri handling, and so on)
66         * Compiler.cs : Use XmlSpace.Preserve to parse included stylesheet.
67           And move to document element.  Added XslNameUtil.FromListString().
68         * Emitter.cs, HtmlEmitter.cs, TextEmitter.cs XmlWriterEmitter.cs :
69           Added WriteCDataSection().
70         * Outputter.cs, GenericOutputter.cs, TextOutputter.cs :
71           Added InsideCDataSection.
72         * GenericOutputter.cs :
73           In .ctor(), WriteState should be succeeded from output XmlWriter.
74           WriteNamespaceDecl() now drops declaration identical to existing one.
75           Removed obsolete htmlEmulation.
76         * XslOutput.cs : Added CDataSectionElements support.
77         * XslStylesheet.cs : Added BaseUri, StyleDocument and PrefixInEffect().
78         * XslTransformProcessor.cs :
79           Added Output and CurrentOutputUri. TryStylesheetNamespaceOutput()
80           now considers xsl:exclude-element-prefixes on literal element.
81           Added PushCDataState() and PopCDataState().
82         * XsltCompiledContext.cs : When base uri of document() target is empty,
83           then it should use stylesheet's BaseURI, not that of current document.
84
85 2003-11-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
86
87         * Compiler.cs : Modified decimal-format comparison code.
88         * Outputter.cs,
89           TextOutputter.cs,
90           GenericOutputter.cs : Added WriteState. Now WriteStartDocument() will
91           be called only when required. 
92         * HtmlEmitter.cs : Improved indentation stuff.
93         * XslDecimalFormat.cs : Added incomplete implementation of 
94           CheckSameAs() and FormatNumber().
95         * XslStylesheet.cs,
96           XslTransformProcessor.cs : Changed XslStylesheet.StylesheetNamespaces
97           from StringDictionary to ArrayList of QName (to keep order).
98
99 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
100
101         * XsltCompiledContext.cs : XsltGenerateId.Evaluate() should consider
102           node type (i.e. attribute and namespace). Removed extraneous Clone().
103           Fixed XsltKey.Evaluate() to use MoveToNextAttribute to iterate attrs.
104
105 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
106
107         * Compiler.cs : Changed Keys from ArrayList to Hashtable.
108           XslStylesheet.cs : Added Keys support here.
109         * XslTransformProcessor.cs : Should call SetContext() to expressions
110           before evaluating current nodes.
111         * XsltCompiledContext.cs : 1) XsltDocument.GetDocument() should use
112           xsltContext. 2) XsltKey exposes KeyName, Field and NamespaceManager
113           for KeyPattern. It now uses CompiledStyle.FindKeys().
114
115 2003-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
116
117         * GenericOutputter.cs : Added HTML output support. Closer xmlns handling
118           to Xalan tests and MS.NET implementation (only for test convenience).
119         * XslOutput.cs : Indent holds string rathen than bool. Its default value
120           varies in the context. When method="html", then default is "yes".
121         * XslTransformProcessor.cs : Extension element prefixes should not 
122           be written as stylesheet namespaces.
123         * XsltCompiledContext.cs : Return type of generate-id() is string.
124           Implemented unparsed-entity-uri().
125
126 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
127
128         * Compiler.cs : More complete attribute set gathering.
129           GetNamespacesToCopy() should only return Local namespaces.
130         * GenericOutputter.cs : Added support for indentation.
131           Added easy hack for html output.
132           More correct Prefix handling (considers already defined ones).
133           Namespace emmission is moved to CheckState().
134         * Emitter.cs, XmlWriterEmitter.cs, GenericOutputter.cs, Outputter.cs :
135           Added WriteFullEndElement(). (i.e. IsEmptyElement support)
136         * GenericOutputter.cs, Outputter.cs :
137           Added CanProcessAttributes property for 
138           use-attribute-sets of xsl:copy.
139         * XslStylesheet.cs : Added support for stylesheet-defined xmlns decls.
140           Added support for exclude-result-prefixes.
141         * XslTransformProcessor.cs : Added support for stylesheet-defined xmlns.
142
143 2003-10-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
144
145         * Compiler.cs : It is not important, but attribute order became closer
146           to MS.NET and Xalan (assuming from OASIS tests).
147
148 2003-10-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
149
150         * GenericOutputter.cs : Attribute wasn't overwritten its properties
151           because Attribute is struct it was let to another local variable.
152
153 2003-09-28 Ben Maurer  <bmaurer@users.sourceforge.net>
154
155         * GenericOutputter.cs: make html output a warning, because doing
156         xml will be right most of the time.
157
158 2003-09-28 Ben Maurer  <bmaurer@users.sourceforge.net>
159
160         * Debug.cs: comment out {Enter, Exit}Navigator. Haven't had bugs
161         here for a long time and it hurts thread safty and memory
162         allocation.
163
164 2003-09-21 Ben Maurer  <bmaurer@users.sourceforge.net>
165
166         * Compiler.cs: save the parser (will reduce memory allocation when
167         Jackson's jay patch is committed).
168
169 2003-09-20 Ben Maurer  <bmaurer@users.sourceforge.net>
170
171         * Attribute.cs: Change to struct. Remove QName class.
172         * GenericOutputter.cs: use an Attribute [] rather than an
173         ArrayList. Allows us not to allocate Attributes, which is great
174         for speed. Roll our own allocation.
175
176 2003-09-20 Ben Maurer  <bmaurer@users.sourceforge.net>
177
178         * Compiler.cs: add GetNsm to main class as well.
179
180 2003-09-20 Ben Maurer  <bmaurer@users.sourceforge.net>
181
182         * Compiler.cs (ParseAvtAttribute): Get the attribue using our
183         internal version so we get null if the attr doesnt exist.
184
185 2003-09-17 Ben Maurer  <bmaurer@users.sourceforge.net>
186
187         * Compiler.cs (IStaticXsltContext.TryGetVariable): handle the case
188         where curVarScope == null
189
190 2003-09-16 Ben Maurer  <bmaurer@users.sourceforge.net>
191
192         * Compiler.cs: 
193         - Better handling of empty attributes (vs not being specified)
194         - Bug in handling #default
195         
196 2003-09-15 Ben Maurer  <bmaurer@users.sourceforge.net>
197
198         * Compiler.cs: Off by one when parsing localname of QName 
199         * XslAttributeSet.cs: must evaluate used attr sets *BEFORE*
200         children (so that they get overriden)
201
202 2003-09-15 Ben Maurer  <bmaurer@users.sourceforge.net>
203
204         * GenericOutputter.cs: Output attributes in order recieved; not
205         required by spec, but useful for running test cases.
206
207 2003-09-14 Oleg Tkachenko <oleg@tkachenko.com>
208
209         * GenericOutputter.cs - fix bug with outputting state.
210         * Emitter.cs, TextEmitter.cs, XmlWriterEmitter.cs, Outputter.cs, 
211         * TextOutputter.cs - get rid of WriteStartAttribute/WriteEndAttribute.  
212
213 2003-09-13 Ben Maurer  <bmaurer@users.sourceforge.net>
214
215         * Compiler.cs, XslKey.cs, XslTransformProcessor.cs: dont clone
216         exprs on use, pass to nav.
217
218 2003-09-13 Ben Maurer  <bmaurer@users.sourceforge.net>
219
220         * Compiler.cs: pass satic context to Pattern ctor.
221
222 2003-08-30 Oleg Tkachenko <oleg@tkachenko.com>
223
224         * New files: 
225         GenericOutputter.cs - generic Outputter implementation,
226         Attribute.cs - represents outputted attribute,
227         Emitter.cs - abstract output emitter,
228         TextEmitter.cs - text emitter,
229         XmlWriterEmitter.cs - emitter to XmlWriter.
230         * Checking of duplicating attributes is done in GenericOutputter.
231         * Namespace outputting logic is implemented in GenericOutputter.
232         * Outputter.cs: Writing namespace declarations is delegated to 
233         derived classes (GenericOutputter).
234         * XslOutput.cs: standalone flag is now 3-value enum (NONE, YES, NO).                    
235          
236 2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>
237
238         * XslTransformProcessor.cs: evaluate variables at beginning
239         when / is current node.
240
241 2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>
242
243         * Compiler.cs, XsltCompiledContext.cs, XslTransformProcessorcs:
244         Fix up namespace handeling
245
246 2003-08-20 Ben Maurer  <bmaurer@users.sourceforge.net>
247
248         * Compiler.cs, XslStylesheet.cs, XsltCompiledContext.cs: Stubs for
249         format-number.
250         * XslDecimalFormat.cs: Stub for decimal-format.
251
252 2003-08-20 Ben Maurer  <bmaurer@users.sourceforge.net>
253
254         * TextOutputter.cs: Add option to ignore element content (Oleg).
255
256 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
257
258         * Compiler.cs: Really give null for blank avt's
259
260 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
261
262         * Compiler.cs: Fixed lre/lre04.
263
264 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
265
266         * Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
267           won't have default namespace. See http://www.w3.org/TR/xslt#qname
268
269 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
270
271         * XslTransformProcessor.cs: add support for resolving documents.
272         * XsltCompiledContext: add support for document () function.
273
274 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
275
276         * Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
277         of the abstract methods in Outputter, making them call other
278         functions with default values, remove impl's in derived classes.
279
280 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
281
282         * Outputter.cs: s/Close/Done
283         * TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
284         * XslTransformProcessor.cs: Flush output when popping, pop at end.
285
286 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
287
288         * Outputter.cs: Add support for namespaces.
289
290 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
291
292         * Compiler.cs, XslOutput.cs, XslStylesheet.cs,
293         XslTransformProcessor.cs: move output logic from XslStylesheet to
294         Compiler.
295
296 2003-08-18 Ben Maurer  <bmaurer@users.sourceforge.net>
297
298         * XslOutput.cs: add support for encoding.
299
300 2003-08-18 Ben Maurer  <bmaurer@users.sourceforge.net>
301
302         * *.cs: Support for xsl:output. (Oleg)
303
304 2003-08-17 Ben Maurer  <bmaurer@users.sourceforge.net>
305
306         * Compiler.cs: handle extension and excluded namespaces.
307
308 2003-08-17 Ben Maurer  <bmaurer@users.sourceforge.net>
309
310         * XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
311         from the stylesheet for correct namespace resolution.
312
313 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
314
315         * Compiler.cs : 1) Changed public .ctor() to receive Evidence argument 
316           introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.
317
318 2003-08-07 Ben Maurer  <bmaurer@users.sourceforge.net>
319
320         * XslTransformProcessor.cs: Add a table to detect when an object
321         is busy.
322         * XslAttributeSet.cs: Use the above table. Dont throw nullref
323         exception when no use-attribute-sets are specified.
324
325 2003-08-04 Ben Maurer  <bmaurer@users.sourceforge.net>
326
327         * Compiler.cs: Add support for boolean attributes (yes/no).
328
329 2003-08-04 Ben Maurer  <bmaurer@users.sourceforge.net>
330
331         * Compiler.cs: Add method LocalNameOf, to get the local name of a
332         string.
333         * XslTransformProcessor.cs: Support for setting the XmlResolver.
334
335 2003-08-01 Ben Maurer  <bmaurer@users.sourceforge.net>
336
337         * Compiler.cs, XslAttributeSet.cs: Handle attribute set merging
338
339 2003-08-01 Ben Maurer  <bmaurer@users.sourceforge.net>
340
341         * XslTransformProcessor.cs: Add EvaluateNumber method.
342
343 2003-07-31 Ben Maurer  <bmaurer@users.sourceforge.net>
344
345         * XsltCompiledContext.cs: Implement more functions.
346
347 2003-07-31 Ben Maurer  <bmaurer@users.sourceforge.net>
348
349         * Compiler.cs: Add support for key, utility function to parse
350         QName's from the XsltContext. Store keys in the CompiledStyle, not
351         in the Stylesheet.
352         * XslKey.cs: Real implementation
353         * XslStylesheet.cs: Move the keys to CompiledStyle.
354         * XsltCompiledContext.cs: Implement the key function
355
356 2003-07-31 Ben Maurer  <bmaurer@users.sourceforge.net>
357
358         * XsltCompiledContext.cs: Hmm, maybe I should actually *enable*
359         the functions ;-). Also wrote current ().
360
361 2003-07-31 Ben Maurer  <bmaurer@users.sourceforge.net>
362
363         * XsltCompiledContext.cs: Remove excess conversion stuff. It is
364         done in XPath. Add stubs for XSLT functions.
365
366 2003-07-31 Ben Maurer  <bmaurer@users.sourceforge.net>
367
368         * Compiler.cs: To resolve a variable you now need to pass the
369         processor, so that it can be passed to IsEvaluated. A local will
370         only be resolved if it has already been evaluated.
371         * XsltCompiledContext.cs: Pass along the processor.
372         
373 2003-07-30 Ben Maurer  <bmaurer@users.sourceforge.net>
374
375         * Compiler.cs, XslTemplate.cs, XslTransformProcessor.cs: Store
376         variable values in the XslTransformProcessor.
377         * XsltCompiledContext.cs: If the scope is null, don't look there!
378         * Debug.cs: New method Assert
379
380 2003-07-30 Ben Maurer  <bmaurer@users.sourceforge.net>
381
382         * Compiler.cs, XsltCompiledContext.cs: Remove verbose messages
383         * XslTransformProcessor.cs: Use strongtyped evaluation, using new
384         internal methods in XPathNavigator. Remove verbose debugging messages.
385
386 2003-07-29 Ben Maurer  <bmaurer@users.sourceforge.net>
387
388         * Initial Checkin
389