-
a<c       s     d  Z   d Z  d Z  d Z  d Z  d Z  d Z 	 d Z 
 d Z  d	 Z	  d
 Z
  d Z  d Z  d Z  d Z  d Z  d  Z  d Z  d Z  d Z  d Z  d Z  d Z  d Z  d Z  d	 Z  d
 Z  d Z   d Z # d  Z $ d Z % d Z & d Z  ) d  Z! * d Z" + d Z# , d Z$ - d Z% . d Z& / d Z' 0 d Z( 1 d Z) 2 d	 Z* 3 d
 Z+ 4 d Z, 5 d Z- 6 d Z. 8 d k/ l0 Z0 l1 Z1 9 d k2 l3 Z3 : d k4 l5 Z5 ; d k6 l7 Z7 < d k8 l9 Z9 = e3 Z: > e5 Z; ? e9 Z< @ e7 Z= A d k> l? Z? B d k@ lA ZA C d kB lC ZC E d k2 l3 Z3 F d k4 l5 Z5 I yM J d kD lE ZE K d kF lG ZG L d kF lH ZH M d kF lI ZI N d  ZJ Wn O P d ZJ n XR d kK ZK d kL ZL T d f  d     YZM eM   ZN d kO ZO d  eO iP f d!     YZP d" f  d#     YZQ 0eQ   ZR 2d$   ZS 5d%   ZT 8d& f  d'     YZU <d( f  d)     YZV CeU eV  ZW Ed* f  d+     YZX MeU eX  ZY d S(,   i   i   i   i   i   i   i   i   i	   i
   i   i   i   i   i   i   (   s
   ParsedExprs   ParsedNodeTest(   s   ParsedAbsoluteLocationPath(   s   ParsedRelativeLocationPath(   s%   ParsedAbbreviatedRelativeLocationPath(   s%   ParsedAbbreviatedAbsoluteLocationPath(   s
   ParsedStep(   s   ParsedAxisSpecifier(   s   ParsedPredicateList(   s   ParsedPattern(   s   ParsedStepPattern(   s   ParsedRelativePathPattern(   s   ParsedLocationPathPatterni    Ns	   FtFactoryc      s  T U e  Z V e Z W e Z X e Z Z d   Z ] d   Z	 f h  d e
 <d e <d e <d e <d e <d e <d	 e <d
 e <d e <d e <d e <d e <d e <Z v d   Z z h  d e <d e <d e <d e <Z  d   Z  d   Z  h  e  i! e" <e  i# e$ <e  i% d f e& <e  i% d f e' <e  i( d f e) <e  i( d f e* <e  i( d f e+ <e  i( d f e, <e  i- d f e. <e  i- d f e/ <e  i0 d f e1 <e  i0 d f e2 <e  i0 d f e3 <e  i4 e5 <Z6  d   Z7  d   Z8  d    Z9  d!   Z:  d"   Z;  d#   Z<  e  i= Z>  e  i? Z@  d$   ZA  eB o  eC ZD n  d%   ZE  d&   ZF  d'   ZG RS((   Nc    s    Z [ t  | | t |   Sd  S(   N(   s
   ParsedSteps   axiss   tests   ParsedPredicateLists
   predicates(   s   selfs   axiss   tests
   predicates(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys
   createStepZ s   c    sX   ] ^ | o _ d } n
 a d } b t t |  c t i d d  d t g    Sd  S(   Ns   parents   selfs   nodes    (   s   parents   types
   ParsedSteps   ParsedAxisSpecifiers   ParsedNodeTests   ParsedPredicateList(   s   selfs   parents   type(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createAbbreviatedStep] s   
	s   ancestors   ancestor-or-selfs	   attributes   childs
   descendants   descendant-or-selfs	   followings   following-siblings	   namespaces   parents	   precedings   preceding-siblings   selfc    s   v x t  |  i |  Sd  S(   N(   s   ParsedAxisSpecifiers   selfs   axisMaps   axis(   s   selfs   axis(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createAxisSpecifierv s   s   comments   texts   processing-instructions   nodec    s>     | t j o  d } n  t i |  i | |  Sd  S(   Ns    (   s   vals   Nones   ParsedNodeTests   selfs   ntMaps   type(   s   selfs   types   val(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createNodeTest s   c    sw     | d j o/  | o  t i |  Sn  t i   Sn  | o  t i | |  Sn  t i |  Sd  S(   Ns   *(   s   locals   prefixs   ParsedNodeTests   LocalNameTests   PrincipalTypeTests   QualifiedNameTests   NodeNameTest(   s   selfs   prefixs   local(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createNameTest s   

s   =s   !=i    i   i   i   ic    s     | t j o
 | t j o  t i |  Sn  |  i | }  t
 |  t i j o  | d | d | |  Sn  | | |  Sd  S(   Ni    i   (   s   operators   MINUS_OPERATORs   rights   Nones
   ParsedExprs   ParsedUnaryExprs   lefts   selfs   opMaps   cls   types   typess	   TupleType(   s   selfs   operators   lefts   rights   cl(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createNumericExpr s   c    s_     |  i | }  t |  t i j o  | d | d | |  Sn  | | |  Sd  S(   Ni    i   (	   s   selfs   opMaps   operators   cls   types   typess	   TupleTypes   lefts   right(   s   selfs   operators   lefts   rights   cl(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createBooleanExpr s   c    s     t  i d | |  Sd  S(   Ns   /(   s
   ParsedExprs   ParsedPathExprs   lefts   right(   s   selfs   lefts   right(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createPathExpr s   c    s      t  i t i | |  Sd  S(   N(   s
   ParsedExprs   ParsedPathExprs   XPATHs   DOUBLE_SLASHs   lefts   right(   s   selfs   lefts   right(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createAbbreviatedPathExpr s   c    s      t  i | t |   Sd  S(   N(   s
   ParsedExprs   ParsedFilterExprs   filters   ParsedPredicateLists
   predicates(   s   selfs   filters
   predicates(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createFilterExpr s   c    sE     | o   t i d | d |  Sn  t i d |  Sd  S(   Ns   $s   :(   s   prefixs
   ParsedExprs   ParsedVariableReferenceExprs	   localName(   s   selfs   prefixs	   localName(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createVariableReference s   
 c    sC     | o  t i | d | |  Sn  t i | |  Sd  S(   Ns   :(   s   prefixs
   ParsedExprs   ParsedFunctionCallExprs	   localNames   args(   s   selfs   prefixs	   localNames   args(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createFunctionCall s   
c    s    | t j o
 | t j o  t i   Sn  | t j o  t i |  Sn  | o
 | t j o  | Sn  | }  x?  d o4  | i }  t	 | d  o  | } n  Pq W | o
 | t j o  t
 i }  f  } n_  | o  t i }  | f } n9  | f }  | t j o  t i } n  t i }  | t j o   t | | | i    } n   t | | | i    | _  | Sd  S(   Ni   s   parent(   s   idkeys   Nones   steps   ParsedLocationPathPatterns   RootPatterns   IdKeyPatterns   isparents   lasts   parents   hasattrs   ParsedStepPatterns   RootParentStepPatterns   ctors   argss   IdKeyParentPatterns   IdKeyAncestorPatterns   applys   getShortcuts
   parentAxis(   s   selfs   idkeys   isparents   steps   lasts   parents   argss   ctor(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createLocationPathPattern s6   	 
	
 c 	   sm     | i   \ } }  | i   \ } }  | o  t i	 } n  t i }  | | | | |  Sd  S(   N(   s   rels   getShortcuts   parent_tests   parent_axiss   steps	   node_tests	   axis_types   parents   ParsedStepPatterns   ParentStepPatterns   ctors   AncestorStepPattern(	   s   selfs   rels   parents   steps   parent_tests	   axis_types	   node_tests   ctors   parent_axis(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createRelativePathPattern s   
c    sY     | i }  | o)  t |  }  t i | | |  Sn t i | |  Sd  S(   N(   s   axiss   principalTypes
   predicatess   ParsedPredicateLists   ParsedStepPatterns   PredicateStepPatterns   tests   StepPattern(   s   selfs   axiss   tests
   predicates(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   createStepPattern s
   
(H   s   PALPs   createAbsoluteLocationPaths   PAALPs%   createAbbreviatedAbsoluteLocationPaths   PRLPs   createRelativeLocationPaths   PARLPs%   createAbbreviatedRelativeLocationPaths
   createSteps   createAbbreviatedSteps   ANCESTOR_AXISs   ANCESTOR_OR_SELF_AXISs   ATTRIBUTE_AXISs
   CHILD_AXISs   DESCENDANT_AXISs   DESCENDANT_OR_SELF_AXISs   FOLLOWING_AXISs   FOLLOWING_SIBLING_AXISs   NAMESPACE_AXISs   PARENT_AXISs   PRECEDING_AXISs   PRECEDING_SIBLING_AXISs	   SELF_AXISs   axisMaps   createAxisSpecifiers   COMMENTs   TEXTs   PROCESSING_INSTRUCTIONs   NODEs   ntMaps   createNodeTests   createNameTests
   ParsedExprs   ParsedOrExprs   OR_OPERATORs   ParsedAndExprs   AND_OPERATORs   ParsedEqualityExprs   EQ_OPERATORs   NEQ_OPERATORs   ParsedRelationalExprs   LT_OPERATORs   GT_OPERATORs   LE_OPERATORs   GE_OPERATORs   ParsedAdditiveExprs   PLUS_OPERATORs   MINUS_OPERATORs   ParsedMultiplicativeExprs   TIMES_OPERATORs   DIV_OPERATORs   MOD_OPERATORs   ParsedUnionExprs   UNION_OPERATORs   opMaps   createNumericExprs   createBooleanExprs   createPathExprs   createAbbreviatedPathExprs   createFilterExprs   createVariableReferences   ParsedLiteralExprs   createLiterals   ParsedNLiteralExprs   createNumbers   createFunctionCalls   _xslt_patternss   ParsedPatterns   createPatterns   createLocationPathPatterns   createRelativePathPatterns   createStepPattern(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys	   FtFactoryT s4   					~-

 (	s   SyntaxErrorc      s   d   Z  d   Z RS(   Nc    s,   t  i i |  | |  	| |  _ d  S(   N(   s   yappsrts   SyntaxErrors   __init__s   selfs   poss   msgs   str(   s   selfs   poss   msgs   str(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   __init__s   c    s   |  i d j  o d Sn |  i } t |  i  d j og |  i d } | d j o d |  i | } n t |  d j o | d  d } n n d } | t |  i  | |  i f Sd  S(	   Ni    s   #<syntax-error>i   i   i   s   ...i   s"   SyntaxError[@ char %s in '%s': %s](	   s   selfs   poss   strs   texts   lens   starts   fmts   reprs   msg(   s   selfs   starts   texts   fmt(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   __repr__s   	(   s   __init__s   __repr__(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   SyntaxErrors   s   Parserc      s)   d   Z  "d   Z )d   Z RS(   Nc    sy   y6 d k  l } l } | | |  t  i   SWn6 t i j
 o$ }  t | i	 | i
 |   n Xd  S(   N(   s   XPaths   XPathScanner(   s   XPathGrammars   XPaths   XPathScanners   strs   factorys   Starts   yappsrts   SyntaxErrors   es   poss   msg(   s   selfs   strs   XPaths   es   XPathScanner(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   parseLocationPaths
    c    sy   "#y6 $d k  l } l } %| | |  t  i   SWn6 &t i j
 o$ } 't | i	 | i
 |   n Xd  S(   N(   s   XPaths   XPathScanner(   s   XPathGrammars   XPaths   XPathScanners   strs   factorys   FullExprs   yappsrts   SyntaxErrors   es   poss   msg(   s   selfs   strs   XPaths   es   XPathScanner(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys	   parseExpr"s
    c    sy   )*y6 +d k  l } l } ,| | |  t  i   SWn6 -t i j
 o$ } .t | i	 | i
 |   n Xd  S(   N(   s   XPaths   XPathScanner(   s   XPathGrammars   XPaths   XPathScanners   strs   factorys   FullPatterns   yappsrts   SyntaxErrors   es   poss   msg(   s   selfs   strs   XPaths   es   XPathScanner(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   parsePattern)s
    (   s   parseLocationPaths	   parseExprs   parsePattern(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   Parsers   c    s   23t  i |   Sd  S(   N(   s   parsers	   parseExprs   str(   s   str(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   Compile2s   c    s   56t  i |   Sd  S(   N(   s   parsers   parsePatterns   str(   s   str(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   CompilePattern5s   s   Factoryc      s   89d   Z  RS(   Nc    s   9:| |  _ d  S(   N(   s   cls   selfs   new(   s   selfs   cl(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   __init__9s   (   s   __init__(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   Factory8s   s
   ExprParserc      s   <=d   Z  RS(   Nc    sy   =>y6 ?d k  l } l } @| | |  t  i   SWn6 At i j
 o$ } Bt | i	 | i
 |   n Xd  S(   N(   s   XPaths   XPathScanner(   s   XPathGrammars   XPaths   XPathScanners   strs   factorys   FullExprs   yappsrts   SyntaxErrors   es   poss   msg(   s   selfs   strs   XPaths   es   XPathScanner(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   parse=s
    (   s   parse(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys
   ExprParser<s   s   PatternParserc      s   EFd   Z  RS(   Nc    sy   FGy6 Hd k  l } l } I| | |  t  i   SWn6 Jt i j
 o$ } Kt | i	 | i
 |   n Xd  S(   N(   s   XPaths   XPathScanner(   s   XPathGrammars   XPaths   XPathScanners   strs   factorys   FullPatterns   yappsrts   SyntaxErrors   es   poss   msg(   s   selfs   strs   XPaths   es   XPathScanner(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   parseFs
    (   s   parse(    (    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   PatternParserEs   (Z   s   ABSOLUTE_LOCATION_PATHs"   ABBREVIATED_ABSOLUTE_LOCATION_PATHs   RELATIVE_LOCATION_PATHs"   ABBREVIATED_RELATIVE_LOCATION_PATHs	   STEP_EXPRs	   NODE_TESTs	   NAME_TESTs   BINARY_EXPRs
   UNARY_EXPRs	   PATH_EXPRs   ABBREVIATED_PATH_EXPRs   FILTER_EXPRs   VARIABLE_REFERENCEs   LITERALs   NUMBERs   FUNCTION_CALLs   ANCESTOR_AXISs   ANCESTOR_OR_SELF_AXISs   ATTRIBUTE_AXISs
   CHILD_AXISs   DESCENDANT_AXISs   DESCENDANT_OR_SELF_AXISs   FOLLOWING_AXISs   FOLLOWING_SIBLING_AXISs   NAMESPACE_AXISs   PARENT_AXISs   PRECEDING_AXISs   PRECEDING_SIBLING_AXISs	   SELF_AXISs   COMMENTs   TEXTs   PROCESSING_INSTRUCTIONs   NODEs   OR_OPERATORs   AND_OPERATORs   EQ_OPERATORs   NEQ_OPERATORs   LT_OPERATORs   GT_OPERATORs   LE_OPERATORs   GE_OPERATORs   PLUS_OPERATORs   MINUS_OPERATORs   TIMES_OPERATORs   DIV_OPERATORs   MOD_OPERATORs   UNION_OPERATORs	   xml.xpaths
   ParsedExprs   ParsedNodeTests$   xml.xpath.ParsedAbsoluteLocationPaths   ParsedAbsoluteLocationPaths$   xml.xpath.ParsedRelativeLocationPaths   ParsedRelativeLocationPaths/   xml.xpath.ParsedAbbreviatedRelativeLocationPaths%   ParsedAbbreviatedRelativeLocationPaths/   xml.xpath.ParsedAbbreviatedAbsoluteLocationPaths%   ParsedAbbreviatedAbsoluteLocationPaths   PALPs   PRLPs   PAALPs   PARLPs   xml.xpath.ParsedSteps
   ParsedSteps   xml.xpath.ParsedAxisSpecifiers   ParsedAxisSpecifiers   xml.xpath.ParsedPredicateLists   ParsedPredicateLists   xml.xslt.ParsedPatterns   ParsedPatterns   xml.xslts   ParsedStepPatterns   ParsedRelativePathPatterns   ParsedLocationPathPatterns   _xslt_patternss   strings   typess	   FtFactorys   factorys   yappsrts   SyntaxErrors   Parsers   parsers   Compiles   CompilePatterns   Factorys
   ExprParsers   ExprParserFactorys   PatternParsers   PatternParserFactory(P   s   PatternParsers
   ExprParsers
   ParsedSteps   UNION_OPERATORs   GT_OPERATORs   TEXTs   AND_OPERATORs   parsers   NUMBERs   FUNCTION_CALLs   NEQ_OPERATORs   ParsedStepPatterns   ParsedPatterns   PatternParserFactorys   FOLLOWING_SIBLING_AXISs%   ParsedAbbreviatedRelativeLocationPaths   ParsedAbsoluteLocationPaths   ANCESTOR_OR_SELF_AXISs   yappsrts   MOD_OPERATORs   PARENT_AXISs   COMMENTs   RELATIVE_LOCATION_PATHs   DESCENDANT_OR_SELF_AXISs   VARIABLE_REFERENCEs   NAMESPACE_AXISs
   UNARY_EXPRs   DIV_OPERATORs   ParsedRelativePathPatterns   PRLPs   ABBREVIATED_PATH_EXPRs   factorys   TIMES_OPERATORs"   ABBREVIATED_ABSOLUTE_LOCATION_PATHs"   ABBREVIATED_RELATIVE_LOCATION_PATHs   ExprParserFactorys   typess   PALPs
   CHILD_AXISs   ParsedLocationPathPatterns   PAALPs   GE_OPERATORs   SyntaxErrors	   FtFactorys   NODEs   ABSOLUTE_LOCATION_PATHs   ParsedNodeTests   Parsers   ParsedRelativeLocationPaths   CompilePatterns   ParsedPredicateLists   Factorys   Compiles   PARLPs   LITERALs   PRECEDING_AXISs	   STEP_EXPRs	   SELF_AXISs   BINARY_EXPRs   OR_OPERATORs   PLUS_OPERATORs   LT_OPERATORs   strings   ANCESTOR_AXISs	   NODE_TESTs%   ParsedAbbreviatedAbsoluteLocationPaths	   NAME_TESTs   LE_OPERATORs	   PATH_EXPRs   PROCESSING_INSTRUCTIONs   EQ_OPERATORs   _xslt_patternss   MINUS_OPERATORs   PRECEDING_SIBLING_AXISs
   ParsedExprs   DESCENDANT_AXISs   FILTER_EXPRs   FOLLOWING_AXISs   ATTRIBUTE_AXISs   ParsedAxisSpecifier(    (    sD   /usr/local/twc/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.pys   ? s   																																																		