Re: [xml] include XML file in another XML file



On Fri, 22 Apr 2005, Thomas Schraitle wrote:
[..]
Is it mean Solaris case is incorrect in XML syntax sense ? :-o

Ok, I think I overlooked something. There are two errors actually:

1. I described one problem with the DOCTYPE declaration. In your case, you
have to remove this line from the file "vipw.8.xml". You end up with:

<?xml version="1.0" encoding="UTF-8"?>
<!-- NO DOCTYPE declaration here! -->
<refentry id='vipw.8'>
.
.
</refentry>

2. The file "vigr.8.xml" is not well-formed XML[1]. You can't use an
external entity after the internal subset of the DTD. You have to begin
with a start tag always, include _then_ the external entity and close the
tag:

 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE reference PUBLIC
   "-//OASIS//DTD DocBook XML V4.3//EN"
   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"; [
   <!ENTITY vigr-8 SYSTEM "vipw.8.xml">
  ]>
 <reference>
   <title>...</title>
   &vigr-8;
 </reference>

Hope that helps.

Thank you. I'll try above.

Sorry but I'm still interested answer on quesion about Solaris XML man pan pages correctnes :) More detailed example from Solaris below. Both files as you see have DOCTYPE. Can you look on this ?
How it can be correct if in document only one time can be used DOCTYPE ? :>
And/or this files only look like correct and all "magick" is in man tool which know how to correctly parse this files (?). Is it possible ?

--- gdm.1 file ---
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY cmd "gdm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
]>
<?Pub UDT _bookmark _target>
<?Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip laquo lArr loz mdash nabla ndash 
para pound rArr raquo sect yen gt lt>
<?Pub Inc>
<refentry id="gdm-1">
<!-- %Z%%M% %I% %E% SMI; -->
.
.
</refentry>
<?Pub *0000042968>
---

--- gdmchooser.1 file ---
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY gdmchooser-1 SYSTEM "gdm.1">
<!-- SHADOW_PAGE -->
]>
&gdmchooser-1
---

kloczek
--
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek rudy mif pg gda pl*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]