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


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

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

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"

I have an error:
I/O error : Attempt to load network entity

but I see in tcpdump that xmllint loaded
from: 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]