lxml 5.2.0__cp310-cp310-win32.whl → 5.2.2__cp310-cp310-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lxml/ElementInclude.py +244 -244
- lxml/__init__.py +22 -22
- lxml/_elementpath.cp310-win32.pyd +0 -0
- lxml/_elementpath.py +341 -341
- lxml/apihelpers.pxi +1793 -1793
- lxml/builder.cp310-win32.pyd +0 -0
- lxml/builder.py +232 -232
- lxml/classlookup.pxi +580 -580
- lxml/cleanup.pxi +215 -215
- lxml/cssselect.py +101 -101
- lxml/debug.pxi +90 -90
- lxml/docloader.pxi +178 -178
- lxml/doctestcompare.py +488 -488
- lxml/dtd.pxi +478 -478
- lxml/etree.cp310-win32.pyd +0 -0
- lxml/etree.h +6 -6
- lxml/etree.pyx +3732 -3711
- lxml/extensions.pxi +833 -833
- lxml/html/ElementSoup.py +10 -10
- lxml/html/__init__.py +1923 -1923
- lxml/html/_diffcommand.py +86 -86
- lxml/html/_html5builder.py +100 -100
- lxml/html/_setmixin.py +56 -56
- lxml/html/builder.py +133 -133
- lxml/html/clean.py +21 -21
- lxml/html/defs.py +135 -135
- lxml/html/diff.cp310-win32.pyd +0 -0
- lxml/html/diff.py +878 -878
- lxml/html/formfill.py +299 -299
- lxml/html/html5parser.py +260 -260
- lxml/html/soupparser.py +314 -314
- lxml/html/usedoctest.py +13 -13
- lxml/includes/c14n.pxd +25 -25
- lxml/includes/config.pxd +3 -3
- lxml/includes/dtdvalid.pxd +18 -18
- lxml/includes/etree_defs.h +379 -379
- lxml/includes/etreepublic.pxd +237 -237
- lxml/includes/htmlparser.pxd +56 -56
- lxml/includes/lxml-version.h +1 -1
- lxml/includes/relaxng.pxd +64 -64
- lxml/includes/schematron.pxd +34 -34
- lxml/includes/tree.pxd +494 -494
- lxml/includes/uri.pxd +5 -5
- lxml/includes/xinclude.pxd +22 -22
- lxml/includes/xmlerror.pxd +852 -852
- lxml/includes/xmlparser.pxd +265 -265
- lxml/includes/xmlschema.pxd +35 -35
- lxml/includes/xpath.pxd +136 -136
- lxml/includes/xslt.pxd +190 -190
- lxml/isoschematron/__init__.py +348 -348
- lxml/isoschematron/resources/rng/iso-schematron.rng +709 -709
- lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -75
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +312 -312
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1159 -1159
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +54 -54
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -1796
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -588
- lxml/iterparse.pxi +438 -438
- lxml/lxml.etree.h +6 -6
- lxml/nsclasses.pxi +281 -281
- lxml/objectify.cp310-win32.pyd +0 -0
- lxml/objectify.pyx +2145 -2145
- lxml/objectpath.pxi +332 -332
- lxml/parser.pxi +1994 -1994
- lxml/parsertarget.pxi +180 -180
- lxml/proxy.pxi +619 -619
- lxml/public-api.pxi +178 -178
- lxml/pyclasslookup.py +3 -3
- lxml/readonlytree.pxi +565 -565
- lxml/relaxng.pxi +165 -165
- lxml/sax.cp310-win32.pyd +0 -0
- lxml/sax.py +275 -275
- lxml/saxparser.pxi +875 -875
- lxml/schematron.pxi +168 -168
- lxml/serializer.pxi +1871 -1871
- lxml/usedoctest.py +13 -13
- lxml/xinclude.pxi +67 -67
- lxml/xmlerror.pxi +1654 -1654
- lxml/xmlid.pxi +179 -179
- lxml/xmlschema.pxi +215 -215
- lxml/xpath.pxi +487 -487
- lxml/xslt.pxi +950 -950
- lxml/xsltext.pxi +242 -242
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/LICENSE.txt +29 -29
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/LICENSES.txt +29 -29
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/METADATA +9 -17
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/RECORD +89 -89
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/WHEEL +0 -0
- {lxml-5.2.0.dist-info → lxml-5.2.2.dist-info}/top_level.txt +0 -0
@@ -1,75 +1,75 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!--
|
3
|
-
Stylesheet for extracting Schematron information from a RELAX-NG schema.
|
4
|
-
Based on the stylesheet for extracting Schematron information from W3C XML Schema.
|
5
|
-
Created by Eddie Robertsson 2002/06/01
|
6
|
-
2009/12/10 hj: changed Schematron namespace to ISO URI (Holger Joukl)
|
7
|
-
-->
|
8
|
-
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
9
|
-
xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0">
|
10
|
-
<!-- Set the output to be XML with an XML declaration and use indentation -->
|
11
|
-
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" standalone="yes"/>
|
12
|
-
<!-- -->
|
13
|
-
<!-- match schema and call recursive template to extract included schemas -->
|
14
|
-
<!-- -->
|
15
|
-
<xsl:template match="/rng:grammar | /rng:element">
|
16
|
-
<!-- call the schema definition template ... -->
|
17
|
-
<xsl:call-template name="gatherSchema">
|
18
|
-
<!-- ... with current node as the $schemas parameter ... -->
|
19
|
-
<xsl:with-param name="schemas" select="."/>
|
20
|
-
<!-- ... and any includes in the $include parameter -->
|
21
|
-
<xsl:with-param name="includes" select="document(/rng:grammar/rng:include/@href
|
22
|
-
| //rng:externalRef/@href)"/>
|
23
|
-
</xsl:call-template>
|
24
|
-
</xsl:template>
|
25
|
-
<!-- -->
|
26
|
-
<!-- gather all included schemas into a single parameter variable -->
|
27
|
-
<!-- -->
|
28
|
-
<xsl:template name="gatherSchema">
|
29
|
-
<xsl:param name="schemas"/>
|
30
|
-
<xsl:param name="includes"/>
|
31
|
-
<xsl:choose>
|
32
|
-
<xsl:when test="count($schemas) < count($schemas | $includes)">
|
33
|
-
<!-- when $includes includes something new, recurse ... -->
|
34
|
-
<xsl:call-template name="gatherSchema">
|
35
|
-
<!-- ... with current $includes added to the $schemas parameter ... -->
|
36
|
-
<xsl:with-param name="schemas" select="$schemas | $includes"/>
|
37
|
-
<!-- ... and any *new* includes in the $include parameter -->
|
38
|
-
<xsl:with-param name="includes" select="document($includes/rng:grammar/rng:include/@href
|
39
|
-
| $includes//rng:externalRef/@href)"/>
|
40
|
-
</xsl:call-template>
|
41
|
-
</xsl:when>
|
42
|
-
<xsl:otherwise>
|
43
|
-
<!-- we have the complete set of included schemas, so now let's output the embedded schematron -->
|
44
|
-
<xsl:call-template name="output">
|
45
|
-
<xsl:with-param name="schemas" select="$schemas"/>
|
46
|
-
</xsl:call-template>
|
47
|
-
</xsl:otherwise>
|
48
|
-
</xsl:choose>
|
49
|
-
</xsl:template>
|
50
|
-
<!-- -->
|
51
|
-
<!-- output the schematron information -->
|
52
|
-
<!-- -->
|
53
|
-
<xsl:template name="output">
|
54
|
-
<xsl:param name="schemas"/>
|
55
|
-
<!-- -->
|
56
|
-
<sch:schema>
|
57
|
-
<!-- get header-type elements - eg title and especially ns -->
|
58
|
-
<!-- title (just one) -->
|
59
|
-
<xsl:copy-of select="$schemas//sch:title[1]"/>
|
60
|
-
<!-- get remaining schematron schema children -->
|
61
|
-
<!-- get non-blank namespace elements, dropping duplicates -->
|
62
|
-
<xsl:for-each select="$schemas//sch:ns">
|
63
|
-
<xsl:if test="generate-id(.) = generate-id($schemas//sch:ns[@prefix = current()/@prefix][1])">
|
64
|
-
<xsl:copy-of select="."/>
|
65
|
-
</xsl:if>
|
66
|
-
</xsl:for-each>
|
67
|
-
<xsl:copy-of select="$schemas//sch:phase"/>
|
68
|
-
<xsl:copy-of select="$schemas//sch:pattern"/>
|
69
|
-
<sch:diagnostics>
|
70
|
-
<xsl:copy-of select="$schemas//sch:diagnostics/*"/>
|
71
|
-
</sch:diagnostics>
|
72
|
-
</sch:schema>
|
73
|
-
</xsl:template>
|
74
|
-
<!-- -->
|
75
|
-
</xsl:transform>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Stylesheet for extracting Schematron information from a RELAX-NG schema.
|
4
|
+
Based on the stylesheet for extracting Schematron information from W3C XML Schema.
|
5
|
+
Created by Eddie Robertsson 2002/06/01
|
6
|
+
2009/12/10 hj: changed Schematron namespace to ISO URI (Holger Joukl)
|
7
|
+
-->
|
8
|
+
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
9
|
+
xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0">
|
10
|
+
<!-- Set the output to be XML with an XML declaration and use indentation -->
|
11
|
+
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" standalone="yes"/>
|
12
|
+
<!-- -->
|
13
|
+
<!-- match schema and call recursive template to extract included schemas -->
|
14
|
+
<!-- -->
|
15
|
+
<xsl:template match="/rng:grammar | /rng:element">
|
16
|
+
<!-- call the schema definition template ... -->
|
17
|
+
<xsl:call-template name="gatherSchema">
|
18
|
+
<!-- ... with current node as the $schemas parameter ... -->
|
19
|
+
<xsl:with-param name="schemas" select="."/>
|
20
|
+
<!-- ... and any includes in the $include parameter -->
|
21
|
+
<xsl:with-param name="includes" select="document(/rng:grammar/rng:include/@href
|
22
|
+
| //rng:externalRef/@href)"/>
|
23
|
+
</xsl:call-template>
|
24
|
+
</xsl:template>
|
25
|
+
<!-- -->
|
26
|
+
<!-- gather all included schemas into a single parameter variable -->
|
27
|
+
<!-- -->
|
28
|
+
<xsl:template name="gatherSchema">
|
29
|
+
<xsl:param name="schemas"/>
|
30
|
+
<xsl:param name="includes"/>
|
31
|
+
<xsl:choose>
|
32
|
+
<xsl:when test="count($schemas) < count($schemas | $includes)">
|
33
|
+
<!-- when $includes includes something new, recurse ... -->
|
34
|
+
<xsl:call-template name="gatherSchema">
|
35
|
+
<!-- ... with current $includes added to the $schemas parameter ... -->
|
36
|
+
<xsl:with-param name="schemas" select="$schemas | $includes"/>
|
37
|
+
<!-- ... and any *new* includes in the $include parameter -->
|
38
|
+
<xsl:with-param name="includes" select="document($includes/rng:grammar/rng:include/@href
|
39
|
+
| $includes//rng:externalRef/@href)"/>
|
40
|
+
</xsl:call-template>
|
41
|
+
</xsl:when>
|
42
|
+
<xsl:otherwise>
|
43
|
+
<!-- we have the complete set of included schemas, so now let's output the embedded schematron -->
|
44
|
+
<xsl:call-template name="output">
|
45
|
+
<xsl:with-param name="schemas" select="$schemas"/>
|
46
|
+
</xsl:call-template>
|
47
|
+
</xsl:otherwise>
|
48
|
+
</xsl:choose>
|
49
|
+
</xsl:template>
|
50
|
+
<!-- -->
|
51
|
+
<!-- output the schematron information -->
|
52
|
+
<!-- -->
|
53
|
+
<xsl:template name="output">
|
54
|
+
<xsl:param name="schemas"/>
|
55
|
+
<!-- -->
|
56
|
+
<sch:schema>
|
57
|
+
<!-- get header-type elements - eg title and especially ns -->
|
58
|
+
<!-- title (just one) -->
|
59
|
+
<xsl:copy-of select="$schemas//sch:title[1]"/>
|
60
|
+
<!-- get remaining schematron schema children -->
|
61
|
+
<!-- get non-blank namespace elements, dropping duplicates -->
|
62
|
+
<xsl:for-each select="$schemas//sch:ns">
|
63
|
+
<xsl:if test="generate-id(.) = generate-id($schemas//sch:ns[@prefix = current()/@prefix][1])">
|
64
|
+
<xsl:copy-of select="."/>
|
65
|
+
</xsl:if>
|
66
|
+
</xsl:for-each>
|
67
|
+
<xsl:copy-of select="$schemas//sch:phase"/>
|
68
|
+
<xsl:copy-of select="$schemas//sch:pattern"/>
|
69
|
+
<sch:diagnostics>
|
70
|
+
<xsl:copy-of select="$schemas//sch:diagnostics/*"/>
|
71
|
+
</sch:diagnostics>
|
72
|
+
</sch:schema>
|
73
|
+
</xsl:template>
|
74
|
+
<!-- -->
|
75
|
+
</xsl:transform>
|