1. 19 May, 2006 1 commit
    • Kasimier T. Buchcik's avatar
      Optimized the comparison for non-element nodes in xmlXPathCmpNodesExt(); · 2bdabbd7
      Kasimier T. Buchcik authored
      * xpath.c: Optimized the comparison for non-element nodes
        in xmlXPathCmpNodesExt(); the comparison is used for sorting
        of node-sets. This enhancement is related to bug #165547.
        There are other places where the old comparison function
        xmlXPathCmpNodes() is still called, but I currently don't
        know exactly what those calls are for; thus if they can be
        substituted (if it makes sense) for the new function.
      2bdabbd7
  2. 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
  3. 11 May, 2006 1 commit
    • Kasimier T. Buchcik's avatar
      Fixed bug #341337, reported by David Grohmann. The code expected a node · 9b02e295
      Kasimier T. Buchcik authored
      * xmlschemas.c: Fixed bug #341337, reported by David Grohmann.
        The code expected a node (xmlNodePtr) on the info for a
        non-existent default attribute, which clearly cannot be
        expected, since the attribute does not exist. I can only
        guess that this sneaked trying to eliminate the query
        for the owner-element, which is unavoidable actually.
        Note that creation of default attributes won't have an
        effect if validating via SAX/XMLReader; i.e., the processor
        won't fire additional start-attribute events (I'm not even
        sure if Libxml2 has such a SAX-event; I think it hands them
        all over in the start-element event).
      9b02e295
  4. 10 May, 2006 1 commit
  5. 09 May, 2006 1 commit
    • Kasimier T. Buchcik's avatar
      Fixed bug #341150, reported by Michael Romer. In · 92b394fc
      Kasimier T. Buchcik authored
      * xmlschemas.c: Fixed bug #341150, reported by Michael Romer.
        In xmlSchemaBuildContentModelForSubstGroup(),
        xmlAutomataNewOnceTrans2() was incorrectly used instead of
        xmlAutomataNewTransition2() to mimic a xs:choice for
        substitution-groups.
      * test/schemas/subst-group-1_1.xsd
        test/schemas/subst-group-1_0.xml
        result/schemas/subst-group-1_0_1
        result/schemas/subst-group-1_0_1.err: Added regression test
        supplied by Michael Romer for bug #341150.
      92b394fc
  6. 06 May, 2006 2 commits
  7. 04 May, 2006 1 commit
  8. 03 May, 2006 1 commit
  9. 02 May, 2006 2 commits
  10. 28 Apr, 2006 1 commit
  11. 27 Apr, 2006 2 commits
  12. 25 Apr, 2006 3 commits
  13. 24 Apr, 2006 1 commit
  14. 19 Apr, 2006 1 commit
  15. 13 Apr, 2006 2 commits
  16. 06 Apr, 2006 4 commits
  17. 03 Apr, 2006 1 commit
  18. 27 Mar, 2006 3 commits
  19. 26 Mar, 2006 1 commit
  20. 24 Mar, 2006 1 commit
  21. 21 Mar, 2006 1 commit
  22. 10 Mar, 2006 2 commits
  23. 09 Mar, 2006 5 commits
  24. 07 Mar, 2006 1 commit