[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] xi:include problem
On 10/12/13 06:28, Alex Kleider wrote:
I read in Norman Walsh's book: """ As time passes, the use of DTD-based mechanisms like entities is diminishing. If you have an eye on the future, to the extent that it is practical, it is probably better to use XInclude than entities. """ so have tried to switch from entities to XInclude but have hit a stone wall! Perhaps someone might be able to tell me what's missing in the way I'm trying to do it. Thanks in advance. Alex <article xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" > <xi:include href="dp_info.xml"/> <xi:include href="dp_preface.xml"/> <xi:include href="new_plug.xml"/> <xi:include href="getting_in.xml"/> <xi:include href="minDual.xml"/> <xi:include href="card_prep.xml"/> <xi:include href="pathagar.xml"/> </article> <-- Error reported by $ jing /usr/share/xml/docbook/schema/rng/5.0/docbook.rng dreamplug.xml """ /home/alex/Notes/Markup/Docbook/Opus/dreamplug.xml:6:33: error: element "xi:include" not allowed here;
Jing is a validating parser, it knows nothing of xinclude.Use a tool to expand the xincludes prior to processing (validation and transformation).
HTH regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]