1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.isoschematron</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 Package isoschematron
50 <table cellpadding="0" cellspacing="0">
51 <!-- hide/show private -->
52 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
53 onclick="toggle_private();">hide private</a>]</span></td></tr>
54 <tr><td align="right"><span class="options"
55 >[<a href="frames.html" target="_top">frames</a
56 >] | <a href="lxml.isoschematron-module.html"
57 target="_top">no frames</a>]</span></td></tr>
62 <!-- ==================== PACKAGE DESCRIPTION ==================== -->
63 <h1 class="epydoc">Package isoschematron</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.isoschematron-pysrc.html">source code</a></span></p>
64 The <tt class="rst-docutils literal">lxml.isoschematron</tt> package implements ISO Schematron support on top
65 of the pure-xslt 'skeleton' implementation.
67 <!-- ==================== CLASSES ==================== -->
68 <a name="section-Classes"></a>
69 <table class="summary" border="1" cellpadding="3"
70 cellspacing="0" width="100%" bgcolor="white">
71 <tr bgcolor="#70b0f0" class="table-header">
72 <td colspan="2" class="table-header">
73 <table border="0" cellpadding="0" cellspacing="0" width="100%">
75 <td align="left"><span class="table-header">Classes</span></td>
76 <td align="right" valign="top"
77 ><span class="options">[<a href="#section-Classes"
78 class="privatelink" onclick="toggle_private();"
79 >hide private</a>]</span></td>
85 <td width="15%" align="right" valign="top" class="summary">
86 <span class="summary-type"> </span>
87 </td><td class="summary">
88 <a href="str-class.html" class="summary-name" onclick="show_private();">unicode</a><br />
89 str(object='') -> string
93 <td width="15%" align="right" valign="top" class="summary">
94 <span class="summary-type"> </span>
95 </td><td class="summary">
96 <a href="str-class.html" class="summary-name" onclick="show_private();">basestring</a><br />
97 str(object='') -> string
101 <td width="15%" align="right" valign="top" class="summary">
102 <span class="summary-type"> </span>
103 </td><td class="summary">
104 <a href="lxml.isoschematron.Schematron-class.html" class="summary-name">Schematron</a><br />
105 An ISO Schematron validator.
109 <!-- ==================== FUNCTIONS ==================== -->
110 <a name="section-Functions"></a>
111 <table class="summary" border="1" cellpadding="3"
112 cellspacing="0" width="100%" bgcolor="white">
113 <tr bgcolor="#70b0f0" class="table-header">
114 <td colspan="2" class="table-header">
115 <table border="0" cellpadding="0" cellspacing="0" width="100%">
117 <td align="left"><span class="table-header">Functions</span></td>
118 <td align="right" valign="top"
119 ><span class="options">[<a href="#section-Functions"
120 class="privatelink" onclick="toggle_private();"
121 >hide private</a>]</span></td>
127 <td width="15%" align="right" valign="top" class="summary">
128 <span class="summary-type"> </span>
129 </td><td class="summary">
130 <table width="100%" cellpadding="0" cellspacing="0" border="0">
132 <td><span class="summary-sig"><a href="lxml.isoschematron-module.html#stylesheet_params" class="summary-sig-name">stylesheet_params</a>(<span class="summary-sig-arg">**kwargs</span>)</span><br />
133 Convert keyword args to a dictionary of stylesheet parameters.
134 XSL stylesheet parameters must be XPath expressions, i.e.:</td>
135 <td align="right" valign="top">
136 <span class="codelink"><a href="lxml.isoschematron-pysrc.html#stylesheet_params">source code</a></span>
145 <td width="15%" align="right" valign="top" class="summary">
146 <span class="summary-type"> </span>
147 </td><td class="summary">
148 <table width="100%" cellpadding="0" cellspacing="0" border="0">
150 <td><span class="summary-sig"><a name="_stylesheet_param_dict"></a><span class="summary-sig-name">_stylesheet_param_dict</span>(<span class="summary-sig-arg">paramsDict</span>,
151 <span class="summary-sig-arg">kwargsDict</span>)</span><br />
152 Return a copy of paramsDict, updated with kwargsDict entries, wrapped as
153 stylesheet arguments.
154 kwargsDict entries with a value of None are ignored.</td>
155 <td align="right" valign="top">
156 <span class="codelink"><a href="lxml.isoschematron-pysrc.html#_stylesheet_param_dict">source code</a></span>
165 <!-- ==================== VARIABLES ==================== -->
166 <a name="section-Variables"></a>
167 <table class="summary" border="1" cellpadding="3"
168 cellspacing="0" width="100%" bgcolor="white">
169 <tr bgcolor="#70b0f0" class="table-header">
170 <td colspan="2" class="table-header">
171 <table border="0" cellpadding="0" cellspacing="0" width="100%">
173 <td align="left"><span class="table-header">Variables</span></td>
174 <td align="right" valign="top"
175 ><span class="options">[<a href="#section-Variables"
176 class="privatelink" onclick="toggle_private();"
177 >hide private</a>]</span></td>
183 <td width="15%" align="right" valign="top" class="summary">
184 <span class="summary-type"> </span>
185 </td><td class="summary">
186 <a name="XML_SCHEMA_NS"></a><span class="summary-name">XML_SCHEMA_NS</span> = <code title="'http://www.w3.org/2001/XMLSchema'"><code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema</code><code class="variable-quote">'</code></code>
190 <td width="15%" align="right" valign="top" class="summary">
191 <span class="summary-type"> </span>
192 </td><td class="summary">
193 <a name="RELAXNG_NS"></a><span class="summary-name">RELAXNG_NS</span> = <code title="'http://relaxng.org/ns/structure/1.0'"><code class="variable-quote">'</code><code class="variable-string">http://relaxng.org/ns/structure/1.0</code><code class="variable-quote">'</code></code>
197 <td width="15%" align="right" valign="top" class="summary">
198 <span class="summary-type"> </span>
199 </td><td class="summary">
200 <a name="SCHEMATRON_NS"></a><span class="summary-name">SCHEMATRON_NS</span> = <code title="'http://purl.oclc.org/dsdl/schematron'"><code class="variable-quote">'</code><code class="variable-string">http://purl.oclc.org/dsdl/schematron</code><code class="variable-quote">'</code></code>
204 <td width="15%" align="right" valign="top" class="summary">
205 <span class="summary-type"> </span>
206 </td><td class="summary">
207 <a name="SVRL_NS"></a><span class="summary-name">SVRL_NS</span> = <code title="'http://purl.oclc.org/dsdl/svrl'"><code class="variable-quote">'</code><code class="variable-string">http://purl.oclc.org/dsdl/svrl</code><code class="variable-quote">'</code></code>
211 <td width="15%" align="right" valign="top" class="summary">
212 <span class="summary-type"> </span>
213 </td><td class="summary">
214 <a name="_schematron_root"></a><span class="summary-name">_schematron_root</span> = <code title="'{http://purl.oclc.org/dsdl/schematron}schema'"><code class="variable-quote">'</code><code class="variable-string">{http://purl.oclc.org/dsdl/schematron}schema</code><code class="variable-quote">'</code></code>
218 <td width="15%" align="right" valign="top" class="summary">
219 <span class="summary-type"> </span>
220 </td><td class="summary">
221 <a name="_xml_schema_root"></a><span class="summary-name">_xml_schema_root</span> = <code title="'{http://www.w3.org/2001/XMLSchema}schema'"><code class="variable-quote">'</code><code class="variable-string">{http://www.w3.org/2001/XMLSchema}schema</code><code class="variable-quote">'</code></code>
225 <td width="15%" align="right" valign="top" class="summary">
226 <span class="summary-type"> </span>
227 </td><td class="summary">
228 <a href="lxml.isoschematron-module.html#_resources_dir" class="summary-name" onclick="show_private();">_resources_dir</a> = <code title="'/home/stefan/source/Python/lxml/lxml-release/src/lxml/isoschematron/r\
229 esources'"><code class="variable-quote">'</code><code class="variable-string">/home/stefan/source/Python/lxml/lxml-release</code><code class="variable-ellipsis">...</code></code>
233 <td width="15%" align="right" valign="top" class="summary">
234 <span class="summary-type"> </span>
235 </td><td class="summary">
236 <a name="extract_xsd"></a><span class="summary-name">extract_xsd</span> = <code title="<lxml.etree.XSLT object>"><lxml.etree.XSLT object></code>
240 <td width="15%" align="right" valign="top" class="summary">
241 <span class="summary-type"> </span>
242 </td><td class="summary">
243 <a name="extract_rng"></a><span class="summary-name">extract_rng</span> = <code title="<lxml.etree.XSLT object>"><lxml.etree.XSLT object></code>
247 <td width="15%" align="right" valign="top" class="summary">
248 <span class="summary-type"> </span>
249 </td><td class="summary">
250 <a name="iso_dsdl_include"></a><span class="summary-name">iso_dsdl_include</span> = <code title="<lxml.etree.XSLT object>"><lxml.etree.XSLT object></code>
254 <td width="15%" align="right" valign="top" class="summary">
255 <span class="summary-type"> </span>
256 </td><td class="summary">
257 <a name="iso_abstract_expand"></a><span class="summary-name">iso_abstract_expand</span> = <code title="<lxml.etree.XSLT object>"><lxml.etree.XSLT object></code>
261 <td width="15%" align="right" valign="top" class="summary">
262 <span class="summary-type"> </span>
263 </td><td class="summary">
264 <a name="iso_svrl_for_xslt1"></a><span class="summary-name">iso_svrl_for_xslt1</span> = <code title="<lxml.etree.XSLT object>"><lxml.etree.XSLT object></code>
268 <td width="15%" align="right" valign="top" class="summary">
269 <span class="summary-type"> </span>
270 </td><td class="summary">
271 <a name="svrl_validation_errors"></a><span class="summary-name">svrl_validation_errors</span> = <code title="//svrl:failed-assert">//svrl:failed-assert</code>
275 <td width="15%" align="right" valign="top" class="summary">
276 <span class="summary-type"> </span>
277 </td><td class="summary">
278 <a name="schematron_schema_valid"></a><span class="summary-name">schematron_schema_valid</span> = <code title="<lxml.etree.RelaxNG object>"><lxml.etree.RelaxNG object></code>
282 <td width="15%" align="right" valign="top" class="summary">
283 <span class="summary-type"> </span>
284 </td><td class="summary">
285 <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'lxml.isoschematron'"><code class="variable-quote">'</code><code class="variable-string">lxml.isoschematron</code><code class="variable-quote">'</code></code>
289 <!-- ==================== FUNCTION DETAILS ==================== -->
290 <a name="section-FunctionDetails"></a>
291 <table class="details" border="1" cellpadding="3"
292 cellspacing="0" width="100%" bgcolor="white">
293 <tr bgcolor="#70b0f0" class="table-header">
294 <td colspan="2" class="table-header">
295 <table border="0" cellpadding="0" cellspacing="0" width="100%">
297 <td align="left"><span class="table-header">Function Details</span></td>
298 <td align="right" valign="top"
299 ><span class="options">[<a href="#section-FunctionDetails"
300 class="privatelink" onclick="toggle_private();"
301 >hide private</a>]</span></td>
307 <a name="stylesheet_params"></a>
309 <table class="details" border="1" cellpadding="3"
310 cellspacing="0" width="100%" bgcolor="white">
312 <table width="100%" cellpadding="0" cellspacing="0" border="0">
313 <tr valign="top"><td>
314 <h3 class="epydoc"><span class="sig"><span class="sig-name">stylesheet_params</span>(<span class="sig-arg">**kwargs</span>)</span>
316 </td><td align="right" valign="top"
317 ><span class="codelink"><a href="lxml.isoschematron-pysrc.html#stylesheet_params">source code</a></span>
321 <p>Convert keyword args to a dictionary of stylesheet parameters.
322 XSL stylesheet parameters must be XPath expressions, i.e.:</p>
323 <ul class="rst-simple">
324 <li>string expressions, like "'5'"</li>
325 <li>simple (number) expressions, like "5"</li>
326 <li>valid XPath expressions, like "/a/b/text()"</li>
328 <p>This function converts native Python keyword arguments to stylesheet
329 parameters following these rules:
330 If an arg is a string wrap it with XSLT.strparam().
331 If an arg is an XPath object use its path string.
332 If arg is None raise TypeError.
333 Else convert arg to string.</p>
339 <!-- ==================== VARIABLES DETAILS ==================== -->
340 <a name="section-VariablesDetails"></a>
341 <table class="details" border="1" cellpadding="3"
342 cellspacing="0" width="100%" bgcolor="white">
343 <tr bgcolor="#70b0f0" class="table-header">
344 <td colspan="2" class="table-header">
345 <table border="0" cellpadding="0" cellspacing="0" width="100%">
347 <td align="left"><span class="table-header">Variables Details</span></td>
348 <td align="right" valign="top"
349 ><span class="options">[<a href="#section-VariablesDetails"
350 class="privatelink" onclick="toggle_private();"
351 >hide private</a>]</span></td>
357 <a name="_resources_dir"></a>
358 <div class="private">
359 <table class="details" border="1" cellpadding="3"
360 cellspacing="0" width="100%" bgcolor="white">
362 <h3 class="epydoc">_resources_dir</h3>
368 <dd><table><tr><td><pre class="variable">
369 <code class="variable-quote">'</code><code class="variable-string">/home/stefan/source/Python/lxml/lxml-release/src/lxml/isoschematron/r</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
370 <code class="variable-string">esources</code><code class="variable-quote">'</code>
371 </pre></td></tr></table>
377 <!-- ==================== NAVIGATION BAR ==================== -->
378 <table class="navbar" border="0" width="100%" cellpadding="0"
379 bgcolor="#a0c0ff" cellspacing="0">
382 <th> <a
383 href="lxml-module.html">Home</a> </th>
386 <th> <a
387 href="module-tree.html">Trees</a> </th>
390 <th> <a
391 href="identifier-index.html">Indices</a> </th>
394 <th> <a
395 href="help.html">Help</a> </th>
397 <!-- Project homepage -->
398 <th class="navbar" align="right" width="100%">
399 <table border="0" cellpadding="0" cellspacing="0">
400 <tr><th class="navbar" align="center"
401 ><a class="navbar" target="_top" href="/">lxml API</a></th>
405 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
407 <td align="left" class="footer">
408 Generated by Epydoc 3.0.1
409 on Thu Jul 9 18:29:53 2020
411 <td align="right" class="footer">
412 <a target="mainFrame" href="http://epydoc.sourceforge.net"
413 >http://epydoc.sourceforge.net</a>
418 <script type="text/javascript">
420 // Private objects are initially displayed (because if
421 // javascript is turned off then we want them to be
422 // visible); but by default, we want to hide them. So hide
423 // them unless we have a cookie that says to show them.