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.etree._XSLTProcessingInstruction</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 <a href="lxml.etree-module.html">Module etree</a> ::
47 Class _XSLTProcessingInstruction
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.etree._XSLTProcessingInstruction-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class _XSLTProcessingInstruction</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <a href="lxml.etree._Element-class.html" onclick="show_private();">_Element</a> --+
70 ??.__ContentOnlyElement --+
72 <a href="lxml.etree._ProcessingInstruction-class.html" onclick="show_private();">_ProcessingInstruction</a> --+
74 <a href="lxml.etree.PIBase-class.html">PIBase</a> --+
76 <strong class="uidshort">_XSLTProcessingInstruction</strong>
80 <!-- ==================== INSTANCE METHODS ==================== -->
81 <a name="section-InstanceMethods"></a>
82 <table class="summary" border="1" cellpadding="3"
83 cellspacing="0" width="100%" bgcolor="white">
84 <tr bgcolor="#70b0f0" class="table-header">
85 <td colspan="2" class="table-header">
86 <table border="0" cellpadding="0" cellspacing="0" width="100%">
88 <td align="left"><span class="table-header">Instance Methods</span></td>
89 <td align="right" valign="top"
90 ><span class="options">[<a href="#section-InstanceMethods"
91 class="privatelink" onclick="toggle_private();"
92 >hide private</a>]</span></td>
98 <td width="15%" align="right" valign="top" class="summary">
99 <span class="summary-type">a new object with type S, a subtype of T</span>
100 </td><td class="summary">
101 <table width="100%" cellpadding="0" cellspacing="0" border="0">
103 <td><span class="summary-sig"><a href="lxml.etree._XSLTProcessingInstruction-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
104 <span class="summary-sig-arg">S</span>,
105 <span class="summary-sig-arg">...</span>)</span></td>
106 <td align="right" valign="top">
116 <td width="15%" align="right" valign="top" class="summary">
117 <span class="summary-type"> </span>
118 </td><td class="summary">
119 <table width="100%" cellpadding="0" cellspacing="0" border="0">
121 <td><span class="summary-sig"><a href="lxml.etree._XSLTProcessingInstruction-class.html#parseXSL" class="summary-sig-name">parseXSL</a>(<span class="summary-sig-arg">self</span>,
122 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span><br />
123 Try to parse the stylesheet referenced by this PI and return
124 an ElementTree for it. If the stylesheet is embedded in the
125 same document (referenced via xml:id), find and return an
126 ElementTree for the stylesheet Element.</td>
127 <td align="right" valign="top">
137 <td width="15%" align="right" valign="top" class="summary">
138 <span class="summary-type"> </span>
139 </td><td class="summary">
140 <table width="100%" cellpadding="0" cellspacing="0" border="0">
142 <td><span class="summary-sig"><a href="lxml.etree._XSLTProcessingInstruction-class.html#set" class="summary-sig-name">set</a>(<span class="summary-sig-arg">self</span>,
143 <span class="summary-sig-arg">key</span>,
144 <span class="summary-sig-arg">value</span>)</span><br />
145 Supports setting the 'href' pseudo-attribute in the text of
146 the processing instruction.</td>
147 <td align="right" valign="top">
157 <td colspan="2" class="summary">
158 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree.PIBase-class.html">PIBase</a></code></b>:
159 <code><a href="lxml.etree.PIBase-class.html#__init__">__init__</a></code>
161 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ProcessingInstruction-class.html" onclick="show_private();">_ProcessingInstruction</a></code></b>:
162 <code><a href="lxml.etree._ProcessingInstruction-class.html#__repr__">__repr__</a></code>,
163 <code><a href="lxml.etree._ProcessingInstruction-class.html#get">get</a></code>
165 <p class="indent-wrapped-lines"><b>Inherited from <code><i>unreachable</i>.__ContentOnlyElement</code></b>:
166 <code>__delitem__</code>,
167 <code>__getitem__</code>,
168 <code>__len__</code>,
169 <code>__setitem__</code>,
176 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">_Element</a></code></b>:
177 <code><a href="lxml.etree._Element-class.html#__contains__">__contains__</a></code>,
178 <code><a href="lxml.etree._Element-class.html#__copy__">__copy__</a></code>,
179 <code><a href="lxml.etree._Element-class.html#__deepcopy__">__deepcopy__</a></code>,
180 <code><a href="lxml.etree._Element-class.html#__iter__">__iter__</a></code>,
181 <code><a href="lxml.etree._Element-class.html#__nonzero__">__nonzero__</a></code>,
182 <code><a href="lxml.etree._Element-class.html#__reversed__">__reversed__</a></code>,
183 <code><a href="lxml.etree._Element-class.html#addnext">addnext</a></code>,
184 <code><a href="lxml.etree._Element-class.html#addprevious">addprevious</a></code>,
185 <code><a href="lxml.etree._Element-class.html#clear">clear</a></code>,
186 <code><a href="lxml.etree._Element-class.html#cssselect">cssselect</a></code>,
187 <code><a href="lxml.etree._Element-class.html#extend">extend</a></code>,
188 <code><a href="lxml.etree._Element-class.html#find">find</a></code>,
189 <code><a href="lxml.etree._Element-class.html#findall">findall</a></code>,
190 <code><a href="lxml.etree._Element-class.html#findtext">findtext</a></code>,
191 <code><a href="lxml.etree._Element-class.html#getchildren">getchildren</a></code>,
192 <code><a href="lxml.etree._Element-class.html#getiterator">getiterator</a></code>,
193 <code><a href="lxml.etree._Element-class.html#getnext">getnext</a></code>,
194 <code><a href="lxml.etree._Element-class.html#getparent">getparent</a></code>,
195 <code><a href="lxml.etree._Element-class.html#getprevious">getprevious</a></code>,
196 <code><a href="lxml.etree._Element-class.html#getroottree">getroottree</a></code>,
197 <code><a href="lxml.etree._Element-class.html#index">index</a></code>,
198 <code><a href="lxml.etree._Element-class.html#iter">iter</a></code>,
199 <code><a href="lxml.etree._Element-class.html#iterancestors">iterancestors</a></code>,
200 <code><a href="lxml.etree._Element-class.html#iterchildren">iterchildren</a></code>,
201 <code><a href="lxml.etree._Element-class.html#iterdescendants">iterdescendants</a></code>,
202 <code><a href="lxml.etree._Element-class.html#iterfind">iterfind</a></code>,
203 <code><a href="lxml.etree._Element-class.html#itersiblings">itersiblings</a></code>,
204 <code><a href="lxml.etree._Element-class.html#itertext">itertext</a></code>,
205 <code><a href="lxml.etree._Element-class.html#makeelement">makeelement</a></code>,
206 <code><a href="lxml.etree._Element-class.html#remove">remove</a></code>,
207 <code><a href="lxml.etree._Element-class.html#replace">replace</a></code>,
208 <code><a href="lxml.etree._Element-class.html#xpath">xpath</a></code>
210 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">_Element</a></code></b> (private):
211 <code><a href="lxml.etree._Element-class.html#_init" onclick="show_private();">_init</a></code>
213 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
214 <code>__delattr__</code>,
215 <code>__format__</code>,
216 <code>__getattribute__</code>,
217 <code>__hash__</code>,
218 <code>__reduce__</code>,
219 <code>__reduce_ex__</code>,
220 <code>__setattr__</code>,
221 <code>__sizeof__</code>,
222 <code>__str__</code>,
223 <code>__subclasshook__</code>
228 <!-- ==================== PROPERTIES ==================== -->
229 <a name="section-Properties"></a>
230 <table class="summary" border="1" cellpadding="3"
231 cellspacing="0" width="100%" bgcolor="white">
232 <tr bgcolor="#70b0f0" class="table-header">
233 <td colspan="2" class="table-header">
234 <table border="0" cellpadding="0" cellspacing="0" width="100%">
236 <td align="left"><span class="table-header">Properties</span></td>
237 <td align="right" valign="top"
238 ><span class="options">[<a href="#section-Properties"
239 class="privatelink" onclick="toggle_private();"
240 >hide private</a>]</span></td>
246 <td colspan="2" class="summary">
247 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ProcessingInstruction-class.html" onclick="show_private();">_ProcessingInstruction</a></code></b>:
248 <code><a href="lxml.etree._ProcessingInstruction-class.html#attrib">attrib</a></code>,
249 <code><a href="lxml.etree._ProcessingInstruction-class.html#tag">tag</a></code>,
250 <code><a href="lxml.etree._ProcessingInstruction-class.html#target">target</a></code>
252 <p class="indent-wrapped-lines"><b>Inherited from <code><i>unreachable</i>.__ContentOnlyElement</code></b>:
255 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">_Element</a></code></b>:
256 <code><a href="lxml.etree._Element-class.html#base">base</a></code>,
257 <code><a href="lxml.etree._Element-class.html#nsmap">nsmap</a></code>,
258 <code><a href="lxml.etree._Element-class.html#prefix">prefix</a></code>,
259 <code><a href="lxml.etree._Element-class.html#sourceline">sourceline</a></code>,
260 <code><a href="lxml.etree._Element-class.html#tail">tail</a></code>
262 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
263 <code>__class__</code>
268 <!-- ==================== METHOD DETAILS ==================== -->
269 <a name="section-MethodDetails"></a>
270 <table class="details" border="1" cellpadding="3"
271 cellspacing="0" width="100%" bgcolor="white">
272 <tr bgcolor="#70b0f0" class="table-header">
273 <td colspan="2" class="table-header">
274 <table border="0" cellpadding="0" cellspacing="0" width="100%">
276 <td align="left"><span class="table-header">Method Details</span></td>
277 <td align="right" valign="top"
278 ><span class="options">[<a href="#section-MethodDetails"
279 class="privatelink" onclick="toggle_private();"
280 >hide private</a>]</span></td>
286 <a name="__new__"></a>
288 <table class="details" border="1" cellpadding="3"
289 cellspacing="0" width="100%" bgcolor="white">
291 <table width="100%" cellpadding="0" cellspacing="0" border="0">
292 <tr valign="top"><td>
293 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
294 <span class="sig-arg">S</span>,
295 <span class="sig-arg">...</span>)</span>
297 </td><td align="right" valign="top"
304 <dt>Returns: a new object with type S, a subtype of T</dt>
311 <a name="parseXSL"></a>
313 <table class="details" border="1" cellpadding="3"
314 cellspacing="0" width="100%" bgcolor="white">
316 <table width="100%" cellpadding="0" cellspacing="0" border="0">
317 <tr valign="top"><td>
318 <h3 class="epydoc"><span class="sig"><span class="sig-name">parseXSL</span>(<span class="sig-arg">self</span>,
319 <span class="sig-arg">parser</span>=<span class="sig-default">None</span>)</span>
321 </td><td align="right" valign="top"
326 <p>Try to parse the stylesheet referenced by this PI and return
327 an ElementTree for it. If the stylesheet is embedded in the
328 same document (referenced via xml:id), find and return an
329 ElementTree for the stylesheet Element.</p>
330 <p>The optional <tt class="rst-docutils literal">parser</tt> keyword argument can be passed to specify the
331 parser used to read from external stylesheet URLs.</p>
338 <table class="details" border="1" cellpadding="3"
339 cellspacing="0" width="100%" bgcolor="white">
341 <table width="100%" cellpadding="0" cellspacing="0" border="0">
342 <tr valign="top"><td>
343 <h3 class="epydoc"><span class="sig"><span class="sig-name">set</span>(<span class="sig-arg">self</span>,
344 <span class="sig-arg">key</span>,
345 <span class="sig-arg">value</span>)</span>
347 </td><td align="right" valign="top"
352 Supports setting the 'href' pseudo-attribute in the text of
353 the processing instruction.
356 <a href="lxml.etree._Element-class.html#set">_Element.set</a>
362 <!-- ==================== NAVIGATION BAR ==================== -->
363 <table class="navbar" border="0" width="100%" cellpadding="0"
364 bgcolor="#a0c0ff" cellspacing="0">
367 <th> <a
368 href="lxml-module.html">Home</a> </th>
371 <th> <a
372 href="module-tree.html">Trees</a> </th>
375 <th> <a
376 href="identifier-index.html">Indices</a> </th>
379 <th> <a
380 href="help.html">Help</a> </th>
382 <!-- Project homepage -->
383 <th class="navbar" align="right" width="100%">
384 <table border="0" cellpadding="0" cellspacing="0">
385 <tr><th class="navbar" align="center"
386 ><a class="navbar" target="_top" href="/">lxml API</a></th>
390 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
392 <td align="left" class="footer">
393 Generated by Epydoc 3.0.1
394 on Wed Jan 29 12:26:21 2020
396 <td align="right" class="footer">
397 <a target="mainFrame" href="http://epydoc.sourceforge.net"
398 >http://epydoc.sourceforge.net</a>
403 <script type="text/javascript">
405 // Private objects are initially displayed (because if
406 // javascript is turned off then we want them to be
407 // visible); but by default, we want to hide them. So hide
408 // them unless we have a cookie that says to show them.