17 years agoAdded sort function. Added '_' variable to keep last result.
Frederic Jolliton [Mon, 12 Sep 2005 02:59:09 +0000 (02:59 +0000)]
Added sort function. Added '_' variable to keep last result.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-22

17 years agoAdded more XPath functions.
Frederic Jolliton [Sun, 11 Sep 2005 06:13:41 +0000 (06:13 +0000)]
Added more XPath functions.

 * Added support for special floats (nan, -inf, +inf)

 * Added optimization to prevent building full string representation of a
   node (using string iterator instead of dmStringValue.)

 * Several new functions.

 * Updated some functions to follow standard more closely.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-21

17 years agoAdded functions for special floats numbers. Added functions for working on string...
Frederic Jolliton [Sun, 11 Sep 2005 05:49:25 +0000 (05:49 +0000)]
Added functions for special floats numbers. Added functions for working on string iterator.

 * Added functions to test special floats numbers (NaN, +inf, -inf)
   (isNotANumber, isInfinity, isPositiveInfinity, isNegativeInfinity,

 * Added some functions that can work on string and also on iterator of
   strings to:

   - compute the total length,

   - test if a string starts with another string,

   - test if two strings are equals.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-20

17 years agoClone nodes as needed. Added __cmp__ to Node. Removed dead function _getEncoder.
Frederic Jolliton [Sun, 11 Sep 2005 05:43:30 +0000 (05:43 +0000)]
Clone nodes as needed. Added __cmp__ to Node. Removed dead function _getEncoder.

 * Nodes are cloned when inserted in a tree if they're already part of
   another tree.

 * Added __cmp__ operator, which compare nodes based on string values.

 * Removed dead function _getEncoder.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-19

17 years agoBetter function arity checking. Fixed a raise statement.
Frederic Jolliton [Sun, 11 Sep 2005 05:39:30 +0000 (05:39 +0000)]
Better function arity checking. Fixed a raise statement.

 * Enhanced functionArity to return None as maximum number of parameters
   in case where the function is declared with a *args style argument.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-18

17 years agoMissing Decimal import.
Frederic Jolliton [Sat, 10 Sep 2005 23:41:19 +0000 (23:41 +0000)]
Missing Decimal import.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-17

17 years agoSequence can now be compared with a single item.
Frederic Jolliton [Sat, 10 Sep 2005 23:40:22 +0000 (23:40 +0000)]
Sequence can now be compared with a single item.

 * Update Sequence's __eq__ operator to allow comparison with a single
   item (in which case, True is returned if Sequence is of length 1 and
   its only item is equal to the specified item.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-16

17 years agoAdded 'parse' function to XPath prompt.
Frederic Jolliton [Sat, 10 Sep 2005 23:28:27 +0000 (23:28 +0000)]
Added 'parse' function to XPath prompt.

 * Added 'parse' function that can parse a HTML (or XML) document and
   return the corresponding document.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-15

17 years agoTags now allow nested tuple/list, including iterators, to create nodes.
Frederic Jolliton [Sat, 10 Sep 2005 23:26:48 +0000 (23:26 +0000)]
Tags now allow nested tuple/list, including iterators, to create nodes.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-14

17 years agoEnhanced encoding detection when parsing HTML (or XML) document.
Frederic Jolliton [Thu, 8 Sep 2005 03:16:59 +0000 (03:16 +0000)]
Enhanced encoding detection when parsing HTML (or XML) document.

 * Enchanced encoding detection algorithm, to check BOM, XML declaration
   and "http-equiv" meta element. Moved to misc module.

 * Fixed bug in guessXmlCharacterEncoding when passing an Unicode string
   (skip offset was missing from the return value.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-13

17 years agoEnsure wrappers function name are set with a non-unicode string.
Frederic Jolliton [Wed, 7 Sep 2005 23:25:14 +0000 (23:25 +0000)]
Ensure wrappers function name are set with a non-unicode string.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-12

17 years agoFixed prompt to correctly handle 8bits input.
Frederic Jolliton [Wed, 7 Sep 2005 23:22:47 +0000 (23:22 +0000)]
Fixed prompt to correctly handle 8bits input.

 * Fixed prompt to correctly handle 8bits input, such as when using
   Unicode terminal.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-11

17 years agoAdded fn:contains and fn:ends-with. Optimized fn:starts-with.
Frederic Jolliton [Wed, 7 Sep 2005 23:20:23 +0000 (23:20 +0000)]
Added fn:contains and fn:ends-with. Optimized fn:starts-with.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-10

17 years agoAdded fn:starts-with function.
Frederic Jolliton [Wed, 7 Sep 2005 21:45:23 +0000 (21:45 +0000)]
Added fn:starts-with function.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-9

17 years agoFixed attribute parsing to tolerate more bad stuff (from Google..)
Frederic Jolliton [Wed, 7 Sep 2005 21:44:20 +0000 (21:44 +0000)]
Fixed attribute parsing to tolerate more bad stuff (from Google..)

 * Fixed attribute parsing to tolerate some bad formated value
   (such as those who contains '=' character without even being
   quoted properly.)

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-8

17 years agoHandle ^C from prompt.
Frederic Jolliton [Wed, 7 Sep 2005 16:31:10 +0000 (16:31 +0000)]
Handle ^C from prompt.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-7

17 years agoFixed <script>/<style> element parsing.
Frederic Jolliton [Wed, 7 Sep 2005 16:27:51 +0000 (16:27 +0000)]
Fixed <script>/<style> element parsing.

 * Fixed HTML parser to wait correct ending tag for <script> and <style>
   element (previously we were stopping at the first "</" found.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-6

17 years agotx-prompt: Fake UserAgent by default + allow to change UserAgent at runtime.
Frederic Jolliton [Wed, 7 Sep 2005 15:53:11 +0000 (15:53 +0000)]
tx-prompt: Fake UserAgent by default + allow to change UserAgent at runtime.

 * Default UserAgent (so that testing with Google and some other sites

 * Allow to change UserAgent at runtime by updating $ua variable.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-5

17 years agoUpdated install script to generate symbolic link.
Frederic Jolliton [Wed, 7 Sep 2005 15:46:30 +0000 (15:46 +0000)]
Updated install script to generate symbolic link.

 * Updated install script to generate symbolic link when specified in
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-4

17 years agoFixed HTML parsing when several attributes have the same name.
Frederic Jolliton [Wed, 7 Sep 2005 15:45:19 +0000 (15:45 +0000)]
Fixed HTML parsing when several attributes have the same name.

 * Fixed HTML parsing by allowing several attributes with same name.
   Only the first of such set is kept.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-3

17 years agoFix attributes with no value following '='.
Frederic Jolliton [Wed, 7 Sep 2005 15:43:05 +0000 (15:43 +0000)]
Fix attributes with no value following '='.

 * Fixed attributes parsing by allowing empty value after =.
   We return '' (empty string) instead of None previously.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-2

17 years agoFix optimization when looking for attributes with any name ('*').
Frederic Jolliton [Wed, 7 Sep 2005 13:52:06 +0000 (13:52 +0000)]
Fix optimization when looking for attributes with any name ('*').

 * Fixed extDescendantAttribute function to handle correctly attribute
   name '*'.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-1

17 years agoinitial import frederic@jolliton.com--2005-main,tx--main--0.1--base-0
Frederic Jolliton [Wed, 7 Sep 2005 13:23:34 +0000 (13:23 +0000)]
initial import

(automatically generated log message)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--base-0