NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/45690 ("atf-report -o xml" can generate malformed XML)



The following reply was made to PR bin/45690; it has been noted by GNATS.

From: Andreas Gustafsson <gson%gson.org@localhost>
To: jmmv%NetBSD.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: bin/45690 ("atf-report -o xml" can generate malformed XML)
Date: Tue, 12 Aug 2014 14:48:30 +0300

 Julio Merino wrote:
 >  * PR bin/45690: Make atf-report convert any non-printable characters to
 >    a plain-text representation (matching their corresponding hexadecimal
 >    entities) in XML output files.  This is to prevent the output of test
 >    cases from breaking xsltproc later.
 
 Looks like this is still not fully fixed, because the output from a
 test case just broke xsltproc again:
 
   xsltproc --nonet --novalid 
/bracket/i386/test/2014.08.11.01.54.12/anita/atf/tests-results.xsl 
/bracket/i386/test/2014.08.11.01.54.12/anita/atf/test.xml 
>/bracket/i386/test/2014.08.11.01.54.12/anita/atf/test.html
   /bracket/i386/test/2014.08.11.01.54.12/anita/atf/test.xml:1310: parser error 
: PCDATA invalid Char value 12
   
255;::zz&amp;#187;&amp;#187;&amp;#251;&amp;#251;&amp;#3;&amp;#3;&amp;#8;&amp;#8;
                                                                                
 ^
   /bracket/i386/test/2014.08.11.01.54.12/anita/atf/test.xml:1310: parser error 
: PCDATA invalid Char value 12
   
55;::zz&amp;#187;&amp;#187;&amp;#251;&amp;#251;&amp;#3;&amp;#3;&amp;#8;&amp;#8;
                                                                                
 ^
   /bracket/i386/test/2014.08.11.01.54.12/anita/atf/test.xml:1312: parser error 
: PCDATA invalid Char value 11
   
p;#254;%&amp;#254;q&amp;#254;q&amp;#254;&amp;#189;&amp;#254;&amp;#189;&amp;#254;
                                                                                
 ^
 The offending characters are control-K (11 decimal) and control-L (12 decimal).
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 


Home | Main Index | Thread Index | Old Index