Issues

Issue #1450 new

xml builder creates invalid xml file

Anonymous created an issue

Wrong file example is 'library/functions.xml' (generated from python2.7 docs with sphinx 1.2.2 and 1.3.0a)

Error is in lines as such: <desc_signature class="" first="False" fullname="abs" ids="abs" module names="abs"><desc_name>abs</desc_name><desc_parameterlist><desc_parameter>x</desc_parameter></desc_parameterlist></desc_signature> where 'module' should be probably something like 'module=""'

Comments (7)

  1. bjakubiak

    Error is in lines as such:

    <desc_signature class="" first="False" fullname="abs" ids="abs" module names="abs"><desc_name>abs</desc_name><desc_parameterlist><desc_parameter>x</desc_parameter></desc_parameterlist></desc_signature>

    where 'module' should be probably something like 'module=""'

  2. bjakubiak

    other wrong xml files in library directory: stdtypes.xml, pickle.xml and constants.xml

    generated by: ./sphinx-build.py -b xml Python-2.7.6/Doc dest

  3. engelbert gruber

    the erronous xml::

    <desc_signature class="" first="False" fullname="abs" ids="abs" module names="abs">
    

    xml seams to require a value.

    the code producing the error ::

    for name, value in self.attlist():
        if value is None: # boolean attribute
            parts.append(name)
            continue
    

    to me None is not boolean, boolean is True/False or maybe 0/1

    to me "module" looks like yes it is a module and "" like no it is not.

    Having a value None says no value , therefore "module " seams reasonable to me. If I want 'module=""' I would assign a value.

    More important who relies on which form of output

  4. Log in to comment