;Vc@s'ddlZeed rCddlZddlZddlZnyddlmZmZWnek rdZdZybddl Z e j dZ e dkpe dkrdZdZne d krd ZdZnWnnXndZdZnXedkoedkryZej Z ejeeBz(ddlZddlZddlZWdeje XWn+ddlZddlZddlZnXn$ddlZddlZddlZd fd YZd fdYZdfdYZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ 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/ej0fd0YZ0d1ej1fd2YZ1d3efd4YZ2d5efd6YZ3dZ4d7Z5dZ6dZ7d7Z8dZ9d8Z:d9Z;d:Z<d;Z=d<Z>d Z?d=Z@dZAd7ZBdZCdZDd7ZEd7ZFdZGd8ZHd9ZId:ZJd;ZKd<ZLd ZMd=ZNd>ZOd?ZPd@ZQdAZRdBZSdCZTdDZUdEZVdFZWdGZXdHZYdIZZdJZ[dKZ\dLZ]dMZ^dNZ_dOZ`dPZadQZbdZcd7ZddZed7ZfdZgd8Zhd9Zid:ZjdZkdZld7ZmdZnd9Zod ZpdDZqdRZrdSZsdTZtdZudUZvdVZwdWZxdXZydYZzdZZ{d[Z|d\Z}dS(]iNtgetdlopenflags(t RTLD_GLOBALtRTLD_NOWitLinuxtSunOSiitDarwinittransformCtxtBasecBs&eZddZdZdZRS(cCs&|dkr||_dSd|_dS(N(tNonet_o(tselft_obj((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt__init__=s  cCstj|j}|S(N(t libxsltmodtxsltGetTransformContextHashCodeR(R tv((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt__hash__BscCs,|dkrdStj|j|j}|S(Ni(RR t!xsltCompareTransformContextsEqualR(R totherR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt__eq__Es N(t__name__t __module__RR RR(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR<s  tstylesheetBasecBs&eZddZdZdZRS(cCs&|dkr||_dSd|_dS(N(RR(R R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR Ls  cCstj|j}|S(N(R txsltGetStylesheetHashCodeR(R R((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRQscCs,|dkrdStj|j|j}|S(Ni(RR txsltCompareStylesheetsEqualR(R RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRTs N(RRRR RR(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRKs  textensionModulecBsPeZdZdZdZdZdZdZdZdZ RS(cCs|jtd||S(NR (t styleInitt stylesheet(R tstyletURI((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt _styleInit[scCs|jtd|||S(NR (t styleShutdownR(R RRtdata((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt_styleShutdown^scCs|jtd||S(NR (tctxtInitt transformCtxt(R tctxtR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt _ctxtInitascCs|jtd|||S(NR (t ctxtShutdownR"(R R#RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt _ctxtShutdowndscCsdS(suCallback function when used in a newly compiled stylesheet, the return value is passed in subsequent callsN((R RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRgscCsdS(s9Callback function when a stylesheet using it is destroyedN((R RRR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRlscCsdS(svCallback function when used in a new transformation process, the return value is passed in subsequent callsN((R R#R((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR!pscCsdS(s9Callback function when a transformation using it finishesN((R R#RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR%us( RRRR R$R&RRR!R%(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRZs       cCstjtjdS(s0Cleanup all libxslt and libxml2 memory allocatedN(R txsltPythonCleanuptlibxml2t cleanupParser(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcleanupys cCstj|dS(sKDumps a list of the registered XSLT extension functions and elementsN(R txsltDebugDumpExtensions(toutput((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytdebugDumpExtensionsscCstjdS(s.Initialize the global variables for extensionsN(R txsltInitGlobals(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt initGlobalsscCstjdS(sRegisters the test moduleN(R txsltRegisterTestModule(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterTestModulescCstj|}|S(s5Unregister an XSLT extension module from the library.(R txsltUnregisterExtModule(Rtret((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytunregisterExtModulescCstj||}|S(s'Unregisters an extension module element(R txsltUnregisterExtModuleElement(tnameRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytunregisterExtModuleElementscCstj||}|S(s(Unregisters an extension module function(R txsltUnregisterExtModuleFunction(R6RR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytunregisterExtModuleFunctionscCstj||}|S(s1Unregisters an extension module top-level element(R txsltUnregisterExtModuleTopLevel(R6RR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytunregisterExtModuleTopLevelscCstjdS(s!Registers the built-in extensionsN(R txsltRegisterAllExtras(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterAllExtrasscCstjdS(s3Cleanup just libxslt (not libxml2) memory allocatedN(R R'(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt pythonCleanupscCstj||}|S(soRegister a Python written function to for error reporting. The function is called back as f(ctx, error).(R txsltRegisterErrorHandler(tftctxR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterErrorHandlerscCstj||||}|S(s4Register a Python written element to the XSLT engine(R txsltRegisterExtModuleElement(R6Rt precompilet transformR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterExtModuleElementscCstj|||}|S(s5Register a Python written function to the XSLT engine(R txsltRegisterExtModuleFunction(R6RR@R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterExtModuleFunctionscCstj||}|S(s<Register a Python written extension class to the XSLT engine(R txsltRegisterExtensionClass(RtcR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterExtensionClassscCstj|}|S(s1Set the function for controlling document loading(R txsltSetLoaderFunc(tloaderR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt setLoaderFuncscCstjdS(s:Unregister all global variables set up by the XSLT libraryN(R txsltCleanupGlobals(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcleanupGlobalsscCstjdS(sKInitializes the processor (e.g. registers built-in extensions, etc.)N(R txsltInit(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytinitscCstj|}|S(sCheck if a string is ignorable(R t xsltIsBlank(tstrR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytisBlankscCsJ|dkrd}n |j}tj|}|dkr=dStd|S(sThis function tries to locate the stylesheet PI in the given document If found, and if contained within the document, it will extract that subtree to build the stylesheet to process @doc (doc itself will be modified). If found but referencing an external document it will attempt to load it and generate a stylesheet from it. In both cases, the resulting stylesheet and the document need to be freed once the transformation is done.R N(RRR txsltLoadStylesheetPIR(tdoctdoc__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytloadStylesheetPIs   cCs)tj}|dkrdStd|S(sCreate a new XSLT StylesheetR N(R txsltNewStylesheetRR(R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt newStylesheets  cCsJ|dkrd}n |j}tj|}|dkr=dStd|S(s*parse an XSLT stylesheet, building the associated structures. doc is kept as a reference within the returned stylesheet, so changes to doc after the parsing will be reflected when the stylesheet is applied, and the doc is automatically freed when the stylesheet is closed.R N(RRR txsltParseStylesheetDocR(RWRXR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytparseStylesheetDocs   cCs,tj|}|dkrdStd|S(s!Load and parse an XSLT stylesheetR N(R txsltParseStylesheetFileRR(tfilenameR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytparseStylesheetFiles cCstjdS(sUninitializes the processor.N(R t xsltUninit(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytuninitscCstjdS(s3Cleanup function for the locale support on shutdownN(R txsltFreeLocales(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt freeLocalesscCstj|dS(s7Used for to correct the calibration for xsltTimestamp()N(R txsltCalibrateAdjust(tdelta((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcalibrateAdjustscCstj}|S(sGet xslDebugStatus.(R txsltGetDebuggerStatus(R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytdebuggerStatus"s cCs7|dkrd}n |j}tj|||}|S(sSimilar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.N(RRR t xsltGetNsProp(tnodeR6t nameSpacetnode__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytnsProp's  cCstj|dS(s/This function sets the value of xslDebugStatus.N(R txsltSetDebuggerStatus(tvalue((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytsetDebuggerStatus5scCstj}|S(s!Used for gathering profiling data(R t xsltTimestamp(R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt timestamp9s cCstjdS(s(Drop the topmost item off the call stackN(R t xslDropCall(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRt>stxpathParserContextcBsneZd dZdZdZdZdZdZdZ dZ dZ d Z d Z RS( cCs#d|_tjj|d|dS(NR (RRR(RuR (R R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR Cs cCs/tj|j}|dkr"dStd|S(s/Get the xpathContext from an xpathParserContextR N(R txsltXPathParserGetContextRRt xpathContext(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcontextHs cCstj|j|dS(sImplement the node-set() XSLT function node-set node-set(result-tree) This function is available in libxslt, saxon or xt namespace.N(R txsltFunctionNodeSetR(R tnargs((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfunctionNodeSetRscCstj|j|dS(sVImplement the document() XSLT function node-set document(object, node-set?)N(R txsltDocumentFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytdocumentFunction\scCstj|j|dS(s\Implement the element-available() XSLT function boolean element-available(string)N(R txsltElementAvailableFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytelementAvailableFunctionascCstj|j|dS(sdImplement the format-number() XSLT function string format-number(number, string, string?)N(R txsltFormatNumberFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytformatNumberFunctionfscCstj|j|dS(s^Implement the function-available() XSLT function boolean function-available(string)N(R txsltFunctionAvailableFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfunctionAvailableFunctionkscCstj|j|dS(sRImplement the generate-id() XSLT function string generate-id(node-set?)N(R txsltGenerateIdFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytgenerateIdFunctionpscCstj|j|dS(sIImplement the key() XSLT function node-set key(string, object)N(R txsltKeyFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt keyFunctionuscCstj|j|dS(sWImplement the system-property() XSLT function object system-property(string)N(R txsltSystemPropertyFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytsystemPropertyFunctionzscCstj|j|dS(s_Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string)N(R txsltUnparsedEntityURIFunctionR(R Rz((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytunparsedEntityURIFunctionsN(RRRR RxR{R}RRRRRRR(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRuBs        RwcBs/eZddZdZdZdZRS(cCs#d|_tjj|d|dS(NR (RRR(RwR (R R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR s cCsdS(N((R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt__del__scCs/tj|j}|dkr"dStd|S(s3Get the transformation context from an xpathContextR N(R txsltXPathGetTransformContextRRR"(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyttransformContexts cCstj|jdS(s4Registers all default XSLT functions in this contextN(R txsltRegisterAllFunctionsR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterAllFunctionssN(RRRR RRR(((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRws   R"cBseZd6dZdZdZdZdZdZdZ dZ dZ d Z d Z d Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"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-Z0d.Z1d/Z2d0Z3d1Z4d2Z5d3Z6d4Z7d5Z8RS(7cCs d|_tj|d|dS(NR (RRRR (R R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyR s cCs/tj|j}|dkr"dStd|S(s)Get the XPath context of a transformationR N(R txsltTransformGetContextRRRw(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRxs cCs2tj|j}|dkr"dStjd|S(s*Get the current() node of a transformationR N(R txsltTransformGetCurrentRRR(txmlNode(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcurrents cCs2tj|j}|dkr"dStjd|S(s-Get the insertion node in the output documentR N(R txsltTransformGetInsertNodeRRR(R(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt insertNodes cCs2tj|j}|dkr"dStjd|S(s*Get the instruction node in the stylesheetR N(R txsltTransformGetInstructionRRR(R(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt instructions cCstj|j}|S(s Get the mode of a transformation(R txsltTransformGetModeR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytmodescCstj|j}|S(s$Get the mode URI of a transformation(R txsltTransformGetModeURIR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytmodeURIscCs2tj|j}|dkr"dStjd|S(s+Get the output document of a transformationR N(R txsltTransformGetOutputDocRRR(txmlDoc(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt outputDocs cCstj|j}|S(s/Get the output URI of a transformation if known(R txsltTransformGetOutputURIR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt outputURIscCs/tj|j}|dkr"dStd|S(s(Get the stylesheet from a transformationR N(R txsltTransformGetStyleRRR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyRs cCsY|dkrd}n |j}|dkr3d}n |j}tj|j|||dS(sApply the xsl:use-attribute-sets. If @attrSets is None, then @inst will be used to exctract this value. If both, @attrSets and @inst, are None, then this will do nothing.N(RRR txsltApplyAttributeSet(R RktinsttattrSetsRmtinst__o((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytapplyAttributeSets    cCstj|jdS(s2Free up all the space used by the loaded documentsN(R txsltFreeDocumentsR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt freeDocumentsscCstj|jdS(sFree the XSLT extension dataN(R txsltFreeCtxtExtsR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt freeCtxtExtsscCstj|j}|S(sHInitialize the set of modules with registered stylesheet data(R txsltInitCtxtExtsR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt initCtxtExtsscCstj|jdS(s"Shutdown the set of modules loadedN(R txsltShutdownCtxtExtsR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytshutdownCtxtExtsscCsY|dkrd}n |j}|dkr3d}n |j}tj|j|||dS(sProcess an debug nodeN(RRR t xsltDebug(R RkRtcompRmR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytdebugs    cCstj|jdS(smRegisters the built-in extensions. This function is deprecated, use xsltRegisterAllExtras instead.N(R txsltRegisterExtrasR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterExtrasscCs7|dkrd}n |j}tj|j|}|S(sxFind strip-space or preserve-space informations for an element respect the import precedence or the wildcardsN(RRR txsltFindElemSpaceHandling(R RkRmR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfindElemSpaceHandlings   cCstj|j}|S(sHChecks whether that stylesheet requires white-space stripping(R txsltNeedElemSpaceHandlingR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytneedElemSpaceHandlingscCst|dkrd}n |j}|dkr3d}n |j}tj|j||}|dkrddStjd|S(syCopies a namespace node (declaration). If @elem is not None, then the new namespace will be declared on @elem.R N(RRR txsltCopyNamespaceR(txmlNs(R telemtnstelem__otns__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt copyNamespace"s     cCst|dkrd}n |j}|dkr3d}n |j}tj|j||}|dkrddStjd|S(sDo a copy of an namespace list. If @node is non-None the new namespaces are added automatically. This handles namespaces aliases. This function is intended only for *internal* use at transformation-time for copying ns-declarations of Literal Result Elements. Called by: xsltCopyTreeInternal() (transform.c) xsltShallowCopyElem() (transform.c) REVISIT: This function won't be used in the refactored code.R N(RRR txsltCopyNamespaceListR(R(R RktcurRmtcur__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcopyNamespaceList-s     cCs|dkrd}n |j}|dkr3d}n |j}|dkrQd}n |j}tj|j|||}|dkrdStjd|S(sdFind a matching (prefix and ns-name) ns-declaration for the requested @ns->prefix and @ns->href in the result tree. If none is found then a new ns-declaration will be added to @resultElem. If, in this case, the given prefix is already in use, then a ns-declaration with a modified ns-prefix be we created. Called by: - xsltCopyPropList() (*not* anymore) - xsltShallowCopyElement() - xsltCopyTreeInternal() (*not* anymore) - xsltApplySequenceConstructor() (*not* in the refactored code), - xsltElement() (*not* anymore)R N(RRR txsltGetNamespaceR(R(R RRtoutRRtout__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt namespace>s       cCs|dkrd}n |j}|dkr3d}n |j}|dkrQd}n |j}tj|j|||}|dkrdStjd|S(skObsolete. *Not* called by any Libxslt/Libexslt function. Exaclty the same as xsltGetNamespace().R N(RRR txsltGetPlainNamespaceR(R(R RRRRRRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytplainNamespaceSs       cCsz|dkrd}n |j}|dkr3d}n |j}tj|j||||}|dkrjdStjd|S(szFind a matching (prefix and ns-name) ns-declaration for the requested @nsName and @nsPrefix in the result tree. If none is found then a new ns-declaration will be added to @resultElem. If, in this case, the given prefix is already in use, then a ns-declaration with a modified ns-prefix be we created. Note that this function's priority is to preserve ns-prefixes; it will only change a prefix if there's a namespace clash. If both @nsName and @nsPrefix are None, then this will try to "undeclare" a default namespace by declaring an xmlns="".R N(RRR txsltGetSpecialNamespaceR(R(R t invocNodetnsNametnsPrefixttargett invocNode__ot target__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytspecialNamespace`s     cCs7|dkrd}n |j}tj|j|}|S(s&Compare one transformCtxt with anotherN(RRR R(R Rtother__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytcompareTransformContextsEqualws   cCstj|jdS(s)Free up an existing XSLT TransformContextN(R txsltFreeTransformContextR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfreeTransformContext~scCstj|j}|S(s)Get the hash code of the transformContext(R R R(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyttransformContextHashCodescCst|dkrd}n |j}|dkr3d}n |j}tj|j||}|dkrddStjd|S(sBProcesses all attributes of a Literal Result Element. Attribute references are applied via xsl:use-attribute-set attributes. Copies all non XSLT-attributes over to the @target element and evaluates Attribute Value Templates. Called by xsltApplySequenceConstructor() (transform.c).R N(RRR txsltAttrListTemplateProcessR(txmlAttr(R RtattrsRtattrs__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytattrListTemplateProcesss     cCst|dkrd}n |j}|dkr3d}n |j}tj|j||}|dkrddStjd|S(sProcess one attribute of a Literal Result Element (in the stylesheet). Evaluates Attribute Value Templates and copies the attribute over to the result element. This does *not* process attribute sets (xsl:use-attribute-set).R N(RRR txsltAttrTemplateProcessR(R(R RtattrRtattr__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytattrTemplateProcesss     cCstj|j|}|S(s7Process the given node and return the new string value.(R txsltAttrTemplateValueProcessR(R RTR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytattrTemplateValueProcessscCs:|dkrd}n |j}tj|j||}|S(sEProcess the given string, allowing to pass a namespace mapping context and return the new string value. Called by: - xsltAttrTemplateValueProcess() (templates.c) - xsltEvalAttrValueTemplate() (templates.c) QUESTION: Why is this function public? It is not used outside of templates.c.N(RRR t xsltAttrTemplateValueProcessNode(R RTRRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytattrTemplateValueProcessNodes   cCs=|dkrd}n |j}tj|j|||}|S(sEvaluate a attribute value template, i.e. the attribute value can contain expressions contained in curly braces ({}) and those are substituted by they computed value.N(RRR txsltEvalAttrValueTemplate(R RR6RRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytevalAttrValueTemplates   cCsX|dkrd}n |j}|dkr3d}n |j}tj|j||}|S(sProcesses the sequence constructor of the given instruction on @contextNode and converts the resulting tree to a string. This is needed by e.g. xsl:comment and xsl:processing-instruction.N(RRR txsltEvalTemplateString(R t contextNodeRtcontextNode__oRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytevalTemplateStrings    cCstj|j}|S(sEvaluates all global variables and parameters of a stylesheet. For internal use only. This is called at start of a transformation.(R txsltEvalGlobalVariablesR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytevalGlobalVariablesscCstj|j||}|S(sThis is normally called from xsltEvalUserParams to process a single parameter from a list of parameters. The @value is evaluated as an XPath expression and the result is stored in the context's global variable/parameter hash table. To have a parameter treated literally (not as an XPath expression) use xsltQuoteUserParams (or xsltQuoteOneUserParam). For more details see description of xsltProcessOneUserParamInternal.(R txsltEvalOneUserParamR(R R6RpR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytevalOneUserParams cCstj|jdS(sIFree up the data associated to the global variables its value.N(R txsltFreeGlobalVariablesR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfreeGlobalVariablesscCs5|dkrd}n |j}tj|j|dS(seRegisters a local XSLT 'param' declaration at transformation time and evaluates its value.N(RRR txsltParseStylesheetParam(R RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytparseStylesheetParams  cCs5|dkrd}n |j}tj|j|dS(shRegisters a local XSLT 'variable' instruction at transformation time and evaluates its value.N(RRR txsltParseStylesheetVariable(R RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytparseStylesheetVariables  cCstj|j||}|S(sThis is normally called from xsltQuoteUserParams to process a single parameter from a list of parameters. The @value is stored in the context's global variable/parameter hash table.(R txsltQuoteOneUserParamR(R R6RpR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytquoteOneUserParamscCs5tj|j||}|dkr(dStj|S(sTSearch in the Variable array of the context for the given variable value.N(R txsltVariableLookupRRR(txpathObjectRet(R R6tns_uriR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytvariableLookups cCstj|j}|S(sAllocate an extra runtime information slot at run-time and return its number This make sure there is a slot ready in the transformation context(R txsltAllocateExtraCtxtR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytallocateExtraCtxtscCs2tj|j}|dkr"dStjd|S(s]Creates a Result Value Tree (the XSLT 1.0 term for this is "Result Tree Fragment")R N(R t xsltCreateRVTRRR(R(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt createRVTs cCstj|j}|S(s\Finalizes the data (e.g. result tree fragments) created within a value-returning process (e.g. EXSLT's function). Tree fragments marked as being returned by a function are set to normal state, which means that the fragment garbage collector will free them after the function-calling process exits.(R t&xsltExtensionInstructionResultFinalizeR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt"extensionInstructionResultFinalizescCstj|jdS(sFrees all registered result value trees (Result Tree Fragments) of the transformation. Internal function; should not be called by user-code.N(R t xsltFreeRVTsR(R ((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytfreeRVTs scCstj|j}|S(s_INTERNAL ROUTINE ONLY Check if any keys on the current document need to be computed(R txsltInitAllDocKeysR(R R3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytinitAllDocKeys&scCs7|dkrd}n |j}tj|j|}|S(sRegisters a result value tree (XSLT 1.0 term: Result Tree Fragment) in the RVT garbage collector. The fragment will be freed when the instruction which created the fragment exits.N(RRR txsltRegisterLocalRVT(R tRVTtRVT__oR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterLocalRVT,s   cCs7|dkrd}n |j}tj|j|}|S(sRegister the result value tree (XSLT 1.0 term: Result Tree Fragment) in the fragment garbage collector. The fragment will be freed when the transformation context is freed.N(RRR txsltRegisterPersistRVT(R RRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterPersistRVT6s   cCs7|dkrd}n |j}tj|j|}|S(sRegisters the result value tree (XSLT 1.0 term: Result Tree Fragment) in the garbage collector. The fragment will be freed at the exit of the currently instantiated xsl:template. Obsolete; this function might produce massive memory overhead, since the fragment is only freed when the current xsl:template exits. Use xsltRegisterLocalRVT() instead.N(RRR txsltRegisterTmpRVT(R RRR3((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytregisterTmpRVT?s   cCs5|dkrd}n |j}tj|j|dS(siEither frees the RVT (which is an xmlDoc) or stores it in the context's cache for later reuse.N(RRR txsltReleaseRVT(R RR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pyt releaseRVTLs  cCsV|dkrd}n |j}|dkr3d}n |j}tj|j||dS(s!Process and xsl:message constructN(RRR t xsltMessage(R RkRRmR((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytmessageWs    cCsV|dkrd}n |j}|dkr3d}n |j}tj|j||dS(s Display the context of an error.N(RRR txsltPrintErrorContext(R RRktstyle__oRm((sk/builds/ul11u3sru-gate/components/libxslt/build/prototype/i386/usr/lib/python2.7/vendor-packages/libxslt.pytprintErrorContext_s    cCs2tj|j}|dkr"dStjd|S(sThis function should be called after the transformation completed to extract template processing profiling informations if availble. The informations are returned as an XML document tree like