Using docbook v5 and xmllint

source

<literallayout>
  <xi:include parse="text"
              href="CatalogManager.properties">
<xi:fallback><para><emphasis>FIXME: MISSING XINCLUDE CONTENT - CatalogManager.properties</emphasis></para>
    </xi:fallback>
  </xi:include>
</literallayout>


If the @href contains an error (file does not exist)
then Jing reports

jing:
     [echo] Validate using Jing
[java] /files/docbook/tmp.xml:2138:47: error: element "para" from namespace "http://docbook.org/ns/docbook"; not allowed in this context
     [java] Java Result: 1


which is ... sort of wrong? An error,
but incorrectly reported?

Correct the typo (i.e. correct filename) and all's well.

xmllint, Jing or ....

I'm expanding with xmllint, then using Jing to validate the resulting
expanded file




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to