Menu

#87 possible bug in pyx

closed-fixed
nobody
None
5
2012-01-14
2011-11-21
Anonymous
No

Used xml from example:
<pre>
<books>
<book type='hardback'>
<title>Atlas Shrugged</title>
<author>Ayn Rand</author>
<isbn id='1'>0525934189</isbn>
</book>
</books>
</pre>

And get this output:

a@b ~/ $ xmlstarlet pyx input.xml
(books
-\n
(book
Atypehardback
-\n
(title
-Atlas Shrugged
)title
-\n
(author
-Ayn Rand
)author
-\n
(isbn
Aid1
-0525934189
)isbn
-\n
)book
-\n
)books

As you can see attribute names and their values have no space between.
Have the same issue with:

Centos 5.4
1.2.1
compiled against libxml2 2.6.26, linked with 20632
compiled against libxslt 1.1.17, linked with 10117

Centos 5.4
1.3.0
compiled against libxml2 2.6.32, linked with 20632
compiled against libxslt 1.1.17, linked with 10117

Centos 6
1.3.0 with latest libxml2

Is there a bug or undoccumented feature?

Discussion

  • Anonymous

    Anonymous - 2011-11-21

    Don't know if it's the solve but i just added
    fprintf(stdout, " ");
    after
    print_qname(prefix, localname);
    in xml_pyx.c

     
  • Noam Postavsky

    Noam Postavsky - 2011-12-31

    Thanks for the report. I introduced this bug in version 1.1.0 (commit 5895befb8d), and didn't notice it because the test case for pyx didn't include attributes, oops!

    Now fixed in 5357848c242404c3e3c4b3bd1520360c9661452d

     
  • Noam Postavsky

    Noam Postavsky - 2011-12-31
    • status: open --> open-fixed
     
  • Noam Postavsky

    Noam Postavsky - 2012-01-14

    Fixed in release 1.3.1

     
  • Noam Postavsky

    Noam Postavsky - 2012-01-14
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Auth0 Logo