Hi Shaun
On 11/12/2013 14:38, Shaun McCance wrote:
> Are there any specific problems you've seen with 2.7.8? I have a machine
> with 2.7.7 and have no problems with the DocBook schemas. I did just
> file a patch for a bug I ran across with using choice in name classes
> for attributes, but the DocBook schemas don't use that.
Sorry for the delay in replying, it's been a while since I looked at this.
The problem I was seeing with xmllint was spurious error messages if the
docbook file was incorrect. There's a docbook file here:
https://dl.dropboxusercontent.com/u/865332/Errors.docbook
Line 36 contains an incorrect attribute, perhaps a result of author
error, or a botched transformation from an imported source file.
xmllint ver 2.7.8 (on Windows 7 Ultimate, 32-bit) gives:
> xmllint --noout --relaxng %DOCBOOK_XML%\rng\docbook.rng Errors.docbook
Errors.docbook:14: element info: Relax-NG validity error : Did not
expect element info there
Errors.docbook:14: element info: Relax-NG validity error : Element book
has extra content: info
Errors.docbook fails to validate
...which is unhelpful, or maybe just plain wrong.
jing gives:
> jing %DOCBOOK_XML%\rng\docbook.rng Errors.docbook
Errors.docbook:36:57: error: attribute "conref" not allowed here;
expected attribute "annotations", "arch", "audience", "condition",
"conformance", "dir", "linkend", "os", "remap", "revision",
"revisionflag", "role", "security", "userlevel", "vendor", "version",
"wordsize", "xl:actuate", "xl:arcrole", "xl:href", "xl:role", "xl:show",
"xl:title", "xl:type", "xml:base", "xml:id", "xml:lang" or "xreflabel"
... which shows the error clearly.
Simon Dew
Technical Author | Stanley Security Solutions
1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.
| +44 (0) 161 406 3400
www.stanleysecuritysolutions.co.uk
Registered Office: Stanley House, Bramble Road, Swindon
Registered in England and Wales No. 181585 VAT No. 232 2446 95