Skip to content
  1. Mar 02, 2008
  2. Mar 01, 2008
    • Ivan Shvedunov's avatar
      Fixed some bugs, added some missing features. · 1a1c6bbc
      Ivan Shvedunov authored
      Fixed xnum parsing / unparsing.
      Fixed comparison operators.
      Added lang() function.
      Node sets returned by EVALUATE and EVALUATE-COMPILED now are automatically sorted
      using document order by default.
      Fixed following:: axis (again).
      Fixed NODE-TEST-NAME for namespace nodes.
      Numbers in XPath expressions are now never parsed into SINGLE-FLOAT.
      Added SORT-NODE-SET function.
      
      darcs-hash:f11136c9917dee6bd41d96f3e8950db389c78b55
      1a1c6bbc
  3. Feb 25, 2008
    • Ivan Shvedunov's avatar
      Important fixes & some new features. · cb747fe2
      Ivan Shvedunov authored
      Fixed :following, :preceding-sibling, :following-sibling and :namespace axes.
      Fixed contains() (what a shame! I made a mistake in the order of arguments).
      Fixed translate().
      Added get-node-id() and plx:generate-id() (same as generate-id() in XSLT).
      Added checks for number of arguments passed to XPath functions.
      Fixed a package-related problem in define-xpath-function/single-type.
      Fixed xnum-round.
      
      darcs-hash:f3bff21d76ef40b125506213bf44f04efd054b8d
      cb747fe2
  4. Feb 24, 2008
  5. Feb 18, 2008
    • Ivan Shvedunov's avatar
      Added some missing functions, bugfixes, test extensions. · caccb1be
      Ivan Shvedunov authored
      Added id(), namespace-uri(), floor(), round(), ceiling().
      Added xpath-protocol:get-element-by-id and its implementation for DOM.
      Added *dom-builder* and *document-element* in xpath-test.lisp so that it's
      now possible to run unit tests for other document representations.
      
      darcs-hash:27372b9c5e8d77100eb75ccffe3cc070893a2de3
      caccb1be
  6. Feb 10, 2008
  7. Dec 27, 2007
  8. Dec 09, 2007
    • david's avatar
      Implemented the number function. · 8446282e
      david authored
      Call number-value instead of returning the argument as-is.
      
      darcs-hash:1a92c17cd928f227fcc219f8ff15b13cbc2d7f51
      8446282e
  9. Dec 01, 2007
    • Ivan Shvedunov's avatar
      Some missing XPath funcs, code reorganization and minor bugfixes. · 54694b95
      Ivan Shvedunov authored
      Moved XPath parser to parser.lisp.
      
      Moved some of toplevel API to api.lisp.
      
      Added MAP-NODE-SET and DO-NODE-SET.
      
      Added proper unary minus handling.
      
      Added test cases for string representation of XPath in TEST-XPATH
      (previously TEST-XPATH/UNABBREVIATED).
      
      Made it possible to pass strings to compile-xpath.
      STRING-VALUE, NUMBER-VALUE, BOOLEAN-VALUE and NODE-SET-VALUE now can handle single nodes.
      Added XPATH-PROTOCOL:NODE-P.
      
      Compiler macro for EVALUATE now issues warning instead of error if EVALUATE
      is used outside lexical scope of (WITH-NAMESPACES (...) ...)
      
      Added some of missing XPath functions - substring(), true(), false(),
      boolean(), number()
      
      darcs-hash:973601a675f33d9ebcd85ef89b6270e702fbaa1d
      54694b95
  10. Nov 25, 2007
    • david's avatar
      new package XPATH-PROTOCOL; STP support; tests run again · ef46381f
      david authored
      darcs-hash:2d8860ef9e911e6597859b4fa6ea89a4138523bc
      ef46381f
    • david's avatar
      applied parse-xpath-3.diff: · 738a5991
      david authored
      functions.lisp
              - new function XPATH:UNION for the | operator
                (not a keyword because not technically an XPath function)
      
      lexer.lisp
      	Lots of fixes.
      
      node-tests.lisp
      	- NODE-TEST-NAME
      	  Added the namespace URI as an optional second argument.
      	- NODE-TEST-NAMESPACE
      	  New, checks only the namespace and not the local name.
      	- NODE-TEST-PROCESSING-INSTRUCTION
      	  Added the name to check as an optional argument.
      
      types.lisp
      	- CONTEXT-VARIABLE-VALUE
      	  New generic function looking up variable values during
      	  evaluation.
      	- ENVIRONMENT
      	  New struct, basically a compilation-time context.
      	- ENVIRONMENT-FIND-NAMESPACE
      	  New generic function for prefix -> uri lookups
      	- ENVIRONMENT-FIND-FUNCTION
      	  New generic function for (local-name uri) -> function lookups.
      	- ENVIRONMENT-VALIDATE-VARIABLE
      	  New generic function that returns true if the variable is
      	  declared.
      	- TEST-ENVIRONMENT
      	  An environment that pretends to know about every namespace,
      	  function, and variable. For use only in parser tests.
      
      xpath.lisp
      
      	- MAKE-LOCATION-STEP
      	  Now accepts the list of predicates instead of just one
      	  predicate.
      	- COMPILE-PREDICATES
      	  helper function for make-location-step
       	- DECODE-QNAME, FIND-NAMESPACE
      	  New
      	- COMPILE-XPATH
      	    * New second argument `environment'.
      	    * For function calls, check if the function name is a string
      	      rather than a symbol, and if so, look it up in the enviroment.
      	    * New: variables
      	    * New: filters
      	- COMPILE-VARIABLE
      	  New
      	- COMPILE-NODE-TEST
      	  Split qnames.  And allow lists as node-tests to handle
      	  :namespace, named :processing-instruction, and pre-parsed :qname
      	- COMPILE-LOCATION-STEP
      	    * New second argument `environment'.
      	    * Accept multiple predicates.
      	- COMPILE-PATH
      	  New second argument `environment'.
      	- COMPILE-FILTER-PATH
      	  New
      
      axis.lisp
      	- new axis :namespace
      	- new axis :following-sibling
      	- new axis :preceding-sibling
      	- new axis :following
      	- new axis :preceding
      	- new axis :ancestor-or-self
      	and
      	- pseudo axis :root  -- FIXME: is this right?
      
      darcs-hash:828be75c0208ef166e480cfe33eb83b3ac57f285
      738a5991
    • david's avatar
      Ivan Shvedunov's XPath implementation · 1ed90069
      david authored
      darcs-hash:b96e13c8d54121d1fbfffc220ff442053e425942
      1ed90069