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] | [Elist Home]


Subject: Re: DOCBOOK-APPS: XInclude problems


Your IG-conrad-pacs.xml file is not well-formed. Close your include tags.

Quoting Kenneth Johansson <ke-joh@sectra.se>:

> Hi,
> 
> I'm testing how to modularize a document using XInclude. I've read
> http://www.sagehill.net/xml/docbookxsl/ModularDoc.html but haven't used
> any customizations just the basic explained in the "Using XInclude"
> section. 
> 
> When trying xmllint --noout --xinclude --postvalid IG-conrad-pacs.xml I
> get this error message:
> 
> --
> ke-joh:140> xmllint --noout --xinclude --postvalid IG-conrad-pacs.xml
> IG-conrad-pacs.xml:2: warning: failed to load external entity
> "-//OASIS//DTD Doc
> Book XML V4.2//EN"
>  "-//OASIS//DTD DocBook XML V4.2//EN"
> "c:\tools\lib\docbook\xml\42\docbookx.dtd
>                                                                         
>      ^
> IG-conrad-pacs.xml:26: error: Opening and ending tag mismatch:
> xi:include and bo
> ok
> </book>
>        ^
> IG-conrad-pacs.xml:26: error: Premature end of data in tag xi:include
> </book>
>        ^
> IG-conrad-pacs.xml:26: error: Premature end of data in tag book
> </book>
>        ^
> ke-joh:141>
> --
> 
> Validating the modules using xmllint works fine and they have the same
> reference as my book file. Does it have anything to do with xinclude not
> being part of the dtd?
> 
> My main file IG-conrad-pacs.xml:
> 
> <?xml version="1.0"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "c:\tools\lib\docbook\xml\42\docbookx.dtd">
> 
> <book>
>   <title>Installation Guide Conrad PACS interface</title>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="introduction.xml">
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="conrad-pacs_if_basics.xml" />
> </xi:include>
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="conrad-pacs-prerequisites.xml" />
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="software_installation.xml">
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="conrad-pacs-installing_sw.xml" />
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="conrad-pacs-configuration.xml" />
> 
> </xi:include>
> 
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="conrad-pacs-known_issues" />
> 
> </book>
> 
> Example module introduction.xml:
> 
> <?xml version="1.0"?>
> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "c:\tools\lib\docbook\xml\42\docbookx.dtd">
> 
> <chapter id="Introduction"> 
> <title>Introduction</title>
>     <para>This chapter serves as an introduction to the document and
> gives some basic release information for the related version of the
> software.</para>
> 
> </chapter>
> 
> /Kenneth
> 
> 
> 
> --------------------------------------------------------
> Kenneth Johansson	Technical Documentation Manager
> Sectra Imtec AB
> Teknikringen 2		E-mail: ke-joh AT sectra DOT se
> SE-583 30 Linköping	Phone:	+46 13 23 52 00
> SWEDEN			Web:	http://www.sectra.se
> 
> 


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


Powered by eList eXpress LLC