# HG changeset patch # User Matthew Wild # Date 1396479672 -3600 # Node ID 1506d4582d446bb8a347901ef5d8696ce3e5bb88 # Parent 10c30b63873a095cf2d747ce044644b4a419a22d Update _VERSION, makefile, README and documentation to 1.3.0 diff -r 10c30b63873a -r 1506d4582d44 Makefile --- a/Makefile Wed Apr 02 21:02:29 2014 +0100 +++ b/Makefile Thu Apr 03 00:01:12 2014 +0100 @@ -31,4 +31,4 @@ $(INSTALL_PROGRAM) -D src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua clean: - $(RM) src/$(LIBNAME) $(OBJS) \ No newline at end of file + $(RM) src/$(LIBNAME) $(OBJS) diff -r 10c30b63873a -r 1506d4582d44 README --- a/README Wed Apr 02 21:02:29 2014 +0100 +++ b/README Thu Apr 03 00:01:12 2014 +0100 @@ -8,8 +8,8 @@ Status -Current version is 1.2.0. 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. +Current version is 1.3.0. It was developed for both Lua 5.1 and Lua 5.2, +and has been tested on Linux, Windows (XP) and MacOS X with Expat 2.1.0. Download @@ -18,6 +18,12 @@ History +Version 1.3.0 [04/Apr/2014] + + * support for the XmlDecl handler + * add parser:getcurrentbytecount() (XML_GetCurrentByteCount) + * ability to disable CharacterData merging + Version 1.2.0 [02/Jun/2011] * support for the StartDoctypeDecl handler diff -r 10c30b63873a -r 1506d4582d44 doc/us/index.html --- a/doc/us/index.html Wed Apr 02 21:02:29 2014 +0100 +++ b/doc/us/index.html Thu Apr 03 00:01:12 2014 +0100 @@ -66,8 +66,8 @@

Status

-

Current version is 1.2.0. 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.

+

Current version is 1.3.0. It was developed for both Lua 5.1 and Lua 5.2, and has been tested on +Linux, Windows (XP) and MacOS X with Expat 2.1.0.

Download

@@ -79,6 +79,15 @@

History

+
Version 1.3.0 [02/Apr/2014]
+
+
    +
  • support for the XmlDecl handler
  • +
  • add parser:getcurrentbytecount() (XML_GetCurrentByteCount)
  • +
  • ability to disable CharacterData merging
  • +
+
+
Version 1.2.0 [02/Jun/2011]
    @@ -156,7 +165,6 @@

    Valid XHTML 1.0!

    -

    $Id: index.html,v 1.45 2007/06/05 21:11:29 carregal Exp $

    diff -r 10c30b63873a -r 1506d4582d44 doc/us/manual.html --- a/doc/us/manual.html Wed Apr 02 21:02:29 2014 +0100 +++ b/doc/us/manual.html Thu Apr 03 00:01:12 2014 +0100 @@ -85,11 +85,11 @@

    Building

    -LuaExpat could be built to Lua 5.0 or to Lua 5.1. +LuaExpat could be built to Lua 5.1 or to Lua 5.2. In both cases, the language library and headers files for the desired version must be installed properly. -LuaExpat also depends on Expat 2.0.0 which should also be installed. +LuaExpat also depends on Expat 2.0.0+ which should also be installed.

    LuaExpat offers a Makefile and a separate configuration file, @@ -131,11 +131,13 @@

    Constructor

    -
    lxp.new(callbacks [, separator])
    +
    lxp.new(callbacks [, separator[, merge_character_data]])
    The parser is created by a call to the function lxp.new, which returns the created parser or raises a Lua error. It receives the callbacks table and optionally the parser - separator character used in the namespace expanded element names.
    + separator character used in the namespace expanded element names. + If merge_character_data is false then LuaExpat will not combine multiple + CharacterData calls into one. For more info on this behaviour see CharacterData below.

Methods

@@ -167,6 +169,12 @@
Returns three results: the current parsing line, column, and absolute position.
+
parser:getcurrentbytecount()
+
Return the number of bytes of input corresponding to the current + event. This function can only be called inside a handler, in other + contexts it will return 0. Do not use inside a CharacterData handler + unless CharacterData merging has been disabled (see lxp.new).
+
parser:setbase(base)
Sets the base to be used for resolving relative URIs in system identifiers.
@@ -205,8 +213,8 @@ ExternalEntityRef, NotStandalone, NotationDecl, ProcessingInstruction, StartCDataSection, StartElement, -StartNamespaceDecl, UnparsedEntityDecl -and StartDoctypeDecl.

+StartNamespaceDecl, UnparsedEntityDecl, +XmlDecl and StartDoctypeDecl.

These indices can be references to functions with specific signatures, as seen below. The parser constructor also @@ -226,7 +234,10 @@

callbacks.CharacterData = function(parser, string)
-
Called when the parser recognizes an XML CDATA string.
+
Called when the parser recognizes an XML CDATA string. + Note that LuaExpat automatically combines multiple CharacterData events + from Expat into a single call to this handler, unless merge_character_data + is set to false when calling lxp.new().
callbacks.Comment = function(parser, string)
Called when the parser recognizes an XML comment @@ -300,6 +311,11 @@
Called when the parser detects the begining of an XML CDATA section.
+
callbacks.XmlDecl = function(parser, version, encoding)
+
Called when the parser encounters an XML document declaration (these are + optional, and valid only at the start of the document). The callback receives + the declared XML version and document encoding.
+
callbacks.StartElement = function(parser, elementName, attributes)
Called when the parser detects the begining of an XML element with elementName.
@@ -371,7 +387,6 @@

Valid XHTML 1.0!

-

$Id: manual.html,v 1.27 2007/06/05 20:03:12 carregal Exp $