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 <a href="lxml.etree.__ContentOnlyElement-class.html" onclick="show_private();">__ContentOnlyElement</a> --+
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><a href="lxml.etree.__ContentOnlyElement-class.html" onclick="show_private();">__ContentOnlyElement</a></code></b>:
166 <code><a href="lxml.etree.__ContentOnlyElement-class.html#__delitem__">__delitem__</a></code>,
167 <code><a href="lxml.etree.__ContentOnlyElement-class.html#__getitem__">__getitem__</a></code>,
168 <code><a href="lxml.etree.__ContentOnlyElement-class.html#__len__">__len__</a></code>,
169 <code><a href="lxml.etree.__ContentOnlyElement-class.html#__setitem__">__setitem__</a></code>,
170 <code><a href="lxml.etree.__ContentOnlyElement-class.html#append">append</a></code>,
171 <code><a href="lxml.etree.__ContentOnlyElement-class.html#insert">insert</a></code>,
172 <code><a href="lxml.etree.__ContentOnlyElement-class.html#items">items</a></code>,
173 <code><a href="lxml.etree.__ContentOnlyElement-class.html#keys">keys</a></code>,
174 <code><a href="lxml.etree.__ContentOnlyElement-class.html#values">values</a></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#extend">extend</a></code>,
187 <code><a href="lxml.etree._Element-class.html#find">find</a></code>,
188 <code><a href="lxml.etree._Element-class.html#findall">findall</a></code>,
189 <code><a href="lxml.etree._Element-class.html#findtext">findtext</a></code>,
190 <code><a href="lxml.etree._Element-class.html#getchildren">getchildren</a></code>,
191 <code><a href="lxml.etree._Element-class.html#getiterator">getiterator</a></code>,
192 <code><a href="lxml.etree._Element-class.html#getnext">getnext</a></code>,
193 <code><a href="lxml.etree._Element-class.html#getparent">getparent</a></code>,
194 <code><a href="lxml.etree._Element-class.html#getprevious">getprevious</a></code>,
195 <code><a href="lxml.etree._Element-class.html#getroottree">getroottree</a></code>,
196 <code><a href="lxml.etree._Element-class.html#index">index</a></code>,
197 <code><a href="lxml.etree._Element-class.html#iter">iter</a></code>,
198 <code><a href="lxml.etree._Element-class.html#iterancestors">iterancestors</a></code>,
199 <code><a href="lxml.etree._Element-class.html#iterchildren">iterchildren</a></code>,
200 <code><a href="lxml.etree._Element-class.html#iterdescendants">iterdescendants</a></code>,
201 <code><a href="lxml.etree._Element-class.html#iterfind">iterfind</a></code>,
202 <code><a href="lxml.etree._Element-class.html#itersiblings">itersiblings</a></code>,
203 <code><a href="lxml.etree._Element-class.html#itertext">itertext</a></code>,
204 <code><a href="lxml.etree._Element-class.html#makeelement">makeelement</a></code>,
205 <code><a href="lxml.etree._Element-class.html#remove">remove</a></code>,
206 <code><a href="lxml.etree._Element-class.html#replace">replace</a></code>,
207 <code><a href="lxml.etree._Element-class.html#xpath">xpath</a></code>
209 <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):
210 <code><a href="lxml.etree._Element-class.html#_init" onclick="show_private();">_init</a></code>
212 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
213 <code>__delattr__</code>,
214 <code>__format__</code>,
215 <code>__getattribute__</code>,
216 <code>__hash__</code>,
217 <code>__reduce__</code>,
218 <code>__reduce_ex__</code>,
219 <code>__setattr__</code>,
220 <code>__sizeof__</code>,
221 <code>__str__</code>,
222 <code>__subclasshook__</code>
227 <!-- ==================== PROPERTIES ==================== -->
228 <a name="section-Properties"></a>
229 <table class="summary" border="1" cellpadding="3"
230 cellspacing="0" width="100%" bgcolor="white">
231 <tr bgcolor="#70b0f0" class="table-header">
232 <td colspan="2" class="table-header">
233 <table border="0" cellpadding="0" cellspacing="0" width="100%">
235 <td align="left"><span class="table-header">Properties</span></td>
236 <td align="right" valign="top"
237 ><span class="options">[<a href="#section-Properties"
238 class="privatelink" onclick="toggle_private();"
239 >hide private</a>]</span></td>
245 <td colspan="2" class="summary">
246 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ProcessingInstruction-class.html" onclick="show_private();">_ProcessingInstruction</a></code></b>:
247 <code><a href="lxml.etree._ProcessingInstruction-class.html#attrib">attrib</a></code>,
248 <code><a href="lxml.etree._ProcessingInstruction-class.html#tag">tag</a></code>,
249 <code><a href="lxml.etree._ProcessingInstruction-class.html#target">target</a></code>
251 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree.__ContentOnlyElement-class.html" onclick="show_private();">__ContentOnlyElement</a></code></b>:
252 <code><a href="lxml.etree.__ContentOnlyElement-class.html#text">text</a></code>
254 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">_Element</a></code></b>:
255 <code><a href="lxml.etree._Element-class.html#base">base</a></code>,
256 <code><a href="lxml.etree._Element-class.html#nsmap">nsmap</a></code>,
257 <code><a href="lxml.etree._Element-class.html#prefix">prefix</a></code>,
258 <code><a href="lxml.etree._Element-class.html#sourceline">sourceline</a></code>,
259 <code><a href="lxml.etree._Element-class.html#tail">tail</a></code>
261 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
262 <code>__class__</code>
267 <!-- ==================== METHOD DETAILS ==================== -->
268 <a name="section-MethodDetails"></a>
269 <table class="details" border="1" cellpadding="3"
270 cellspacing="0" width="100%" bgcolor="white">
271 <tr bgcolor="#70b0f0" class="table-header">
272 <td colspan="2" class="table-header">
273 <table border="0" cellpadding="0" cellspacing="0" width="100%">
275 <td align="left"><span class="table-header">Method Details</span></td>
276 <td align="right" valign="top"
277 ><span class="options">[<a href="#section-MethodDetails"
278 class="privatelink" onclick="toggle_private();"
279 >hide private</a>]</span></td>
285 <a name="__new__"></a>
287 <table class="details" border="1" cellpadding="3"
288 cellspacing="0" width="100%" bgcolor="white">
290 <table width="100%" cellpadding="0" cellspacing="0" border="0">
291 <tr valign="top"><td>
292 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
293 <span class="sig-arg">S</span>,
294 <span class="sig-arg">...</span>)</span>
296 </td><td align="right" valign="top"
303 <dt>Returns: a new object with type S, a subtype of T</dt>
310 <a name="parseXSL"></a>
312 <table class="details" border="1" cellpadding="3"
313 cellspacing="0" width="100%" bgcolor="white">
315 <table width="100%" cellpadding="0" cellspacing="0" border="0">
316 <tr valign="top"><td>
317 <h3 class="epydoc"><span class="sig"><span class="sig-name">parseXSL</span>(<span class="sig-arg">self</span>,
318 <span class="sig-arg">parser</span>=<span class="sig-default">None</span>)</span>
320 </td><td align="right" valign="top"
325 <p>Try to parse the stylesheet referenced by this PI and return
326 an ElementTree for it. If the stylesheet is embedded in the
327 same document (referenced via xml:id), find and return an
328 ElementTree for the stylesheet Element.</p>
329 <p>The optional <tt class="rst-docutils literal">parser</tt> keyword argument can be passed to specify the
330 parser used to read from external stylesheet URLs.</p>
337 <table class="details" border="1" cellpadding="3"
338 cellspacing="0" width="100%" bgcolor="white">
340 <table width="100%" cellpadding="0" cellspacing="0" border="0">
341 <tr valign="top"><td>
342 <h3 class="epydoc"><span class="sig"><span class="sig-name">set</span>(<span class="sig-arg">self</span>,
343 <span class="sig-arg">key</span>,
344 <span class="sig-arg">value</span>)</span>
346 </td><td align="right" valign="top"
351 Supports setting the 'href' pseudo-attribute in the text of
352 the processing instruction.
355 <a href="lxml.etree._Element-class.html#set">_Element.set</a>
361 <!-- ==================== NAVIGATION BAR ==================== -->
362 <table class="navbar" border="0" width="100%" cellpadding="0"
363 bgcolor="#a0c0ff" cellspacing="0">
366 <th> <a
367 href="lxml-module.html">Home</a> </th>
370 <th> <a
371 href="module-tree.html">Trees</a> </th>
374 <th> <a
375 href="identifier-index.html">Indices</a> </th>
378 <th> <a
379 href="help.html">Help</a> </th>
381 <!-- Project homepage -->
382 <th class="navbar" align="right" width="100%">
383 <table border="0" cellpadding="0" cellspacing="0">
384 <tr><th class="navbar" align="center"
385 ><a class="navbar" target="_top" href="/">lxml API</a></th>
389 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
391 <td align="left" class="footer">
392 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:19 2012
394 <td align="right" class="footer">
395 <a target="mainFrame" href="http://epydoc.sourceforge.net"
396 >http://epydoc.sourceforge.net</a>
401 <script type="text/javascript">
403 // Private objects are initially displayed (because if
404 // javascript is turned off then we want them to be
405 // visible); but by default, we want to hide them. So hide
406 // them unless we have a cookie that says to show them.