1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
|
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">
<chapter>
<header>
<copyright>
<year>2004</year><year>2010</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
</legalnotice>
<title>Xmerl Release Notes</title>
<prepared>otp_appnotes</prepared>
<docno>nil</docno>
<date>nil</date>
<rev>nil</rev>
<file>notes.xml</file>
</header>
<p>This document describes the changes made to the Xmerl application.</p>
<section><title>Xmerl 1.2.5</title>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
All Erlang files are now built by the test server instead of the test directory Makefile.
</p>
<p>
Erlang files in data directories are now built by the test suites instead of using
prebuilt versions under version control.
</p>
<p>
Removed a number of obsolete guards.
</p>
<p>
Own Id: OTP-8537
</p>
</item>
<item>
<p>
An empty element declared as a simpleContent was not properly validated.
</p>
<p>
Own Id: OTP-8599
</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.2.4</title>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>Updated the documentation Makefile to work with the
new documentation build process.</p>
<p>
Own Id: OTP-8343</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.2.3</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
A continuation clause of <c>parse_reference/3</c> had
its parameters in wrong order.</p>
<p>
Own Id: OTP-8251 Aux Id: seq11429 </p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
A new option to turn off the parsing of an external DTD
is added to <c>xmerl_sax_parser:file/2</c> and
<c>xmerl_sax_parser:stream/2</c>
(<c>skip_external_dtd</c>).</p>
<p>
Own Id: OTP-8252 Aux Id: seq11432 </p>
</item>
<item>
<p>
The documentation is now built with open source tools
(xsltproc and fop) that exists on most platforms. One
visible change is that the frames are removed.</p>
<p>
Own Id: OTP-8253</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.2.2</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
<c>xmerl_sax_parse:stream/2</c> failed with
<c>{fatal_error,_, "Continuation function undefined, and
more data needed",_,_}</c> when no continuation function
was defined even though it was a complete document as
input.</p>
<p>
Own Id: OTP-8213</p>
</item>
<item>
<p>
The namespace URI supplied on unprefixed attributes in
startElement tuples is the same as the URI for the
default namespace. According to the standard the
namespace for an unprefixed attribute should always has
no value.</p>
<p>
Own Id: OTP-8214</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.2.1</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
<c>xmerl/include/xmerl.hrl</c> contained internal debug
macros (<c>dbg/2</c> and <c>DBG/0</c>) which now is moved
to <c>xmerl_internal.hrl</c>.
</p>
<p>
Own Id: OTP-8084
</p>
</item>
<item>
<p>
The function <c>xmerl_uri:parse/1</c> couldn't handle FTP
URIs containing username and password. The default FTP
port constant was also wrong. (Thanks to Steve Vinoski)
</p>
<p>
Own Id: OTP-8156
</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
The SAX parser couldn't handle consecutive documents on
the same stream. The return values are now changed so
they return a rest value instead of giving an error about
"erranous information after the end tag".
</p>
<p>
This means that
the functions <c>file/2</c> and <c>stream/2</c> now
returns <c>{ok, EventState, Rest}</c> when the parsing is
correct. The rest can then be used as input to a new call
to <c>xmerl_sax_parse:stream/2</c>. If one know that it's
just one document the rest value in the result tuple can
be matched against <c><<>></c> or <c>[]</c>
depending on if the input is in binary form or not.
</p>
<p>
Own Id: OTP-8153 Aux Id: seq11388
</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.2</title>
<section><title>Improvements and New Features</title>
<p>
In xmerl-1.2 we have added the first Beta version of the new
SAX parser (module: xmerl_sax_parser), it supports XML 1.0.
We call it Beta due to that the validation part is not ready yet and that the
parser still has some known limitations (mostly in the DTD area).
</p>
<p>
Known limitations:
</p>
<list type="bulleted">
<item>the external DTD in the DOCTYPE declaration is handled but other external entities are not supported.</item>
<item>the general entity values are just checked in the structure after replacement.</item>
<item>
parsed entities are supported on markup declaration level (e.g. partly replacement of markup
declaration with PEReference is not supported).
</item>
<item>conditionalSect in external DTD's are not supported.</item>
<item>recursive loops in entity declarations are not detected.</item>
</list>
<p>
The version is increased from 1.1.12 to 1.2 is due to that the new parser
is dependent on the Unicode support that was added in OTP R13B. The old xmerl
functionality is not changed.
</p>
<p>
Own Id: OTP-6635
</p>
</section>
</section>
<section><title>Xmerl 1.1.12</title>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
Updated copyright notice in source files</p>
<p>
Own Id: OTP-7847</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.11</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
An empty element with a complexType and simpleContent was
not properly validated. This error is now corrected.</p>
<p>
Own Id: OTP-7736</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.10</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Changed the examples in Customization Functions Tutorial
to correct Erlang code.
</p>
<p>
Own Id: OTP-6053
</p>
</item>
<item>
<p>
Some XPath errors solved, typo in compare function '!=',
error in <c>id()</c> function.</p>
<p>
Own Id: OTP-6792 Aux Id: seq10570 </p>
</item>
<item>
<p>
The XPath function <c>contains()</c> now implemented. See
XPath 1.0 section 4.2.</p>
<p>
Own Id: OTP-6873</p>
</item>
<item>
<p>
Fixed that xmerl_xsd:process_schema/2 with {xsdbase, Dirname} failed with enoent
and a number of inor documentation bugs in xmerl_xsd reference manual.
</p>
<p>
Own Id: OTP-7165
</p>
</item>
<item>
<p>
Fixed xmerl_scan's problem with numeric character references
followed by UTF-8 characters in the contents.
</p>
<p>
Own Id: OTP-7430
</p>
</item>
<item>
<p>
Fixed an incorrect guard for xmerl_scan:to_ucs/2.
</p>
<p>
Own Id: OTP-7473
</p>
</item>
<item>
<p>
Some bug corrections of xmerl XPath implementation, most
provided by Matthew Dempsky.</p>
<p>
Own Id: OTP-7496</p>
</item>
<item>
<p>
Now with <c>string()</c> and <c>name()</c> all XPath
functions are implemented. The string representation of
QName by <c>name()</c> is "{Namespace URI}local-name".</p>
<p>
Own Id: OTP-7510</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.9</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
A number of minor scanner faults have got more clear error messages.
</p>
<p>
Own Id: OTP-5998, Aux Id: seq9803
</p>
</item>
<item>
<p>
An example error in the Xmerl Users Guide is corrected.
</p>
<p>
Own Id: OTP-6947
</p>
</item>
<item>
<p>
When xmerl_xsd:validate was executed the schema table in the state
was deleted and next execution would fail. This is now corrected.
</p>
<p>
Own Id: OTP-7288
</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.8</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
A Kleene Closure child in a sequence consumed all
following children. This problem has been fixed.</p>
<p>
Own Id: OTP-7211</p>
</item>
<item>
<p>
Now validating xhtml1-transitional.dtd. A certain
contentspec with a succeeding choice, that didn't match
all content, followed by other child elements caused a
failure. This is now corrected.</p>
<p>
Own Id: OTP-7214</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.7</title>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
xmerl's schema validation now takes default facets into
account</p>
<p>
Own Id: OTP-7190</p>
</item>
</list>
</section>
</section>
<section><title>Xmerl 1.1.6</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Parsing XML with option <c>{validation,schema}</c> is now
corrected.</p>
<p>
Own Id: OTP-6773</p>
</item>
<item>
<p>
union type is now supported</p>
<p>
Own Id: OTP-6877 Aux Id: seq10755 </p>
</item>
<item>
<p>
Now xmerl validates as expected when a sequence has a
present group member and a following element.</p>
<p>
Own Id: OTP-6910</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1.5</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>The head of a substitutionGroup may have type anyType and
thus allow members of any type. This was an oversight, but is
now corrected.</p>
<p>Own Id: OTP-6720</p>
</item>
<item>
<p>A recursive group reference in a redefine refers to the
definition in the redefined schema. See 4.2.2 in
XMLSchema part1 "Schema Representation Constraint:
Individual Component Redefinition" bullet 2.</p>
<p>Own Id: OTP-6739</p>
</item>
<item>
<p>Solved some content model problems, for instance in some
cases failed when more than one choice.</p>
<p>Own Id: OTP-6752</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1.4</title>
<section>
<title>Improvements and New Features</title>
<list type="bulleted">
<item>
<p>An additional format is possible for the simple syntax:
<c>{Fun, State}</c>. The fun should retrieve the
replacement in simple syntax format. The semantics of
fun: <c>fun(State) -> code that creates replacement, then returns {SimpleSyntax,NewState} | done </c></p>
<p>Own Id: OTP-6679</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1.3</title>
<section>
<title>Improvements and New Features</title>
<list type="bulleted">
<item>
<p>Memory consumption decreased: moved transforming from
utf-8 to unicode from an extra pass of the document to
the occasion when a character is parsed. Removed use of
lists:subtract. Those changes also speeds up parsing in
some scenarios.</p>
<p>Own Id: OTP-6599 Aux Id: seq10552 </p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1.2</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Schema processor reprocessed schemas that already were
processed, using process_schemas on a system of schemas
with circular dependencies.</p>
<p>Own Id: OTP-6460 Aux Id: seq10564 </p>
</item>
</list>
</section>
<section>
<title>Improvements and New Features</title>
<list type="bulleted">
<item>
<p>Dialyzer warnings now removed, i.e. dead code have been
removed.</p>
<p>Own Id: OTP-6507</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1.1</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Bug in xmerl removed so that simple syntax element
content is exported correctly.</p>
<p>Own Id: OTP-6402 Aux Id: OTP-6099</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.1</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Xmerl failed to parse and export with the sax_file
front-end. Therefore hook function calls were added in the
parser and handling of text content were changed.</p>
<p>Own Id: OTP-6043</p>
</item>
<item>
<p>Bug in xmerl removed so that simple syntax element
content is exported correctly.</p>
<p>Own Id: OTP-6099</p>
</item>
</list>
</section>
<section>
<title>Improvements and New Features</title>
<list type="bulleted">
<item>
<p>xmerl now supports XMLSchema validation. Documentation in
reference manual for xmerl. The release of XMLSchema
validation should be considered as a beta release. The
user interface may still be adjusted in a coming
release. Opinions and evaluations are welcome.</p>
<p>Own Id: OTP-6401</p>
</item>
</list>
</section>
</section>
<section>
<title>xmerl 1.0.5</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Code that caused compiler warnings has been reviewed.</p>
</item>
</list>
</section>
</section>
<section>
<title>xmerl 1.0.4</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>xmerl behaved strange parsing a XML-document with a
copyright sign in a comment.</p>
<p>Own Id: OTP-5599</p>
</item>
<item>
<p>Line count for error messages in DTD improved, still
problem because of ENTITY expansions. Didn't delete
digraphs after recursion test. Now correctly parsing of
declaration separators [28a-b].</p>
<p>Own Id: OTP-5718</p>
</item>
<item>
<p>Failed to validate a XML file with a content spec that
had a choice of which one element was a sequence with
optional elements, and all elements of that sequence were
missing</p>
<p>Own Id: OTP-5734</p>
</item>
<item>
<p>Location paths for document root and attributes is now
working as expected.</p>
<p>Own Id: OTP-5895</p>
</item>
<item>
<p>Now has the last() predicate in the XPATH modules the
properties specified in ch 2.4 in the XPATH spec, i.e. if
last() evaluates to a number other than the context
position it is false, otherwise true.</p>
<p>Own Id: OTP-5902</p>
</item>
<item>
<p>The location path of a single wildcard now only selects
element nodes.</p>
<p>Own Id: OTP-5905</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.0.3</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Removed call of undefined function in xmerl_lib.</p>
<p>Own Id: OTP-5587</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.0.2</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Better identification of errors in xml code.</p>
<p>Own Id: OTP-5498 Aux Id: seq9803 </p>
</item>
<item>
<p>Some minor bugs fixed.</p>
<p>Own Id: OTP-5500</p>
</item>
<item>
<p>Parser failed on PE reference as EnumeratedType AttType,
now corrected.</p>
<p>Own Id: OTP-5531</p>
</item>
</list>
</section>
</section>
<section>
<title>Xmerl 1.0.1</title>
<section>
<title>Fixed Bugs and Malfunctions</title>
<list type="bulleted">
<item>
<p>Fixed bug in xmerl_xpath. Xpath expressions that select
nodes of type text() didn't work, like "context/text()",
"child::text()", "descendant::text()".</p>
<p>Own Id: OTP-5268 Aux Id: seq9656 </p>
</item>
<item>
<p>Minor bugs fixed.</p>
<p>Own Id: OTP-5301</p>
</item>
</list>
</section>
<!-- p>There are also release notes for <url href="notes_history.html">older versions</url>.</p -->
</section>
<section>
<title>Xmerl 1.0</title>
<section>
<title>Improvements and New Features</title>
<list type="bulleted">
<item>
<p>The OTP release of xmerl 1.0 is mainly the same as
xmerl-0.20 of http://sowap.sourceforge.net/. It is
capable of parsing XML 1.0. There have only been minor
improvements: Some bugs that caused an unexpected crash
when parsing bad XML. Failure report that also tells
which file that caused an error.</p>
<p>Own Id: OTP-5174</p>
</item>
</list>
</section>
</section>
</chapter>
|