1. 10 May, 2012 1 commit
  2. 05 Mar, 2012 1 commit
    • Nico Weber's avatar
      Fix -Wempty-body warning from clang · cedf84d3
      Nico Weber authored
      clang recently grew a warning on `for (...);`. This patch
      fixes all two instances of this pattern in libxml. The changes
      don't modify the code semantic.
      cedf84d3
  3. 17 Jul, 2008 1 commit
  4. 06 Dec, 2007 1 commit
  5. 16 May, 2006 1 commit
    • Kasimier T. Buchcik's avatar
      Applied patch from Rob Richards, fixing a potential memory leak in · 6ed2eb47
      Kasimier T. Buchcik authored
      * xpath.c: Applied patch from Rob Richards, fixing a potential
        memory leak in xmlXPathTryStreamCompile(), when a list of
        namespaces was assigned to the XPath compilation context;
        here a new namespace list was created and passed to
        xmlPatterncompile(); but this list was not freed afterwards.
        Additionally we avoid now in xmlXPathTryStreamCompile() to
        compile the expression, if it has a colon - indicating
        prefixed name tests - and no namespace list was given. The
        streaming XPath mechanism needs a namespace list at
        compilation time (unlike normal XPath, where we can bind
        namespace names to prefixes at execution time).
      * pattern.c: Enhanced to use a string dict for local-names,
        ns-prefixes and and namespace-names.
        Fixed xmlStreamPushInternal() not to use string-pointer
        comparison if a dict is available; this won't work, since
        one does not know it the given strings originate from the
        same dict - and they normally don't do, since e.g.
        namespaces are hold on xmlNs->href. I think this would be
        worth an investigation: if we can add a @doc field to xmlNs
        and put the @href in to a additionan namespace dict hold
        in xmlDoc. Daniel will surely not like this idea :-) But
        evaluation of tons of elements/attributes in namespaces
        with xmlStrEqual() isn't the way we should go forever.
      6ed2eb47
  6. 09 Mar, 2006 1 commit
  7. 05 Jan, 2006 3 commits
  8. 19 Oct, 2005 1 commit
    • Kasimier T. Buchcik's avatar
      Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an · 940ab0c6
      Kasimier T. Buchcik authored
      * xmlschemas.c: Fixed a potential memory leak in
        xmlSchemaCheckCSelectorXPath() when an internal error occurs.
        Fixed setting of ctxt->err to the given error code in
        the parsing error functions.
      * pattern.c: Added internal xmlCompileIDCXPathPath() as a
        starting point for IDC XPath compilation; this and some other
        tiny changes fixes issues regarding whitespace in the
        expressions and IDC selector/field relevant restrictions of
        the subset of XPath. Fixed a missing blocking of attributes
        in xmlStreamPushInternal().
      940ab0c6
  9. 17 Oct, 2005 1 commit
    • Kasimier T. Buchcik's avatar
      Silenced intel compiler warnings (reported by Kjartan Maraas, bug · 65c2f1d7
      Kasimier T. Buchcik authored
      * tree.c pattern.c: Silenced intel compiler warnings (reported
        by Kjartan Maraas, bug #318517).
      * xmlschemas.c: The above changes in pattern.c revealed an
        inconsistency wrt IDCs: we now _only_ pop XPath states, if
        we really pushed them beforehand; this was previously not
        checked for the case when we discover an element node to be
        invalid wrt the content model.
        Fixed segfault in xmlSchemaGetEffectiveValueConstraint().
      65c2f1d7
  10. 14 Oct, 2005 1 commit
    • Kasimier T. Buchcik's avatar
      Fixed some identity-constraint issues: Restructured IDC node-tables · 27820270
      Kasimier T. Buchcik authored
      * xmlschemas.c: Fixed some identity-constraint issues:
        Restructured IDC node-tables
        Allowed IDCs to resolve also to nodes of complex type with
        simple content.
        Added check for keyrefs with references to keyrefs.
        IDC target-nodes were interferring with IDC node-tables,
        since they used one list of entries only. I separated this
        one big list into 3 lists: 1 for IDC node-table entries,
        1 for _duplicates_ of IDC node-table entries and 1 for
        IDC target-nodes. More code, but cleaner and it works at last.
        Keyrefs will fail to resolve to duplicate key/unique entries.
        I thought this was already working this way, but it didn't.
        The wording of the definition for [node table] in the spec
        can lead to a scenario, where keyrefs resolve perfectly, even
        if the relevant key-sequences of the referenced key/unique have
        duplicates in the subtree. Currently only Saxon 8.5.1 is
        dissallowing resolution to duplicate entries correctly - we
        will follow Saxon here.
        Removed some intel compiler warnings (reported by
        Kjartan Maraas, bug #318517).
      * pattern.c: Fixed an IDC-XPath problem when resolving to
        attributes.
      27820270
  11. 04 Sep, 2005 1 commit
  12. 03 Sep, 2005 1 commit
  13. 23 Jul, 2005 1 commit
    • Daniel Veillard's avatar
      changed xmlPatterncompile signature to pass an int and not an enum since · ed6c5497
      Daniel Veillard authored
      * pattern.c include/libxml/pattern.h: changed xmlPatterncompile
        signature to pass an int and not an enum since it can generate
        ABI compat troubles.
      * include/libxml/schematron.h schematron.c: adding the new
        schematron code, work in progress lots to be left and needing
        testing
      * include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in
        Makefile.am configure.in: integration of schematron into the
        build
      * xpath.c include/libxml/xpath.h: adding flags to control compilation
        options right now just XML_XPATH_CHECKNS.
      Daniel
      ed6c5497
  14. 22 Jul, 2005 1 commit
  15. 08 Jul, 2005 1 commit
  16. 14 Jun, 2005 2 commits
  17. 09 Jun, 2005 1 commit
    • William M. Brack's avatar
      Further enhancement for XPath streaming, consolidated with schemas usage · ea152c05
      William M. Brack authored
      * pattern.c, xpath.c, include/libxml/pattern.h: Further
        enhancement for XPath streaming, consolidated with
        schemas usage of pattern.c.  Added a new enum
        xmlPatternFlags.
      * doc/*, testapi.c, elfgcchack.h: updated to reflect new
        enum.
      * test/XPath/tests/mixedpat, test/XPath/docs/mixed,
        result/XPath/mixedpat: added regression test for problems
        reported in bug306348
      ea152c05
  18. 06 Jun, 2005 1 commit
  19. 09 May, 2005 1 commit
  20. 01 Apr, 2005 1 commit
    • Daniel Veillard's avatar
      revamped the elfgcchack.h format to cope with gcc4 change of aliasing · 5d4644ef
      Daniel Veillard authored
      * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h
        format to cope with gcc4 change of aliasing allowed scopes, had
        to add extra informations to doc/libxml2-api.xml to separate
        the header from the c module source.
      * *.c: updated all c library files to add a #define bottom_xxx
        and reimport elfgcchack.h thereafter, and a bit of cleanups.
      * doc//* testapi.c: regenerated when rebuilding the API
      Daniel
      5d4644ef
  21. 30 Mar, 2005 1 commit
  22. 04 Mar, 2005 1 commit
    • Kasimier T. Buchcik's avatar
      Enabled IDC parsing and validation. Added xmlSchemaCopyValue to the API; · 285ebabb
      Kasimier T. Buchcik authored
      * xmlschemas.c: Enabled IDC parsing and validation.
      * xmlschemastypes.c include/libxml/xmlschemastypes.h:
        Added xmlSchemaCopyValue to the API; this was done due to
        validation of default attributes against IDCs: since IDC keys
        consume the precomputed value, one needs a copy.
      * pattern.c: Enabled IDC support; this is currently done
        via calling xmlPatterncompile with a flag arg of 1.
      285ebabb
  23. 21 Feb, 2005 1 commit
  24. 17 Feb, 2005 1 commit
  25. 16 Feb, 2005 1 commit
    • Daniel Veillard's avatar
      fix the comment to describe the real return values lot of work on the · 56de87ee
      Daniel Veillard authored
      * encoding.c: fix the comment to describe the real return values
      * pattern.c xpath.c include/libxml/pattern.h: lot of work on
        the patterns, pluggin in the XPath default evaluation, but
        disabled right now because it's not yet good enough for XSLT.
        pattern.h streaming API are likely to be changed to handle
        relative and absolute paths in the same expression.
      Daniel
      56de87ee
  26. 05 Feb, 2005 3 commits
  27. 03 Feb, 2005 2 commits
  28. 01 Feb, 2005 1 commit
  29. 31 Jan, 2005 1 commit
  30. 30 Jan, 2005 3 commits
  31. 12 Jan, 2005 1 commit
  32. 10 Dec, 2003 1 commit