Next in thread →
Next in month →
Re: Re: How to validate DocBook 5 with XInclude?
On Mon, 19 May 2008 17:46:18 +0900, Jirka Kosek <> wrote: > Boris wrote: > >> Thanks for the link! Out of interest: Is this a DocBoook speciality or >> you always have to include documents first when you want to validate? > > It depends on what you want. Of course it possible to validate XML > document without resolving XIncludes but then you can't be sure that > after resolving document will be also valid. If you will include chapter > inside chapter you will not see error until you resolve includes as > standalone included chapter is valid, and it is possible to have > XInclude element inside chapter. > > If you want to validate without resolving XIncludes, you should use > DocBook schema which allows xi:include elements -- docbookxi.rng or > docbookxi.rnc from http://www.docbook.org/xml/5.0/rng/ Thanks again! I'm actually only including source code (in <programlisting>) - thus I don't need to validate the referenced files. As my authoring tools don't support Relax NG I can only validate with the XML Schema though. :-/ Boris
Next in thread →
Next in month →