|
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 l Z d k Z d k l Z d k Z d k l Z l Z l Z d k l
Z
d k l Z l
Z
d k l Z d e f d „ ƒ YZ d S(
sÿ
Implementation of the XSLT Spec copy-of 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 Node( s XsltElements
XsltExceptions Error( s g_xsltRecognizedNodes( s XPathParsers Conversions( s XMLNS_NAMESPACEt
CopyOfElementc B s_ t Z d Z e i i d d d d „ Z d „ Z d „ Z d „ Z d „ Z
d
„ Z d „ Z RS(
Nt selects copy-oft 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/CopyOfElement.pyR s c C s{ t i ƒ } | i t d ƒ | i d <| i p t t i ƒ ‚ n | i
| i ƒ | i d <t i i
i | ƒ | i d <d S( NR t _selectt _exprt _nss( t XPathParsert parserR t getAttributeNSt EMPTY_NAMESPACEt __dict__R
t
XsltExceptiont Errort COPYOF_MISSING_SELECTt parseExpressiont xmlt domt extt GetAllNs( R R ( ( R t setup s
c C sÐ | i ƒ } | i | i ƒ | i i | ƒ } t | d ƒ o | i
t j o
| g } n t | ƒ t g ƒ j o% xE | D] } | i | | ƒ q{ Wn$ t i | ƒ } | i d i | ƒ | i | ƒ | f S( Nt nodeTypeiÿÿÿÿ( t contextt copyt origStatet
setNamespacesR R R t evaluatet expResultt hasattrR t g_xsltRecognizedNodest typet childt _CopyOfElement__copyNodet processort Conversionst StringValuet stt writerst textt set( R R R* R$ R- R( R! ( ( R t instantiate( s
c C s
| i t i j o( x% | i D] } | i | | ƒ q Wn | i t i j o( x% | i D] } | i | | ƒ qX Wn | i t i
j o | i d i | i
ƒ nf| i t i j o¢ | i d i | i | i ƒ xC | i i ƒ D]2 } | d t j o | i | | i | ƒ qä qä Wx! | i D] } | i | | ƒ q$W| i d i | i ƒ n± | i t i j o; | i t j o' | i d i | i | i | i ƒ q nc | i t i j o | i d i | i
ƒ n5 | i t i j o! | i d i | i | i
ƒ n d S( Niÿÿÿÿi ( t nodeR t Nodet
DOCUMENT_NODEt
childNodesR( R R) R* t DOCUMENT_FRAGMENT_NODEt TEXT_NODER. R/ t datat ELEMENT_NODEt startElementt nodeNamet namespaceURIt
attributest keyst kt XMLNS_NAMESPACEt
endElementt ATTRIBUTE_NODEt attributet namet valuet COMMENT_NODEt commentt PROCESSING_INSTRUCTION_NODEt processingInstructiont target( R R* R2 R( R? ( ( R t
__copyNode9 s:
+! c C s d | i | i | i | i f S( N( t NoneR R<