[Lxml-checkins] r51455 - in lxml/trunk: . src/lxml
scoder at codespeak.net
scoder at codespeak.net
Wed Feb 13 21:48:53 CET 2008
Author: scoder
Date: Wed Feb 13 21:48:52 2008
New Revision: 51455
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/parser.pxi
lxml/trunk/src/lxml/xslt.pxi
Log:
r3466 at delle: sbehnel | 2008-02-13 17:22:23 +0100
rst doc fixes
Modified: lxml/trunk/src/lxml/parser.pxi
==============================================================================
--- lxml/trunk/src/lxml/parser.pxi (original)
+++ lxml/trunk/src/lxml/parser.pxi Wed Feb 13 21:48:52 2008
@@ -1473,22 +1473,24 @@
attribute default values are requested.
Available boolean keyword arguments:
- - attribute_defaults - read default attributes from DTD
- - dtd_validation - validate (if DTD is available)
- - load_dtd - use DTD for parsing
- - no_network - prevent network access for related files (default: True)
- - ns_clean - clean up redundant namespace declarations
- - recover - try hard to parse through broken XML
- - remove_blank_text - discard blank text nodes
- - remove_comments - discard comments
- - remove_pis - discard processing instructions
- - compact - safe memory for short text content (default: True)
- - resolve_entities - replace entities by their text value (default: True)
+
+ - attribute_defaults - read default attributes from DTD
+ - dtd_validation - validate (if DTD is available)
+ - load_dtd - use DTD for parsing
+ - no_network - prevent network access for related files (default: True)
+ - ns_clean - clean up redundant namespace declarations
+ - recover - try hard to parse through broken XML
+ - remove_blank_text - discard blank text nodes
+ - remove_comments - discard comments
+ - remove_pis - discard processing instructions
+ - compact - safe memory for short text content (default: True)
+ - resolve_entities - replace entities by their text value (default: True)
Other keyword arguments:
- - encoding - override the document encoding
- - target - a parser target object that will receive the parse events
- - schema - an XMLSchema to validate against
+
+ - encoding - override the document encoding
+ - target - a parser target object that will receive the parse events
+ - schema - an XMLSchema to validate against
Note that you should avoid sharing parsers between threads. While this is
not harmful, it is more efficient to use separate parsers. This does not
@@ -1612,17 +1614,19 @@
this off.
Available boolean keyword arguments:
- - recover - try hard to parse through broken HTML (default: True)
- - no_network - prevent network access for related files (default: True)
- - remove_blank_text - discard empty text nodes
- - remove_comments - discard comments
- - remove_pis - discard processing instructions
- - compact - safe memory for short text content (default: True)
+
+ - recover - try hard to parse through broken HTML (default: True)
+ - no_network - prevent network access for related files (default: True)
+ - remove_blank_text - discard empty text nodes
+ - remove_comments - discard comments
+ - remove_pis - discard processing instructions
+ - compact - safe memory for short text content (default: True)
Other keyword arguments:
- - encoding - override the document encoding
- - target - a parser target object that will receive the parse events
- - schema - an XMLSchema to validate against
+
+ - encoding - override the document encoding
+ - target - a parser target object that will receive the parse events
+ - schema - an XMLSchema to validate against
Note that you should avoid sharing parsers between threads for performance
reasons.
Modified: lxml/trunk/src/lxml/xslt.pxi
==============================================================================
--- lxml/trunk/src/lxml/xslt.pxi (original)
+++ lxml/trunk/src/lxml/xslt.pxi Wed Feb 13 21:48:52 2008
@@ -174,11 +174,13 @@
passing any of the following boolean keyword arguments. All of
them default to True to allow access.
- - read_file
- - write_file
- - create_dir
- - read_network
- - write_network
+ - read_file
+ - write_file
+ - create_dir
+ - read_network
+ - write_network
+
+ See `XSLT`.
"""
cdef xslt.xsltSecurityPrefs* _prefs
def __init__(self, *, read_file=True, write_file=True, create_dir=True,
@@ -264,15 +266,18 @@
>>> result = transform(xml_tree)
Keyword arguments of the constructor:
- - regexp: enable exslt regular expression support in XPath
- (default: True)
- - access_control: access restrictions for network or file
- system (see `XSLTAccessControl`)
+
+ - regexp: enable exslt regular expression support in XPath
+ (default: True)
+ - access_control: access restrictions for network or file
+ system (see `XSLTAccessControl`)
Keyword arguments of the XSLT call:
- - profile_run: enable XSLT profiling (default: False)
- Other keyword arguments of the call are passed to the stylesheet.
+ - profile_run: enable XSLT profiling (default: False)
+
+ Other keyword arguments of the call are passed to the stylesheet
+ as parameters.
"""
cdef _XSLTContext _context
cdef xslt.xsltStylesheet* _c_style
More information about the lxml-checkins
mailing list