[xml] Post validation ignores '--nonet' ?



Hello.

I can't get correct exit code from xmllint with combination of
'--nonet' and '--postvalid'.

test.sh:
export XML_CATALOG_FILES=non_existent_file
xmllint --noout --nonet --postvalid test.xml; echo $?

test.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
<article>
  <title>test</title>
  <section>
    <title>test</title>
    <para>
       test
    </para>
  </section>
</article>

I have an error:
I/O error : Attempt to load network entity
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd

but I see in tcpdump that xmllint loaded
'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd'
from:
105.168.202.209.in-addr.arpa domain name pointer pan.oasis-open.org

Finally exit code of xmllint is 0. This test works fine with
'--valid' instead of '--postvalid'.

Should I fill a bug report ?

$ xmllint --version
xmllint: using libxml version 20623
   compiled with: Threads Tree Output Push Reader Patterns Writer
SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer
XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas
Schematron Modules Debug

-- 
Regards, Vyt
mailto:  vyt vzljot ru
JID:     vyt vzljot ru



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