[xml] include XML file in another XML file




I'm just during prepare framework for translate man pages documentation in shadow project using XML/gettext and I have some .. problems ;>

Some orginal man pages are only roff inclusion of another roff file.
I'm trying construc analog XML files basing on XML man pages from Solaris. Usualy in case Solaris this kind man page looks like:

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

But after prepara similar XML document:

----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry 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">
]>
&vigr-8;
----

this kind file can't be correctly parsed by xsltproc:

$ xsltproc /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl vigr.8.xml
vigr.8.xml:6: parser error : Start tag expected, '<' not found
&vigr-8;
^
unable to parse vigr.8.xml

vipw.8.xml loksk like:

----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
                "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd";>
<refentry id='vipw.8'>
.
.
</refentry>
----

Q: is it Solaris XML man page incorrect or is it xsltproc bug or maybe this kind pages must look diffrent ?

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]