OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] xinclude: first attempt...


On Tue, Sep 13, 2005 at 12:28:54PM -0400, Sam Steingold wrote:
> added xmlns:xi="http://www.w3.org/2001/XInclude"; to <xi:include> does
> not buy much:

[...]

> xmllint --xinclude --noout --valid --postvalid --timing --noent impnotes.xml
> impnotes.xml:192: element include: validity error : No declaration for attribute xmlns:xi of element include
>             xmlns:xi="http://www.w3.org/2001/XInclude";>

[...]

You definitely need the namespace declaration.  The trick is that you
only want to specify one of --valid or --postvalid with xmllint.  When
both are specified, xmllint will try to do (DTD) validation before
XInclude processing, which throws all the (expected) DTD errors related
to the XInclude stuff.

In summary, what (I think) you want is:

$ xmllint --xinclude --noout --postvalid --timing --noent impnotes.xml

Take care,

    John L. Clark

PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]