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/ChooseElement.pyc
mò xùžNc @ sƒ d Z d k Z d k l Z d k l Z l Z l Z d k l Z d k l Z d k l Z d k l Z d e f d „ ƒ YZ d S( s Implementation of the XSLT Spec choose instruction 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 N( s XSL_NAMESPACE( s XsltElements XsltExceptions Error( s WhenElement( s OtherwiseElement( s CoreFunctions( s Nodet ChooseElementc B sS t Z f Z e d d d d „ Z d „ Z d d „ Z d „ Z d „ Z d „ Z RS( Nt chooset 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/ChooseElement.pyR s c C s t i i i | ƒ | i d <d } d } x | i D]· } | i t i j ož | i t j o{ | i d j o$ d } | p t t i ƒ ‚ qÒ qå | i d j o$ | o d } qÒ t t i ƒ ‚ qå t t i ƒ ‚ qé t t i ƒ ‚ q2 q2 W| p t t i ƒ ‚ n d S( Nt _nssi i t whent otherwise( t xmlt domt extt GetAllNsR t __dict__t when_other_allowedt when_foundt childNodest childt nodeTypet Nodet ELEMENT_NODEt namespaceURIt XSL_NAMESPACER t XsltExceptiont Errort CHOOSE_WHEN_AFTER_OTHERWISEt CHOOSE_MULTIPLE_OTHERWISEt ILLEGAL_CHOOSE_CHILDt CHOOSE_REQUIRES_WHEN_CHILD( R R R R ( ( R t setup s( i c C sw | i ƒ } | i | i ƒ d } x; | i D]0 } | i | | | ƒ \ } } } | o Pq, q, W| i | ƒ | | f S( N( t contextt copyt origStatet setNamespacesR R t Nonet rec_tpl_paramsR R t instantiatet processort new_levelt chosent set( R R% R, R- R. R R* R' ( ( R R+ 6 s c C s d | i | i | i | i f S( N( R) R R R R R ( R ( ( R t __getinitargs__C s c C s"