Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
_xmlplus
/
xslt
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/_xmlplus/xslt/ForEachElement.pyo
mò xùžNc @ st d Z d k l Z d k Z d k Z d k Z d k l Z l Z l Z l Z d k l Z d e f d „ ƒ YZ d S( s Implementation of the XSLT Spec for-each stylesheet element. WWW: http://4suite.com/4XSLT e-mail: support@4suite.com Copyright (c) 1999-2000 Fourthought Inc, USA. All Rights Reserved. See http://4suite.com/COPYRIGHT for license and copyright information ( s EMPTY_NAMESPACEN( s XsltElements XsltExceptions Errors XSL_NAMESPACE( s XPathParsert ForEachElementc B sV t Z d Z e i i d d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nt selects for-eacht xslt c C s t i | | | | | | ƒ d S( N( t XsltElementt __init__t selft doct urit localNamet prefixt baseUri( R R R R R R ( ( t@ /usr/lib/python2.4/site-packages/_xmlplus/xslt/ForEachElement.pyR s c C sÍ | i t d ƒ | i d <t i i i | ƒ | i d <| i o) t i ƒ } | i | i ƒ | i d <n d | i d <g | i d <xD | i D]9 } | i | i f t d f j o | i i | ƒ qŒ qŒ Wd S( NR t _selectt _nsst _exprt _sortSpecst sort( R t getAttributeNSt EMPTY_NAMESPACEt __dict__t xmlt domt extt GetAllNsR t XPathParsert parsert parseExpressiont Nonet childNodest childt namespaceURIR t XSL_NAMESPACER t append( R R R ( ( R t setup s c C sE | i ƒ } | i | i ƒ | i oB | i i | ƒ } t | ƒ t g ƒ j o t t i ƒ ‚ qt n | i i } t | ƒ } | d j o8 | i o. | i d i | | | | i d ƒ d } n xi t | ƒ D][ } | | } | i | | d | f ƒ | | _ x% | i D] } | i | | ƒ d qWqÒ W| i | ƒ | f S( Ni i ( t contextt copyt origStatet setNamespacesR R R R t evaluatet resultt typet XsltExceptiont Errort INVALID_FOREACH_SELECTt nodeR t lent sizeR t instantiatet processort ranget ctrt setNodePosSizet currentNodeR t set( R R# R1 R- R3 R R( R/ R% ( ( R R0 , s( . c C s d | i | i | i | i f S( N( R R R R R R ( R ( ( R t __getinitargs__D s c C s4 t i | ƒ } | | i | i | i | i f } | S( N( R t __getstate__R t base_stateR R R R t new_state( R R9 R: ( ( R R8 H s !c C sL t i | | d ƒ | d | _ | d | _ | d | _ | d | _ d S( Ni i i i i ( R t __setstate__R t stateR R R R ( R R<