Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/xml.sax.handler.rst

    r2 r391  
    5353.. data:: feature_namespaces
    5454
    55    Value: ``"http://xml.org/sax/features/namespaces"`` ---  true: Perform Namespace
    56    processing. ---  false: Optionally do not perform Namespace processing (implies
    57    namespace-prefixes; default). ---  access: (parsing) read-only; (not parsing)
    58    read/write
     55   | value: ``"http://xml.org/sax/features/namespaces"``
     56   | true: Perform Namespace processing.
     57   | false: Optionally do not perform Namespace processing (implies
     58     namespace-prefixes; default).
     59   | access: (parsing) read-only; (not parsing) read/write
    5960
    6061
    6162.. data:: feature_namespace_prefixes
    6263
    63    Value: ``"http://xml.org/sax/features/namespace-prefixes"`` --- true: Report
    64    the original prefixed names and attributes used for Namespace
    65    declarations. --- false: Do not report attributes used for Namespace
    66    declarations, and optionally do not report original prefixed names
    67    (default). --- access: (parsing) read-only; (not parsing) read/write
     64   | value: ``"http://xml.org/sax/features/namespace-prefixes"``
     65   | true: Report the original prefixed names and attributes used for Namespace
     66     declarations.
     67   | false: Do not report attributes used for Namespace declarations, and
     68     optionally do not report original prefixed names (default).
     69   | access: (parsing) read-only; (not parsing) read/write
    6870
    6971
    7072.. data:: feature_string_interning
    7173
    72    Value: ``"http://xml.org/sax/features/string-interning"`` ---  true: All element
    73    names, prefixes, attribute names, Namespace URIs, and local names are interned
    74    using the built-in intern function. ---  false: Names are not necessarily
    75    interned, although they may be (default). ---  access: (parsing) read-only; (not
    76    parsing) read/write
     74   | value: ``"http://xml.org/sax/features/string-interning"``
     75   | true: All element names, prefixes, attribute names, Namespace URIs, and
     76     local names are interned using the built-in intern function.
     77   | false: Names are not necessarily interned, although they may be (default).
     78   | access: (parsing) read-only; (not parsing) read/write
    7779
    7880
    7981.. data:: feature_validation
    8082
    81    Value: ``"http://xml.org/sax/features/validation"`` --- true: Report all
    82    validation errors (implies external-general-entities and
    83    external-parameter-entities). --- false: Do not report validation errors. ---
    84    access: (parsing) read-only; (not parsing) read/write
     83   | value: ``"http://xml.org/sax/features/validation"``
     84   | true: Report all validation errors (implies external-general-entities and
     85     external-parameter-entities).
     86   | false: Do not report validation errors.
     87   | access: (parsing) read-only; (not parsing) read/write
    8588
    8689
    8790.. data:: feature_external_ges
    8891
    89    Value: ``"http://xml.org/sax/features/external-general-entities"`` ---  true:
    90    Include all external general (text) entities. ---  false: Do not include
    91    external general entities. ---  access: (parsing) read-only; (not parsing)
    92    read/write
     92   | value: ``"http://xml.org/sax/features/external-general-entities"``
     93   | true: Include all external general (text) entities.
     94   | false: Do not include external general entities.
     95   | access: (parsing) read-only; (not parsing) read/write
    9396
    9497
    9598.. data:: feature_external_pes
    9699
    97    Value: ``"http://xml.org/sax/features/external-parameter-entities"`` ---  true:
    98    Include all external parameter entities, including the external DTD subset. ---
    99    false: Do not include any external parameter entities, even the external DTD
    100    subset. ---  access: (parsing) read-only; (not parsing) read/write
     100   | value: ``"http://xml.org/sax/features/external-parameter-entities"``
     101   | true: Include all external parameter entities, including the external DTD
     102     subset.
     103   | false: Do not include any external parameter entities, even the external
     104     DTD subset.
     105   | access: (parsing) read-only; (not parsing) read/write
    101106
    102107
     
    108113.. data:: property_lexical_handler
    109114
    110    Value: ``"http://xml.org/sax/properties/lexical-handler"`` ---  data type:
    111    xml.sax.sax2lib.LexicalHandler (not supported in Python 2) ---  description: An
    112    optional extension handler for lexical events like comments. ---  access:
    113    read/write
     115   | value: ``"http://xml.org/sax/properties/lexical-handler"``
     116   | data type: xml.sax.sax2lib.LexicalHandler (not supported in Python 2)
     117   | description: An optional extension handler for lexical events like
     118     comments.
     119   | access: read/write
    114120
    115121
    116122.. data:: property_declaration_handler
    117123
    118    Value: ``"http://xml.org/sax/properties/declaration-handler"`` ---  data type:
    119    xml.sax.sax2lib.DeclHandler (not supported in Python 2) ---  description: An
    120    optional extension handler for DTD-related events other than notations and
    121    unparsed entities. ---  access: read/write
     124   | value: ``"http://xml.org/sax/properties/declaration-handler"``
     125   | data type: xml.sax.sax2lib.DeclHandler (not supported in Python 2)
     126   | description: An optional extension handler for DTD-related events other
     127     than notations and unparsed entities.
     128   | access: read/write
    122129
    123130
    124131.. data:: property_dom_node
    125132
    126    Value: ``"http://xml.org/sax/properties/dom-node"`` ---  data type:
    127    org.w3c.dom.Node (not supported in Python 2)  ---  description: When parsing,
    128    the current DOM node being visited if this is a DOM iterator; when not parsing,
    129    the root DOM node for iteration. ---  access: (parsing) read-only; (not parsing)
    130    read/write
     133   | value: ``"http://xml.org/sax/properties/dom-node"``
     134   | data type: org.w3c.dom.Node (not supported in Python 2)
     135   | description: When parsing, the current DOM node being visited if this is
     136     a DOM iterator; when not parsing, the root DOM node for iteration.
     137   | access: (parsing) read-only; (not parsing) read/write
    131138
    132139
    133140.. data:: property_xml_string
    134141
    135    Value: ``"http://xml.org/sax/properties/xml-string"`` ---  data type: String ---
    136    description: The literal string of characters that was the source for the
    137    current event. ---  access: read-only
     142   | value: ``"http://xml.org/sax/properties/xml-string"``
     143   | data type: String
     144   | description: The literal string of characters that was the source for the
     145     current event.
     146   | access: read-only
    138147
    139148
     
    232241
    233242   The *name* parameter contains the raw XML 1.0 name of the element type as a
    234    string and the *attrs* parameter holds an object of the :class:`Attributes`
     243   string and the *attrs* parameter holds an object of the
     244   :class:`~xml.sax.xmlreader.Attributes`
    235245   interface (see :ref:`attributes-objects`) containing the attributes of
    236246   the element.  The object passed as *attrs* may be re-used by the parser; holding
     
    255265   localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in
    256266   the source document, and the *attrs* parameter holds an instance of the
    257    :class:`AttributesNS` interface (see :ref:`attributes-ns-objects`)
     267   :class:`~xml.sax.xmlreader.AttributesNS` interface (see
     268   :ref:`attributes-ns-objects`)
    258269   containing the attributes of the element.  If no namespace is associated with
    259270   the element, the *uri* component of *name* will be ``None``.  The object passed
     
    371382
    372383Objects with this interface are used to receive error and warning information
    373 from the :class:`XMLReader`.  If you create an object that implements this
    374 interface, then register the object with your :class:`XMLReader`, the parser
     384from the :class:`~xml.sax.xmlreader.XMLReader`.  If you create an object that
     385implements this interface, then register the object with your
     386:class:`~xml.sax.xmlreader.XMLReader`, the parser
    375387will call the methods in your object to report all warnings and errors. There
    376388are three levels of errors available: warnings, (possibly) recoverable errors,
Note: See TracChangeset for help on using the changeset viewer.