Re: [PATCH] Fix several formatting mistakes in doc

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

 



On 03/31/2011 07:58 AM, Daniel P. Berrange wrote:
> 
>  - We run xmllint, but failures in xmllint validation
>    are not causing a build failure

We already have code in place to call 'exit 1' on xmllint failure (but
not in all places).  However, in my testing, it was xsltproc that is not
throwing an error:

$ /usr/bin/xsltproc --stringparam pagename $name --nonet --html
../docs/site.xsl formatdomain.html.in > formatdomain.html.tmp
formatdomain.html.in:356: HTML parser error : Unexpected end tag : vcpu
        required attributes, the attribute <code>vcpu</vcpu> specifies
vcpu id,
                                                            ^
$ echo $?
0

That looks like a bug in xsltproc (here from Fedora
libxslt-1.1.26-3.fc14.x86_64), since the man page states that $? should
be 6 when there is an error in the document.

I can work around it by sniffing for non-empty stderr; that will look
yucky in the makefile, but is probably worth doing.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]