├── 3.6.4
├── py27
│ └── lxml
│ │ ├── ElementInclude.py
│ │ ├── __init__.py
│ │ ├── _elementpath.py
│ │ ├── builder.py
│ │ ├── cssselect.py
│ │ ├── doctestcompare.py
│ │ ├── etree.so
│ │ ├── html
│ │ ├── ElementSoup.py
│ │ ├── __init__.py
│ │ ├── _diffcommand.py
│ │ ├── _html5builder.py
│ │ ├── _setmixin.py
│ │ ├── builder.py
│ │ ├── clean.py
│ │ ├── defs.py
│ │ ├── diff.py
│ │ ├── formfill.py
│ │ ├── html5parser.py
│ │ ├── soupparser.py
│ │ └── usedoctest.py
│ │ ├── includes
│ │ ├── __init__.py
│ │ ├── c14n.pxd
│ │ ├── config.pxd
│ │ ├── dtdvalid.pxd
│ │ ├── etree_defs.h
│ │ ├── etreepublic.pxd
│ │ ├── htmlparser.pxd
│ │ ├── lxml-version.h
│ │ ├── relaxng.pxd
│ │ ├── schematron.pxd
│ │ ├── tree.pxd
│ │ ├── uri.pxd
│ │ ├── xinclude.pxd
│ │ ├── xmlerror.pxd
│ │ ├── xmlparser.pxd
│ │ ├── xmlschema.pxd
│ │ ├── xpath.pxd
│ │ └── xslt.pxd
│ │ ├── isoschematron
│ │ ├── __init__.py
│ │ └── resources
│ │ │ ├── rng
│ │ │ └── iso-schematron.rng
│ │ │ └── xsl
│ │ │ ├── RNG2Schtrn.xsl
│ │ │ ├── XSD2Schtrn.xsl
│ │ │ └── iso-schematron-xslt1
│ │ │ ├── iso_abstract_expand.xsl
│ │ │ ├── iso_dsdl_include.xsl
│ │ │ ├── iso_schematron_message.xsl
│ │ │ ├── iso_schematron_skeleton_for_xslt1.xsl
│ │ │ ├── iso_svrl_for_xslt1.xsl
│ │ │ └── readme.txt
│ │ ├── lxml.etree.h
│ │ ├── lxml.etree_api.h
│ │ ├── objectify.so
│ │ ├── pyclasslookup.py
│ │ ├── sax.py
│ │ └── usedoctest.py
└── py36
│ └── lxml
│ ├── ElementInclude.py
│ ├── __init__.py
│ ├── _elementpath.py
│ ├── builder.py
│ ├── cssselect.py
│ ├── doctestcompare.py
│ ├── etree.cpython-36m-x86_64-linux-gnu.so
│ ├── html
│ ├── ElementSoup.py
│ ├── __init__.py
│ ├── _diffcommand.py
│ ├── _html5builder.py
│ ├── _setmixin.py
│ ├── builder.py
│ ├── clean.py
│ ├── defs.py
│ ├── diff.py
│ ├── formfill.py
│ ├── html5parser.py
│ ├── soupparser.py
│ └── usedoctest.py
│ ├── includes
│ ├── __init__.py
│ ├── c14n.pxd
│ ├── config.pxd
│ ├── dtdvalid.pxd
│ ├── etree_defs.h
│ ├── etreepublic.pxd
│ ├── htmlparser.pxd
│ ├── lxml-version.h
│ ├── relaxng.pxd
│ ├── schematron.pxd
│ ├── tree.pxd
│ ├── uri.pxd
│ ├── xinclude.pxd
│ ├── xmlerror.pxd
│ ├── xmlparser.pxd
│ ├── xmlschema.pxd
│ ├── xpath.pxd
│ └── xslt.pxd
│ ├── isoschematron
│ ├── __init__.py
│ └── resources
│ │ ├── rng
│ │ └── iso-schematron.rng
│ │ └── xsl
│ │ ├── RNG2Schtrn.xsl
│ │ ├── XSD2Schtrn.xsl
│ │ └── iso-schematron-xslt1
│ │ ├── iso_abstract_expand.xsl
│ │ ├── iso_dsdl_include.xsl
│ │ ├── iso_schematron_message.xsl
│ │ ├── iso_schematron_skeleton_for_xslt1.xsl
│ │ ├── iso_svrl_for_xslt1.xsl
│ │ └── readme.txt
│ ├── lxml.etree.h
│ ├── lxml.etree_api.h
│ ├── objectify.cpython-36m-x86_64-linux-gnu.so
│ ├── pyclasslookup.py
│ ├── sax.py
│ └── usedoctest.py
├── 3.8.0
├── py27
│ └── lxml
│ │ ├── ElementInclude.py
│ │ ├── ElementInclude.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── _elementpath.py
│ │ ├── _elementpath.pyc
│ │ ├── builder.py
│ │ ├── builder.pyc
│ │ ├── cssselect.py
│ │ ├── cssselect.pyc
│ │ ├── doctestcompare.py
│ │ ├── doctestcompare.pyc
│ │ ├── etree.so
│ │ ├── html
│ │ ├── ElementSoup.py
│ │ ├── ElementSoup.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── _diffcommand.py
│ │ ├── _diffcommand.pyc
│ │ ├── _html5builder.py
│ │ ├── _html5builder.pyc
│ │ ├── _setmixin.py
│ │ ├── _setmixin.pyc
│ │ ├── builder.py
│ │ ├── builder.pyc
│ │ ├── clean.py
│ │ ├── clean.pyc
│ │ ├── defs.py
│ │ ├── defs.pyc
│ │ ├── diff.py
│ │ ├── diff.pyc
│ │ ├── formfill.py
│ │ ├── formfill.pyc
│ │ ├── html5parser.py
│ │ ├── html5parser.pyc
│ │ ├── soupparser.py
│ │ ├── soupparser.pyc
│ │ ├── usedoctest.py
│ │ └── usedoctest.pyc
│ │ ├── includes
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── c14n.pxd
│ │ ├── config.pxd
│ │ ├── dtdvalid.pxd
│ │ ├── etree_defs.h
│ │ ├── etreepublic.pxd
│ │ ├── htmlparser.pxd
│ │ ├── libexslt
│ │ │ ├── exslt.h
│ │ │ ├── exsltconfig.h
│ │ │ └── exsltexports.h
│ │ ├── libxml
│ │ │ ├── DOCBparser.h
│ │ │ ├── HTMLparser.h
│ │ │ ├── HTMLtree.h
│ │ │ ├── SAX.h
│ │ │ ├── SAX2.h
│ │ │ ├── c14n.h
│ │ │ ├── catalog.h
│ │ │ ├── chvalid.h
│ │ │ ├── debugXML.h
│ │ │ ├── dict.h
│ │ │ ├── encoding.h
│ │ │ ├── entities.h
│ │ │ ├── globals.h
│ │ │ ├── hash.h
│ │ │ ├── list.h
│ │ │ ├── nanoftp.h
│ │ │ ├── nanohttp.h
│ │ │ ├── parser.h
│ │ │ ├── parserInternals.h
│ │ │ ├── relaxng.h
│ │ │ ├── schemasInternals.h
│ │ │ ├── schematron.h
│ │ │ ├── threads.h
│ │ │ ├── tree.h
│ │ │ ├── uri.h
│ │ │ ├── valid.h
│ │ │ ├── xinclude.h
│ │ │ ├── xlink.h
│ │ │ ├── xmlIO.h
│ │ │ ├── xmlautomata.h
│ │ │ ├── xmlerror.h
│ │ │ ├── xmlexports.h
│ │ │ ├── xmlmemory.h
│ │ │ ├── xmlmodule.h
│ │ │ ├── xmlreader.h
│ │ │ ├── xmlregexp.h
│ │ │ ├── xmlsave.h
│ │ │ ├── xmlschemas.h
│ │ │ ├── xmlschemastypes.h
│ │ │ ├── xmlstring.h
│ │ │ ├── xmlunicode.h
│ │ │ ├── xmlversion.h
│ │ │ ├── xmlwriter.h
│ │ │ ├── xpath.h
│ │ │ ├── xpathInternals.h
│ │ │ └── xpointer.h
│ │ ├── libxslt
│ │ │ ├── attributes.h
│ │ │ ├── documents.h
│ │ │ ├── extensions.h
│ │ │ ├── extra.h
│ │ │ ├── functions.h
│ │ │ ├── imports.h
│ │ │ ├── keys.h
│ │ │ ├── namespaces.h
│ │ │ ├── numbersInternals.h
│ │ │ ├── pattern.h
│ │ │ ├── preproc.h
│ │ │ ├── security.h
│ │ │ ├── templates.h
│ │ │ ├── transform.h
│ │ │ ├── variables.h
│ │ │ ├── xslt.h
│ │ │ ├── xsltInternals.h
│ │ │ ├── xsltconfig.h
│ │ │ ├── xsltexports.h
│ │ │ ├── xsltlocale.h
│ │ │ └── xsltutils.h
│ │ ├── lxml-version.h
│ │ ├── relaxng.pxd
│ │ ├── schematron.pxd
│ │ ├── tree.pxd
│ │ ├── uri.pxd
│ │ ├── xinclude.pxd
│ │ ├── xmlerror.pxd
│ │ ├── xmlparser.pxd
│ │ ├── xmlschema.pxd
│ │ ├── xpath.pxd
│ │ └── xslt.pxd
│ │ ├── isoschematron
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ └── resources
│ │ │ ├── rng
│ │ │ └── iso-schematron.rng
│ │ │ └── xsl
│ │ │ ├── RNG2Schtrn.xsl
│ │ │ ├── XSD2Schtrn.xsl
│ │ │ └── iso-schematron-xslt1
│ │ │ ├── iso_abstract_expand.xsl
│ │ │ ├── iso_dsdl_include.xsl
│ │ │ ├── iso_schematron_message.xsl
│ │ │ ├── iso_schematron_skeleton_for_xslt1.xsl
│ │ │ ├── iso_svrl_for_xslt1.xsl
│ │ │ └── readme.txt
│ │ ├── lxml.etree.h
│ │ ├── lxml.etree_api.h
│ │ ├── objectify.so
│ │ ├── pyclasslookup.py
│ │ ├── pyclasslookup.pyc
│ │ ├── sax.py
│ │ ├── sax.pyc
│ │ ├── usedoctest.py
│ │ └── usedoctest.pyc
└── py36
│ └── lxml
│ ├── ElementInclude.py
│ ├── __init__.py
│ ├── __pycache__
│ ├── ElementInclude.cpython-36.pyc
│ ├── __init__.cpython-36.pyc
│ ├── _elementpath.cpython-36.pyc
│ ├── builder.cpython-36.pyc
│ ├── cssselect.cpython-36.pyc
│ ├── doctestcompare.cpython-36.pyc
│ ├── pyclasslookup.cpython-36.pyc
│ ├── sax.cpython-36.pyc
│ └── usedoctest.cpython-36.pyc
│ ├── _elementpath.py
│ ├── builder.py
│ ├── cssselect.py
│ ├── doctestcompare.py
│ ├── etree.cpython-36m-x86_64-linux-gnu.so
│ ├── html
│ ├── ElementSoup.py
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── ElementSoup.cpython-36.pyc
│ │ ├── __init__.cpython-36.pyc
│ │ ├── _diffcommand.cpython-36.pyc
│ │ ├── _html5builder.cpython-36.pyc
│ │ ├── _setmixin.cpython-36.pyc
│ │ ├── builder.cpython-36.pyc
│ │ ├── clean.cpython-36.pyc
│ │ ├── defs.cpython-36.pyc
│ │ ├── diff.cpython-36.pyc
│ │ ├── formfill.cpython-36.pyc
│ │ ├── html5parser.cpython-36.pyc
│ │ ├── soupparser.cpython-36.pyc
│ │ └── usedoctest.cpython-36.pyc
│ ├── _diffcommand.py
│ ├── _html5builder.py
│ ├── _setmixin.py
│ ├── builder.py
│ ├── clean.py
│ ├── defs.py
│ ├── diff.py
│ ├── formfill.py
│ ├── html5parser.py
│ ├── soupparser.py
│ └── usedoctest.py
│ ├── includes
│ ├── __init__.py
│ ├── __pycache__
│ │ └── __init__.cpython-36.pyc
│ ├── c14n.pxd
│ ├── config.pxd
│ ├── dtdvalid.pxd
│ ├── etree_defs.h
│ ├── etreepublic.pxd
│ ├── htmlparser.pxd
│ ├── libexslt
│ │ ├── exslt.h
│ │ ├── exsltconfig.h
│ │ └── exsltexports.h
│ ├── libxml
│ │ ├── DOCBparser.h
│ │ ├── HTMLparser.h
│ │ ├── HTMLtree.h
│ │ ├── SAX.h
│ │ ├── SAX2.h
│ │ ├── c14n.h
│ │ ├── catalog.h
│ │ ├── chvalid.h
│ │ ├── debugXML.h
│ │ ├── dict.h
│ │ ├── encoding.h
│ │ ├── entities.h
│ │ ├── globals.h
│ │ ├── hash.h
│ │ ├── list.h
│ │ ├── nanoftp.h
│ │ ├── nanohttp.h
│ │ ├── parser.h
│ │ ├── parserInternals.h
│ │ ├── relaxng.h
│ │ ├── schemasInternals.h
│ │ ├── schematron.h
│ │ ├── threads.h
│ │ ├── tree.h
│ │ ├── uri.h
│ │ ├── valid.h
│ │ ├── xinclude.h
│ │ ├── xlink.h
│ │ ├── xmlIO.h
│ │ ├── xmlautomata.h
│ │ ├── xmlerror.h
│ │ ├── xmlexports.h
│ │ ├── xmlmemory.h
│ │ ├── xmlmodule.h
│ │ ├── xmlreader.h
│ │ ├── xmlregexp.h
│ │ ├── xmlsave.h
│ │ ├── xmlschemas.h
│ │ ├── xmlschemastypes.h
│ │ ├── xmlstring.h
│ │ ├── xmlunicode.h
│ │ ├── xmlversion.h
│ │ ├── xmlwriter.h
│ │ ├── xpath.h
│ │ ├── xpathInternals.h
│ │ └── xpointer.h
│ ├── libxslt
│ │ ├── attributes.h
│ │ ├── documents.h
│ │ ├── extensions.h
│ │ ├── extra.h
│ │ ├── functions.h
│ │ ├── imports.h
│ │ ├── keys.h
│ │ ├── namespaces.h
│ │ ├── numbersInternals.h
│ │ ├── pattern.h
│ │ ├── preproc.h
│ │ ├── security.h
│ │ ├── templates.h
│ │ ├── transform.h
│ │ ├── variables.h
│ │ ├── xslt.h
│ │ ├── xsltInternals.h
│ │ ├── xsltconfig.h
│ │ ├── xsltexports.h
│ │ ├── xsltlocale.h
│ │ └── xsltutils.h
│ ├── lxml-version.h
│ ├── relaxng.pxd
│ ├── schematron.pxd
│ ├── tree.pxd
│ ├── uri.pxd
│ ├── xinclude.pxd
│ ├── xmlerror.pxd
│ ├── xmlparser.pxd
│ ├── xmlschema.pxd
│ ├── xpath.pxd
│ └── xslt.pxd
│ ├── isoschematron
│ ├── __init__.py
│ ├── __pycache__
│ │ └── __init__.cpython-36.pyc
│ └── resources
│ │ ├── rng
│ │ └── iso-schematron.rng
│ │ └── xsl
│ │ ├── RNG2Schtrn.xsl
│ │ ├── XSD2Schtrn.xsl
│ │ └── iso-schematron-xslt1
│ │ ├── iso_abstract_expand.xsl
│ │ ├── iso_dsdl_include.xsl
│ │ ├── iso_schematron_message.xsl
│ │ ├── iso_schematron_skeleton_for_xslt1.xsl
│ │ ├── iso_svrl_for_xslt1.xsl
│ │ └── readme.txt
│ ├── lxml.etree.h
│ ├── lxml.etree_api.h
│ ├── objectify.cpython-36m-x86_64-linux-gnu.so
│ ├── pyclasslookup.py
│ ├── sax.py
│ └── usedoctest.py
├── LICENSE
└── README.md
/3.6.4/py27/lxml/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a package
2 |
3 | def get_include():
4 | """
5 | Returns a list of header include paths (for lxml itself, libxml2
6 | and libxslt) needed to compile C code against lxml if it was built
7 | with statically linked libraries.
8 | """
9 | import os
10 | lxml_path = __path__[0]
11 | include_path = os.path.join(lxml_path, 'includes')
12 | includes = [include_path, lxml_path]
13 |
14 | for name in os.listdir(include_path):
15 | path = os.path.join(include_path, name)
16 | if os.path.isdir(path):
17 | includes.append(path)
18 |
19 | return includes
20 |
21 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/etree.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py27/lxml/etree.so
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/html/ElementSoup.py:
--------------------------------------------------------------------------------
1 | __doc__ = """Legacy interface to the BeautifulSoup HTML parser.
2 | """
3 |
4 | __all__ = ["parse", "convert_tree"]
5 |
6 | from soupparser import convert_tree, parse as _parse
7 |
8 | def parse(file, beautifulsoup=None, makeelement=None):
9 | root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
10 | return root.getroot()
11 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/html/_diffcommand.py:
--------------------------------------------------------------------------------
1 | import optparse
2 | import sys
3 | import re
4 | import os
5 | from lxml.html.diff import htmldiff
6 |
7 | description = """\
8 | """
9 |
10 | parser = optparse.OptionParser(
11 | usage="%prog [OPTIONS] FILE1 FILE2\n"
12 | "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...",
13 | description=description,
14 | )
15 |
16 | parser.add_option(
17 | '-o', '--output',
18 | metavar="FILE",
19 | dest="output",
20 | default="-",
21 | help="File to write the difference to",
22 | )
23 |
24 | parser.add_option(
25 | '-a', '--annotation',
26 | action="store_true",
27 | dest="annotation",
28 | help="Do an annotation")
29 |
30 | def main(args=None):
31 | if args is None:
32 | args = sys.argv[1:]
33 | options, args = parser.parse_args(args)
34 | if options.annotation:
35 | return annotate(options, args)
36 | if len(args) != 2:
37 | print('Error: you must give two files')
38 | parser.print_help()
39 | sys.exit(1)
40 | file1, file2 = args
41 | input1 = read_file(file1)
42 | input2 = read_file(file2)
43 | body1 = split_body(input1)[1]
44 | pre, body2, post = split_body(input2)
45 | result = htmldiff(body1, body2)
46 | result = pre + result + post
47 | if options.output == '-':
48 | if not result.endswith('\n'):
49 | result += '\n'
50 | sys.stdout.write(result)
51 | else:
52 | f = open(options.output, 'wb')
53 | f.write(result)
54 | f.close()
55 |
56 | def read_file(filename):
57 | if filename == '-':
58 | c = sys.stdin.read()
59 | elif not os.path.exists(filename):
60 | raise OSError(
61 | "Input file %s does not exist" % filename)
62 | else:
63 | f = open(filename, 'rb')
64 | c = f.read()
65 | f.close()
66 | return c
67 |
68 | body_start_re = re.compile(
69 | r"
", re.I|re.S)
70 | body_end_re = re.compile(
71 | r"", re.I|re.S)
72 |
73 | def split_body(html):
74 | match = body_start_re.search(html)
75 | if match:
76 | pre = html[:match.end()]
77 | html = html[match.end():]
78 | match = body_end_re.search(html)
79 | if match:
80 | post = html[match.start():]
81 | html = html[:match.start()]
82 | return pre, html, post
83 |
84 | def annotate(options, args):
85 | print("Not yet implemented")
86 | sys.exit(1)
87 |
88 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/html/_setmixin.py:
--------------------------------------------------------------------------------
1 | from collections import MutableSet
2 |
3 | class SetMixin(MutableSet):
4 |
5 | """
6 | Mix-in for sets. You must define __iter__, add, remove
7 | """
8 |
9 | def __len__(self):
10 | length = 0
11 | for item in self:
12 | length += 1
13 | return length
14 |
15 | def __contains__(self, item):
16 | for has_item in self:
17 | if item == has_item:
18 | return True
19 | return False
20 |
21 | issubset = MutableSet.__le__
22 | issuperset = MutableSet.__ge__
23 |
24 | union = MutableSet.__or__
25 | intersection = MutableSet.__and__
26 | difference = MutableSet.__sub__
27 | symmetric_difference = MutableSet.__xor__
28 |
29 | def copy(self):
30 | return set(self)
31 |
32 | def update(self, other):
33 | self |= other
34 |
35 | def intersection_update(self, other):
36 | self &= other
37 |
38 | def difference_update(self, other):
39 | self -= other
40 |
41 | def symmetric_difference_update(self, other):
42 | self ^= other
43 |
44 | def discard(self, item):
45 | try:
46 | self.remove(item)
47 | except KeyError:
48 | pass
49 |
50 | @classmethod
51 | def _from_iterable(cls, it):
52 | return set(it)
53 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/html/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for HTML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.html.usedoctest
6 | >>> # now do your HTML doctests ...
7 |
8 | See `lxml.doctestcompare`.
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(html=True, del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py27/lxml/includes/__init__.py
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/c14n.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
2 | from lxml.includes.xpath cimport xmlNodeSet
3 |
4 | cdef extern from "libxml/c14n.h":
5 | cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
6 | xmlNodeSet* nodes,
7 | int exclusive,
8 | xmlChar** inclusive_ns_prefixes,
9 | int with_comments,
10 | xmlChar** doc_txt_ptr) nogil
11 |
12 | cdef int xmlC14NDocSave(xmlDoc* doc,
13 | xmlNodeSet* nodes,
14 | int exclusive,
15 | xmlChar** inclusive_ns_prefixes,
16 | int with_comments,
17 | char* filename,
18 | int compression) nogil
19 |
20 | cdef int xmlC14NDocSaveTo(xmlDoc* doc,
21 | xmlNodeSet* nodes,
22 | int exclusive,
23 | xmlChar** inclusive_ns_prefixes,
24 | int with_comments,
25 | xmlOutputBuffer* buffer) nogil
26 |
27 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/config.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "etree_defs.h":
2 | cdef bint ENABLE_THREADING
3 | cdef bint ENABLE_SCHEMATRON
4 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/dtdvalid.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport tree
2 | from lxml.includes.tree cimport xmlDoc, xmlDtd
3 |
4 | cdef extern from "libxml/valid.h" nogil:
5 | ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...)
6 | ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...)
7 |
8 | ctypedef struct xmlValidCtxt:
9 | void *userData
10 | xmlValidityErrorFunc error
11 | xmlValidityWarningFunc warning
12 |
13 | cdef xmlValidCtxt* xmlNewValidCtxt()
14 | cdef void xmlFreeValidCtxt(xmlValidCtxt* cur)
15 |
16 | cdef int xmlValidateDtd(xmlValidCtxt* ctxt, xmlDoc* doc, xmlDtd* dtd)
17 | cdef tree.xmlElement* xmlGetDtdElementDesc(
18 | xmlDtd* dtd, tree.const_xmlChar* name)
19 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/htmlparser.pxd:
--------------------------------------------------------------------------------
1 | from libc.string cimport const_char
2 |
3 | from lxml.includes.tree cimport xmlDoc
4 | from lxml.includes.tree cimport xmlInputReadCallback, xmlInputCloseCallback
5 | from lxml.includes.xmlparser cimport xmlParserCtxt, xmlSAXHandler, xmlSAXHandlerV1
6 |
7 | cdef extern from "libxml/HTMLparser.h":
8 | ctypedef enum htmlParserOption:
9 | HTML_PARSE_NOERROR # suppress error reports
10 | HTML_PARSE_NOWARNING # suppress warning reports
11 | HTML_PARSE_PEDANTIC # pedantic error reporting
12 | HTML_PARSE_NOBLANKS # remove blank nodes
13 | HTML_PARSE_NONET # Forbid network access
14 | # libxml2 2.6.21+ only:
15 | HTML_PARSE_RECOVER # Relaxed parsing
16 | HTML_PARSE_COMPACT # compact small text nodes
17 | # libxml2 2.7.7+ only:
18 | HTML_PARSE_NOIMPLIED # Do not add implied html/body... elements
19 | # libxml2 2.7.8+ only:
20 | HTML_PARSE_NODEFDTD # do not default a doctype if not found
21 | # libxml2 2.8.0+ only:
22 | XML_PARSE_IGNORE_ENC # ignore internal document encoding hint
23 |
24 | xmlSAXHandlerV1 htmlDefaultSAXHandler
25 |
26 | cdef xmlParserCtxt* htmlCreateMemoryParserCtxt(
27 | char* buffer, int size) nogil
28 | cdef xmlParserCtxt* htmlCreateFileParserCtxt(
29 | char* filename, char* encoding) nogil
30 | cdef xmlParserCtxt* htmlCreatePushParserCtxt(xmlSAXHandler* sax,
31 | void* user_data,
32 | char* chunk, int size,
33 | char* filename, int enc) nogil
34 | cdef void htmlFreeParserCtxt(xmlParserCtxt* ctxt) nogil
35 | cdef void htmlCtxtReset(xmlParserCtxt* ctxt) nogil
36 | cdef int htmlCtxtUseOptions(xmlParserCtxt* ctxt, int options) nogil
37 | cdef int htmlParseDocument(xmlParserCtxt* ctxt) nogil
38 | cdef int htmlParseChunk(xmlParserCtxt* ctxt,
39 | char* chunk, int size, int terminate) nogil
40 |
41 | cdef xmlDoc* htmlCtxtReadFile(xmlParserCtxt* ctxt,
42 | char* filename, const_char* encoding,
43 | int options) nogil
44 | cdef xmlDoc* htmlCtxtReadDoc(xmlParserCtxt* ctxt,
45 | char* buffer, char* URL, const_char* encoding,
46 | int options) nogil
47 | cdef xmlDoc* htmlCtxtReadIO(xmlParserCtxt* ctxt,
48 | xmlInputReadCallback ioread,
49 | xmlInputCloseCallback ioclose,
50 | void* ioctx,
51 | char* URL, const_char* encoding,
52 | int options) nogil
53 | cdef xmlDoc* htmlCtxtReadMemory(xmlParserCtxt* ctxt,
54 | char* buffer, int size,
55 | char* filename, const_char* encoding,
56 | int options) nogil
57 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/lxml-version.h:
--------------------------------------------------------------------------------
1 | #ifndef LXML_VERSION_STRING
2 | #define LXML_VERSION_STRING "3.6.0"
3 | #endif
4 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/relaxng.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
3 |
4 | cdef extern from "libxml/relaxng.h":
5 | ctypedef struct xmlRelaxNG
6 | ctypedef struct xmlRelaxNGParserCtxt
7 |
8 | ctypedef struct xmlRelaxNGValidCtxt
9 |
10 | ctypedef enum xmlRelaxNGValidErr:
11 | XML_RELAXNG_OK = 0
12 | XML_RELAXNG_ERR_MEMORY = 1
13 | XML_RELAXNG_ERR_TYPE = 2
14 | XML_RELAXNG_ERR_TYPEVAL = 3
15 | XML_RELAXNG_ERR_DUPID = 4
16 | XML_RELAXNG_ERR_TYPECMP = 5
17 | XML_RELAXNG_ERR_NOSTATE = 6
18 | XML_RELAXNG_ERR_NODEFINE = 7
19 | XML_RELAXNG_ERR_LISTEXTRA = 8
20 | XML_RELAXNG_ERR_LISTEMPTY = 9
21 | XML_RELAXNG_ERR_INTERNODATA = 10
22 | XML_RELAXNG_ERR_INTERSEQ = 11
23 | XML_RELAXNG_ERR_INTEREXTRA = 12
24 | XML_RELAXNG_ERR_ELEMNAME = 13
25 | XML_RELAXNG_ERR_ATTRNAME = 14
26 | XML_RELAXNG_ERR_ELEMNONS = 15
27 | XML_RELAXNG_ERR_ATTRNONS = 16
28 | XML_RELAXNG_ERR_ELEMWRONGNS = 17
29 | XML_RELAXNG_ERR_ATTRWRONGNS = 18
30 | XML_RELAXNG_ERR_ELEMEXTRANS = 19
31 | XML_RELAXNG_ERR_ATTREXTRANS = 20
32 | XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
33 | XML_RELAXNG_ERR_NOELEM = 22
34 | XML_RELAXNG_ERR_NOTELEM = 23
35 | XML_RELAXNG_ERR_ATTRVALID = 24
36 | XML_RELAXNG_ERR_CONTENTVALID = 25
37 | XML_RELAXNG_ERR_EXTRACONTENT = 26
38 | XML_RELAXNG_ERR_INVALIDATTR = 27
39 | XML_RELAXNG_ERR_DATAELEM = 28
40 | XML_RELAXNG_ERR_VALELEM = 29
41 | XML_RELAXNG_ERR_LISTELEM = 30
42 | XML_RELAXNG_ERR_DATATYPE = 31
43 | XML_RELAXNG_ERR_VALUE = 32
44 | XML_RELAXNG_ERR_LIST = 33
45 | XML_RELAXNG_ERR_NOGRAMMAR = 34
46 | XML_RELAXNG_ERR_EXTRADATA = 35
47 | XML_RELAXNG_ERR_LACKDATA = 36
48 | XML_RELAXNG_ERR_INTERNAL = 37
49 | XML_RELAXNG_ERR_ELEMWRONG = 38
50 | XML_RELAXNG_ERR_TEXTWRONG = 39
51 |
52 | cdef xmlRelaxNGValidCtxt* xmlRelaxNGNewValidCtxt(xmlRelaxNG* schema) nogil
53 | cdef int xmlRelaxNGValidateDoc(xmlRelaxNGValidCtxt* ctxt, xmlDoc* doc) nogil
54 | cdef xmlRelaxNG* xmlRelaxNGParse(xmlRelaxNGParserCtxt* ctxt) nogil
55 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewParserCtxt(char* URL) nogil
56 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewDocParserCtxt(xmlDoc* doc) nogil
57 | cdef void xmlRelaxNGFree(xmlRelaxNG* schema) nogil
58 | cdef void xmlRelaxNGFreeParserCtxt(xmlRelaxNGParserCtxt* ctxt) nogil
59 | cdef void xmlRelaxNGFreeValidCtxt(xmlRelaxNGValidCtxt* ctxt) nogil
60 |
61 | cdef void xmlRelaxNGSetValidStructuredErrors(
62 | xmlRelaxNGValidCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
63 | cdef void xmlRelaxNGSetParserStructuredErrors(
64 | xmlRelaxNGParserCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
65 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/schematron.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport xmlerror
2 | from lxml.includes.tree cimport xmlDoc
3 |
4 | cdef extern from "libxml/schematron.h":
5 | ctypedef struct xmlSchematron
6 | ctypedef struct xmlSchematronParserCtxt
7 | ctypedef struct xmlSchematronValidCtxt
8 |
9 | ctypedef enum xmlSchematronValidOptions:
10 | XML_SCHEMATRON_OUT_QUIET = 1 # quiet no report
11 | XML_SCHEMATRON_OUT_TEXT = 2 # build a textual report
12 | XML_SCHEMATRON_OUT_XML = 4 # output SVRL
13 | XML_SCHEMATRON_OUT_ERROR = 8 # output via xmlStructuredErrorFunc
14 | XML_SCHEMATRON_OUT_FILE = 256 # output to a file descriptor
15 | XML_SCHEMATRON_OUT_BUFFER = 512 # output to a buffer
16 | XML_SCHEMATRON_OUT_IO = 1024 # output to I/O mechanism
17 |
18 | cdef xmlSchematronParserCtxt* xmlSchematronNewDocParserCtxt(
19 | xmlDoc* doc) nogil
20 | cdef xmlSchematronParserCtxt* xmlSchematronNewParserCtxt(
21 | char* filename) nogil
22 | cdef xmlSchematronValidCtxt* xmlSchematronNewValidCtxt(
23 | xmlSchematron* schema, int options) nogil
24 |
25 | cdef xmlSchematron* xmlSchematronParse(xmlSchematronParserCtxt* ctxt) nogil
26 | cdef int xmlSchematronValidateDoc(xmlSchematronValidCtxt* ctxt,
27 | xmlDoc* instance) nogil
28 |
29 | cdef void xmlSchematronFreeParserCtxt(xmlSchematronParserCtxt* ctxt) nogil
30 | cdef void xmlSchematronFreeValidCtxt(xmlSchematronValidCtxt* ctxt) nogil
31 | cdef void xmlSchematronFree(xmlSchematron* schema) nogil
32 | cdef void xmlSchematronSetValidStructuredErrors(
33 | xmlSchematronValidCtxt* ctxt,
34 | xmlerror.xmlStructuredErrorFunc error_func, void *data)
35 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/uri.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "libxml/uri.h":
2 | ctypedef struct xmlURI
3 |
4 | cdef xmlURI* xmlParseURI(char* str)
5 | cdef void xmlFreeURI(xmlURI* uri)
6 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/xinclude.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlNode
2 |
3 | cdef extern from "libxml/xinclude.h":
4 |
5 | ctypedef struct xmlXIncludeCtxt
6 |
7 | cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
8 | cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
9 | cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
10 | cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
11 |
12 | # libxml2 >= 2.7.4
13 | cdef int xmlXIncludeProcessTreeFlagsData(
14 | xmlNode* doc, int parser_opts, void* data) nogil
15 |
16 | cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
17 | cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
18 | cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
19 |
20 | # libxml2 >= 2.6.27
21 | cdef int xmlXIncludeProcessFlagsData(
22 | xmlDoc* doc, int flags, void* data) nogil
23 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/includes/xmlschema.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlparser cimport xmlSAXHandler
3 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
4 |
5 | cdef extern from "libxml/xmlschemas.h":
6 | ctypedef struct xmlSchema
7 | ctypedef struct xmlSchemaParserCtxt
8 |
9 | ctypedef struct xmlSchemaSAXPlugStruct
10 | ctypedef struct xmlSchemaValidCtxt
11 |
12 | ctypedef enum xmlSchemaValidOption:
13 | XML_SCHEMA_VAL_VC_I_CREATE = 1
14 |
15 | cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
16 | cdef void xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxt* ctxt,
17 | xmlStructuredErrorFunc serror, void *ctx)
18 | cdef void xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxt* ctxt,
19 | xmlStructuredErrorFunc serror, void *ctx)
20 |
21 | cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
22 | cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
23 | cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
24 | cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
25 | cdef void xmlSchemaFree(xmlSchema* schema) nogil
26 | cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
27 | cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
28 | cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
29 | int options) nogil
30 |
31 | cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
32 | xmlSAXHandler** sax,
33 | void** data) nogil
34 | cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
35 | cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)
36 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 | (
51 | /
52 | )
53 |
54 |
55 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt:
--------------------------------------------------------------------------------
1 | ISO SCHEMATRON 2009
2 |
3 | XSLT implementation by Rick Jelliffe with assistance from members of Schematron-love-in maillist.
4 |
5 | 2009-03-18
6 |
7 | Two distributions are available. One is for XSLT1 engines.
8 | The other is for XSLT2 engines, such as SAXON 9.
9 |
10 |
11 | This version of Schematron splits the process into a pipeline of several different XSLT stages.
12 |
13 | 1) First, preprocess your Schematron schema with iso_dsdl_include.xsl.
14 | This is a macro processor to assemble the schema from various parts.
15 | If your schema is not in separate parts, you can skip this stage.
16 |
17 | 2) Second, preprocess the output from stage 1 with iso_abstract_expand.xsl.
18 | This is a macro processor to convert abstract patterns to real patterns.
19 | If your schema does not use abstract patterns, you can skip this
20 | stage.
21 |
22 | 3) Third, compile the Schematron schema into an XSLT script.
23 | This will typically use iso_svrl_for_xslt1.xsl or iso_svrl_for_xslt2.xsl
24 | (which in turn invoke iso_schematron_skeleton_for_xslt1.xsl or iso_schematron_skeleton_for_saxon.xsl)
25 | However, other "meta-styleseets" are also in common use; the principle of operation is the same.
26 | If your schema uses Schematron phases, supply these as command line/invocation parameters
27 | to this process.
28 |
29 | 4) Fourth, run the script generated by stage 3 against the document being validated.
30 | If you are using the SVRL script, then the output of validation will be an XML document.
31 | If your schema uses Schematron parameters, supply these as command line/invocation parameters
32 | to this process.
33 |
34 |
35 | The XSLT2 distribution also features several next generation features,
36 | such as validating multiple documents. See the source code for details.
37 |
38 | Schematron assertions can be written in any language, of course; the file
39 | sch-messages-en.xhtml contains the diagnostics messages from the XSLT2 skeleton
40 | in English, and this can be used as template to localize the skeleton's
41 | error messages. Note that typically programming errors in Schematron are XPath
42 | errors, which requires localized messages from the XSLT engine.
43 |
44 | ANT
45 | ---
46 | To give an example of how to process a document, here is a sample ANT task.
47 |
48 |
49 |
50 |
51 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/objectify.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py27/lxml/objectify.so
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/pyclasslookup.py:
--------------------------------------------------------------------------------
1 | # dummy module for backwards compatibility
2 |
3 | from lxml.etree import PythonElementClassLookup
4 |
--------------------------------------------------------------------------------
/3.6.4/py27/lxml/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for XML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.usedoctest
6 | >>> # now do your XML doctests ...
7 |
8 | See `lxml.doctestcompare`
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a package
2 |
3 | def get_include():
4 | """
5 | Returns a list of header include paths (for lxml itself, libxml2
6 | and libxslt) needed to compile C code against lxml if it was built
7 | with statically linked libraries.
8 | """
9 | import os
10 | lxml_path = __path__[0]
11 | include_path = os.path.join(lxml_path, 'includes')
12 | includes = [include_path, lxml_path]
13 |
14 | for name in os.listdir(include_path):
15 | path = os.path.join(include_path, name)
16 | if os.path.isdir(path):
17 | includes.append(path)
18 |
19 | return includes
20 |
21 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/etree.cpython-36m-x86_64-linux-gnu.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py36/lxml/etree.cpython-36m-x86_64-linux-gnu.so
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/html/ElementSoup.py:
--------------------------------------------------------------------------------
1 | __doc__ = """Legacy interface to the BeautifulSoup HTML parser.
2 | """
3 |
4 | __all__ = ["parse", "convert_tree"]
5 |
6 | from soupparser import convert_tree, parse as _parse
7 |
8 | def parse(file, beautifulsoup=None, makeelement=None):
9 | root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
10 | return root.getroot()
11 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/html/_diffcommand.py:
--------------------------------------------------------------------------------
1 | import optparse
2 | import sys
3 | import re
4 | import os
5 | from lxml.html.diff import htmldiff
6 |
7 | description = """\
8 | """
9 |
10 | parser = optparse.OptionParser(
11 | usage="%prog [OPTIONS] FILE1 FILE2\n"
12 | "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...",
13 | description=description,
14 | )
15 |
16 | parser.add_option(
17 | '-o', '--output',
18 | metavar="FILE",
19 | dest="output",
20 | default="-",
21 | help="File to write the difference to",
22 | )
23 |
24 | parser.add_option(
25 | '-a', '--annotation',
26 | action="store_true",
27 | dest="annotation",
28 | help="Do an annotation")
29 |
30 | def main(args=None):
31 | if args is None:
32 | args = sys.argv[1:]
33 | options, args = parser.parse_args(args)
34 | if options.annotation:
35 | return annotate(options, args)
36 | if len(args) != 2:
37 | print('Error: you must give two files')
38 | parser.print_help()
39 | sys.exit(1)
40 | file1, file2 = args
41 | input1 = read_file(file1)
42 | input2 = read_file(file2)
43 | body1 = split_body(input1)[1]
44 | pre, body2, post = split_body(input2)
45 | result = htmldiff(body1, body2)
46 | result = pre + result + post
47 | if options.output == '-':
48 | if not result.endswith('\n'):
49 | result += '\n'
50 | sys.stdout.write(result)
51 | else:
52 | f = open(options.output, 'wb')
53 | f.write(result)
54 | f.close()
55 |
56 | def read_file(filename):
57 | if filename == '-':
58 | c = sys.stdin.read()
59 | elif not os.path.exists(filename):
60 | raise OSError(
61 | "Input file %s does not exist" % filename)
62 | else:
63 | f = open(filename, 'rb')
64 | c = f.read()
65 | f.close()
66 | return c
67 |
68 | body_start_re = re.compile(
69 | r"", re.I|re.S)
70 | body_end_re = re.compile(
71 | r"", re.I|re.S)
72 |
73 | def split_body(html):
74 | match = body_start_re.search(html)
75 | if match:
76 | pre = html[:match.end()]
77 | html = html[match.end():]
78 | match = body_end_re.search(html)
79 | if match:
80 | post = html[match.start():]
81 | html = html[:match.start()]
82 | return pre, html, post
83 |
84 | def annotate(options, args):
85 | print("Not yet implemented")
86 | sys.exit(1)
87 |
88 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/html/_setmixin.py:
--------------------------------------------------------------------------------
1 | from collections import MutableSet
2 |
3 | class SetMixin(MutableSet):
4 |
5 | """
6 | Mix-in for sets. You must define __iter__, add, remove
7 | """
8 |
9 | def __len__(self):
10 | length = 0
11 | for item in self:
12 | length += 1
13 | return length
14 |
15 | def __contains__(self, item):
16 | for has_item in self:
17 | if item == has_item:
18 | return True
19 | return False
20 |
21 | issubset = MutableSet.__le__
22 | issuperset = MutableSet.__ge__
23 |
24 | union = MutableSet.__or__
25 | intersection = MutableSet.__and__
26 | difference = MutableSet.__sub__
27 | symmetric_difference = MutableSet.__xor__
28 |
29 | def copy(self):
30 | return set(self)
31 |
32 | def update(self, other):
33 | self |= other
34 |
35 | def intersection_update(self, other):
36 | self &= other
37 |
38 | def difference_update(self, other):
39 | self -= other
40 |
41 | def symmetric_difference_update(self, other):
42 | self ^= other
43 |
44 | def discard(self, item):
45 | try:
46 | self.remove(item)
47 | except KeyError:
48 | pass
49 |
50 | @classmethod
51 | def _from_iterable(cls, it):
52 | return set(it)
53 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/html/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for HTML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.html.usedoctest
6 | >>> # now do your HTML doctests ...
7 |
8 | See `lxml.doctestcompare`.
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(html=True, del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py36/lxml/includes/__init__.py
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/c14n.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
2 | from lxml.includes.xpath cimport xmlNodeSet
3 |
4 | cdef extern from "libxml/c14n.h":
5 | cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
6 | xmlNodeSet* nodes,
7 | int exclusive,
8 | xmlChar** inclusive_ns_prefixes,
9 | int with_comments,
10 | xmlChar** doc_txt_ptr) nogil
11 |
12 | cdef int xmlC14NDocSave(xmlDoc* doc,
13 | xmlNodeSet* nodes,
14 | int exclusive,
15 | xmlChar** inclusive_ns_prefixes,
16 | int with_comments,
17 | char* filename,
18 | int compression) nogil
19 |
20 | cdef int xmlC14NDocSaveTo(xmlDoc* doc,
21 | xmlNodeSet* nodes,
22 | int exclusive,
23 | xmlChar** inclusive_ns_prefixes,
24 | int with_comments,
25 | xmlOutputBuffer* buffer) nogil
26 |
27 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/config.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "etree_defs.h":
2 | cdef bint ENABLE_THREADING
3 | cdef bint ENABLE_SCHEMATRON
4 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/dtdvalid.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport tree
2 | from lxml.includes.tree cimport xmlDoc, xmlDtd
3 |
4 | cdef extern from "libxml/valid.h" nogil:
5 | ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...)
6 | ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...)
7 |
8 | ctypedef struct xmlValidCtxt:
9 | void *userData
10 | xmlValidityErrorFunc error
11 | xmlValidityWarningFunc warning
12 |
13 | cdef xmlValidCtxt* xmlNewValidCtxt()
14 | cdef void xmlFreeValidCtxt(xmlValidCtxt* cur)
15 |
16 | cdef int xmlValidateDtd(xmlValidCtxt* ctxt, xmlDoc* doc, xmlDtd* dtd)
17 | cdef tree.xmlElement* xmlGetDtdElementDesc(
18 | xmlDtd* dtd, tree.const_xmlChar* name)
19 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/htmlparser.pxd:
--------------------------------------------------------------------------------
1 | from libc.string cimport const_char
2 |
3 | from lxml.includes.tree cimport xmlDoc
4 | from lxml.includes.tree cimport xmlInputReadCallback, xmlInputCloseCallback
5 | from lxml.includes.xmlparser cimport xmlParserCtxt, xmlSAXHandler, xmlSAXHandlerV1
6 |
7 | cdef extern from "libxml/HTMLparser.h":
8 | ctypedef enum htmlParserOption:
9 | HTML_PARSE_NOERROR # suppress error reports
10 | HTML_PARSE_NOWARNING # suppress warning reports
11 | HTML_PARSE_PEDANTIC # pedantic error reporting
12 | HTML_PARSE_NOBLANKS # remove blank nodes
13 | HTML_PARSE_NONET # Forbid network access
14 | # libxml2 2.6.21+ only:
15 | HTML_PARSE_RECOVER # Relaxed parsing
16 | HTML_PARSE_COMPACT # compact small text nodes
17 | # libxml2 2.7.7+ only:
18 | HTML_PARSE_NOIMPLIED # Do not add implied html/body... elements
19 | # libxml2 2.7.8+ only:
20 | HTML_PARSE_NODEFDTD # do not default a doctype if not found
21 | # libxml2 2.8.0+ only:
22 | XML_PARSE_IGNORE_ENC # ignore internal document encoding hint
23 |
24 | xmlSAXHandlerV1 htmlDefaultSAXHandler
25 |
26 | cdef xmlParserCtxt* htmlCreateMemoryParserCtxt(
27 | char* buffer, int size) nogil
28 | cdef xmlParserCtxt* htmlCreateFileParserCtxt(
29 | char* filename, char* encoding) nogil
30 | cdef xmlParserCtxt* htmlCreatePushParserCtxt(xmlSAXHandler* sax,
31 | void* user_data,
32 | char* chunk, int size,
33 | char* filename, int enc) nogil
34 | cdef void htmlFreeParserCtxt(xmlParserCtxt* ctxt) nogil
35 | cdef void htmlCtxtReset(xmlParserCtxt* ctxt) nogil
36 | cdef int htmlCtxtUseOptions(xmlParserCtxt* ctxt, int options) nogil
37 | cdef int htmlParseDocument(xmlParserCtxt* ctxt) nogil
38 | cdef int htmlParseChunk(xmlParserCtxt* ctxt,
39 | char* chunk, int size, int terminate) nogil
40 |
41 | cdef xmlDoc* htmlCtxtReadFile(xmlParserCtxt* ctxt,
42 | char* filename, const_char* encoding,
43 | int options) nogil
44 | cdef xmlDoc* htmlCtxtReadDoc(xmlParserCtxt* ctxt,
45 | char* buffer, char* URL, const_char* encoding,
46 | int options) nogil
47 | cdef xmlDoc* htmlCtxtReadIO(xmlParserCtxt* ctxt,
48 | xmlInputReadCallback ioread,
49 | xmlInputCloseCallback ioclose,
50 | void* ioctx,
51 | char* URL, const_char* encoding,
52 | int options) nogil
53 | cdef xmlDoc* htmlCtxtReadMemory(xmlParserCtxt* ctxt,
54 | char* buffer, int size,
55 | char* filename, const_char* encoding,
56 | int options) nogil
57 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/lxml-version.h:
--------------------------------------------------------------------------------
1 | #ifndef LXML_VERSION_STRING
2 | #define LXML_VERSION_STRING "3.6.4"
3 | #endif
4 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/relaxng.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
3 |
4 | cdef extern from "libxml/relaxng.h":
5 | ctypedef struct xmlRelaxNG
6 | ctypedef struct xmlRelaxNGParserCtxt
7 |
8 | ctypedef struct xmlRelaxNGValidCtxt
9 |
10 | ctypedef enum xmlRelaxNGValidErr:
11 | XML_RELAXNG_OK = 0
12 | XML_RELAXNG_ERR_MEMORY = 1
13 | XML_RELAXNG_ERR_TYPE = 2
14 | XML_RELAXNG_ERR_TYPEVAL = 3
15 | XML_RELAXNG_ERR_DUPID = 4
16 | XML_RELAXNG_ERR_TYPECMP = 5
17 | XML_RELAXNG_ERR_NOSTATE = 6
18 | XML_RELAXNG_ERR_NODEFINE = 7
19 | XML_RELAXNG_ERR_LISTEXTRA = 8
20 | XML_RELAXNG_ERR_LISTEMPTY = 9
21 | XML_RELAXNG_ERR_INTERNODATA = 10
22 | XML_RELAXNG_ERR_INTERSEQ = 11
23 | XML_RELAXNG_ERR_INTEREXTRA = 12
24 | XML_RELAXNG_ERR_ELEMNAME = 13
25 | XML_RELAXNG_ERR_ATTRNAME = 14
26 | XML_RELAXNG_ERR_ELEMNONS = 15
27 | XML_RELAXNG_ERR_ATTRNONS = 16
28 | XML_RELAXNG_ERR_ELEMWRONGNS = 17
29 | XML_RELAXNG_ERR_ATTRWRONGNS = 18
30 | XML_RELAXNG_ERR_ELEMEXTRANS = 19
31 | XML_RELAXNG_ERR_ATTREXTRANS = 20
32 | XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
33 | XML_RELAXNG_ERR_NOELEM = 22
34 | XML_RELAXNG_ERR_NOTELEM = 23
35 | XML_RELAXNG_ERR_ATTRVALID = 24
36 | XML_RELAXNG_ERR_CONTENTVALID = 25
37 | XML_RELAXNG_ERR_EXTRACONTENT = 26
38 | XML_RELAXNG_ERR_INVALIDATTR = 27
39 | XML_RELAXNG_ERR_DATAELEM = 28
40 | XML_RELAXNG_ERR_VALELEM = 29
41 | XML_RELAXNG_ERR_LISTELEM = 30
42 | XML_RELAXNG_ERR_DATATYPE = 31
43 | XML_RELAXNG_ERR_VALUE = 32
44 | XML_RELAXNG_ERR_LIST = 33
45 | XML_RELAXNG_ERR_NOGRAMMAR = 34
46 | XML_RELAXNG_ERR_EXTRADATA = 35
47 | XML_RELAXNG_ERR_LACKDATA = 36
48 | XML_RELAXNG_ERR_INTERNAL = 37
49 | XML_RELAXNG_ERR_ELEMWRONG = 38
50 | XML_RELAXNG_ERR_TEXTWRONG = 39
51 |
52 | cdef xmlRelaxNGValidCtxt* xmlRelaxNGNewValidCtxt(xmlRelaxNG* schema) nogil
53 | cdef int xmlRelaxNGValidateDoc(xmlRelaxNGValidCtxt* ctxt, xmlDoc* doc) nogil
54 | cdef xmlRelaxNG* xmlRelaxNGParse(xmlRelaxNGParserCtxt* ctxt) nogil
55 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewParserCtxt(char* URL) nogil
56 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewDocParserCtxt(xmlDoc* doc) nogil
57 | cdef void xmlRelaxNGFree(xmlRelaxNG* schema) nogil
58 | cdef void xmlRelaxNGFreeParserCtxt(xmlRelaxNGParserCtxt* ctxt) nogil
59 | cdef void xmlRelaxNGFreeValidCtxt(xmlRelaxNGValidCtxt* ctxt) nogil
60 |
61 | cdef void xmlRelaxNGSetValidStructuredErrors(
62 | xmlRelaxNGValidCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
63 | cdef void xmlRelaxNGSetParserStructuredErrors(
64 | xmlRelaxNGParserCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
65 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/schematron.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport xmlerror
2 | from lxml.includes.tree cimport xmlDoc
3 |
4 | cdef extern from "libxml/schematron.h":
5 | ctypedef struct xmlSchematron
6 | ctypedef struct xmlSchematronParserCtxt
7 | ctypedef struct xmlSchematronValidCtxt
8 |
9 | ctypedef enum xmlSchematronValidOptions:
10 | XML_SCHEMATRON_OUT_QUIET = 1 # quiet no report
11 | XML_SCHEMATRON_OUT_TEXT = 2 # build a textual report
12 | XML_SCHEMATRON_OUT_XML = 4 # output SVRL
13 | XML_SCHEMATRON_OUT_ERROR = 8 # output via xmlStructuredErrorFunc
14 | XML_SCHEMATRON_OUT_FILE = 256 # output to a file descriptor
15 | XML_SCHEMATRON_OUT_BUFFER = 512 # output to a buffer
16 | XML_SCHEMATRON_OUT_IO = 1024 # output to I/O mechanism
17 |
18 | cdef xmlSchematronParserCtxt* xmlSchematronNewDocParserCtxt(
19 | xmlDoc* doc) nogil
20 | cdef xmlSchematronParserCtxt* xmlSchematronNewParserCtxt(
21 | char* filename) nogil
22 | cdef xmlSchematronValidCtxt* xmlSchematronNewValidCtxt(
23 | xmlSchematron* schema, int options) nogil
24 |
25 | cdef xmlSchematron* xmlSchematronParse(xmlSchematronParserCtxt* ctxt) nogil
26 | cdef int xmlSchematronValidateDoc(xmlSchematronValidCtxt* ctxt,
27 | xmlDoc* instance) nogil
28 |
29 | cdef void xmlSchematronFreeParserCtxt(xmlSchematronParserCtxt* ctxt) nogil
30 | cdef void xmlSchematronFreeValidCtxt(xmlSchematronValidCtxt* ctxt) nogil
31 | cdef void xmlSchematronFree(xmlSchematron* schema) nogil
32 | cdef void xmlSchematronSetValidStructuredErrors(
33 | xmlSchematronValidCtxt* ctxt,
34 | xmlerror.xmlStructuredErrorFunc error_func, void *data)
35 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/uri.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "libxml/uri.h":
2 | ctypedef struct xmlURI
3 |
4 | cdef xmlURI* xmlParseURI(char* str)
5 | cdef void xmlFreeURI(xmlURI* uri)
6 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/xinclude.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlNode
2 |
3 | cdef extern from "libxml/xinclude.h":
4 |
5 | ctypedef struct xmlXIncludeCtxt
6 |
7 | cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
8 | cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
9 | cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
10 | cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
11 |
12 | # libxml2 >= 2.7.4
13 | cdef int xmlXIncludeProcessTreeFlagsData(
14 | xmlNode* doc, int parser_opts, void* data) nogil
15 |
16 | cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
17 | cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
18 | cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
19 |
20 | # libxml2 >= 2.6.27
21 | cdef int xmlXIncludeProcessFlagsData(
22 | xmlDoc* doc, int flags, void* data) nogil
23 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/includes/xmlschema.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlparser cimport xmlSAXHandler
3 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
4 |
5 | cdef extern from "libxml/xmlschemas.h":
6 | ctypedef struct xmlSchema
7 | ctypedef struct xmlSchemaParserCtxt
8 |
9 | ctypedef struct xmlSchemaSAXPlugStruct
10 | ctypedef struct xmlSchemaValidCtxt
11 |
12 | ctypedef enum xmlSchemaValidOption:
13 | XML_SCHEMA_VAL_VC_I_CREATE = 1
14 |
15 | cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
16 | cdef void xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxt* ctxt,
17 | xmlStructuredErrorFunc serror, void *ctx)
18 | cdef void xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxt* ctxt,
19 | xmlStructuredErrorFunc serror, void *ctx)
20 |
21 | cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
22 | cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
23 | cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
24 | cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
25 | cdef void xmlSchemaFree(xmlSchema* schema) nogil
26 | cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
27 | cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
28 | cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
29 | int options) nogil
30 |
31 | cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
32 | xmlSAXHandler** sax,
33 | void** data) nogil
34 | cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
35 | cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)
36 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 | (
51 | /
52 | )
53 |
54 |
55 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/objectify.cpython-36m-x86_64-linux-gnu.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.6.4/py36/lxml/objectify.cpython-36m-x86_64-linux-gnu.so
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/pyclasslookup.py:
--------------------------------------------------------------------------------
1 | # dummy module for backwards compatibility
2 |
3 | from lxml.etree import PythonElementClassLookup
4 |
--------------------------------------------------------------------------------
/3.6.4/py36/lxml/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for XML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.usedoctest
6 | >>> # now do your XML doctests ...
7 |
8 | See `lxml.doctestcompare`
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/ElementInclude.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/ElementInclude.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a package
2 |
3 | def get_include():
4 | """
5 | Returns a list of header include paths (for lxml itself, libxml2
6 | and libxslt) needed to compile C code against lxml if it was built
7 | with statically linked libraries.
8 | """
9 | import os
10 | lxml_path = __path__[0]
11 | include_path = os.path.join(lxml_path, 'includes')
12 | includes = [include_path, lxml_path]
13 |
14 | for name in os.listdir(include_path):
15 | path = os.path.join(include_path, name)
16 | if os.path.isdir(path):
17 | includes.append(path)
18 |
19 | return includes
20 |
21 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/__init__.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/_elementpath.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/_elementpath.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/builder.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/builder.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/cssselect.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/cssselect.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/doctestcompare.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/doctestcompare.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/etree.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/etree.so
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/ElementSoup.py:
--------------------------------------------------------------------------------
1 | __doc__ = """Legacy interface to the BeautifulSoup HTML parser.
2 | """
3 |
4 | __all__ = ["parse", "convert_tree"]
5 |
6 | from soupparser import convert_tree, parse as _parse
7 |
8 | def parse(file, beautifulsoup=None, makeelement=None):
9 | root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
10 | return root.getroot()
11 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/ElementSoup.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/ElementSoup.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/__init__.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/_diffcommand.py:
--------------------------------------------------------------------------------
1 | import optparse
2 | import sys
3 | import re
4 | import os
5 | from lxml.html.diff import htmldiff
6 |
7 | description = """\
8 | """
9 |
10 | parser = optparse.OptionParser(
11 | usage="%prog [OPTIONS] FILE1 FILE2\n"
12 | "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...",
13 | description=description,
14 | )
15 |
16 | parser.add_option(
17 | '-o', '--output',
18 | metavar="FILE",
19 | dest="output",
20 | default="-",
21 | help="File to write the difference to",
22 | )
23 |
24 | parser.add_option(
25 | '-a', '--annotation',
26 | action="store_true",
27 | dest="annotation",
28 | help="Do an annotation")
29 |
30 | def main(args=None):
31 | if args is None:
32 | args = sys.argv[1:]
33 | options, args = parser.parse_args(args)
34 | if options.annotation:
35 | return annotate(options, args)
36 | if len(args) != 2:
37 | print('Error: you must give two files')
38 | parser.print_help()
39 | sys.exit(1)
40 | file1, file2 = args
41 | input1 = read_file(file1)
42 | input2 = read_file(file2)
43 | body1 = split_body(input1)[1]
44 | pre, body2, post = split_body(input2)
45 | result = htmldiff(body1, body2)
46 | result = pre + result + post
47 | if options.output == '-':
48 | if not result.endswith('\n'):
49 | result += '\n'
50 | sys.stdout.write(result)
51 | else:
52 | f = open(options.output, 'wb')
53 | f.write(result)
54 | f.close()
55 |
56 | def read_file(filename):
57 | if filename == '-':
58 | c = sys.stdin.read()
59 | elif not os.path.exists(filename):
60 | raise OSError(
61 | "Input file %s does not exist" % filename)
62 | else:
63 | f = open(filename, 'rb')
64 | c = f.read()
65 | f.close()
66 | return c
67 |
68 | body_start_re = re.compile(
69 | r"", re.I|re.S)
70 | body_end_re = re.compile(
71 | r"", re.I|re.S)
72 |
73 | def split_body(html):
74 | match = body_start_re.search(html)
75 | if match:
76 | pre = html[:match.end()]
77 | html = html[match.end():]
78 | match = body_end_re.search(html)
79 | if match:
80 | post = html[match.start():]
81 | html = html[:match.start()]
82 | return pre, html, post
83 |
84 | def annotate(options, args):
85 | print("Not yet implemented")
86 | sys.exit(1)
87 |
88 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/_diffcommand.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/_diffcommand.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/_html5builder.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/_html5builder.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/_setmixin.py:
--------------------------------------------------------------------------------
1 | from collections import MutableSet
2 |
3 | class SetMixin(MutableSet):
4 |
5 | """
6 | Mix-in for sets. You must define __iter__, add, remove
7 | """
8 |
9 | def __len__(self):
10 | length = 0
11 | for item in self:
12 | length += 1
13 | return length
14 |
15 | def __contains__(self, item):
16 | for has_item in self:
17 | if item == has_item:
18 | return True
19 | return False
20 |
21 | issubset = MutableSet.__le__
22 | issuperset = MutableSet.__ge__
23 |
24 | union = MutableSet.__or__
25 | intersection = MutableSet.__and__
26 | difference = MutableSet.__sub__
27 | symmetric_difference = MutableSet.__xor__
28 |
29 | def copy(self):
30 | return set(self)
31 |
32 | def update(self, other):
33 | self |= other
34 |
35 | def intersection_update(self, other):
36 | self &= other
37 |
38 | def difference_update(self, other):
39 | self -= other
40 |
41 | def symmetric_difference_update(self, other):
42 | self ^= other
43 |
44 | def discard(self, item):
45 | try:
46 | self.remove(item)
47 | except KeyError:
48 | pass
49 |
50 | @classmethod
51 | def _from_iterable(cls, it):
52 | return set(it)
53 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/_setmixin.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/_setmixin.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/builder.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/builder.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/clean.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/clean.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/defs.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/defs.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/diff.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/diff.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/formfill.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/formfill.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/html5parser.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/html5parser.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/soupparser.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/soupparser.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for HTML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.html.usedoctest
6 | >>> # now do your HTML doctests ...
7 |
8 | See `lxml.doctestcompare`.
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(html=True, del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/html/usedoctest.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/html/usedoctest.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/includes/__init__.py
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/includes/__init__.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/c14n.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
2 | from lxml.includes.xpath cimport xmlNodeSet
3 |
4 | cdef extern from "libxml/c14n.h":
5 | cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
6 | xmlNodeSet* nodes,
7 | int exclusive,
8 | xmlChar** inclusive_ns_prefixes,
9 | int with_comments,
10 | xmlChar** doc_txt_ptr) nogil
11 |
12 | cdef int xmlC14NDocSave(xmlDoc* doc,
13 | xmlNodeSet* nodes,
14 | int exclusive,
15 | xmlChar** inclusive_ns_prefixes,
16 | int with_comments,
17 | char* filename,
18 | int compression) nogil
19 |
20 | cdef int xmlC14NDocSaveTo(xmlDoc* doc,
21 | xmlNodeSet* nodes,
22 | int exclusive,
23 | xmlChar** inclusive_ns_prefixes,
24 | int with_comments,
25 | xmlOutputBuffer* buffer) nogil
26 |
27 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/config.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "etree_defs.h":
2 | cdef bint ENABLE_THREADING
3 | cdef bint ENABLE_SCHEMATRON
4 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/dtdvalid.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport tree
2 | from lxml.includes.tree cimport xmlDoc, xmlDtd
3 |
4 | cdef extern from "libxml/valid.h" nogil:
5 | ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...)
6 | ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...)
7 |
8 | ctypedef struct xmlValidCtxt:
9 | void *userData
10 | xmlValidityErrorFunc error
11 | xmlValidityWarningFunc warning
12 |
13 | cdef xmlValidCtxt* xmlNewValidCtxt()
14 | cdef void xmlFreeValidCtxt(xmlValidCtxt* cur)
15 |
16 | cdef int xmlValidateDtd(xmlValidCtxt* ctxt, xmlDoc* doc, xmlDtd* dtd)
17 | cdef tree.xmlElement* xmlGetDtdElementDesc(
18 | xmlDtd* dtd, tree.const_xmlChar* name)
19 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/htmlparser.pxd:
--------------------------------------------------------------------------------
1 | from libc.string cimport const_char
2 |
3 | from lxml.includes.tree cimport xmlDoc
4 | from lxml.includes.tree cimport xmlInputReadCallback, xmlInputCloseCallback
5 | from lxml.includes.xmlparser cimport xmlParserCtxt, xmlSAXHandler, xmlSAXHandlerV1
6 |
7 | cdef extern from "libxml/HTMLparser.h":
8 | ctypedef enum htmlParserOption:
9 | HTML_PARSE_NOERROR # suppress error reports
10 | HTML_PARSE_NOWARNING # suppress warning reports
11 | HTML_PARSE_PEDANTIC # pedantic error reporting
12 | HTML_PARSE_NOBLANKS # remove blank nodes
13 | HTML_PARSE_NONET # Forbid network access
14 | # libxml2 2.6.21+ only:
15 | HTML_PARSE_RECOVER # Relaxed parsing
16 | HTML_PARSE_COMPACT # compact small text nodes
17 | # libxml2 2.7.7+ only:
18 | HTML_PARSE_NOIMPLIED # Do not add implied html/body... elements
19 | # libxml2 2.7.8+ only:
20 | HTML_PARSE_NODEFDTD # do not default a doctype if not found
21 | # libxml2 2.8.0+ only:
22 | XML_PARSE_IGNORE_ENC # ignore internal document encoding hint
23 |
24 | xmlSAXHandlerV1 htmlDefaultSAXHandler
25 |
26 | cdef xmlParserCtxt* htmlCreateMemoryParserCtxt(
27 | char* buffer, int size) nogil
28 | cdef xmlParserCtxt* htmlCreateFileParserCtxt(
29 | char* filename, char* encoding) nogil
30 | cdef xmlParserCtxt* htmlCreatePushParserCtxt(xmlSAXHandler* sax,
31 | void* user_data,
32 | char* chunk, int size,
33 | char* filename, int enc) nogil
34 | cdef void htmlFreeParserCtxt(xmlParserCtxt* ctxt) nogil
35 | cdef void htmlCtxtReset(xmlParserCtxt* ctxt) nogil
36 | cdef int htmlCtxtUseOptions(xmlParserCtxt* ctxt, int options) nogil
37 | cdef int htmlParseDocument(xmlParserCtxt* ctxt) nogil
38 | cdef int htmlParseChunk(xmlParserCtxt* ctxt,
39 | char* chunk, int size, int terminate) nogil
40 |
41 | cdef xmlDoc* htmlCtxtReadFile(xmlParserCtxt* ctxt,
42 | char* filename, const_char* encoding,
43 | int options) nogil
44 | cdef xmlDoc* htmlCtxtReadDoc(xmlParserCtxt* ctxt,
45 | char* buffer, char* URL, const_char* encoding,
46 | int options) nogil
47 | cdef xmlDoc* htmlCtxtReadIO(xmlParserCtxt* ctxt,
48 | xmlInputReadCallback ioread,
49 | xmlInputCloseCallback ioclose,
50 | void* ioctx,
51 | char* URL, const_char* encoding,
52 | int options) nogil
53 | cdef xmlDoc* htmlCtxtReadMemory(xmlParserCtxt* ctxt,
54 | char* buffer, int size,
55 | char* filename, const_char* encoding,
56 | int options) nogil
57 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libexslt/exsltconfig.h:
--------------------------------------------------------------------------------
1 | /*
2 | * exsltconfig.h: compile-time version informations for the EXSLT library
3 | *
4 | * See Copyright for the status of this software.
5 | *
6 | * daniel@veillard.com
7 | */
8 |
9 | #ifndef __XML_EXSLTCONFIG_H__
10 | #define __XML_EXSLTCONFIG_H__
11 |
12 | #ifdef __cplusplus
13 | extern "C" {
14 | #endif
15 |
16 | /**
17 | * LIBEXSLT_DOTTED_VERSION:
18 | *
19 | * the version string like "1.2.3"
20 | */
21 | #define LIBEXSLT_DOTTED_VERSION "1.1.29"
22 |
23 | /**
24 | * LIBEXSLT_VERSION:
25 | *
26 | * the version number: 1.2.3 value is 10203
27 | */
28 | #define LIBEXSLT_VERSION 817
29 |
30 | /**
31 | * LIBEXSLT_VERSION_STRING:
32 | *
33 | * the version number string, 1.2.3 value is "10203"
34 | */
35 | #define LIBEXSLT_VERSION_STRING "817"
36 |
37 | /**
38 | * LIBEXSLT_VERSION_EXTRA:
39 | *
40 | * extra version information, used to show a CVS compilation
41 | */
42 | #define LIBEXSLT_VERSION_EXTRA ""
43 |
44 | /**
45 | * WITH_CRYPTO:
46 | *
47 | * Whether crypto support is configured into exslt
48 | */
49 | #if 0
50 | #define EXSLT_CRYPTO_ENABLED
51 | #endif
52 |
53 | /**
54 | * ATTRIBUTE_UNUSED:
55 | *
56 | * This macro is used to flag unused function parameters to GCC
57 | */
58 | #ifdef __GNUC__
59 | #ifdef HAVE_ANSIDECL_H
60 | #include
61 | #endif
62 | #ifndef ATTRIBUTE_UNUSED
63 | #define ATTRIBUTE_UNUSED __attribute__((unused))
64 | #endif
65 | #else
66 | #define ATTRIBUTE_UNUSED
67 | #endif
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /* __XML_EXSLTCONFIG_H__ */
74 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/dict.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: string dictionnary
3 | * Description: dictionary of reusable strings, just used to avoid allocation
4 | * and freeing operations.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_DICT_H__
12 | #define __XML_DICT_H__
13 |
14 | #include
15 | #include
16 | #include
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /*
23 | * The dictionnary.
24 | */
25 | typedef struct _xmlDict xmlDict;
26 | typedef xmlDict *xmlDictPtr;
27 |
28 | /*
29 | * Initializer
30 | */
31 | XMLPUBFUN int XMLCALL xmlInitializeDict(void);
32 |
33 | /*
34 | * Constructor and destructor.
35 | */
36 | XMLPUBFUN xmlDictPtr XMLCALL
37 | xmlDictCreate (void);
38 | XMLPUBFUN size_t XMLCALL
39 | xmlDictSetLimit (xmlDictPtr dict,
40 | size_t limit);
41 | XMLPUBFUN size_t XMLCALL
42 | xmlDictGetUsage (xmlDictPtr dict);
43 | XMLPUBFUN xmlDictPtr XMLCALL
44 | xmlDictCreateSub(xmlDictPtr sub);
45 | XMLPUBFUN int XMLCALL
46 | xmlDictReference(xmlDictPtr dict);
47 | XMLPUBFUN void XMLCALL
48 | xmlDictFree (xmlDictPtr dict);
49 |
50 | /*
51 | * Lookup of entry in the dictionnary.
52 | */
53 | XMLPUBFUN const xmlChar * XMLCALL
54 | xmlDictLookup (xmlDictPtr dict,
55 | const xmlChar *name,
56 | int len);
57 | XMLPUBFUN const xmlChar * XMLCALL
58 | xmlDictExists (xmlDictPtr dict,
59 | const xmlChar *name,
60 | int len);
61 | XMLPUBFUN const xmlChar * XMLCALL
62 | xmlDictQLookup (xmlDictPtr dict,
63 | const xmlChar *prefix,
64 | const xmlChar *name);
65 | XMLPUBFUN int XMLCALL
66 | xmlDictOwns (xmlDictPtr dict,
67 | const xmlChar *str);
68 | XMLPUBFUN int XMLCALL
69 | xmlDictSize (xmlDictPtr dict);
70 |
71 | /*
72 | * Cleanup function
73 | */
74 | XMLPUBFUN void XMLCALL
75 | xmlDictCleanup (void);
76 |
77 | #ifdef __cplusplus
78 | }
79 | #endif
80 | #endif /* ! __XML_DICT_H__ */
81 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/nanohttp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: minimal HTTP implementation
3 | * Description: minimal HTTP implementation allowing to fetch resources
4 | * like external subset.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __NANO_HTTP_H__
12 | #define __NANO_HTTP_H__
13 |
14 | #include
15 |
16 | #ifdef LIBXML_HTTP_ENABLED
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 | XMLPUBFUN void XMLCALL
22 | xmlNanoHTTPInit (void);
23 | XMLPUBFUN void XMLCALL
24 | xmlNanoHTTPCleanup (void);
25 | XMLPUBFUN void XMLCALL
26 | xmlNanoHTTPScanProxy (const char *URL);
27 | XMLPUBFUN int XMLCALL
28 | xmlNanoHTTPFetch (const char *URL,
29 | const char *filename,
30 | char **contentType);
31 | XMLPUBFUN void * XMLCALL
32 | xmlNanoHTTPMethod (const char *URL,
33 | const char *method,
34 | const char *input,
35 | char **contentType,
36 | const char *headers,
37 | int ilen);
38 | XMLPUBFUN void * XMLCALL
39 | xmlNanoHTTPMethodRedir (const char *URL,
40 | const char *method,
41 | const char *input,
42 | char **contentType,
43 | char **redir,
44 | const char *headers,
45 | int ilen);
46 | XMLPUBFUN void * XMLCALL
47 | xmlNanoHTTPOpen (const char *URL,
48 | char **contentType);
49 | XMLPUBFUN void * XMLCALL
50 | xmlNanoHTTPOpenRedir (const char *URL,
51 | char **contentType,
52 | char **redir);
53 | XMLPUBFUN int XMLCALL
54 | xmlNanoHTTPReturnCode (void *ctx);
55 | XMLPUBFUN const char * XMLCALL
56 | xmlNanoHTTPAuthHeader (void *ctx);
57 | XMLPUBFUN const char * XMLCALL
58 | xmlNanoHTTPRedir (void *ctx);
59 | XMLPUBFUN int XMLCALL
60 | xmlNanoHTTPContentLength( void * ctx );
61 | XMLPUBFUN const char * XMLCALL
62 | xmlNanoHTTPEncoding (void *ctx);
63 | XMLPUBFUN const char * XMLCALL
64 | xmlNanoHTTPMimeType (void *ctx);
65 | XMLPUBFUN int XMLCALL
66 | xmlNanoHTTPRead (void *ctx,
67 | void *dest,
68 | int len);
69 | #ifdef LIBXML_OUTPUT_ENABLED
70 | XMLPUBFUN int XMLCALL
71 | xmlNanoHTTPSave (void *ctxt,
72 | const char *filename);
73 | #endif /* LIBXML_OUTPUT_ENABLED */
74 | XMLPUBFUN void XMLCALL
75 | xmlNanoHTTPClose (void *ctx);
76 | #ifdef __cplusplus
77 | }
78 | #endif
79 |
80 | #endif /* LIBXML_HTTP_ENABLED */
81 | #endif /* __NANO_HTTP_H__ */
82 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/threads.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Summary: interfaces for thread handling
3 | * Description: set of generic threading related routines
4 | * should work with pthreads, Windows native or TLS threads
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_THREADS_H__
12 | #define __XML_THREADS_H__
13 |
14 | #include
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | /*
21 | * xmlMutex are a simple mutual exception locks.
22 | */
23 | typedef struct _xmlMutex xmlMutex;
24 | typedef xmlMutex *xmlMutexPtr;
25 |
26 | /*
27 | * xmlRMutex are reentrant mutual exception locks.
28 | */
29 | typedef struct _xmlRMutex xmlRMutex;
30 | typedef xmlRMutex *xmlRMutexPtr;
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 | #include
36 | #ifdef __cplusplus
37 | extern "C" {
38 | #endif
39 | XMLPUBFUN xmlMutexPtr XMLCALL
40 | xmlNewMutex (void);
41 | XMLPUBFUN void XMLCALL
42 | xmlMutexLock (xmlMutexPtr tok);
43 | XMLPUBFUN void XMLCALL
44 | xmlMutexUnlock (xmlMutexPtr tok);
45 | XMLPUBFUN void XMLCALL
46 | xmlFreeMutex (xmlMutexPtr tok);
47 |
48 | XMLPUBFUN xmlRMutexPtr XMLCALL
49 | xmlNewRMutex (void);
50 | XMLPUBFUN void XMLCALL
51 | xmlRMutexLock (xmlRMutexPtr tok);
52 | XMLPUBFUN void XMLCALL
53 | xmlRMutexUnlock (xmlRMutexPtr tok);
54 | XMLPUBFUN void XMLCALL
55 | xmlFreeRMutex (xmlRMutexPtr tok);
56 |
57 | /*
58 | * Library wide APIs.
59 | */
60 | XMLPUBFUN void XMLCALL
61 | xmlInitThreads (void);
62 | XMLPUBFUN void XMLCALL
63 | xmlLockLibrary (void);
64 | XMLPUBFUN void XMLCALL
65 | xmlUnlockLibrary(void);
66 | XMLPUBFUN int XMLCALL
67 | xmlGetThreadId (void);
68 | XMLPUBFUN int XMLCALL
69 | xmlIsMainThread (void);
70 | XMLPUBFUN void XMLCALL
71 | xmlCleanupThreads(void);
72 | XMLPUBFUN xmlGlobalStatePtr XMLCALL
73 | xmlGetGlobalState(void);
74 |
75 | #if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && defined(LIBXML_STATIC_FOR_DLL)
76 | int XMLCALL xmlDllMain(void *hinstDLL, unsigned long fdwReason, void *lpvReserved);
77 | #endif
78 |
79 | #ifdef __cplusplus
80 | }
81 | #endif
82 |
83 |
84 | #endif /* __XML_THREADS_H__ */
85 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/uri.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Summary: library of generic URI related routines
3 | * Description: library of generic URI related routines
4 | * Implements RFC 2396
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_URI_H__
12 | #define __XML_URI_H__
13 |
14 | #include
15 | #include
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /**
22 | * xmlURI:
23 | *
24 | * A parsed URI reference. This is a struct containing the various fields
25 | * as described in RFC 2396 but separated for further processing.
26 | *
27 | * Note: query is a deprecated field which is incorrectly unescaped.
28 | * query_raw takes precedence over query if the former is set.
29 | * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
30 | */
31 | typedef struct _xmlURI xmlURI;
32 | typedef xmlURI *xmlURIPtr;
33 | struct _xmlURI {
34 | char *scheme; /* the URI scheme */
35 | char *opaque; /* opaque part */
36 | char *authority; /* the authority part */
37 | char *server; /* the server part */
38 | char *user; /* the user part */
39 | int port; /* the port number */
40 | char *path; /* the path string */
41 | char *query; /* the query string (deprecated - use with caution) */
42 | char *fragment; /* the fragment identifier */
43 | int cleanup; /* parsing potentially unclean URI */
44 | char *query_raw; /* the query string (as it appears in the URI) */
45 | };
46 |
47 | /*
48 | * This function is in tree.h:
49 | * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
50 | * xmlNodePtr cur);
51 | */
52 | XMLPUBFUN xmlURIPtr XMLCALL
53 | xmlCreateURI (void);
54 | XMLPUBFUN xmlChar * XMLCALL
55 | xmlBuildURI (const xmlChar *URI,
56 | const xmlChar *base);
57 | XMLPUBFUN xmlChar * XMLCALL
58 | xmlBuildRelativeURI (const xmlChar *URI,
59 | const xmlChar *base);
60 | XMLPUBFUN xmlURIPtr XMLCALL
61 | xmlParseURI (const char *str);
62 | XMLPUBFUN xmlURIPtr XMLCALL
63 | xmlParseURIRaw (const char *str,
64 | int raw);
65 | XMLPUBFUN int XMLCALL
66 | xmlParseURIReference (xmlURIPtr uri,
67 | const char *str);
68 | XMLPUBFUN xmlChar * XMLCALL
69 | xmlSaveUri (xmlURIPtr uri);
70 | XMLPUBFUN void XMLCALL
71 | xmlPrintURI (FILE *stream,
72 | xmlURIPtr uri);
73 | XMLPUBFUN xmlChar * XMLCALL
74 | xmlURIEscapeStr (const xmlChar *str,
75 | const xmlChar *list);
76 | XMLPUBFUN char * XMLCALL
77 | xmlURIUnescapeString (const char *str,
78 | int len,
79 | char *target);
80 | XMLPUBFUN int XMLCALL
81 | xmlNormalizeURIPath (char *path);
82 | XMLPUBFUN xmlChar * XMLCALL
83 | xmlURIEscape (const xmlChar *str);
84 | XMLPUBFUN void XMLCALL
85 | xmlFreeURI (xmlURIPtr uri);
86 | XMLPUBFUN xmlChar* XMLCALL
87 | xmlCanonicPath (const xmlChar *path);
88 | XMLPUBFUN xmlChar* XMLCALL
89 | xmlPathToURI (const xmlChar *path);
90 |
91 | #ifdef __cplusplus
92 | }
93 | #endif
94 | #endif /* __XML_URI_H__ */
95 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/xmlmodule.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: dynamic module loading
3 | * Description: basic API for dynamic module loading, used by
4 | * libexslt added in 2.6.17
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Joel W. Reed
9 | */
10 |
11 | #ifndef __XML_MODULE_H__
12 | #define __XML_MODULE_H__
13 |
14 | #include
15 |
16 | #ifdef LIBXML_MODULES_ENABLED
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * xmlModulePtr:
24 | *
25 | * A handle to a dynamically loaded module
26 | */
27 | typedef struct _xmlModule xmlModule;
28 | typedef xmlModule *xmlModulePtr;
29 |
30 | /**
31 | * xmlModuleOption:
32 | *
33 | * enumeration of options that can be passed down to xmlModuleOpen()
34 | */
35 | typedef enum {
36 | XML_MODULE_LAZY = 1, /* lazy binding */
37 | XML_MODULE_LOCAL= 2 /* local binding */
38 | } xmlModuleOption;
39 |
40 | XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename,
41 | int options);
42 |
43 | XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module,
44 | const char* name,
45 | void **result);
46 |
47 | XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module);
48 |
49 | XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module);
50 |
51 | #ifdef __cplusplus
52 | }
53 | #endif
54 |
55 | #endif /* LIBXML_MODULES_ENABLED */
56 |
57 | #endif /*__XML_MODULE_H__ */
58 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxml/xmlsave.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: the XML document serializer
3 | * Description: API to save document or subtree of document
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XMLSAVE_H__
11 | #define __XML_XMLSAVE_H__
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 |
18 | #ifdef LIBXML_OUTPUT_ENABLED
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | /**
24 | * xmlSaveOption:
25 | *
26 | * This is the set of XML save options that can be passed down
27 | * to the xmlSaveToFd() and similar calls.
28 | */
29 | typedef enum {
30 | XML_SAVE_FORMAT = 1<<0, /* format save output */
31 | XML_SAVE_NO_DECL = 1<<1, /* drop the xml declaration */
32 | XML_SAVE_NO_EMPTY = 1<<2, /* no empty tags */
33 | XML_SAVE_NO_XHTML = 1<<3, /* disable XHTML1 specific rules */
34 | XML_SAVE_XHTML = 1<<4, /* force XHTML1 specific rules */
35 | XML_SAVE_AS_XML = 1<<5, /* force XML serialization on HTML doc */
36 | XML_SAVE_AS_HTML = 1<<6, /* force HTML serialization on XML doc */
37 | XML_SAVE_WSNONSIG = 1<<7 /* format with non-significant whitespace */
38 | } xmlSaveOption;
39 |
40 |
41 | typedef struct _xmlSaveCtxt xmlSaveCtxt;
42 | typedef xmlSaveCtxt *xmlSaveCtxtPtr;
43 |
44 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
45 | xmlSaveToFd (int fd,
46 | const char *encoding,
47 | int options);
48 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
49 | xmlSaveToFilename (const char *filename,
50 | const char *encoding,
51 | int options);
52 |
53 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
54 | xmlSaveToBuffer (xmlBufferPtr buffer,
55 | const char *encoding,
56 | int options);
57 |
58 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
59 | xmlSaveToIO (xmlOutputWriteCallback iowrite,
60 | xmlOutputCloseCallback ioclose,
61 | void *ioctx,
62 | const char *encoding,
63 | int options);
64 |
65 | XMLPUBFUN long XMLCALL
66 | xmlSaveDoc (xmlSaveCtxtPtr ctxt,
67 | xmlDocPtr doc);
68 | XMLPUBFUN long XMLCALL
69 | xmlSaveTree (xmlSaveCtxtPtr ctxt,
70 | xmlNodePtr node);
71 |
72 | XMLPUBFUN int XMLCALL
73 | xmlSaveFlush (xmlSaveCtxtPtr ctxt);
74 | XMLPUBFUN int XMLCALL
75 | xmlSaveClose (xmlSaveCtxtPtr ctxt);
76 | XMLPUBFUN int XMLCALL
77 | xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
78 | xmlCharEncodingOutputFunc escape);
79 | XMLPUBFUN int XMLCALL
80 | xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
81 | xmlCharEncodingOutputFunc escape);
82 | #ifdef __cplusplus
83 | }
84 | #endif
85 | #endif /* LIBXML_OUTPUT_ENABLED */
86 | #endif /* __XML_XMLSAVE_H__ */
87 |
88 |
89 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/attributes.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT attribute handling
3 | * Description: this module handles the specificities of attribute
4 | * and attribute groups processing.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_ATTRIBUTES_H__
12 | #define __XML_XSLT_ATTRIBUTES_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | XSLTPUBFUN void XSLTCALL
22 | xsltParseStylesheetAttributeSet (xsltStylesheetPtr style,
23 | xmlNodePtr cur);
24 | XSLTPUBFUN void XSLTCALL
25 | xsltFreeAttributeSetsHashes (xsltStylesheetPtr style);
26 | XSLTPUBFUN void XSLTCALL
27 | xsltApplyAttributeSet (xsltTransformContextPtr ctxt,
28 | xmlNodePtr node,
29 | xmlNodePtr inst,
30 | const xmlChar *attributes);
31 | XSLTPUBFUN void XSLTCALL
32 | xsltResolveStylesheetAttributeSet(xsltStylesheetPtr style);
33 | #ifdef __cplusplus
34 | }
35 | #endif
36 |
37 | #endif /* __XML_XSLT_ATTRIBUTES_H__ */
38 |
39 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/documents.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the document handling
3 | * Description: implements document loading and cache (multiple
4 | * document() reference for the same resources must
5 | * be equal.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_DOCUMENTS_H__
13 | #define __XML_XSLT_DOCUMENTS_H__
14 |
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
24 | xsltNewDocument (xsltTransformContextPtr ctxt,
25 | xmlDocPtr doc);
26 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
27 | xsltLoadDocument (xsltTransformContextPtr ctxt,
28 | const xmlChar *URI);
29 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
30 | xsltFindDocument (xsltTransformContextPtr ctxt,
31 | xmlDocPtr doc);
32 | XSLTPUBFUN void XSLTCALL
33 | xsltFreeDocuments (xsltTransformContextPtr ctxt);
34 |
35 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
36 | xsltLoadStyleDocument (xsltStylesheetPtr style,
37 | const xmlChar *URI);
38 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
39 | xsltNewStyleDocument (xsltStylesheetPtr style,
40 | xmlDocPtr doc);
41 | XSLTPUBFUN void XSLTCALL
42 | xsltFreeStyleDocuments (xsltStylesheetPtr style);
43 |
44 | /*
45 | * Hooks for document loading
46 | */
47 |
48 | /**
49 | * xsltLoadType:
50 | *
51 | * Enum defining the kind of loader requirement.
52 | */
53 | typedef enum {
54 | XSLT_LOAD_START = 0, /* loading for a top stylesheet */
55 | XSLT_LOAD_STYLESHEET = 1, /* loading for a stylesheet include/import */
56 | XSLT_LOAD_DOCUMENT = 2 /* loading document at transformation time */
57 | } xsltLoadType;
58 |
59 | /**
60 | * xsltDocLoaderFunc:
61 | * @URI: the URI of the document to load
62 | * @dict: the dictionary to use when parsing that document
63 | * @options: parsing options, a set of xmlParserOption
64 | * @ctxt: the context, either a stylesheet or a transformation context
65 | * @type: the xsltLoadType indicating the kind of loading required
66 | *
67 | * An xsltDocLoaderFunc is a signature for a function which can be
68 | * registered to load document not provided by the compilation or
69 | * transformation API themselve, for example when an xsl:import,
70 | * xsl:include is found at compilation time or when a document()
71 | * call is made at runtime.
72 | *
73 | * Returns the pointer to the document (which will be modified and
74 | * freed by the engine later), or NULL in case of error.
75 | */
76 | typedef xmlDocPtr (*xsltDocLoaderFunc) (const xmlChar *URI,
77 | xmlDictPtr dict,
78 | int options,
79 | void *ctxt,
80 | xsltLoadType type);
81 |
82 | XSLTPUBFUN void XSLTCALL
83 | xsltSetLoaderFunc (xsltDocLoaderFunc f);
84 |
85 | /* the loader may be needed by extension libraries so it is exported */
86 | XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader;
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __XML_XSLT_DOCUMENTS_H__ */
93 |
94 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/extra.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the non-standard features
3 | * Description: implement some extension outside the XSLT namespace
4 | * but not EXSLT with is in a different library.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_EXTRA_H__
12 | #define __XML_XSLT_EXTRA_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_LIBXSLT_NAMESPACE:
24 | *
25 | * This is the libxslt namespace for specific extensions.
26 | */
27 | #define XSLT_LIBXSLT_NAMESPACE ((xmlChar *) "http://xmlsoft.org/XSLT/namespace")
28 |
29 | /**
30 | * XSLT_SAXON_NAMESPACE:
31 | *
32 | * This is Michael Kay's Saxon processor namespace for extensions.
33 | */
34 | #define XSLT_SAXON_NAMESPACE ((xmlChar *) "http://icl.com/saxon")
35 |
36 | /**
37 | * XSLT_XT_NAMESPACE:
38 | *
39 | * This is James Clark's XT processor namespace for extensions.
40 | */
41 | #define XSLT_XT_NAMESPACE ((xmlChar *) "http://www.jclark.com/xt")
42 |
43 | /**
44 | * XSLT_XALAN_NAMESPACE:
45 | *
46 | * This is the Apache project XALAN processor namespace for extensions.
47 | */
48 | #define XSLT_XALAN_NAMESPACE ((xmlChar *) \
49 | "org.apache.xalan.xslt.extensions.Redirect")
50 |
51 | /**
52 | * XSLT_NORM_SAXON_NAMESPACE:
53 | *
54 | * This is Norm's namespace for SAXON extensions.
55 | */
56 | #define XSLT_NORM_SAXON_NAMESPACE ((xmlChar *) \
57 | "http://nwalsh.com/xslt/ext/com.nwalsh.saxon.CVS")
58 |
59 |
60 | XSLTPUBFUN void XSLTCALL
61 | xsltFunctionNodeSet (xmlXPathParserContextPtr ctxt,
62 | int nargs);
63 | XSLTPUBFUN void XSLTCALL
64 | xsltDebug (xsltTransformContextPtr ctxt,
65 | xmlNodePtr node,
66 | xmlNodePtr inst,
67 | xsltStylePreCompPtr comp);
68 |
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltRegisterExtras (xsltTransformContextPtr ctxt);
72 | XSLTPUBFUN void XSLTCALL
73 | xsltRegisterAllExtras (void);
74 |
75 | #ifdef __cplusplus
76 | }
77 | #endif
78 |
79 | #endif /* __XML_XSLT_EXTRA_H__ */
80 |
81 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/functions.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT functions not from XPath
3 | * Description: a set of extra functions coming from XSLT but not in XPath
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard and Bjorn Reese
8 | */
9 |
10 | #ifndef __XML_XSLT_FUNCTIONS_H__
11 | #define __XML_XSLT_FUNCTIONS_H__
12 |
13 | #include
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_REGISTER_FUNCTION_LOOKUP:
24 | *
25 | * Registering macro, not general purpose at all but used in different modules.
26 | */
27 | #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
28 | xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
29 | (xmlXPathFuncLookupFunc) xsltXPathFunctionLookup, \
30 | (void *)(ctxt->xpathCtxt));
31 |
32 | XSLTPUBFUN xmlXPathFunction XSLTCALL
33 | xsltXPathFunctionLookup (xmlXPathContextPtr ctxt,
34 | const xmlChar *name,
35 | const xmlChar *ns_uri);
36 |
37 | /*
38 | * Interfaces for the functions implementations.
39 | */
40 |
41 | XSLTPUBFUN void XSLTCALL
42 | xsltDocumentFunction (xmlXPathParserContextPtr ctxt,
43 | int nargs);
44 | XSLTPUBFUN void XSLTCALL
45 | xsltKeyFunction (xmlXPathParserContextPtr ctxt,
46 | int nargs);
47 | XSLTPUBFUN void XSLTCALL
48 | xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt,
49 | int nargs);
50 | XSLTPUBFUN void XSLTCALL
51 | xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt,
52 | int nargs);
53 | XSLTPUBFUN void XSLTCALL
54 | xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt,
55 | int nargs);
56 | XSLTPUBFUN void XSLTCALL
57 | xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt,
58 | int nargs);
59 | XSLTPUBFUN void XSLTCALL
60 | xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt,
61 | int nargs);
62 | XSLTPUBFUN void XSLTCALL
63 | xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt,
64 | int nargs);
65 |
66 | /*
67 | * And the registration
68 | */
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltRegisterAllFunctions (xmlXPathContextPtr ctxt);
72 |
73 | #ifdef __cplusplus
74 | }
75 | #endif
76 |
77 | #endif /* __XML_XSLT_FUNCTIONS_H__ */
78 |
79 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/imports.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT import support
3 | * Description: macros and fuctions needed to implement and
4 | * access the import tree
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_IMPORTS_H__
12 | #define __XML_XSLT_IMPORTS_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_GET_IMPORT_PTR:
24 | *
25 | * A macro to import pointers from the stylesheet cascading order.
26 | */
27 | #define XSLT_GET_IMPORT_PTR(res, style, name) { \
28 | xsltStylesheetPtr st = style; \
29 | res = NULL; \
30 | while (st != NULL) { \
31 | if (st->name != NULL) { res = st->name; break; } \
32 | st = xsltNextImport(st); \
33 | }}
34 |
35 | /**
36 | * XSLT_GET_IMPORT_INT:
37 | *
38 | * A macro to import intergers from the stylesheet cascading order.
39 | */
40 | #define XSLT_GET_IMPORT_INT(res, style, name) { \
41 | xsltStylesheetPtr st = style; \
42 | res = -1; \
43 | while (st != NULL) { \
44 | if (st->name != -1) { res = st->name; break; } \
45 | st = xsltNextImport(st); \
46 | }}
47 |
48 | /*
49 | * Module interfaces
50 | */
51 | XSLTPUBFUN int XSLTCALL
52 | xsltParseStylesheetImport(xsltStylesheetPtr style,
53 | xmlNodePtr cur);
54 | XSLTPUBFUN int XSLTCALL
55 | xsltParseStylesheetInclude
56 | (xsltStylesheetPtr style,
57 | xmlNodePtr cur);
58 | XSLTPUBFUN xsltStylesheetPtr XSLTCALL
59 | xsltNextImport (xsltStylesheetPtr style);
60 | XSLTPUBFUN int XSLTCALL
61 | xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt);
62 | XSLTPUBFUN int XSLTCALL
63 | xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt,
64 | xmlNodePtr node);
65 | XSLTPUBFUN xsltTemplatePtr XSLTCALL
66 | xsltFindTemplate (xsltTransformContextPtr ctxt,
67 | const xmlChar *name,
68 | const xmlChar *nameURI);
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /* __XML_XSLT_IMPORTS_H__ */
75 |
76 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/keys.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the key matching used in key() and template matches.
3 | * Description: implementation of the key mechanims.
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_KEY_H__
11 | #define __XML_XSLT_KEY_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 | #include "xsltInternals.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /**
22 | * NODE_IS_KEYED:
23 | *
24 | * check for bit 15 set
25 | */
26 | #define NODE_IS_KEYED (1 >> 15)
27 |
28 | XSLTPUBFUN int XSLTCALL
29 | xsltAddKey (xsltStylesheetPtr style,
30 | const xmlChar *name,
31 | const xmlChar *nameURI,
32 | const xmlChar *match,
33 | const xmlChar *use,
34 | xmlNodePtr inst);
35 | XSLTPUBFUN xmlNodeSetPtr XSLTCALL
36 | xsltGetKey (xsltTransformContextPtr ctxt,
37 | const xmlChar *name,
38 | const xmlChar *nameURI,
39 | const xmlChar *value);
40 | XSLTPUBFUN void XSLTCALL
41 | xsltInitCtxtKeys (xsltTransformContextPtr ctxt,
42 | xsltDocumentPtr doc);
43 | XSLTPUBFUN void XSLTCALL
44 | xsltFreeKeys (xsltStylesheetPtr style);
45 | XSLTPUBFUN void XSLTCALL
46 | xsltFreeDocumentKeys (xsltDocumentPtr doc);
47 |
48 | #ifdef __cplusplus
49 | }
50 | #endif
51 |
52 | #endif /* __XML_XSLT_H__ */
53 |
54 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/namespaces.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT namespace handling
3 | * Description: set of function easing the processing and generation
4 | * of namespace nodes in XSLT.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_NAMESPACES_H__
12 | #define __XML_XSLT_NAMESPACES_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /*
22 | * Used within nsAliases hashtable when the default namespace is required
23 | * but it's not been explicitly defined
24 | */
25 | /**
26 | * UNDEFINED_DEFAULT_NS:
27 | *
28 | * Special value for undefined namespace, internal
29 | */
30 | #define UNDEFINED_DEFAULT_NS (const xmlChar *) -1L
31 |
32 | XSLTPUBFUN void XSLTCALL
33 | xsltNamespaceAlias (xsltStylesheetPtr style,
34 | xmlNodePtr node);
35 | XSLTPUBFUN xmlNsPtr XSLTCALL
36 | xsltGetNamespace (xsltTransformContextPtr ctxt,
37 | xmlNodePtr cur,
38 | xmlNsPtr ns,
39 | xmlNodePtr out);
40 | XSLTPUBFUN xmlNsPtr XSLTCALL
41 | xsltGetPlainNamespace (xsltTransformContextPtr ctxt,
42 | xmlNodePtr cur,
43 | xmlNsPtr ns,
44 | xmlNodePtr out);
45 | XSLTPUBFUN xmlNsPtr XSLTCALL
46 | xsltGetSpecialNamespace (xsltTransformContextPtr ctxt,
47 | xmlNodePtr cur,
48 | const xmlChar *URI,
49 | const xmlChar *prefix,
50 | xmlNodePtr out);
51 | XSLTPUBFUN xmlNsPtr XSLTCALL
52 | xsltCopyNamespace (xsltTransformContextPtr ctxt,
53 | xmlNodePtr elem,
54 | xmlNsPtr ns);
55 | XSLTPUBFUN xmlNsPtr XSLTCALL
56 | xsltCopyNamespaceList (xsltTransformContextPtr ctxt,
57 | xmlNodePtr node,
58 | xmlNsPtr cur);
59 | XSLTPUBFUN void XSLTCALL
60 | xsltFreeNamespaceAliasHashes
61 | (xsltStylesheetPtr style);
62 |
63 | #ifdef __cplusplus
64 | }
65 | #endif
66 |
67 | #endif /* __XML_XSLT_NAMESPACES_H__ */
68 |
69 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/numbersInternals.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Implementation of the XSLT number functions
3 | * Description: Implementation of the XSLT number functions
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Bjorn Reese and Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_NUMBERSINTERNALS_H__
11 | #define __XML_XSLT_NUMBERSINTERNALS_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | struct _xsltCompMatch;
21 |
22 | /**
23 | * xsltNumberData:
24 | *
25 | * This data structure is just a wrapper to pass xsl:number data in.
26 | */
27 | typedef struct _xsltNumberData xsltNumberData;
28 | typedef xsltNumberData *xsltNumberDataPtr;
29 |
30 | struct _xsltNumberData {
31 | const xmlChar *level;
32 | const xmlChar *count;
33 | const xmlChar *from;
34 | const xmlChar *value;
35 | const xmlChar *format;
36 | int has_format;
37 | int digitsPerGroup;
38 | int groupingCharacter;
39 | int groupingCharacterLen;
40 | xmlDocPtr doc;
41 | xmlNodePtr node;
42 | struct _xsltCompMatch *countPat;
43 | struct _xsltCompMatch *fromPat;
44 |
45 | /*
46 | * accelerators
47 | */
48 | };
49 |
50 | /**
51 | * xsltFormatNumberInfo,:
52 | *
53 | * This data structure lists the various parameters needed to format numbers.
54 | */
55 | typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo;
56 | typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr;
57 |
58 | struct _xsltFormatNumberInfo {
59 | int integer_hash; /* Number of '#' in integer part */
60 | int integer_digits; /* Number of '0' in integer part */
61 | int frac_digits; /* Number of '0' in fractional part */
62 | int frac_hash; /* Number of '#' in fractional part */
63 | int group; /* Number of chars per display 'group' */
64 | int multiplier; /* Scaling for percent or permille */
65 | char add_decimal; /* Flag for whether decimal point appears in pattern */
66 | char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
67 | char is_negative_pattern;/* Flag for processing -ve prefix/suffix */
68 | };
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 | #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */
74 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/pattern.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the pattern matching used in template matches.
3 | * Description: the implementation of the lookup of the right template
4 | * for a given node must be really fast in order to keep
5 | * decent performances.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_PATTERN_H__
13 | #define __XML_XSLT_PATTERN_H__
14 |
15 | #include "xsltInternals.h"
16 | #include "xsltexports.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * xsltCompMatch:
24 | *
25 | * Data structure used for the implementation of patterns.
26 | * It is kept private (in pattern.c).
27 | */
28 | typedef struct _xsltCompMatch xsltCompMatch;
29 | typedef xsltCompMatch *xsltCompMatchPtr;
30 |
31 | /*
32 | * Pattern related interfaces.
33 | */
34 |
35 | XSLTPUBFUN xsltCompMatchPtr XSLTCALL
36 | xsltCompilePattern (const xmlChar *pattern,
37 | xmlDocPtr doc,
38 | xmlNodePtr node,
39 | xsltStylesheetPtr style,
40 | xsltTransformContextPtr runtime);
41 | XSLTPUBFUN void XSLTCALL
42 | xsltFreeCompMatchList (xsltCompMatchPtr comp);
43 | XSLTPUBFUN int XSLTCALL
44 | xsltTestCompMatchList (xsltTransformContextPtr ctxt,
45 | xmlNodePtr node,
46 | xsltCompMatchPtr comp);
47 | XSLTPUBFUN void XSLTCALL
48 | xsltNormalizeCompSteps (void *payload,
49 | void *data,
50 | const xmlChar *name);
51 |
52 | /*
53 | * Template related interfaces.
54 | */
55 | XSLTPUBFUN int XSLTCALL
56 | xsltAddTemplate (xsltStylesheetPtr style,
57 | xsltTemplatePtr cur,
58 | const xmlChar *mode,
59 | const xmlChar *modeURI);
60 | XSLTPUBFUN xsltTemplatePtr XSLTCALL
61 | xsltGetTemplate (xsltTransformContextPtr ctxt,
62 | xmlNodePtr node,
63 | xsltStylesheetPtr style);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltFreeTemplateHashes (xsltStylesheetPtr style);
66 | XSLTPUBFUN void XSLTCALL
67 | xsltCleanupTemplates (xsltStylesheetPtr style);
68 |
69 | #if 0
70 | int xsltMatchPattern (xsltTransformContextPtr ctxt,
71 | xmlNodePtr node,
72 | const xmlChar *pattern,
73 | xmlDocPtr ctxtdoc,
74 | xmlNodePtr ctxtnode);
75 | #endif
76 | #ifdef __cplusplus
77 | }
78 | #endif
79 |
80 | #endif /* __XML_XSLT_PATTERN_H__ */
81 |
82 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/preproc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: precomputing stylesheets
3 | * Description: this is the compilation phase, where most of the
4 | * stylesheet is "compiled" into faster to use data.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_PRECOMP_H__
12 | #define __XML_XSLT_PRECOMP_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /*
23 | * Interfaces
24 | */
25 | extern const xmlChar *xsltExtMarker;
26 |
27 | XSLTPUBFUN xsltElemPreCompPtr XSLTCALL
28 | xsltDocumentComp (xsltStylesheetPtr style,
29 | xmlNodePtr inst,
30 | xsltTransformFunction function);
31 |
32 | XSLTPUBFUN void XSLTCALL
33 | xsltStylePreCompute (xsltStylesheetPtr style,
34 | xmlNodePtr inst);
35 | XSLTPUBFUN void XSLTCALL
36 | xsltFreeStylePreComps (xsltStylesheetPtr style);
37 |
38 | #ifdef __cplusplus
39 | }
40 | #endif
41 |
42 | #endif /* __XML_XSLT_PRECOMP_H__ */
43 |
44 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/security.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the libxslt security framework
3 | * Description: the libxslt security framework allow to restrict
4 | * the access to new resources (file or URL) from
5 | * the stylesheet at runtime.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_SECURITY_H__
13 | #define __XML_XSLT_SECURITY_H__
14 |
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | /**
24 | * xsltSecurityPref:
25 | *
26 | * structure to indicate the preferences for security in the XSLT
27 | * transformation.
28 | */
29 | typedef struct _xsltSecurityPrefs xsltSecurityPrefs;
30 | typedef xsltSecurityPrefs *xsltSecurityPrefsPtr;
31 |
32 | /**
33 | * xsltSecurityOption:
34 | *
35 | * the set of option that can be configured
36 | */
37 | typedef enum {
38 | XSLT_SECPREF_READ_FILE = 1,
39 | XSLT_SECPREF_WRITE_FILE,
40 | XSLT_SECPREF_CREATE_DIRECTORY,
41 | XSLT_SECPREF_READ_NETWORK,
42 | XSLT_SECPREF_WRITE_NETWORK
43 | } xsltSecurityOption;
44 |
45 | /**
46 | * xsltSecurityCheck:
47 | *
48 | * User provided function to check the value of a string like a file
49 | * path or an URL ...
50 | */
51 | typedef int (*xsltSecurityCheck) (xsltSecurityPrefsPtr sec,
52 | xsltTransformContextPtr ctxt,
53 | const char *value);
54 |
55 | /*
56 | * Module interfaces
57 | */
58 | XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
59 | xsltNewSecurityPrefs (void);
60 | XSLTPUBFUN void XSLTCALL
61 | xsltFreeSecurityPrefs (xsltSecurityPrefsPtr sec);
62 | XSLTPUBFUN int XSLTCALL
63 | xsltSetSecurityPrefs (xsltSecurityPrefsPtr sec,
64 | xsltSecurityOption option,
65 | xsltSecurityCheck func);
66 | XSLTPUBFUN xsltSecurityCheck XSLTCALL
67 | xsltGetSecurityPrefs (xsltSecurityPrefsPtr sec,
68 | xsltSecurityOption option);
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltSetDefaultSecurityPrefs (xsltSecurityPrefsPtr sec);
72 | XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
73 | xsltGetDefaultSecurityPrefs (void);
74 |
75 | XSLTPUBFUN int XSLTCALL
76 | xsltSetCtxtSecurityPrefs (xsltSecurityPrefsPtr sec,
77 | xsltTransformContextPtr ctxt);
78 |
79 | XSLTPUBFUN int XSLTCALL
80 | xsltSecurityAllow (xsltSecurityPrefsPtr sec,
81 | xsltTransformContextPtr ctxt,
82 | const char *value);
83 | XSLTPUBFUN int XSLTCALL
84 | xsltSecurityForbid (xsltSecurityPrefsPtr sec,
85 | xsltTransformContextPtr ctxt,
86 | const char *value);
87 | /*
88 | * internal interfaces
89 | */
90 | XSLTPUBFUN int XSLTCALL
91 | xsltCheckWrite (xsltSecurityPrefsPtr sec,
92 | xsltTransformContextPtr ctxt,
93 | const xmlChar *URL);
94 | XSLTPUBFUN int XSLTCALL
95 | xsltCheckRead (xsltSecurityPrefsPtr sec,
96 | xsltTransformContextPtr ctxt,
97 | const xmlChar *URL);
98 |
99 | #ifdef __cplusplus
100 | }
101 | #endif
102 |
103 | #endif /* __XML_XSLT_SECURITY_H__ */
104 |
105 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/templates.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the template processing
3 | * Description: This set of routine encapsulates XPath calls
4 | * and Attribute Value Templates evaluation.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_TEMPLATES_H__
12 | #define __XML_XSLT_TEMPLATES_H__
13 |
14 | #include
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | XSLTPUBFUN int XSLTCALL
24 | xsltEvalXPathPredicate (xsltTransformContextPtr ctxt,
25 | xmlXPathCompExprPtr comp,
26 | xmlNsPtr *nsList,
27 | int nsNr);
28 | XSLTPUBFUN xmlChar * XSLTCALL
29 | xsltEvalTemplateString (xsltTransformContextPtr ctxt,
30 | xmlNodePtr contextNode,
31 | xmlNodePtr inst);
32 | XSLTPUBFUN xmlChar * XSLTCALL
33 | xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt,
34 | xmlNodePtr node,
35 | const xmlChar *name,
36 | const xmlChar *ns);
37 | XSLTPUBFUN const xmlChar * XSLTCALL
38 | xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
39 | xmlNodePtr node,
40 | const xmlChar *name,
41 | const xmlChar *ns,
42 | int *found);
43 |
44 | /* TODO: this is obviously broken ... the namespaces should be passed too ! */
45 | XSLTPUBFUN xmlChar * XSLTCALL
46 | xsltEvalXPathString (xsltTransformContextPtr ctxt,
47 | xmlXPathCompExprPtr comp);
48 | XSLTPUBFUN xmlChar * XSLTCALL
49 | xsltEvalXPathStringNs (xsltTransformContextPtr ctxt,
50 | xmlXPathCompExprPtr comp,
51 | int nsNr,
52 | xmlNsPtr *nsList);
53 |
54 | XSLTPUBFUN xmlNodePtr * XSLTCALL
55 | xsltTemplateProcess (xsltTransformContextPtr ctxt,
56 | xmlNodePtr node);
57 | XSLTPUBFUN xmlAttrPtr XSLTCALL
58 | xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt,
59 | xmlNodePtr target,
60 | xmlAttrPtr cur);
61 | XSLTPUBFUN xmlAttrPtr XSLTCALL
62 | xsltAttrTemplateProcess (xsltTransformContextPtr ctxt,
63 | xmlNodePtr target,
64 | xmlAttrPtr attr);
65 | XSLTPUBFUN xmlChar * XSLTCALL
66 | xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt,
67 | const xmlChar* attr);
68 | XSLTPUBFUN xmlChar * XSLTCALL
69 | xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt,
70 | const xmlChar* str,
71 | xmlNodePtr node);
72 | #ifdef __cplusplus
73 | }
74 | #endif
75 |
76 | #endif /* __XML_XSLT_TEMPLATES_H__ */
77 |
78 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/variables.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the variable matching and lookup.
3 | * Description: interface for the variable matching and lookup.
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_VARIABLES_H__
11 | #define __XML_XSLT_VARIABLES_H__
12 |
13 | #include
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 | #include "functions.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 |
24 | /**
25 | * XSLT_REGISTER_VARIABLE_LOOKUP:
26 | *
27 | * Registering macro, not general purpose at all but used in different modules.
28 | */
29 |
30 | #define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \
31 | xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \
32 | xsltXPathVariableLookup, (void *)(ctxt)); \
33 | xsltRegisterAllFunctions((ctxt)->xpathCtxt); \
34 | xsltRegisterAllElement(ctxt); \
35 | (ctxt)->xpathCtxt->extra = ctxt
36 |
37 | /*
38 | * Interfaces for the variable module.
39 | */
40 |
41 | XSLTPUBFUN int XSLTCALL
42 | xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
43 | XSLTPUBFUN int XSLTCALL
44 | xsltEvalUserParams (xsltTransformContextPtr ctxt,
45 | const char **params);
46 | XSLTPUBFUN int XSLTCALL
47 | xsltQuoteUserParams (xsltTransformContextPtr ctxt,
48 | const char **params);
49 | XSLTPUBFUN int XSLTCALL
50 | xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
51 | const xmlChar * name,
52 | const xmlChar * value);
53 | XSLTPUBFUN int XSLTCALL
54 | xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
55 | const xmlChar * name,
56 | const xmlChar * value);
57 |
58 | XSLTPUBFUN void XSLTCALL
59 | xsltParseGlobalVariable (xsltStylesheetPtr style,
60 | xmlNodePtr cur);
61 | XSLTPUBFUN void XSLTCALL
62 | xsltParseGlobalParam (xsltStylesheetPtr style,
63 | xmlNodePtr cur);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
66 | xmlNodePtr cur);
67 | XSLTPUBFUN void XSLTCALL
68 | xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
69 | xmlNodePtr cur);
70 | XSLTPUBFUN xsltStackElemPtr XSLTCALL
71 | xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
72 | xmlNodePtr cur);
73 | XSLTPUBFUN int XSLTCALL
74 | xsltAddStackElemList (xsltTransformContextPtr ctxt,
75 | xsltStackElemPtr elems);
76 | XSLTPUBFUN void XSLTCALL
77 | xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
78 | XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
79 | xsltVariableLookup (xsltTransformContextPtr ctxt,
80 | const xmlChar *name,
81 | const xmlChar *ns_uri);
82 | XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
83 | xsltXPathVariableLookup (void *ctxt,
84 | const xmlChar *name,
85 | const xmlChar *ns_uri);
86 | #ifdef __cplusplus
87 | }
88 | #endif
89 |
90 | #endif /* __XML_XSLT_VARIABLES_H__ */
91 |
92 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/xslt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Interfaces, constants and types related to the XSLT engine
3 | * Description: Interfaces, constants and types related to the XSLT engine
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_H__
11 | #define __XML_XSLT_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | /**
21 | * XSLT_DEFAULT_VERSION:
22 | *
23 | * The default version of XSLT supported.
24 | */
25 | #define XSLT_DEFAULT_VERSION "1.0"
26 |
27 | /**
28 | * XSLT_DEFAULT_VENDOR:
29 | *
30 | * The XSLT "vendor" string for this processor.
31 | */
32 | #define XSLT_DEFAULT_VENDOR "libxslt"
33 |
34 | /**
35 | * XSLT_DEFAULT_URL:
36 | *
37 | * The XSLT "vendor" URL for this processor.
38 | */
39 | #define XSLT_DEFAULT_URL "http://xmlsoft.org/XSLT/"
40 |
41 | /**
42 | * XSLT_NAMESPACE:
43 | *
44 | * The XSLT specification namespace.
45 | */
46 | #define XSLT_NAMESPACE ((const xmlChar *)"http://www.w3.org/1999/XSL/Transform")
47 |
48 | /**
49 | * XSLT_PARSE_OPTIONS:
50 | *
51 | * The set of options to pass to an xmlReadxxx when loading files for
52 | * XSLT consumption.
53 | */
54 | #define XSLT_PARSE_OPTIONS \
55 | XML_PARSE_NOENT | XML_PARSE_DTDLOAD | XML_PARSE_DTDATTR | XML_PARSE_NOCDATA
56 |
57 | /**
58 | * xsltMaxDepth:
59 | *
60 | * This value is used to detect templates loops.
61 | */
62 | XSLTPUBVAR int xsltMaxDepth;
63 |
64 | /**
65 | * * xsltMaxVars:
66 | * *
67 | * * This value is used to detect templates loops.
68 | * */
69 | XSLTPUBVAR int xsltMaxVars;
70 |
71 | /**
72 | * xsltEngineVersion:
73 | *
74 | * The version string for libxslt.
75 | */
76 | XSLTPUBVAR const char *xsltEngineVersion;
77 |
78 | /**
79 | * xsltLibxsltVersion:
80 | *
81 | * The version of libxslt compiled.
82 | */
83 | XSLTPUBVAR const int xsltLibxsltVersion;
84 |
85 | /**
86 | * xsltLibxmlVersion:
87 | *
88 | * The version of libxml libxslt was compiled against.
89 | */
90 | XSLTPUBVAR const int xsltLibxmlVersion;
91 |
92 | /*
93 | * Global initialization function.
94 | */
95 |
96 | XSLTPUBFUN void XSLTCALL
97 | xsltInit (void);
98 |
99 | /*
100 | * Global cleanup function.
101 | */
102 | XSLTPUBFUN void XSLTCALL
103 | xsltCleanupGlobals (void);
104 |
105 | #ifdef __cplusplus
106 | }
107 | #endif
108 |
109 | #endif /* __XML_XSLT_H__ */
110 |
111 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/libxslt/xsltlocale.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Locale handling
3 | * Description: Interfaces for locale handling. Needed for language dependent
4 | * sorting.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Nick Wellnhofer
9 | */
10 |
11 | #ifndef __XML_XSLTLOCALE_H__
12 | #define __XML_XSLTLOCALE_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef XSLT_LOCALE_XLOCALE
18 |
19 | #include
20 | #include
21 |
22 | #ifdef __GLIBC__
23 | /*locale_t is defined only if _GNU_SOURCE is defined*/
24 | typedef __locale_t xsltLocale;
25 | #else
26 | typedef locale_t xsltLocale;
27 | #endif
28 | typedef xmlChar xsltLocaleChar;
29 |
30 | #elif defined(XSLT_LOCALE_WINAPI)
31 |
32 | #include
33 | #include
34 |
35 | typedef LCID xsltLocale;
36 | typedef wchar_t xsltLocaleChar;
37 |
38 | #else
39 |
40 | /*
41 | * XSLT_LOCALE_NONE:
42 | * Macro indicating that locale are not supported
43 | */
44 | #ifndef XSLT_LOCALE_NONE
45 | #define XSLT_LOCALE_NONE
46 | #endif
47 |
48 | typedef void *xsltLocale;
49 | typedef xmlChar xsltLocaleChar;
50 |
51 | #endif
52 |
53 | XSLTPUBFUN xsltLocale XSLTCALL
54 | xsltNewLocale (const xmlChar *langName);
55 | XSLTPUBFUN void XSLTCALL
56 | xsltFreeLocale (xsltLocale locale);
57 | XSLTPUBFUN xsltLocaleChar * XSLTCALL
58 | xsltStrxfrm (xsltLocale locale,
59 | const xmlChar *string);
60 | XSLTPUBFUN int XSLTCALL
61 | xsltLocaleStrcmp (xsltLocale locale,
62 | const xsltLocaleChar *str1,
63 | const xsltLocaleChar *str2);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltFreeLocales (void);
66 |
67 | #endif /* __XML_XSLTLOCALE_H__ */
68 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/lxml-version.h:
--------------------------------------------------------------------------------
1 | #ifndef LXML_VERSION_STRING
2 | #define LXML_VERSION_STRING "3.8.0"
3 | #endif
4 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/relaxng.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
3 |
4 | cdef extern from "libxml/relaxng.h":
5 | ctypedef struct xmlRelaxNG
6 | ctypedef struct xmlRelaxNGParserCtxt
7 |
8 | ctypedef struct xmlRelaxNGValidCtxt
9 |
10 | ctypedef enum xmlRelaxNGValidErr:
11 | XML_RELAXNG_OK = 0
12 | XML_RELAXNG_ERR_MEMORY = 1
13 | XML_RELAXNG_ERR_TYPE = 2
14 | XML_RELAXNG_ERR_TYPEVAL = 3
15 | XML_RELAXNG_ERR_DUPID = 4
16 | XML_RELAXNG_ERR_TYPECMP = 5
17 | XML_RELAXNG_ERR_NOSTATE = 6
18 | XML_RELAXNG_ERR_NODEFINE = 7
19 | XML_RELAXNG_ERR_LISTEXTRA = 8
20 | XML_RELAXNG_ERR_LISTEMPTY = 9
21 | XML_RELAXNG_ERR_INTERNODATA = 10
22 | XML_RELAXNG_ERR_INTERSEQ = 11
23 | XML_RELAXNG_ERR_INTEREXTRA = 12
24 | XML_RELAXNG_ERR_ELEMNAME = 13
25 | XML_RELAXNG_ERR_ATTRNAME = 14
26 | XML_RELAXNG_ERR_ELEMNONS = 15
27 | XML_RELAXNG_ERR_ATTRNONS = 16
28 | XML_RELAXNG_ERR_ELEMWRONGNS = 17
29 | XML_RELAXNG_ERR_ATTRWRONGNS = 18
30 | XML_RELAXNG_ERR_ELEMEXTRANS = 19
31 | XML_RELAXNG_ERR_ATTREXTRANS = 20
32 | XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
33 | XML_RELAXNG_ERR_NOELEM = 22
34 | XML_RELAXNG_ERR_NOTELEM = 23
35 | XML_RELAXNG_ERR_ATTRVALID = 24
36 | XML_RELAXNG_ERR_CONTENTVALID = 25
37 | XML_RELAXNG_ERR_EXTRACONTENT = 26
38 | XML_RELAXNG_ERR_INVALIDATTR = 27
39 | XML_RELAXNG_ERR_DATAELEM = 28
40 | XML_RELAXNG_ERR_VALELEM = 29
41 | XML_RELAXNG_ERR_LISTELEM = 30
42 | XML_RELAXNG_ERR_DATATYPE = 31
43 | XML_RELAXNG_ERR_VALUE = 32
44 | XML_RELAXNG_ERR_LIST = 33
45 | XML_RELAXNG_ERR_NOGRAMMAR = 34
46 | XML_RELAXNG_ERR_EXTRADATA = 35
47 | XML_RELAXNG_ERR_LACKDATA = 36
48 | XML_RELAXNG_ERR_INTERNAL = 37
49 | XML_RELAXNG_ERR_ELEMWRONG = 38
50 | XML_RELAXNG_ERR_TEXTWRONG = 39
51 |
52 | cdef xmlRelaxNGValidCtxt* xmlRelaxNGNewValidCtxt(xmlRelaxNG* schema) nogil
53 | cdef int xmlRelaxNGValidateDoc(xmlRelaxNGValidCtxt* ctxt, xmlDoc* doc) nogil
54 | cdef xmlRelaxNG* xmlRelaxNGParse(xmlRelaxNGParserCtxt* ctxt) nogil
55 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewParserCtxt(char* URL) nogil
56 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewDocParserCtxt(xmlDoc* doc) nogil
57 | cdef void xmlRelaxNGFree(xmlRelaxNG* schema) nogil
58 | cdef void xmlRelaxNGFreeParserCtxt(xmlRelaxNGParserCtxt* ctxt) nogil
59 | cdef void xmlRelaxNGFreeValidCtxt(xmlRelaxNGValidCtxt* ctxt) nogil
60 |
61 | cdef void xmlRelaxNGSetValidStructuredErrors(
62 | xmlRelaxNGValidCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
63 | cdef void xmlRelaxNGSetParserStructuredErrors(
64 | xmlRelaxNGParserCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
65 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/schematron.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport xmlerror
2 | from lxml.includes.tree cimport xmlDoc
3 |
4 | cdef extern from "libxml/schematron.h":
5 | ctypedef struct xmlSchematron
6 | ctypedef struct xmlSchematronParserCtxt
7 | ctypedef struct xmlSchematronValidCtxt
8 |
9 | ctypedef enum xmlSchematronValidOptions:
10 | XML_SCHEMATRON_OUT_QUIET = 1 # quiet no report
11 | XML_SCHEMATRON_OUT_TEXT = 2 # build a textual report
12 | XML_SCHEMATRON_OUT_XML = 4 # output SVRL
13 | XML_SCHEMATRON_OUT_ERROR = 8 # output via xmlStructuredErrorFunc
14 | XML_SCHEMATRON_OUT_FILE = 256 # output to a file descriptor
15 | XML_SCHEMATRON_OUT_BUFFER = 512 # output to a buffer
16 | XML_SCHEMATRON_OUT_IO = 1024 # output to I/O mechanism
17 |
18 | cdef xmlSchematronParserCtxt* xmlSchematronNewDocParserCtxt(
19 | xmlDoc* doc) nogil
20 | cdef xmlSchematronParserCtxt* xmlSchematronNewParserCtxt(
21 | char* filename) nogil
22 | cdef xmlSchematronValidCtxt* xmlSchematronNewValidCtxt(
23 | xmlSchematron* schema, int options) nogil
24 |
25 | cdef xmlSchematron* xmlSchematronParse(xmlSchematronParserCtxt* ctxt) nogil
26 | cdef int xmlSchematronValidateDoc(xmlSchematronValidCtxt* ctxt,
27 | xmlDoc* instance) nogil
28 |
29 | cdef void xmlSchematronFreeParserCtxt(xmlSchematronParserCtxt* ctxt) nogil
30 | cdef void xmlSchematronFreeValidCtxt(xmlSchematronValidCtxt* ctxt) nogil
31 | cdef void xmlSchematronFree(xmlSchematron* schema) nogil
32 | cdef void xmlSchematronSetValidStructuredErrors(
33 | xmlSchematronValidCtxt* ctxt,
34 | xmlerror.xmlStructuredErrorFunc error_func, void *data)
35 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/uri.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "libxml/uri.h":
2 | ctypedef struct xmlURI
3 |
4 | cdef xmlURI* xmlParseURI(char* str)
5 | cdef void xmlFreeURI(xmlURI* uri)
6 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/xinclude.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlNode
2 |
3 | cdef extern from "libxml/xinclude.h":
4 |
5 | ctypedef struct xmlXIncludeCtxt
6 |
7 | cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
8 | cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
9 | cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
10 | cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
11 |
12 | # libxml2 >= 2.7.4
13 | cdef int xmlXIncludeProcessTreeFlagsData(
14 | xmlNode* doc, int parser_opts, void* data) nogil
15 |
16 | cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
17 | cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
18 | cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
19 |
20 | # libxml2 >= 2.6.27
21 | cdef int xmlXIncludeProcessFlagsData(
22 | xmlDoc* doc, int flags, void* data) nogil
23 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/includes/xmlschema.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlparser cimport xmlSAXHandler
3 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
4 |
5 | cdef extern from "libxml/xmlschemas.h":
6 | ctypedef struct xmlSchema
7 | ctypedef struct xmlSchemaParserCtxt
8 |
9 | ctypedef struct xmlSchemaSAXPlugStruct
10 | ctypedef struct xmlSchemaValidCtxt
11 |
12 | ctypedef enum xmlSchemaValidOption:
13 | XML_SCHEMA_VAL_VC_I_CREATE = 1
14 |
15 | cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
16 | cdef void xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxt* ctxt,
17 | xmlStructuredErrorFunc serror, void *ctx)
18 | cdef void xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxt* ctxt,
19 | xmlStructuredErrorFunc serror, void *ctx)
20 |
21 | cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
22 | cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
23 | cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
24 | cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
25 | cdef void xmlSchemaFree(xmlSchema* schema) nogil
26 | cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
27 | cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
28 | cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
29 | int options) nogil
30 |
31 | cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
32 | xmlSAXHandler** sax,
33 | void** data) nogil
34 | cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
35 | cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)
36 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/isoschematron/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/isoschematron/__init__.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 | (
51 | /
52 | )
53 |
54 |
55 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/objectify.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/objectify.so
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/pyclasslookup.py:
--------------------------------------------------------------------------------
1 | # dummy module for backwards compatibility
2 |
3 | from lxml.etree import PythonElementClassLookup
4 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/pyclasslookup.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/pyclasslookup.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/sax.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/sax.pyc
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for XML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.usedoctest
6 | >>> # now do your XML doctests ...
7 |
8 | See `lxml.doctestcompare`
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.8.0/py27/lxml/usedoctest.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py27/lxml/usedoctest.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a package
2 |
3 | def get_include():
4 | """
5 | Returns a list of header include paths (for lxml itself, libxml2
6 | and libxslt) needed to compile C code against lxml if it was built
7 | with statically linked libraries.
8 | """
9 | import os
10 | lxml_path = __path__[0]
11 | include_path = os.path.join(lxml_path, 'includes')
12 | includes = [include_path, lxml_path]
13 |
14 | for name in os.listdir(include_path):
15 | path = os.path.join(include_path, name)
16 | if os.path.isdir(path):
17 | includes.append(path)
18 |
19 | return includes
20 |
21 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/ElementInclude.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/ElementInclude.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/_elementpath.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/_elementpath.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/builder.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/builder.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/cssselect.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/cssselect.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/doctestcompare.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/doctestcompare.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/pyclasslookup.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/pyclasslookup.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/sax.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/sax.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/__pycache__/usedoctest.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/__pycache__/usedoctest.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/etree.cpython-36m-x86_64-linux-gnu.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/etree.cpython-36m-x86_64-linux-gnu.so
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/ElementSoup.py:
--------------------------------------------------------------------------------
1 | __doc__ = """Legacy interface to the BeautifulSoup HTML parser.
2 | """
3 |
4 | __all__ = ["parse", "convert_tree"]
5 |
6 | from soupparser import convert_tree, parse as _parse
7 |
8 | def parse(file, beautifulsoup=None, makeelement=None):
9 | root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
10 | return root.getroot()
11 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/ElementSoup.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/ElementSoup.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/_diffcommand.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/_diffcommand.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/_html5builder.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/_html5builder.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/_setmixin.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/_setmixin.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/builder.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/builder.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/clean.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/clean.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/defs.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/defs.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/diff.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/diff.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/formfill.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/formfill.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/html5parser.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/html5parser.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/soupparser.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/soupparser.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/__pycache__/usedoctest.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/html/__pycache__/usedoctest.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/_diffcommand.py:
--------------------------------------------------------------------------------
1 | import optparse
2 | import sys
3 | import re
4 | import os
5 | from lxml.html.diff import htmldiff
6 |
7 | description = """\
8 | """
9 |
10 | parser = optparse.OptionParser(
11 | usage="%prog [OPTIONS] FILE1 FILE2\n"
12 | "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...",
13 | description=description,
14 | )
15 |
16 | parser.add_option(
17 | '-o', '--output',
18 | metavar="FILE",
19 | dest="output",
20 | default="-",
21 | help="File to write the difference to",
22 | )
23 |
24 | parser.add_option(
25 | '-a', '--annotation',
26 | action="store_true",
27 | dest="annotation",
28 | help="Do an annotation")
29 |
30 | def main(args=None):
31 | if args is None:
32 | args = sys.argv[1:]
33 | options, args = parser.parse_args(args)
34 | if options.annotation:
35 | return annotate(options, args)
36 | if len(args) != 2:
37 | print('Error: you must give two files')
38 | parser.print_help()
39 | sys.exit(1)
40 | file1, file2 = args
41 | input1 = read_file(file1)
42 | input2 = read_file(file2)
43 | body1 = split_body(input1)[1]
44 | pre, body2, post = split_body(input2)
45 | result = htmldiff(body1, body2)
46 | result = pre + result + post
47 | if options.output == '-':
48 | if not result.endswith('\n'):
49 | result += '\n'
50 | sys.stdout.write(result)
51 | else:
52 | f = open(options.output, 'wb')
53 | f.write(result)
54 | f.close()
55 |
56 | def read_file(filename):
57 | if filename == '-':
58 | c = sys.stdin.read()
59 | elif not os.path.exists(filename):
60 | raise OSError(
61 | "Input file %s does not exist" % filename)
62 | else:
63 | f = open(filename, 'rb')
64 | c = f.read()
65 | f.close()
66 | return c
67 |
68 | body_start_re = re.compile(
69 | r"", re.I|re.S)
70 | body_end_re = re.compile(
71 | r"", re.I|re.S)
72 |
73 | def split_body(html):
74 | match = body_start_re.search(html)
75 | if match:
76 | pre = html[:match.end()]
77 | html = html[match.end():]
78 | match = body_end_re.search(html)
79 | if match:
80 | post = html[match.start():]
81 | html = html[:match.start()]
82 | return pre, html, post
83 |
84 | def annotate(options, args):
85 | print("Not yet implemented")
86 | sys.exit(1)
87 |
88 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/_setmixin.py:
--------------------------------------------------------------------------------
1 | from collections import MutableSet
2 |
3 | class SetMixin(MutableSet):
4 |
5 | """
6 | Mix-in for sets. You must define __iter__, add, remove
7 | """
8 |
9 | def __len__(self):
10 | length = 0
11 | for item in self:
12 | length += 1
13 | return length
14 |
15 | def __contains__(self, item):
16 | for has_item in self:
17 | if item == has_item:
18 | return True
19 | return False
20 |
21 | issubset = MutableSet.__le__
22 | issuperset = MutableSet.__ge__
23 |
24 | union = MutableSet.__or__
25 | intersection = MutableSet.__and__
26 | difference = MutableSet.__sub__
27 | symmetric_difference = MutableSet.__xor__
28 |
29 | def copy(self):
30 | return set(self)
31 |
32 | def update(self, other):
33 | self |= other
34 |
35 | def intersection_update(self, other):
36 | self &= other
37 |
38 | def difference_update(self, other):
39 | self -= other
40 |
41 | def symmetric_difference_update(self, other):
42 | self ^= other
43 |
44 | def discard(self, item):
45 | try:
46 | self.remove(item)
47 | except KeyError:
48 | pass
49 |
50 | @classmethod
51 | def _from_iterable(cls, it):
52 | return set(it)
53 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/html/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for HTML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.html.usedoctest
6 | >>> # now do your HTML doctests ...
7 |
8 | See `lxml.doctestcompare`.
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(html=True, del_module=__name__)
14 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/includes/__init__.py
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/includes/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/c14n.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
2 | from lxml.includes.xpath cimport xmlNodeSet
3 |
4 | cdef extern from "libxml/c14n.h":
5 | cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
6 | xmlNodeSet* nodes,
7 | int exclusive,
8 | xmlChar** inclusive_ns_prefixes,
9 | int with_comments,
10 | xmlChar** doc_txt_ptr) nogil
11 |
12 | cdef int xmlC14NDocSave(xmlDoc* doc,
13 | xmlNodeSet* nodes,
14 | int exclusive,
15 | xmlChar** inclusive_ns_prefixes,
16 | int with_comments,
17 | char* filename,
18 | int compression) nogil
19 |
20 | cdef int xmlC14NDocSaveTo(xmlDoc* doc,
21 | xmlNodeSet* nodes,
22 | int exclusive,
23 | xmlChar** inclusive_ns_prefixes,
24 | int with_comments,
25 | xmlOutputBuffer* buffer) nogil
26 |
27 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/config.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "etree_defs.h":
2 | cdef bint ENABLE_THREADING
3 | cdef bint ENABLE_SCHEMATRON
4 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/dtdvalid.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport tree
2 | from lxml.includes.tree cimport xmlDoc, xmlDtd
3 |
4 | cdef extern from "libxml/valid.h" nogil:
5 | ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...)
6 | ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...)
7 |
8 | ctypedef struct xmlValidCtxt:
9 | void *userData
10 | xmlValidityErrorFunc error
11 | xmlValidityWarningFunc warning
12 |
13 | cdef xmlValidCtxt* xmlNewValidCtxt()
14 | cdef void xmlFreeValidCtxt(xmlValidCtxt* cur)
15 |
16 | cdef int xmlValidateDtd(xmlValidCtxt* ctxt, xmlDoc* doc, xmlDtd* dtd)
17 | cdef tree.xmlElement* xmlGetDtdElementDesc(
18 | xmlDtd* dtd, tree.const_xmlChar* name)
19 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/htmlparser.pxd:
--------------------------------------------------------------------------------
1 | from libc.string cimport const_char
2 |
3 | from lxml.includes.tree cimport xmlDoc
4 | from lxml.includes.tree cimport xmlInputReadCallback, xmlInputCloseCallback
5 | from lxml.includes.xmlparser cimport xmlParserCtxt, xmlSAXHandler, xmlSAXHandlerV1
6 |
7 | cdef extern from "libxml/HTMLparser.h":
8 | ctypedef enum htmlParserOption:
9 | HTML_PARSE_NOERROR # suppress error reports
10 | HTML_PARSE_NOWARNING # suppress warning reports
11 | HTML_PARSE_PEDANTIC # pedantic error reporting
12 | HTML_PARSE_NOBLANKS # remove blank nodes
13 | HTML_PARSE_NONET # Forbid network access
14 | # libxml2 2.6.21+ only:
15 | HTML_PARSE_RECOVER # Relaxed parsing
16 | HTML_PARSE_COMPACT # compact small text nodes
17 | # libxml2 2.7.7+ only:
18 | HTML_PARSE_NOIMPLIED # Do not add implied html/body... elements
19 | # libxml2 2.7.8+ only:
20 | HTML_PARSE_NODEFDTD # do not default a doctype if not found
21 | # libxml2 2.8.0+ only:
22 | XML_PARSE_IGNORE_ENC # ignore internal document encoding hint
23 |
24 | xmlSAXHandlerV1 htmlDefaultSAXHandler
25 |
26 | cdef xmlParserCtxt* htmlCreateMemoryParserCtxt(
27 | char* buffer, int size) nogil
28 | cdef xmlParserCtxt* htmlCreateFileParserCtxt(
29 | char* filename, char* encoding) nogil
30 | cdef xmlParserCtxt* htmlCreatePushParserCtxt(xmlSAXHandler* sax,
31 | void* user_data,
32 | char* chunk, int size,
33 | char* filename, int enc) nogil
34 | cdef void htmlFreeParserCtxt(xmlParserCtxt* ctxt) nogil
35 | cdef void htmlCtxtReset(xmlParserCtxt* ctxt) nogil
36 | cdef int htmlCtxtUseOptions(xmlParserCtxt* ctxt, int options) nogil
37 | cdef int htmlParseDocument(xmlParserCtxt* ctxt) nogil
38 | cdef int htmlParseChunk(xmlParserCtxt* ctxt,
39 | char* chunk, int size, int terminate) nogil
40 |
41 | cdef xmlDoc* htmlCtxtReadFile(xmlParserCtxt* ctxt,
42 | char* filename, const_char* encoding,
43 | int options) nogil
44 | cdef xmlDoc* htmlCtxtReadDoc(xmlParserCtxt* ctxt,
45 | char* buffer, char* URL, const_char* encoding,
46 | int options) nogil
47 | cdef xmlDoc* htmlCtxtReadIO(xmlParserCtxt* ctxt,
48 | xmlInputReadCallback ioread,
49 | xmlInputCloseCallback ioclose,
50 | void* ioctx,
51 | char* URL, const_char* encoding,
52 | int options) nogil
53 | cdef xmlDoc* htmlCtxtReadMemory(xmlParserCtxt* ctxt,
54 | char* buffer, int size,
55 | char* filename, const_char* encoding,
56 | int options) nogil
57 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libexslt/exsltconfig.h:
--------------------------------------------------------------------------------
1 | /*
2 | * exsltconfig.h: compile-time version informations for the EXSLT library
3 | *
4 | * See Copyright for the status of this software.
5 | *
6 | * daniel@veillard.com
7 | */
8 |
9 | #ifndef __XML_EXSLTCONFIG_H__
10 | #define __XML_EXSLTCONFIG_H__
11 |
12 | #ifdef __cplusplus
13 | extern "C" {
14 | #endif
15 |
16 | /**
17 | * LIBEXSLT_DOTTED_VERSION:
18 | *
19 | * the version string like "1.2.3"
20 | */
21 | #define LIBEXSLT_DOTTED_VERSION "1.1.29"
22 |
23 | /**
24 | * LIBEXSLT_VERSION:
25 | *
26 | * the version number: 1.2.3 value is 10203
27 | */
28 | #define LIBEXSLT_VERSION 817
29 |
30 | /**
31 | * LIBEXSLT_VERSION_STRING:
32 | *
33 | * the version number string, 1.2.3 value is "10203"
34 | */
35 | #define LIBEXSLT_VERSION_STRING "817"
36 |
37 | /**
38 | * LIBEXSLT_VERSION_EXTRA:
39 | *
40 | * extra version information, used to show a CVS compilation
41 | */
42 | #define LIBEXSLT_VERSION_EXTRA ""
43 |
44 | /**
45 | * WITH_CRYPTO:
46 | *
47 | * Whether crypto support is configured into exslt
48 | */
49 | #if 0
50 | #define EXSLT_CRYPTO_ENABLED
51 | #endif
52 |
53 | /**
54 | * ATTRIBUTE_UNUSED:
55 | *
56 | * This macro is used to flag unused function parameters to GCC
57 | */
58 | #ifdef __GNUC__
59 | #ifdef HAVE_ANSIDECL_H
60 | #include
61 | #endif
62 | #ifndef ATTRIBUTE_UNUSED
63 | #define ATTRIBUTE_UNUSED __attribute__((unused))
64 | #endif
65 | #else
66 | #define ATTRIBUTE_UNUSED
67 | #endif
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /* __XML_EXSLTCONFIG_H__ */
74 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/dict.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: string dictionnary
3 | * Description: dictionary of reusable strings, just used to avoid allocation
4 | * and freeing operations.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_DICT_H__
12 | #define __XML_DICT_H__
13 |
14 | #include
15 | #include
16 | #include
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /*
23 | * The dictionnary.
24 | */
25 | typedef struct _xmlDict xmlDict;
26 | typedef xmlDict *xmlDictPtr;
27 |
28 | /*
29 | * Initializer
30 | */
31 | XMLPUBFUN int XMLCALL xmlInitializeDict(void);
32 |
33 | /*
34 | * Constructor and destructor.
35 | */
36 | XMLPUBFUN xmlDictPtr XMLCALL
37 | xmlDictCreate (void);
38 | XMLPUBFUN size_t XMLCALL
39 | xmlDictSetLimit (xmlDictPtr dict,
40 | size_t limit);
41 | XMLPUBFUN size_t XMLCALL
42 | xmlDictGetUsage (xmlDictPtr dict);
43 | XMLPUBFUN xmlDictPtr XMLCALL
44 | xmlDictCreateSub(xmlDictPtr sub);
45 | XMLPUBFUN int XMLCALL
46 | xmlDictReference(xmlDictPtr dict);
47 | XMLPUBFUN void XMLCALL
48 | xmlDictFree (xmlDictPtr dict);
49 |
50 | /*
51 | * Lookup of entry in the dictionnary.
52 | */
53 | XMLPUBFUN const xmlChar * XMLCALL
54 | xmlDictLookup (xmlDictPtr dict,
55 | const xmlChar *name,
56 | int len);
57 | XMLPUBFUN const xmlChar * XMLCALL
58 | xmlDictExists (xmlDictPtr dict,
59 | const xmlChar *name,
60 | int len);
61 | XMLPUBFUN const xmlChar * XMLCALL
62 | xmlDictQLookup (xmlDictPtr dict,
63 | const xmlChar *prefix,
64 | const xmlChar *name);
65 | XMLPUBFUN int XMLCALL
66 | xmlDictOwns (xmlDictPtr dict,
67 | const xmlChar *str);
68 | XMLPUBFUN int XMLCALL
69 | xmlDictSize (xmlDictPtr dict);
70 |
71 | /*
72 | * Cleanup function
73 | */
74 | XMLPUBFUN void XMLCALL
75 | xmlDictCleanup (void);
76 |
77 | #ifdef __cplusplus
78 | }
79 | #endif
80 | #endif /* ! __XML_DICT_H__ */
81 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/nanohttp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: minimal HTTP implementation
3 | * Description: minimal HTTP implementation allowing to fetch resources
4 | * like external subset.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __NANO_HTTP_H__
12 | #define __NANO_HTTP_H__
13 |
14 | #include
15 |
16 | #ifdef LIBXML_HTTP_ENABLED
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 | XMLPUBFUN void XMLCALL
22 | xmlNanoHTTPInit (void);
23 | XMLPUBFUN void XMLCALL
24 | xmlNanoHTTPCleanup (void);
25 | XMLPUBFUN void XMLCALL
26 | xmlNanoHTTPScanProxy (const char *URL);
27 | XMLPUBFUN int XMLCALL
28 | xmlNanoHTTPFetch (const char *URL,
29 | const char *filename,
30 | char **contentType);
31 | XMLPUBFUN void * XMLCALL
32 | xmlNanoHTTPMethod (const char *URL,
33 | const char *method,
34 | const char *input,
35 | char **contentType,
36 | const char *headers,
37 | int ilen);
38 | XMLPUBFUN void * XMLCALL
39 | xmlNanoHTTPMethodRedir (const char *URL,
40 | const char *method,
41 | const char *input,
42 | char **contentType,
43 | char **redir,
44 | const char *headers,
45 | int ilen);
46 | XMLPUBFUN void * XMLCALL
47 | xmlNanoHTTPOpen (const char *URL,
48 | char **contentType);
49 | XMLPUBFUN void * XMLCALL
50 | xmlNanoHTTPOpenRedir (const char *URL,
51 | char **contentType,
52 | char **redir);
53 | XMLPUBFUN int XMLCALL
54 | xmlNanoHTTPReturnCode (void *ctx);
55 | XMLPUBFUN const char * XMLCALL
56 | xmlNanoHTTPAuthHeader (void *ctx);
57 | XMLPUBFUN const char * XMLCALL
58 | xmlNanoHTTPRedir (void *ctx);
59 | XMLPUBFUN int XMLCALL
60 | xmlNanoHTTPContentLength( void * ctx );
61 | XMLPUBFUN const char * XMLCALL
62 | xmlNanoHTTPEncoding (void *ctx);
63 | XMLPUBFUN const char * XMLCALL
64 | xmlNanoHTTPMimeType (void *ctx);
65 | XMLPUBFUN int XMLCALL
66 | xmlNanoHTTPRead (void *ctx,
67 | void *dest,
68 | int len);
69 | #ifdef LIBXML_OUTPUT_ENABLED
70 | XMLPUBFUN int XMLCALL
71 | xmlNanoHTTPSave (void *ctxt,
72 | const char *filename);
73 | #endif /* LIBXML_OUTPUT_ENABLED */
74 | XMLPUBFUN void XMLCALL
75 | xmlNanoHTTPClose (void *ctx);
76 | #ifdef __cplusplus
77 | }
78 | #endif
79 |
80 | #endif /* LIBXML_HTTP_ENABLED */
81 | #endif /* __NANO_HTTP_H__ */
82 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/threads.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Summary: interfaces for thread handling
3 | * Description: set of generic threading related routines
4 | * should work with pthreads, Windows native or TLS threads
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_THREADS_H__
12 | #define __XML_THREADS_H__
13 |
14 | #include
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | /*
21 | * xmlMutex are a simple mutual exception locks.
22 | */
23 | typedef struct _xmlMutex xmlMutex;
24 | typedef xmlMutex *xmlMutexPtr;
25 |
26 | /*
27 | * xmlRMutex are reentrant mutual exception locks.
28 | */
29 | typedef struct _xmlRMutex xmlRMutex;
30 | typedef xmlRMutex *xmlRMutexPtr;
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 | #include
36 | #ifdef __cplusplus
37 | extern "C" {
38 | #endif
39 | XMLPUBFUN xmlMutexPtr XMLCALL
40 | xmlNewMutex (void);
41 | XMLPUBFUN void XMLCALL
42 | xmlMutexLock (xmlMutexPtr tok);
43 | XMLPUBFUN void XMLCALL
44 | xmlMutexUnlock (xmlMutexPtr tok);
45 | XMLPUBFUN void XMLCALL
46 | xmlFreeMutex (xmlMutexPtr tok);
47 |
48 | XMLPUBFUN xmlRMutexPtr XMLCALL
49 | xmlNewRMutex (void);
50 | XMLPUBFUN void XMLCALL
51 | xmlRMutexLock (xmlRMutexPtr tok);
52 | XMLPUBFUN void XMLCALL
53 | xmlRMutexUnlock (xmlRMutexPtr tok);
54 | XMLPUBFUN void XMLCALL
55 | xmlFreeRMutex (xmlRMutexPtr tok);
56 |
57 | /*
58 | * Library wide APIs.
59 | */
60 | XMLPUBFUN void XMLCALL
61 | xmlInitThreads (void);
62 | XMLPUBFUN void XMLCALL
63 | xmlLockLibrary (void);
64 | XMLPUBFUN void XMLCALL
65 | xmlUnlockLibrary(void);
66 | XMLPUBFUN int XMLCALL
67 | xmlGetThreadId (void);
68 | XMLPUBFUN int XMLCALL
69 | xmlIsMainThread (void);
70 | XMLPUBFUN void XMLCALL
71 | xmlCleanupThreads(void);
72 | XMLPUBFUN xmlGlobalStatePtr XMLCALL
73 | xmlGetGlobalState(void);
74 |
75 | #if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && defined(LIBXML_STATIC_FOR_DLL)
76 | int XMLCALL xmlDllMain(void *hinstDLL, unsigned long fdwReason, void *lpvReserved);
77 | #endif
78 |
79 | #ifdef __cplusplus
80 | }
81 | #endif
82 |
83 |
84 | #endif /* __XML_THREADS_H__ */
85 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/uri.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Summary: library of generic URI related routines
3 | * Description: library of generic URI related routines
4 | * Implements RFC 2396
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_URI_H__
12 | #define __XML_URI_H__
13 |
14 | #include
15 | #include
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /**
22 | * xmlURI:
23 | *
24 | * A parsed URI reference. This is a struct containing the various fields
25 | * as described in RFC 2396 but separated for further processing.
26 | *
27 | * Note: query is a deprecated field which is incorrectly unescaped.
28 | * query_raw takes precedence over query if the former is set.
29 | * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
30 | */
31 | typedef struct _xmlURI xmlURI;
32 | typedef xmlURI *xmlURIPtr;
33 | struct _xmlURI {
34 | char *scheme; /* the URI scheme */
35 | char *opaque; /* opaque part */
36 | char *authority; /* the authority part */
37 | char *server; /* the server part */
38 | char *user; /* the user part */
39 | int port; /* the port number */
40 | char *path; /* the path string */
41 | char *query; /* the query string (deprecated - use with caution) */
42 | char *fragment; /* the fragment identifier */
43 | int cleanup; /* parsing potentially unclean URI */
44 | char *query_raw; /* the query string (as it appears in the URI) */
45 | };
46 |
47 | /*
48 | * This function is in tree.h:
49 | * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
50 | * xmlNodePtr cur);
51 | */
52 | XMLPUBFUN xmlURIPtr XMLCALL
53 | xmlCreateURI (void);
54 | XMLPUBFUN xmlChar * XMLCALL
55 | xmlBuildURI (const xmlChar *URI,
56 | const xmlChar *base);
57 | XMLPUBFUN xmlChar * XMLCALL
58 | xmlBuildRelativeURI (const xmlChar *URI,
59 | const xmlChar *base);
60 | XMLPUBFUN xmlURIPtr XMLCALL
61 | xmlParseURI (const char *str);
62 | XMLPUBFUN xmlURIPtr XMLCALL
63 | xmlParseURIRaw (const char *str,
64 | int raw);
65 | XMLPUBFUN int XMLCALL
66 | xmlParseURIReference (xmlURIPtr uri,
67 | const char *str);
68 | XMLPUBFUN xmlChar * XMLCALL
69 | xmlSaveUri (xmlURIPtr uri);
70 | XMLPUBFUN void XMLCALL
71 | xmlPrintURI (FILE *stream,
72 | xmlURIPtr uri);
73 | XMLPUBFUN xmlChar * XMLCALL
74 | xmlURIEscapeStr (const xmlChar *str,
75 | const xmlChar *list);
76 | XMLPUBFUN char * XMLCALL
77 | xmlURIUnescapeString (const char *str,
78 | int len,
79 | char *target);
80 | XMLPUBFUN int XMLCALL
81 | xmlNormalizeURIPath (char *path);
82 | XMLPUBFUN xmlChar * XMLCALL
83 | xmlURIEscape (const xmlChar *str);
84 | XMLPUBFUN void XMLCALL
85 | xmlFreeURI (xmlURIPtr uri);
86 | XMLPUBFUN xmlChar* XMLCALL
87 | xmlCanonicPath (const xmlChar *path);
88 | XMLPUBFUN xmlChar* XMLCALL
89 | xmlPathToURI (const xmlChar *path);
90 |
91 | #ifdef __cplusplus
92 | }
93 | #endif
94 | #endif /* __XML_URI_H__ */
95 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/xmlmodule.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: dynamic module loading
3 | * Description: basic API for dynamic module loading, used by
4 | * libexslt added in 2.6.17
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Joel W. Reed
9 | */
10 |
11 | #ifndef __XML_MODULE_H__
12 | #define __XML_MODULE_H__
13 |
14 | #include
15 |
16 | #ifdef LIBXML_MODULES_ENABLED
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * xmlModulePtr:
24 | *
25 | * A handle to a dynamically loaded module
26 | */
27 | typedef struct _xmlModule xmlModule;
28 | typedef xmlModule *xmlModulePtr;
29 |
30 | /**
31 | * xmlModuleOption:
32 | *
33 | * enumeration of options that can be passed down to xmlModuleOpen()
34 | */
35 | typedef enum {
36 | XML_MODULE_LAZY = 1, /* lazy binding */
37 | XML_MODULE_LOCAL= 2 /* local binding */
38 | } xmlModuleOption;
39 |
40 | XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename,
41 | int options);
42 |
43 | XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module,
44 | const char* name,
45 | void **result);
46 |
47 | XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module);
48 |
49 | XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module);
50 |
51 | #ifdef __cplusplus
52 | }
53 | #endif
54 |
55 | #endif /* LIBXML_MODULES_ENABLED */
56 |
57 | #endif /*__XML_MODULE_H__ */
58 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxml/xmlsave.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: the XML document serializer
3 | * Description: API to save document or subtree of document
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XMLSAVE_H__
11 | #define __XML_XMLSAVE_H__
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 |
18 | #ifdef LIBXML_OUTPUT_ENABLED
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | /**
24 | * xmlSaveOption:
25 | *
26 | * This is the set of XML save options that can be passed down
27 | * to the xmlSaveToFd() and similar calls.
28 | */
29 | typedef enum {
30 | XML_SAVE_FORMAT = 1<<0, /* format save output */
31 | XML_SAVE_NO_DECL = 1<<1, /* drop the xml declaration */
32 | XML_SAVE_NO_EMPTY = 1<<2, /* no empty tags */
33 | XML_SAVE_NO_XHTML = 1<<3, /* disable XHTML1 specific rules */
34 | XML_SAVE_XHTML = 1<<4, /* force XHTML1 specific rules */
35 | XML_SAVE_AS_XML = 1<<5, /* force XML serialization on HTML doc */
36 | XML_SAVE_AS_HTML = 1<<6, /* force HTML serialization on XML doc */
37 | XML_SAVE_WSNONSIG = 1<<7 /* format with non-significant whitespace */
38 | } xmlSaveOption;
39 |
40 |
41 | typedef struct _xmlSaveCtxt xmlSaveCtxt;
42 | typedef xmlSaveCtxt *xmlSaveCtxtPtr;
43 |
44 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
45 | xmlSaveToFd (int fd,
46 | const char *encoding,
47 | int options);
48 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
49 | xmlSaveToFilename (const char *filename,
50 | const char *encoding,
51 | int options);
52 |
53 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
54 | xmlSaveToBuffer (xmlBufferPtr buffer,
55 | const char *encoding,
56 | int options);
57 |
58 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL
59 | xmlSaveToIO (xmlOutputWriteCallback iowrite,
60 | xmlOutputCloseCallback ioclose,
61 | void *ioctx,
62 | const char *encoding,
63 | int options);
64 |
65 | XMLPUBFUN long XMLCALL
66 | xmlSaveDoc (xmlSaveCtxtPtr ctxt,
67 | xmlDocPtr doc);
68 | XMLPUBFUN long XMLCALL
69 | xmlSaveTree (xmlSaveCtxtPtr ctxt,
70 | xmlNodePtr node);
71 |
72 | XMLPUBFUN int XMLCALL
73 | xmlSaveFlush (xmlSaveCtxtPtr ctxt);
74 | XMLPUBFUN int XMLCALL
75 | xmlSaveClose (xmlSaveCtxtPtr ctxt);
76 | XMLPUBFUN int XMLCALL
77 | xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
78 | xmlCharEncodingOutputFunc escape);
79 | XMLPUBFUN int XMLCALL
80 | xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
81 | xmlCharEncodingOutputFunc escape);
82 | #ifdef __cplusplus
83 | }
84 | #endif
85 | #endif /* LIBXML_OUTPUT_ENABLED */
86 | #endif /* __XML_XMLSAVE_H__ */
87 |
88 |
89 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/attributes.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT attribute handling
3 | * Description: this module handles the specificities of attribute
4 | * and attribute groups processing.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_ATTRIBUTES_H__
12 | #define __XML_XSLT_ATTRIBUTES_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | XSLTPUBFUN void XSLTCALL
22 | xsltParseStylesheetAttributeSet (xsltStylesheetPtr style,
23 | xmlNodePtr cur);
24 | XSLTPUBFUN void XSLTCALL
25 | xsltFreeAttributeSetsHashes (xsltStylesheetPtr style);
26 | XSLTPUBFUN void XSLTCALL
27 | xsltApplyAttributeSet (xsltTransformContextPtr ctxt,
28 | xmlNodePtr node,
29 | xmlNodePtr inst,
30 | const xmlChar *attributes);
31 | XSLTPUBFUN void XSLTCALL
32 | xsltResolveStylesheetAttributeSet(xsltStylesheetPtr style);
33 | #ifdef __cplusplus
34 | }
35 | #endif
36 |
37 | #endif /* __XML_XSLT_ATTRIBUTES_H__ */
38 |
39 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/documents.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the document handling
3 | * Description: implements document loading and cache (multiple
4 | * document() reference for the same resources must
5 | * be equal.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_DOCUMENTS_H__
13 | #define __XML_XSLT_DOCUMENTS_H__
14 |
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
24 | xsltNewDocument (xsltTransformContextPtr ctxt,
25 | xmlDocPtr doc);
26 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
27 | xsltLoadDocument (xsltTransformContextPtr ctxt,
28 | const xmlChar *URI);
29 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
30 | xsltFindDocument (xsltTransformContextPtr ctxt,
31 | xmlDocPtr doc);
32 | XSLTPUBFUN void XSLTCALL
33 | xsltFreeDocuments (xsltTransformContextPtr ctxt);
34 |
35 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
36 | xsltLoadStyleDocument (xsltStylesheetPtr style,
37 | const xmlChar *URI);
38 | XSLTPUBFUN xsltDocumentPtr XSLTCALL
39 | xsltNewStyleDocument (xsltStylesheetPtr style,
40 | xmlDocPtr doc);
41 | XSLTPUBFUN void XSLTCALL
42 | xsltFreeStyleDocuments (xsltStylesheetPtr style);
43 |
44 | /*
45 | * Hooks for document loading
46 | */
47 |
48 | /**
49 | * xsltLoadType:
50 | *
51 | * Enum defining the kind of loader requirement.
52 | */
53 | typedef enum {
54 | XSLT_LOAD_START = 0, /* loading for a top stylesheet */
55 | XSLT_LOAD_STYLESHEET = 1, /* loading for a stylesheet include/import */
56 | XSLT_LOAD_DOCUMENT = 2 /* loading document at transformation time */
57 | } xsltLoadType;
58 |
59 | /**
60 | * xsltDocLoaderFunc:
61 | * @URI: the URI of the document to load
62 | * @dict: the dictionary to use when parsing that document
63 | * @options: parsing options, a set of xmlParserOption
64 | * @ctxt: the context, either a stylesheet or a transformation context
65 | * @type: the xsltLoadType indicating the kind of loading required
66 | *
67 | * An xsltDocLoaderFunc is a signature for a function which can be
68 | * registered to load document not provided by the compilation or
69 | * transformation API themselve, for example when an xsl:import,
70 | * xsl:include is found at compilation time or when a document()
71 | * call is made at runtime.
72 | *
73 | * Returns the pointer to the document (which will be modified and
74 | * freed by the engine later), or NULL in case of error.
75 | */
76 | typedef xmlDocPtr (*xsltDocLoaderFunc) (const xmlChar *URI,
77 | xmlDictPtr dict,
78 | int options,
79 | void *ctxt,
80 | xsltLoadType type);
81 |
82 | XSLTPUBFUN void XSLTCALL
83 | xsltSetLoaderFunc (xsltDocLoaderFunc f);
84 |
85 | /* the loader may be needed by extension libraries so it is exported */
86 | XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader;
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __XML_XSLT_DOCUMENTS_H__ */
93 |
94 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/extra.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the non-standard features
3 | * Description: implement some extension outside the XSLT namespace
4 | * but not EXSLT with is in a different library.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_EXTRA_H__
12 | #define __XML_XSLT_EXTRA_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_LIBXSLT_NAMESPACE:
24 | *
25 | * This is the libxslt namespace for specific extensions.
26 | */
27 | #define XSLT_LIBXSLT_NAMESPACE ((xmlChar *) "http://xmlsoft.org/XSLT/namespace")
28 |
29 | /**
30 | * XSLT_SAXON_NAMESPACE:
31 | *
32 | * This is Michael Kay's Saxon processor namespace for extensions.
33 | */
34 | #define XSLT_SAXON_NAMESPACE ((xmlChar *) "http://icl.com/saxon")
35 |
36 | /**
37 | * XSLT_XT_NAMESPACE:
38 | *
39 | * This is James Clark's XT processor namespace for extensions.
40 | */
41 | #define XSLT_XT_NAMESPACE ((xmlChar *) "http://www.jclark.com/xt")
42 |
43 | /**
44 | * XSLT_XALAN_NAMESPACE:
45 | *
46 | * This is the Apache project XALAN processor namespace for extensions.
47 | */
48 | #define XSLT_XALAN_NAMESPACE ((xmlChar *) \
49 | "org.apache.xalan.xslt.extensions.Redirect")
50 |
51 | /**
52 | * XSLT_NORM_SAXON_NAMESPACE:
53 | *
54 | * This is Norm's namespace for SAXON extensions.
55 | */
56 | #define XSLT_NORM_SAXON_NAMESPACE ((xmlChar *) \
57 | "http://nwalsh.com/xslt/ext/com.nwalsh.saxon.CVS")
58 |
59 |
60 | XSLTPUBFUN void XSLTCALL
61 | xsltFunctionNodeSet (xmlXPathParserContextPtr ctxt,
62 | int nargs);
63 | XSLTPUBFUN void XSLTCALL
64 | xsltDebug (xsltTransformContextPtr ctxt,
65 | xmlNodePtr node,
66 | xmlNodePtr inst,
67 | xsltStylePreCompPtr comp);
68 |
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltRegisterExtras (xsltTransformContextPtr ctxt);
72 | XSLTPUBFUN void XSLTCALL
73 | xsltRegisterAllExtras (void);
74 |
75 | #ifdef __cplusplus
76 | }
77 | #endif
78 |
79 | #endif /* __XML_XSLT_EXTRA_H__ */
80 |
81 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/functions.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT functions not from XPath
3 | * Description: a set of extra functions coming from XSLT but not in XPath
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard and Bjorn Reese
8 | */
9 |
10 | #ifndef __XML_XSLT_FUNCTIONS_H__
11 | #define __XML_XSLT_FUNCTIONS_H__
12 |
13 | #include
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_REGISTER_FUNCTION_LOOKUP:
24 | *
25 | * Registering macro, not general purpose at all but used in different modules.
26 | */
27 | #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
28 | xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
29 | (xmlXPathFuncLookupFunc) xsltXPathFunctionLookup, \
30 | (void *)(ctxt->xpathCtxt));
31 |
32 | XSLTPUBFUN xmlXPathFunction XSLTCALL
33 | xsltXPathFunctionLookup (xmlXPathContextPtr ctxt,
34 | const xmlChar *name,
35 | const xmlChar *ns_uri);
36 |
37 | /*
38 | * Interfaces for the functions implementations.
39 | */
40 |
41 | XSLTPUBFUN void XSLTCALL
42 | xsltDocumentFunction (xmlXPathParserContextPtr ctxt,
43 | int nargs);
44 | XSLTPUBFUN void XSLTCALL
45 | xsltKeyFunction (xmlXPathParserContextPtr ctxt,
46 | int nargs);
47 | XSLTPUBFUN void XSLTCALL
48 | xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt,
49 | int nargs);
50 | XSLTPUBFUN void XSLTCALL
51 | xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt,
52 | int nargs);
53 | XSLTPUBFUN void XSLTCALL
54 | xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt,
55 | int nargs);
56 | XSLTPUBFUN void XSLTCALL
57 | xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt,
58 | int nargs);
59 | XSLTPUBFUN void XSLTCALL
60 | xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt,
61 | int nargs);
62 | XSLTPUBFUN void XSLTCALL
63 | xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt,
64 | int nargs);
65 |
66 | /*
67 | * And the registration
68 | */
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltRegisterAllFunctions (xmlXPathContextPtr ctxt);
72 |
73 | #ifdef __cplusplus
74 | }
75 | #endif
76 |
77 | #endif /* __XML_XSLT_FUNCTIONS_H__ */
78 |
79 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/imports.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT import support
3 | * Description: macros and fuctions needed to implement and
4 | * access the import tree
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_IMPORTS_H__
12 | #define __XML_XSLT_IMPORTS_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * XSLT_GET_IMPORT_PTR:
24 | *
25 | * A macro to import pointers from the stylesheet cascading order.
26 | */
27 | #define XSLT_GET_IMPORT_PTR(res, style, name) { \
28 | xsltStylesheetPtr st = style; \
29 | res = NULL; \
30 | while (st != NULL) { \
31 | if (st->name != NULL) { res = st->name; break; } \
32 | st = xsltNextImport(st); \
33 | }}
34 |
35 | /**
36 | * XSLT_GET_IMPORT_INT:
37 | *
38 | * A macro to import intergers from the stylesheet cascading order.
39 | */
40 | #define XSLT_GET_IMPORT_INT(res, style, name) { \
41 | xsltStylesheetPtr st = style; \
42 | res = -1; \
43 | while (st != NULL) { \
44 | if (st->name != -1) { res = st->name; break; } \
45 | st = xsltNextImport(st); \
46 | }}
47 |
48 | /*
49 | * Module interfaces
50 | */
51 | XSLTPUBFUN int XSLTCALL
52 | xsltParseStylesheetImport(xsltStylesheetPtr style,
53 | xmlNodePtr cur);
54 | XSLTPUBFUN int XSLTCALL
55 | xsltParseStylesheetInclude
56 | (xsltStylesheetPtr style,
57 | xmlNodePtr cur);
58 | XSLTPUBFUN xsltStylesheetPtr XSLTCALL
59 | xsltNextImport (xsltStylesheetPtr style);
60 | XSLTPUBFUN int XSLTCALL
61 | xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt);
62 | XSLTPUBFUN int XSLTCALL
63 | xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt,
64 | xmlNodePtr node);
65 | XSLTPUBFUN xsltTemplatePtr XSLTCALL
66 | xsltFindTemplate (xsltTransformContextPtr ctxt,
67 | const xmlChar *name,
68 | const xmlChar *nameURI);
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /* __XML_XSLT_IMPORTS_H__ */
75 |
76 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/keys.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the key matching used in key() and template matches.
3 | * Description: implementation of the key mechanims.
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_KEY_H__
11 | #define __XML_XSLT_KEY_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 | #include "xsltInternals.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /**
22 | * NODE_IS_KEYED:
23 | *
24 | * check for bit 15 set
25 | */
26 | #define NODE_IS_KEYED (1 >> 15)
27 |
28 | XSLTPUBFUN int XSLTCALL
29 | xsltAddKey (xsltStylesheetPtr style,
30 | const xmlChar *name,
31 | const xmlChar *nameURI,
32 | const xmlChar *match,
33 | const xmlChar *use,
34 | xmlNodePtr inst);
35 | XSLTPUBFUN xmlNodeSetPtr XSLTCALL
36 | xsltGetKey (xsltTransformContextPtr ctxt,
37 | const xmlChar *name,
38 | const xmlChar *nameURI,
39 | const xmlChar *value);
40 | XSLTPUBFUN void XSLTCALL
41 | xsltInitCtxtKeys (xsltTransformContextPtr ctxt,
42 | xsltDocumentPtr doc);
43 | XSLTPUBFUN void XSLTCALL
44 | xsltFreeKeys (xsltStylesheetPtr style);
45 | XSLTPUBFUN void XSLTCALL
46 | xsltFreeDocumentKeys (xsltDocumentPtr doc);
47 |
48 | #ifdef __cplusplus
49 | }
50 | #endif
51 |
52 | #endif /* __XML_XSLT_H__ */
53 |
54 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/namespaces.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the XSLT namespace handling
3 | * Description: set of function easing the processing and generation
4 | * of namespace nodes in XSLT.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_NAMESPACES_H__
12 | #define __XML_XSLT_NAMESPACES_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | /*
22 | * Used within nsAliases hashtable when the default namespace is required
23 | * but it's not been explicitly defined
24 | */
25 | /**
26 | * UNDEFINED_DEFAULT_NS:
27 | *
28 | * Special value for undefined namespace, internal
29 | */
30 | #define UNDEFINED_DEFAULT_NS (const xmlChar *) -1L
31 |
32 | XSLTPUBFUN void XSLTCALL
33 | xsltNamespaceAlias (xsltStylesheetPtr style,
34 | xmlNodePtr node);
35 | XSLTPUBFUN xmlNsPtr XSLTCALL
36 | xsltGetNamespace (xsltTransformContextPtr ctxt,
37 | xmlNodePtr cur,
38 | xmlNsPtr ns,
39 | xmlNodePtr out);
40 | XSLTPUBFUN xmlNsPtr XSLTCALL
41 | xsltGetPlainNamespace (xsltTransformContextPtr ctxt,
42 | xmlNodePtr cur,
43 | xmlNsPtr ns,
44 | xmlNodePtr out);
45 | XSLTPUBFUN xmlNsPtr XSLTCALL
46 | xsltGetSpecialNamespace (xsltTransformContextPtr ctxt,
47 | xmlNodePtr cur,
48 | const xmlChar *URI,
49 | const xmlChar *prefix,
50 | xmlNodePtr out);
51 | XSLTPUBFUN xmlNsPtr XSLTCALL
52 | xsltCopyNamespace (xsltTransformContextPtr ctxt,
53 | xmlNodePtr elem,
54 | xmlNsPtr ns);
55 | XSLTPUBFUN xmlNsPtr XSLTCALL
56 | xsltCopyNamespaceList (xsltTransformContextPtr ctxt,
57 | xmlNodePtr node,
58 | xmlNsPtr cur);
59 | XSLTPUBFUN void XSLTCALL
60 | xsltFreeNamespaceAliasHashes
61 | (xsltStylesheetPtr style);
62 |
63 | #ifdef __cplusplus
64 | }
65 | #endif
66 |
67 | #endif /* __XML_XSLT_NAMESPACES_H__ */
68 |
69 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/numbersInternals.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Implementation of the XSLT number functions
3 | * Description: Implementation of the XSLT number functions
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Bjorn Reese and Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_NUMBERSINTERNALS_H__
11 | #define __XML_XSLT_NUMBERSINTERNALS_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | struct _xsltCompMatch;
21 |
22 | /**
23 | * xsltNumberData:
24 | *
25 | * This data structure is just a wrapper to pass xsl:number data in.
26 | */
27 | typedef struct _xsltNumberData xsltNumberData;
28 | typedef xsltNumberData *xsltNumberDataPtr;
29 |
30 | struct _xsltNumberData {
31 | const xmlChar *level;
32 | const xmlChar *count;
33 | const xmlChar *from;
34 | const xmlChar *value;
35 | const xmlChar *format;
36 | int has_format;
37 | int digitsPerGroup;
38 | int groupingCharacter;
39 | int groupingCharacterLen;
40 | xmlDocPtr doc;
41 | xmlNodePtr node;
42 | struct _xsltCompMatch *countPat;
43 | struct _xsltCompMatch *fromPat;
44 |
45 | /*
46 | * accelerators
47 | */
48 | };
49 |
50 | /**
51 | * xsltFormatNumberInfo,:
52 | *
53 | * This data structure lists the various parameters needed to format numbers.
54 | */
55 | typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo;
56 | typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr;
57 |
58 | struct _xsltFormatNumberInfo {
59 | int integer_hash; /* Number of '#' in integer part */
60 | int integer_digits; /* Number of '0' in integer part */
61 | int frac_digits; /* Number of '0' in fractional part */
62 | int frac_hash; /* Number of '#' in fractional part */
63 | int group; /* Number of chars per display 'group' */
64 | int multiplier; /* Scaling for percent or permille */
65 | char add_decimal; /* Flag for whether decimal point appears in pattern */
66 | char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
67 | char is_negative_pattern;/* Flag for processing -ve prefix/suffix */
68 | };
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 | #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */
74 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/pattern.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the pattern matching used in template matches.
3 | * Description: the implementation of the lookup of the right template
4 | * for a given node must be really fast in order to keep
5 | * decent performances.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_PATTERN_H__
13 | #define __XML_XSLT_PATTERN_H__
14 |
15 | #include "xsltInternals.h"
16 | #include "xsltexports.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /**
23 | * xsltCompMatch:
24 | *
25 | * Data structure used for the implementation of patterns.
26 | * It is kept private (in pattern.c).
27 | */
28 | typedef struct _xsltCompMatch xsltCompMatch;
29 | typedef xsltCompMatch *xsltCompMatchPtr;
30 |
31 | /*
32 | * Pattern related interfaces.
33 | */
34 |
35 | XSLTPUBFUN xsltCompMatchPtr XSLTCALL
36 | xsltCompilePattern (const xmlChar *pattern,
37 | xmlDocPtr doc,
38 | xmlNodePtr node,
39 | xsltStylesheetPtr style,
40 | xsltTransformContextPtr runtime);
41 | XSLTPUBFUN void XSLTCALL
42 | xsltFreeCompMatchList (xsltCompMatchPtr comp);
43 | XSLTPUBFUN int XSLTCALL
44 | xsltTestCompMatchList (xsltTransformContextPtr ctxt,
45 | xmlNodePtr node,
46 | xsltCompMatchPtr comp);
47 | XSLTPUBFUN void XSLTCALL
48 | xsltNormalizeCompSteps (void *payload,
49 | void *data,
50 | const xmlChar *name);
51 |
52 | /*
53 | * Template related interfaces.
54 | */
55 | XSLTPUBFUN int XSLTCALL
56 | xsltAddTemplate (xsltStylesheetPtr style,
57 | xsltTemplatePtr cur,
58 | const xmlChar *mode,
59 | const xmlChar *modeURI);
60 | XSLTPUBFUN xsltTemplatePtr XSLTCALL
61 | xsltGetTemplate (xsltTransformContextPtr ctxt,
62 | xmlNodePtr node,
63 | xsltStylesheetPtr style);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltFreeTemplateHashes (xsltStylesheetPtr style);
66 | XSLTPUBFUN void XSLTCALL
67 | xsltCleanupTemplates (xsltStylesheetPtr style);
68 |
69 | #if 0
70 | int xsltMatchPattern (xsltTransformContextPtr ctxt,
71 | xmlNodePtr node,
72 | const xmlChar *pattern,
73 | xmlDocPtr ctxtdoc,
74 | xmlNodePtr ctxtnode);
75 | #endif
76 | #ifdef __cplusplus
77 | }
78 | #endif
79 |
80 | #endif /* __XML_XSLT_PATTERN_H__ */
81 |
82 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/preproc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: precomputing stylesheets
3 | * Description: this is the compilation phase, where most of the
4 | * stylesheet is "compiled" into faster to use data.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_PRECOMP_H__
12 | #define __XML_XSLT_PRECOMP_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | /*
23 | * Interfaces
24 | */
25 | extern const xmlChar *xsltExtMarker;
26 |
27 | XSLTPUBFUN xsltElemPreCompPtr XSLTCALL
28 | xsltDocumentComp (xsltStylesheetPtr style,
29 | xmlNodePtr inst,
30 | xsltTransformFunction function);
31 |
32 | XSLTPUBFUN void XSLTCALL
33 | xsltStylePreCompute (xsltStylesheetPtr style,
34 | xmlNodePtr inst);
35 | XSLTPUBFUN void XSLTCALL
36 | xsltFreeStylePreComps (xsltStylesheetPtr style);
37 |
38 | #ifdef __cplusplus
39 | }
40 | #endif
41 |
42 | #endif /* __XML_XSLT_PRECOMP_H__ */
43 |
44 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/security.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the libxslt security framework
3 | * Description: the libxslt security framework allow to restrict
4 | * the access to new resources (file or URL) from
5 | * the stylesheet at runtime.
6 | *
7 | * Copy: See Copyright for the status of this software.
8 | *
9 | * Author: Daniel Veillard
10 | */
11 |
12 | #ifndef __XML_XSLT_SECURITY_H__
13 | #define __XML_XSLT_SECURITY_H__
14 |
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | /**
24 | * xsltSecurityPref:
25 | *
26 | * structure to indicate the preferences for security in the XSLT
27 | * transformation.
28 | */
29 | typedef struct _xsltSecurityPrefs xsltSecurityPrefs;
30 | typedef xsltSecurityPrefs *xsltSecurityPrefsPtr;
31 |
32 | /**
33 | * xsltSecurityOption:
34 | *
35 | * the set of option that can be configured
36 | */
37 | typedef enum {
38 | XSLT_SECPREF_READ_FILE = 1,
39 | XSLT_SECPREF_WRITE_FILE,
40 | XSLT_SECPREF_CREATE_DIRECTORY,
41 | XSLT_SECPREF_READ_NETWORK,
42 | XSLT_SECPREF_WRITE_NETWORK
43 | } xsltSecurityOption;
44 |
45 | /**
46 | * xsltSecurityCheck:
47 | *
48 | * User provided function to check the value of a string like a file
49 | * path or an URL ...
50 | */
51 | typedef int (*xsltSecurityCheck) (xsltSecurityPrefsPtr sec,
52 | xsltTransformContextPtr ctxt,
53 | const char *value);
54 |
55 | /*
56 | * Module interfaces
57 | */
58 | XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
59 | xsltNewSecurityPrefs (void);
60 | XSLTPUBFUN void XSLTCALL
61 | xsltFreeSecurityPrefs (xsltSecurityPrefsPtr sec);
62 | XSLTPUBFUN int XSLTCALL
63 | xsltSetSecurityPrefs (xsltSecurityPrefsPtr sec,
64 | xsltSecurityOption option,
65 | xsltSecurityCheck func);
66 | XSLTPUBFUN xsltSecurityCheck XSLTCALL
67 | xsltGetSecurityPrefs (xsltSecurityPrefsPtr sec,
68 | xsltSecurityOption option);
69 |
70 | XSLTPUBFUN void XSLTCALL
71 | xsltSetDefaultSecurityPrefs (xsltSecurityPrefsPtr sec);
72 | XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
73 | xsltGetDefaultSecurityPrefs (void);
74 |
75 | XSLTPUBFUN int XSLTCALL
76 | xsltSetCtxtSecurityPrefs (xsltSecurityPrefsPtr sec,
77 | xsltTransformContextPtr ctxt);
78 |
79 | XSLTPUBFUN int XSLTCALL
80 | xsltSecurityAllow (xsltSecurityPrefsPtr sec,
81 | xsltTransformContextPtr ctxt,
82 | const char *value);
83 | XSLTPUBFUN int XSLTCALL
84 | xsltSecurityForbid (xsltSecurityPrefsPtr sec,
85 | xsltTransformContextPtr ctxt,
86 | const char *value);
87 | /*
88 | * internal interfaces
89 | */
90 | XSLTPUBFUN int XSLTCALL
91 | xsltCheckWrite (xsltSecurityPrefsPtr sec,
92 | xsltTransformContextPtr ctxt,
93 | const xmlChar *URL);
94 | XSLTPUBFUN int XSLTCALL
95 | xsltCheckRead (xsltSecurityPrefsPtr sec,
96 | xsltTransformContextPtr ctxt,
97 | const xmlChar *URL);
98 |
99 | #ifdef __cplusplus
100 | }
101 | #endif
102 |
103 | #endif /* __XML_XSLT_SECURITY_H__ */
104 |
105 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/templates.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the template processing
3 | * Description: This set of routine encapsulates XPath calls
4 | * and Attribute Value Templates evaluation.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Daniel Veillard
9 | */
10 |
11 | #ifndef __XML_XSLT_TEMPLATES_H__
12 | #define __XML_XSLT_TEMPLATES_H__
13 |
14 | #include
15 | #include
16 | #include "xsltexports.h"
17 | #include "xsltInternals.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | XSLTPUBFUN int XSLTCALL
24 | xsltEvalXPathPredicate (xsltTransformContextPtr ctxt,
25 | xmlXPathCompExprPtr comp,
26 | xmlNsPtr *nsList,
27 | int nsNr);
28 | XSLTPUBFUN xmlChar * XSLTCALL
29 | xsltEvalTemplateString (xsltTransformContextPtr ctxt,
30 | xmlNodePtr contextNode,
31 | xmlNodePtr inst);
32 | XSLTPUBFUN xmlChar * XSLTCALL
33 | xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt,
34 | xmlNodePtr node,
35 | const xmlChar *name,
36 | const xmlChar *ns);
37 | XSLTPUBFUN const xmlChar * XSLTCALL
38 | xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
39 | xmlNodePtr node,
40 | const xmlChar *name,
41 | const xmlChar *ns,
42 | int *found);
43 |
44 | /* TODO: this is obviously broken ... the namespaces should be passed too ! */
45 | XSLTPUBFUN xmlChar * XSLTCALL
46 | xsltEvalXPathString (xsltTransformContextPtr ctxt,
47 | xmlXPathCompExprPtr comp);
48 | XSLTPUBFUN xmlChar * XSLTCALL
49 | xsltEvalXPathStringNs (xsltTransformContextPtr ctxt,
50 | xmlXPathCompExprPtr comp,
51 | int nsNr,
52 | xmlNsPtr *nsList);
53 |
54 | XSLTPUBFUN xmlNodePtr * XSLTCALL
55 | xsltTemplateProcess (xsltTransformContextPtr ctxt,
56 | xmlNodePtr node);
57 | XSLTPUBFUN xmlAttrPtr XSLTCALL
58 | xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt,
59 | xmlNodePtr target,
60 | xmlAttrPtr cur);
61 | XSLTPUBFUN xmlAttrPtr XSLTCALL
62 | xsltAttrTemplateProcess (xsltTransformContextPtr ctxt,
63 | xmlNodePtr target,
64 | xmlAttrPtr attr);
65 | XSLTPUBFUN xmlChar * XSLTCALL
66 | xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt,
67 | const xmlChar* attr);
68 | XSLTPUBFUN xmlChar * XSLTCALL
69 | xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt,
70 | const xmlChar* str,
71 | xmlNodePtr node);
72 | #ifdef __cplusplus
73 | }
74 | #endif
75 |
76 | #endif /* __XML_XSLT_TEMPLATES_H__ */
77 |
78 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/variables.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: interface for the variable matching and lookup.
3 | * Description: interface for the variable matching and lookup.
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_VARIABLES_H__
11 | #define __XML_XSLT_VARIABLES_H__
12 |
13 | #include
14 | #include
15 | #include "xsltexports.h"
16 | #include "xsltInternals.h"
17 | #include "functions.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 |
24 | /**
25 | * XSLT_REGISTER_VARIABLE_LOOKUP:
26 | *
27 | * Registering macro, not general purpose at all but used in different modules.
28 | */
29 |
30 | #define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \
31 | xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \
32 | xsltXPathVariableLookup, (void *)(ctxt)); \
33 | xsltRegisterAllFunctions((ctxt)->xpathCtxt); \
34 | xsltRegisterAllElement(ctxt); \
35 | (ctxt)->xpathCtxt->extra = ctxt
36 |
37 | /*
38 | * Interfaces for the variable module.
39 | */
40 |
41 | XSLTPUBFUN int XSLTCALL
42 | xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
43 | XSLTPUBFUN int XSLTCALL
44 | xsltEvalUserParams (xsltTransformContextPtr ctxt,
45 | const char **params);
46 | XSLTPUBFUN int XSLTCALL
47 | xsltQuoteUserParams (xsltTransformContextPtr ctxt,
48 | const char **params);
49 | XSLTPUBFUN int XSLTCALL
50 | xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
51 | const xmlChar * name,
52 | const xmlChar * value);
53 | XSLTPUBFUN int XSLTCALL
54 | xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
55 | const xmlChar * name,
56 | const xmlChar * value);
57 |
58 | XSLTPUBFUN void XSLTCALL
59 | xsltParseGlobalVariable (xsltStylesheetPtr style,
60 | xmlNodePtr cur);
61 | XSLTPUBFUN void XSLTCALL
62 | xsltParseGlobalParam (xsltStylesheetPtr style,
63 | xmlNodePtr cur);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
66 | xmlNodePtr cur);
67 | XSLTPUBFUN void XSLTCALL
68 | xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
69 | xmlNodePtr cur);
70 | XSLTPUBFUN xsltStackElemPtr XSLTCALL
71 | xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
72 | xmlNodePtr cur);
73 | XSLTPUBFUN int XSLTCALL
74 | xsltAddStackElemList (xsltTransformContextPtr ctxt,
75 | xsltStackElemPtr elems);
76 | XSLTPUBFUN void XSLTCALL
77 | xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
78 | XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
79 | xsltVariableLookup (xsltTransformContextPtr ctxt,
80 | const xmlChar *name,
81 | const xmlChar *ns_uri);
82 | XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
83 | xsltXPathVariableLookup (void *ctxt,
84 | const xmlChar *name,
85 | const xmlChar *ns_uri);
86 | #ifdef __cplusplus
87 | }
88 | #endif
89 |
90 | #endif /* __XML_XSLT_VARIABLES_H__ */
91 |
92 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/xslt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Interfaces, constants and types related to the XSLT engine
3 | * Description: Interfaces, constants and types related to the XSLT engine
4 | *
5 | * Copy: See Copyright for the status of this software.
6 | *
7 | * Author: Daniel Veillard
8 | */
9 |
10 | #ifndef __XML_XSLT_H__
11 | #define __XML_XSLT_H__
12 |
13 | #include
14 | #include "xsltexports.h"
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | /**
21 | * XSLT_DEFAULT_VERSION:
22 | *
23 | * The default version of XSLT supported.
24 | */
25 | #define XSLT_DEFAULT_VERSION "1.0"
26 |
27 | /**
28 | * XSLT_DEFAULT_VENDOR:
29 | *
30 | * The XSLT "vendor" string for this processor.
31 | */
32 | #define XSLT_DEFAULT_VENDOR "libxslt"
33 |
34 | /**
35 | * XSLT_DEFAULT_URL:
36 | *
37 | * The XSLT "vendor" URL for this processor.
38 | */
39 | #define XSLT_DEFAULT_URL "http://xmlsoft.org/XSLT/"
40 |
41 | /**
42 | * XSLT_NAMESPACE:
43 | *
44 | * The XSLT specification namespace.
45 | */
46 | #define XSLT_NAMESPACE ((const xmlChar *)"http://www.w3.org/1999/XSL/Transform")
47 |
48 | /**
49 | * XSLT_PARSE_OPTIONS:
50 | *
51 | * The set of options to pass to an xmlReadxxx when loading files for
52 | * XSLT consumption.
53 | */
54 | #define XSLT_PARSE_OPTIONS \
55 | XML_PARSE_NOENT | XML_PARSE_DTDLOAD | XML_PARSE_DTDATTR | XML_PARSE_NOCDATA
56 |
57 | /**
58 | * xsltMaxDepth:
59 | *
60 | * This value is used to detect templates loops.
61 | */
62 | XSLTPUBVAR int xsltMaxDepth;
63 |
64 | /**
65 | * * xsltMaxVars:
66 | * *
67 | * * This value is used to detect templates loops.
68 | * */
69 | XSLTPUBVAR int xsltMaxVars;
70 |
71 | /**
72 | * xsltEngineVersion:
73 | *
74 | * The version string for libxslt.
75 | */
76 | XSLTPUBVAR const char *xsltEngineVersion;
77 |
78 | /**
79 | * xsltLibxsltVersion:
80 | *
81 | * The version of libxslt compiled.
82 | */
83 | XSLTPUBVAR const int xsltLibxsltVersion;
84 |
85 | /**
86 | * xsltLibxmlVersion:
87 | *
88 | * The version of libxml libxslt was compiled against.
89 | */
90 | XSLTPUBVAR const int xsltLibxmlVersion;
91 |
92 | /*
93 | * Global initialization function.
94 | */
95 |
96 | XSLTPUBFUN void XSLTCALL
97 | xsltInit (void);
98 |
99 | /*
100 | * Global cleanup function.
101 | */
102 | XSLTPUBFUN void XSLTCALL
103 | xsltCleanupGlobals (void);
104 |
105 | #ifdef __cplusplus
106 | }
107 | #endif
108 |
109 | #endif /* __XML_XSLT_H__ */
110 |
111 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/libxslt/xsltlocale.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Summary: Locale handling
3 | * Description: Interfaces for locale handling. Needed for language dependent
4 | * sorting.
5 | *
6 | * Copy: See Copyright for the status of this software.
7 | *
8 | * Author: Nick Wellnhofer
9 | */
10 |
11 | #ifndef __XML_XSLTLOCALE_H__
12 | #define __XML_XSLTLOCALE_H__
13 |
14 | #include
15 | #include "xsltexports.h"
16 |
17 | #ifdef XSLT_LOCALE_XLOCALE
18 |
19 | #include
20 | #include
21 |
22 | #ifdef __GLIBC__
23 | /*locale_t is defined only if _GNU_SOURCE is defined*/
24 | typedef __locale_t xsltLocale;
25 | #else
26 | typedef locale_t xsltLocale;
27 | #endif
28 | typedef xmlChar xsltLocaleChar;
29 |
30 | #elif defined(XSLT_LOCALE_WINAPI)
31 |
32 | #include
33 | #include
34 |
35 | typedef LCID xsltLocale;
36 | typedef wchar_t xsltLocaleChar;
37 |
38 | #else
39 |
40 | /*
41 | * XSLT_LOCALE_NONE:
42 | * Macro indicating that locale are not supported
43 | */
44 | #ifndef XSLT_LOCALE_NONE
45 | #define XSLT_LOCALE_NONE
46 | #endif
47 |
48 | typedef void *xsltLocale;
49 | typedef xmlChar xsltLocaleChar;
50 |
51 | #endif
52 |
53 | XSLTPUBFUN xsltLocale XSLTCALL
54 | xsltNewLocale (const xmlChar *langName);
55 | XSLTPUBFUN void XSLTCALL
56 | xsltFreeLocale (xsltLocale locale);
57 | XSLTPUBFUN xsltLocaleChar * XSLTCALL
58 | xsltStrxfrm (xsltLocale locale,
59 | const xmlChar *string);
60 | XSLTPUBFUN int XSLTCALL
61 | xsltLocaleStrcmp (xsltLocale locale,
62 | const xsltLocaleChar *str1,
63 | const xsltLocaleChar *str2);
64 | XSLTPUBFUN void XSLTCALL
65 | xsltFreeLocales (void);
66 |
67 | #endif /* __XML_XSLTLOCALE_H__ */
68 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/lxml-version.h:
--------------------------------------------------------------------------------
1 | #ifndef LXML_VERSION_STRING
2 | #define LXML_VERSION_STRING "3.8.0"
3 | #endif
4 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/relaxng.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
3 |
4 | cdef extern from "libxml/relaxng.h":
5 | ctypedef struct xmlRelaxNG
6 | ctypedef struct xmlRelaxNGParserCtxt
7 |
8 | ctypedef struct xmlRelaxNGValidCtxt
9 |
10 | ctypedef enum xmlRelaxNGValidErr:
11 | XML_RELAXNG_OK = 0
12 | XML_RELAXNG_ERR_MEMORY = 1
13 | XML_RELAXNG_ERR_TYPE = 2
14 | XML_RELAXNG_ERR_TYPEVAL = 3
15 | XML_RELAXNG_ERR_DUPID = 4
16 | XML_RELAXNG_ERR_TYPECMP = 5
17 | XML_RELAXNG_ERR_NOSTATE = 6
18 | XML_RELAXNG_ERR_NODEFINE = 7
19 | XML_RELAXNG_ERR_LISTEXTRA = 8
20 | XML_RELAXNG_ERR_LISTEMPTY = 9
21 | XML_RELAXNG_ERR_INTERNODATA = 10
22 | XML_RELAXNG_ERR_INTERSEQ = 11
23 | XML_RELAXNG_ERR_INTEREXTRA = 12
24 | XML_RELAXNG_ERR_ELEMNAME = 13
25 | XML_RELAXNG_ERR_ATTRNAME = 14
26 | XML_RELAXNG_ERR_ELEMNONS = 15
27 | XML_RELAXNG_ERR_ATTRNONS = 16
28 | XML_RELAXNG_ERR_ELEMWRONGNS = 17
29 | XML_RELAXNG_ERR_ATTRWRONGNS = 18
30 | XML_RELAXNG_ERR_ELEMEXTRANS = 19
31 | XML_RELAXNG_ERR_ATTREXTRANS = 20
32 | XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
33 | XML_RELAXNG_ERR_NOELEM = 22
34 | XML_RELAXNG_ERR_NOTELEM = 23
35 | XML_RELAXNG_ERR_ATTRVALID = 24
36 | XML_RELAXNG_ERR_CONTENTVALID = 25
37 | XML_RELAXNG_ERR_EXTRACONTENT = 26
38 | XML_RELAXNG_ERR_INVALIDATTR = 27
39 | XML_RELAXNG_ERR_DATAELEM = 28
40 | XML_RELAXNG_ERR_VALELEM = 29
41 | XML_RELAXNG_ERR_LISTELEM = 30
42 | XML_RELAXNG_ERR_DATATYPE = 31
43 | XML_RELAXNG_ERR_VALUE = 32
44 | XML_RELAXNG_ERR_LIST = 33
45 | XML_RELAXNG_ERR_NOGRAMMAR = 34
46 | XML_RELAXNG_ERR_EXTRADATA = 35
47 | XML_RELAXNG_ERR_LACKDATA = 36
48 | XML_RELAXNG_ERR_INTERNAL = 37
49 | XML_RELAXNG_ERR_ELEMWRONG = 38
50 | XML_RELAXNG_ERR_TEXTWRONG = 39
51 |
52 | cdef xmlRelaxNGValidCtxt* xmlRelaxNGNewValidCtxt(xmlRelaxNG* schema) nogil
53 | cdef int xmlRelaxNGValidateDoc(xmlRelaxNGValidCtxt* ctxt, xmlDoc* doc) nogil
54 | cdef xmlRelaxNG* xmlRelaxNGParse(xmlRelaxNGParserCtxt* ctxt) nogil
55 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewParserCtxt(char* URL) nogil
56 | cdef xmlRelaxNGParserCtxt* xmlRelaxNGNewDocParserCtxt(xmlDoc* doc) nogil
57 | cdef void xmlRelaxNGFree(xmlRelaxNG* schema) nogil
58 | cdef void xmlRelaxNGFreeParserCtxt(xmlRelaxNGParserCtxt* ctxt) nogil
59 | cdef void xmlRelaxNGFreeValidCtxt(xmlRelaxNGValidCtxt* ctxt) nogil
60 |
61 | cdef void xmlRelaxNGSetValidStructuredErrors(
62 | xmlRelaxNGValidCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
63 | cdef void xmlRelaxNGSetParserStructuredErrors(
64 | xmlRelaxNGParserCtxt* ctxt, xmlStructuredErrorFunc serror, void *ctx) nogil
65 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/schematron.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes cimport xmlerror
2 | from lxml.includes.tree cimport xmlDoc
3 |
4 | cdef extern from "libxml/schematron.h":
5 | ctypedef struct xmlSchematron
6 | ctypedef struct xmlSchematronParserCtxt
7 | ctypedef struct xmlSchematronValidCtxt
8 |
9 | ctypedef enum xmlSchematronValidOptions:
10 | XML_SCHEMATRON_OUT_QUIET = 1 # quiet no report
11 | XML_SCHEMATRON_OUT_TEXT = 2 # build a textual report
12 | XML_SCHEMATRON_OUT_XML = 4 # output SVRL
13 | XML_SCHEMATRON_OUT_ERROR = 8 # output via xmlStructuredErrorFunc
14 | XML_SCHEMATRON_OUT_FILE = 256 # output to a file descriptor
15 | XML_SCHEMATRON_OUT_BUFFER = 512 # output to a buffer
16 | XML_SCHEMATRON_OUT_IO = 1024 # output to I/O mechanism
17 |
18 | cdef xmlSchematronParserCtxt* xmlSchematronNewDocParserCtxt(
19 | xmlDoc* doc) nogil
20 | cdef xmlSchematronParserCtxt* xmlSchematronNewParserCtxt(
21 | char* filename) nogil
22 | cdef xmlSchematronValidCtxt* xmlSchematronNewValidCtxt(
23 | xmlSchematron* schema, int options) nogil
24 |
25 | cdef xmlSchematron* xmlSchematronParse(xmlSchematronParserCtxt* ctxt) nogil
26 | cdef int xmlSchematronValidateDoc(xmlSchematronValidCtxt* ctxt,
27 | xmlDoc* instance) nogil
28 |
29 | cdef void xmlSchematronFreeParserCtxt(xmlSchematronParserCtxt* ctxt) nogil
30 | cdef void xmlSchematronFreeValidCtxt(xmlSchematronValidCtxt* ctxt) nogil
31 | cdef void xmlSchematronFree(xmlSchematron* schema) nogil
32 | cdef void xmlSchematronSetValidStructuredErrors(
33 | xmlSchematronValidCtxt* ctxt,
34 | xmlerror.xmlStructuredErrorFunc error_func, void *data)
35 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/uri.pxd:
--------------------------------------------------------------------------------
1 | cdef extern from "libxml/uri.h":
2 | ctypedef struct xmlURI
3 |
4 | cdef xmlURI* xmlParseURI(char* str)
5 | cdef void xmlFreeURI(xmlURI* uri)
6 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/xinclude.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc, xmlNode
2 |
3 | cdef extern from "libxml/xinclude.h":
4 |
5 | ctypedef struct xmlXIncludeCtxt
6 |
7 | cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
8 | cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
9 | cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
10 | cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
11 |
12 | # libxml2 >= 2.7.4
13 | cdef int xmlXIncludeProcessTreeFlagsData(
14 | xmlNode* doc, int parser_opts, void* data) nogil
15 |
16 | cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
17 | cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
18 | cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
19 |
20 | # libxml2 >= 2.6.27
21 | cdef int xmlXIncludeProcessFlagsData(
22 | xmlDoc* doc, int flags, void* data) nogil
23 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/includes/xmlschema.pxd:
--------------------------------------------------------------------------------
1 | from lxml.includes.tree cimport xmlDoc
2 | from lxml.includes.xmlparser cimport xmlSAXHandler
3 | from lxml.includes.xmlerror cimport xmlStructuredErrorFunc
4 |
5 | cdef extern from "libxml/xmlschemas.h":
6 | ctypedef struct xmlSchema
7 | ctypedef struct xmlSchemaParserCtxt
8 |
9 | ctypedef struct xmlSchemaSAXPlugStruct
10 | ctypedef struct xmlSchemaValidCtxt
11 |
12 | ctypedef enum xmlSchemaValidOption:
13 | XML_SCHEMA_VAL_VC_I_CREATE = 1
14 |
15 | cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
16 | cdef void xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxt* ctxt,
17 | xmlStructuredErrorFunc serror, void *ctx)
18 | cdef void xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxt* ctxt,
19 | xmlStructuredErrorFunc serror, void *ctx)
20 |
21 | cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
22 | cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
23 | cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
24 | cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
25 | cdef void xmlSchemaFree(xmlSchema* schema) nogil
26 | cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
27 | cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
28 | cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
29 | int options) nogil
30 |
31 | cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
32 | xmlSAXHandler** sax,
33 | void** data) nogil
34 | cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
35 | cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)
36 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/isoschematron/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/isoschematron/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 | (
51 | /
52 | )
53 |
54 |
55 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/objectify.cpython-36m-x86_64-linux-gnu.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFox/aws-lambda-lxml/097747144edd7bef1d69e4dfdfc4ad0f1ce970bc/3.8.0/py36/lxml/objectify.cpython-36m-x86_64-linux-gnu.so
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/pyclasslookup.py:
--------------------------------------------------------------------------------
1 | # dummy module for backwards compatibility
2 |
3 | from lxml.etree import PythonElementClassLookup
4 |
--------------------------------------------------------------------------------
/3.8.0/py36/lxml/usedoctest.py:
--------------------------------------------------------------------------------
1 | """Doctest module for XML comparison.
2 |
3 | Usage::
4 |
5 | >>> import lxml.usedoctest
6 | >>> # now do your XML doctests ...
7 |
8 | See `lxml.doctestcompare`
9 | """
10 |
11 | from lxml import doctestcompare
12 |
13 | doctestcompare.temp_install(del_module=__name__)
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # aws-lambda-lxml
2 |
3 | AWS Lambda precomiled binaries for lxml built for python 2.7 and python 3.6 runtimes.
4 |
5 | `libxml2-dev` and `libxslt-dev` are not needed as they are included by default in the machines that run lambdas.
6 |
7 | ## Example usage
8 |
9 | 1. Put the lxml directory in the root of your lambda package
10 | 1. Import lxml and use as usual
11 |
12 | ```python
13 | from lxml import etree
14 |
15 |
16 | def handle(event, context):
17 | return etree.fromstring(event)
18 |
19 | ```
20 |
21 | ## Build it yourself
22 |
23 | This repo contains a `build.sh` script that's intended to be run in an Amazon
24 | Linux docker container, and build lxml for py27 and py36 for use in AWS Lambda.
25 |
26 | To build the latest lxml (or any other platform-specific compiled libraries like numpy),
27 | run the following:
28 |
29 | ```sh
30 | $ docker run -v $(pwd):/outputs -it lambci/lambda:build-python{2.7|3.6} \
31 | pip install lxml -t /outputs/
32 | ```
33 |
34 | Once you run this, you'll have a folder called `lxml` (you can ignore the other one
35 | with the dist-info), which is the one you are going to place in the root of the
36 | lambda package as specified in the [example](#example-usage)
37 |
--------------------------------------------------------------------------------