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] … vs xmllint


Mathieu Malaterre wrote:

>   I have written a couple of Makefile rules to check my docbook XML is
> valid. for this task I used xmllint. It used to work pretty nicely up
> to now. Could someone please let me know what is the issue with the
> following:
> 
> $ cat section.xml
> <?xml version='1.0' encoding='UTF-8'?>
>   <section>
>     <title/>
>       <para>&amp; is ok</para>
>       <para>&hellip; is not ok</para>
>   </section>

Your section.xml file is missing !DOCTYPE which references DocBook DTD
with entity definitions. Please note that with XInclude included files
are parsed separately and then composed together -- you can't use
entities defined in the "main" file as it is possible when using
external entities for composition.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

OpenPGP digital signature



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