# HG changeset patch
# User Matthew Wild
# Date 1307028590 -3600
# Node ID 4570d6616c99b5fc36318ab12d4598752b1f3189
# Parent a3cc83281bb83021936c1d4520c28dd21b48edeb
Update docs and README for 1.1.1 release
diff -r a3cc83281bb8 -r 4570d6616c99 README
--- a/README Thu Jun 02 16:27:59 2011 +0100
+++ b/README Thu Jun 02 16:29:50 2011 +0100
@@ -8,7 +8,7 @@
Status
-Current version is 1.1.0. It was developed for both Lua 5.0 and Lua 5.1,
+Current version is 1.1.1. It was developed for both Lua 5.0 and Lua 5.1,
and has been tested on Linux, Windows (2000/XP) and MacOS X with Expat 2.0.0.
Download
@@ -18,6 +18,11 @@
History
+Version 1.1.1 [02/Jun/2011]
+
+ * support for the StartDoctypeDecl handler
+ * add parser:stop() to abort parsing inside a callback
+
Version 1.1.0 [05/Jun/2006]
* adapted to work on both Lua 5.0 and Lua 5.1
@@ -52,5 +57,3 @@
For more information please contact us (info at keplerproject dot org). Comments are welcome!
You can also reach other Kepler developers and users on the Kepler Project mailing list.
-
-$Id: README,v 1.2 2007/06/05 20:03:12 carregal Exp $
diff -r a3cc83281bb8 -r 4570d6616c99 doc/us/index.html
--- a/doc/us/index.html Thu Jun 02 16:27:59 2011 +0100
+++ b/doc/us/index.html Thu Jun 02 16:29:50 2011 +0100
@@ -66,7 +66,7 @@
Status
-Current version is 1.1.0. It was developed for both Lua 5.0 and Lua 5.1, and has been tested on
+
Current version is 1.1.1. It was developed for both Lua 5.0 and Lua 5.1, and has been tested on
Linux, Windows (2000/XP) and MacOS X with Expat 2.0.0.
Download
@@ -79,6 +79,14 @@
History
+ - Version 1.1.1 [02/Jun/2011]
+ -
+
+ - support for the StartDoctypeDecl handler
+ - add parser:stop() to abort parsing inside a callback
+
+
+
- Version 1.1.0 [05/Jun/2007]
-
diff -r a3cc83281bb8 -r 4570d6616c99 doc/us/manual.html
--- a/doc/us/manual.html Thu Jun 02 16:27:59 2011 +0100
+++ b/doc/us/manual.html Thu Jun 02 16:29:50 2011 +0100
@@ -175,6 +175,13 @@
- Set the encoding to be used by the parser. There are four
built-in encodings, passed as strings: "US-ASCII",
"UTF-8", "UTF-16", and "ISO-8859-1".
+
+ - parser:stop()
+ - Abort the parser and prevent it from parsing any further
+ through the data it was last passed. Use to halt parsing the
+ document when an error is discovered inside a callback, for
+ example. The parser object cannot accept more data after
+ this call.
Callbacks
@@ -198,7 +205,8 @@
ExternalEntityRef, NotStandalone,
NotationDecl, ProcessingInstruction,
StartCDataSection, StartElement,
-StartNamespaceDecl, and UnparsedEntityDecl.
+StartNamespaceDecl, UnparsedEntityDecl
+and StartDoctypeDecl.
These indices can be references to functions with
specific signatures, as seen below. The parser constructor also
@@ -337,6 +345,15 @@
For this example the publicId parameter would be nil.
The base parameter would be whatever has been set with
parser:setbase
. If not set, it would be nil.
+
+
callbacks.StartDoctypeDecl = function(parser, name, sysid, pubid, has_internal_subset)
+ Called when the parser detects the beginning of an XML
+ DTD (DOCTYPE) section. These precede the XML root element and take
+ the form:
+
+<!DOCTYPE root_elem PUBLIC "example">
+
+
The separator character