-í
?1í;c       sŽ     d  Z    d k l Z  d k l Z  d k l Z  d k Z  d f  d „  ƒ  YZ 6 d f  d „  ƒ  YZ M d	 f  d
 „  ƒ  YZ	 d S(   s  
A Parsed token that represents a step on the result tree.
WWW: http://4suite.org/XPATH        e-mail: support@4suite.org

Copyright (c) 2000-2001 Fourthought Inc, USA.   All Rights Reserved.
See  http://4suite.org/COPYRIGHT  for license and copyright information
(   s   Node(   s   Util(   s   NamespaceNodeNs
   ParsedStepc      sP     e  d „ Z  d „  Z % e Z ' d d „ Z - d „  Z 0 d „  Z RS(   Nc    s2     | |  _  | |  _  | |  _  d  Sd  S(   N(   s   axiss   selfs   _axiss   nodeTests	   _nodeTests
   predicatess   _predicates(   s   selfs   axiss   nodeTests
   predicates(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __init__ s   c    sn      ! |  i i | |  i i ƒ \ } } " |  i o
 t	 | ƒ o # |  i i
 | | | ƒ } n $ | Sd S(   st   
        Select a set of nodes from the axis, then filter through the node
        test and the predicates.
        N(   s   selfs   _axiss   selects   contexts	   _nodeTests   matchs   node_sets   reverses   _predicatess   lens   filter(   s   selfs   contexts   node_sets   reverse(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   evaluate s
   $s    c    sh   ' ( | t |  ƒ GH) |  i i | d ƒ * |  i i | d ƒ + |  i o |  i i | d ƒ d  S(   Ns     (   s   indents   strs   selfs   _axiss   pprints	   _nodeTests   _predicates(   s   selfs   indent(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   pprint' s   c    s$   - . d t  |  ƒ t |  ƒ f Sd  S(   Ns   <Step at %x: %s>(   s   ids   selfs   repr(   s   self(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __str__- s   c    sX   0 1 t  |  i ƒ d t  |  i ƒ } 2 |  i o 3 | t  |  i ƒ } n 4 | Sd  S(   Ns   ::(   s   reprs   selfs   _axiss	   _nodeTests   results   _predicates(   s   selfs   result(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __repr__0 s   #(   s   Nones   __init__s   evaluates   selects   pprints   __str__s   __repr__(    (    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys
   ParsedStep s   		s   ParsedAbbreviatedStepc      sM   6 7 d „  Z  : d „  Z @ e Z B d d „ Z E d „  Z H d „  Z RS(   Nc    s   7 8 | |  _  d  S(   N(   s   parents   self(   s   selfs   parent(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __init__7 s   c    sv   : ; |  i oU < | i i t i j o = | i i g Sn > | i i o | i i g p g  Sn ? | i g Sd  S(   N(	   s   selfs   parents   contexts   nodes   nodeTypes   Nodes   ATTRIBUTE_NODEs   ownerElements
   parentNode(   s   selfs   context(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   evaluate: s
   (s    c    s   B C | t |  ƒ GHd  S(   N(   s   indents   strs   self(   s   selfs   indent(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   pprintB s   c    s$   E F d t  |  ƒ t |  ƒ f Sd  S(   Ns   <AbbreviatedStep at %x: %s>(   s   ids   selfs   repr(   s   self(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __str__E s   c    s   H I |  i o d p d Sd  S(   Ns   ..s   .(   s   selfs   parent(   s   self(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __repr__H s   (   s   __init__s   evaluates   selects   pprints   __str__s   __repr__(    (    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   ParsedAbbreviatedStep6 s   	s   ParsedNodeSetFunctionc      sP   M N e  d „ Z S d „  Z _ e Z a d d „ Z f d „  Z i d „  Z RS(   Nc    s&   N O | |  _ P | |  _ Q d  Sd  S(   N(   s   functions   selfs	   _functions
   predicatess   _predicates(   s   selfs   functions
   predicates(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __init__N s   c    s›   S W X |  i i | ƒ } Y t | ƒ t g  ƒ j o  Z t d t |  i ƒ ƒ ‚ n \ |  i o
 t	 | ƒ o ] |  i i
 | | t ƒ } n ^ | Sd S(   sn   
        Select a set of nodes from the node-set function then filter
        through the predicates.
        s"   %s does not evaluate to a node-setN(   s   selfs	   _functions   evaluates   contexts   node_sets   types   SyntaxErrors   reprs   _predicatess   lens   filters   reverse(   s   selfs   contexts   node_set(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   evaluateS s    s    c    sQ   a b | t |  ƒ GHc |  i i | d ƒ d |  i o |  i i | d ƒ d  S(   Ns     (   s   indents   strs   selfs	   _functions   pprints   _predicates(   s   selfs   indent(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   pprinta s   c    s$   f g d t  |  ƒ t |  ƒ f Sd  S(   Ns   <Step at %x: %s>(   s   ids   selfs   repr(   s   self(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __str__f s   c    sG   i j t  |  i ƒ } k |  i o l | t  |  i ƒ } n m | Sd  S(   N(   s   reprs   selfs	   _functions   results   _predicates(   s   selfs   result(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   __repr__i s   (   s   Nones   __init__s   evaluates   selects   pprints   __str__s   __repr__(    (    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   ParsedNodeSetFunctionM s   	(
   s   __doc__s   xml.doms   Nodes	   xml.xpaths   Utils   NamespaceNodes   syss
   ParsedSteps   ParsedAbbreviatedSteps   ParsedNodeSetFunction(   s   Nodes   Utils
   ParsedSteps   syss   ParsedAbbreviatedSteps   NamespaceNodes   ParsedNodeSetFunction(    (    sG   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/ParsedStep.pys   ? s   !