|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/xslt/ |
Upload File : |
mō
Cėm>c @ 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"