Next in thread → Next in month →

Re: Cannot use entity (reference to file) in parameter file - DocBook 5

From
John Brown <>
Date
2008-04-05T14:43:14+00:00
ID
Thread
Re: Cannot use entity (reference to file) in parameter file - DocBook 5
Thomas Schraitle <tom_schr <at> web.de> writes:

> 
> Hello John,
> 
> On Samstag, 5. April 2008, John Brown wrote:
> > [...]
> > When I run 'xmllint --noout --relaxng /path/to/docbook.rng test.xml',
> > it returns:
> > test.xml:1: element chapter: Relax-NG validity error : Did not expect
> > element chapter there
[snip]

> I would suggest to try another validator, for 
> example jing or msv.
[snip]
> 
> Tom
> 

By some more trial and error, I discovered that I needed to specify the
namespace. The following works:

<!-- external file test1.xml -->
<chapter xmlns="http://docbook.org/ns/docbook">
<title/><para/>
</chapter>
Next in thread → Next in month →