Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
ó Uñ*Wc @s0dZddlZddlZddlmZyeWnek rOe ZnXye Wnek rqe Z nXdddddd d d d g Z d Z dZ dZdZdeZde ZejjejjeƒdƒZejejejjeddƒƒƒZejejejjeddƒƒƒZejejejjedddƒƒƒZejejejjedddƒƒƒZejejejjedddƒƒƒZejddied6ƒZej ejejjeddƒƒƒZ!d„Z"d „Z#d ej$fd!„ƒYZ%dS("sxThe ``lxml.isoschematron`` package implements ISO Schematron support on top of the pure-xslt 'skeleton' implementation. iÿÿÿÿN(tetreet extract_xsdt extract_rngtiso_dsdl_includetiso_abstract_expandtiso_svrl_for_xslt1tsvrl_validation_errorstschematron_schema_validtstylesheet_paramst Schematrons http://www.w3.org/2001/XMLSchemas#http://relaxng.org/ns/structure/1.0s$http://purl.oclc.org/dsdl/schematronshttp://purl.oclc.org/dsdl/svrls {%s}schemat resourcestxslsXSD2Schtrn.xslsRNG2Schtrn.xslsiso-schematron-xslt1siso_dsdl_include.xslsiso_abstract_expand.xslsiso_svrl_for_xslt1.xsls//svrl:failed-assertt namespacestsvrltrngsiso-schematron.rngcKs‘i}x„|jƒD]v\}}t|tƒrCtjj|ƒ}n<|dkr^tdƒ‚n!t|tjƒst |ƒ}n|||>> from lxml import etree >>> from lxml.isoschematron import Schematron >>> schematron = Schematron(etree.XML(''' ... ... ... id is the only permitted attribute name ... ... Attribute ... is forbidden ... ... ... ... '''), ... error_finder=Schematron.ASSERTS_AND_REPORTS) >>> xml = etree.XML(''' ... ... ... ... ... ''') >>> schematron.validate(xml) False >>> xml = etree.XML(''' ... ... ... ... ... ''') >>> schematron.validate(xml) True s///svrl:failed-assert | //svrl:successful-reportR R cCsSd}|jtkr'|j|ƒ}n(|j|jtkrO|j|ƒ}n|S(s Extract embedded schematron schema from non-schematron host schema. This method will only be called by __init__ if the given schema document is not a schematron schema by itself. Must return a schematron schema document tree or None. N(Rttagt_xml_schema_roott _extract_xsdtnsmaptprefixt RELAXNG_NSt _extract_rng(tselftelementt schematron((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyt_extractÎs c Cstt|ƒjƒ| |_d|_d|_d|_| |jk rR| |_ nd} y[|dk rŽt j |ƒr|} q²|j ƒ} n$|dk r²t j |ƒj ƒ} nWn.tk rãt jdtjƒdƒ‚nX| dkrÿtdƒ‚n| jtkr| }n|j| ƒ}|dkrDt jdƒ‚n|r_|j||�}n|rz|j||�}nt|ƒsŸt jdtjƒ‚n|r±||_ni| d6}t||ƒ}|j||�}| rñ||_nt j|ƒ|_dS(NsNo tree or file given: %sis Empty trees=Document is not a schematron schema or schematron-extractablesinvalid schematron schema: %stphase(tsuperR t__init__t _store_reportRt _schematront_validator_xsltt_validation_reportt ASSERTS_ONLYt_validation_errorsRt iselementtgetroottparset ExceptiontSchematronParseErrortsystexc_infot ValueErrorR#t_schematron_rootR-t_includet_expandRt error_logR"t_compileRt _validator(R*Rtfiletincludetexpandtinclude_paramst expand_paramstcompile_paramststore_schematront store_xsltt store_reportR.t error_findertrootR,tcompile_kwargstvalidator_xslt((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyR0êsT                 cCsÞ|jƒ|j|ƒ}|jr.||_n|j|ƒ}|rÚtj|ƒrm|jƒjj pgd}n|jj p|d}xT|D]L}|j d|j d|j d|j dddtj|dd ƒd |ƒq†WtStS( saValidate doc using Schematron. Returns true if document is valid, false if not. stdomainttypetleveltlineitmessagetencodingRtfilename(t_clear_error_logRDR1R4R6RR7t getroottreetdocinfotURLt_append_log_messaget_domaint _error_typet_levelttostringtFalsetTrue(R*RRterrorstfnameterror((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyt__call__"s"      cCs|jS(srISO-schematron schema document (None if object has been initialized with store_schematron=False). (R2(R*((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyR,;scCs|jS(sŒISO-schematron skeleton implementation XSLT validator document (None if object has been initialized with store_xslt=False). (R3(R*((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyRQBscCs|jS(sfISO-schematron validation result report (None if result-storing has been turned off). (R4(R*((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pytvalidation_reportIsN('t__name__t __module__t__doc__Rt ErrorDomainst SCHEMATRONVR^t ErrorLevelstERRORR`t ErrorTypestSCHEMATRONV_ASSERTR_RR5RtSVRL_NStASSERTS_AND_REPORTSR-RR%RR)RR@RRARRCR6RRcRbR0RgtpropertyR,RQRh(((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pyR ps.Q       5 (&RkR<tos.pathtostlxmlRRRt NameErrortstrRt__all__t XML_SCHEMA_NSR(t SCHEMATRON_NSRrR?R$tpathtjointdirnamet__file__t_resources_dirRR9RRRRRRRtRelaxNGRRR"t _ValidatorR (((sA/usr/lib64/python2.7/site-packages/lxml/isoschematron/__init__.pytsT          !