Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41966C57.7050508@mailshelter.de>
Date: Sat, 13 Nov 2004 21:19:35 +0100
From: Patrick Eisenacher <eisenacher@mailshelter.de>
MIME-Version: 1.0
To: "Gerrit P. Haase" <gp@familiehaase.de>
CC: Marcel Telka <marcel@telka.sk>, cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: docbook-xml42-4.2-3
References: <200411080222.iA82MGa03240@esds.vss.fsi.com> <419363E2.30707@mailshelter.de> <20041111201600.GB5956@tortuga.telka.sk> <41948A85.5050001@mailshelter.de> <4195433E.7050206@familiehaase.de>
In-Reply-To: <4195433E.7050206@familiehaase.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: KMail/1.5.9
X-Complaints-To: abuse@mailshelter.de

Gerrit P. Haase schrieb:

> Patrick Eisenacher wrote:
> 
>> Hi Marcel,
>>
>> Marcel Telka schrieb:
>>
>>>> Since I expected problems with my /etc/xml/catalog file, I kept an 
>>>> eye on it. And indeed it got corrupted by the update. Here is what 
>>>> happened:
>>>>
>>>> - all group definitions were lost
>>>> - all identation was lost
> If I run the command from the postinstallscript of
> 
> $ cygcheck -c docbook-xml42
> Cygwin Package Information
> Package              Version        Status
> docbook-xml42        4.2-2          OK
> 
> with libxml2:
> $ cygcheck -c libxml2
> Cygwin Package Information
> Package              Version        Status
> libxml2              2.6.13-1       OK
> 
> It works ok:
> 
> <?xml version="1.0"?>
> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog 
> V1.0//EN" 
> "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>   <group id="" xml:base="file:///usr/share/">
>     <rewriteSystem 
> systemIdStartString="http://db2latex.sourceforge.net/xsl/" 
> rewritePrefix="db2latex-xsl-0.8pre1/xsl/"/>
>     <rewriteSystem 
> systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/" 
> rewritePrefix="/usr/share/docbook-xml42/"/>
>     <rewriteURI 
> uriStartString="http://docbook.sourceforge.net/release/xsl/current/" 
> rewritePrefix="docbook-xsl/"/>
>   </group>
>   <group id="" xml:base="file:///cygdrive/e/Entwicklung/Hedwig/">
>     <uri name="html.titlepage.templates.xsl" 
> uri="Object/html.titlepage.templates.xsl"/>
>   </group>
> </catalog>
> 
> 
> What version of libxml2 do you have installed?  What is the content of 
> the 4.2-3 docbook-xml42 postinstall script?

Hi Gerrit,

this is getting weird. I get different results than you:

$ cygcheck -c docbook-xml42
Cygwin Package Information
Package              Version        Status
docbook-xml42        4.2-3          OK

$ cygcheck -c libxml2
Cygwin Package Information
Package              Version        Status
libxml2              2.6.13-1       OK

$ cat /etc/postinstall/docbook-xml42.sh.done
#!/bin/sh

mkdir -p /etc/xml
[ -f /etc/xml/catalog ] || xmlcatalog --noout --create /etc/xml/catalog
xmlcatalog --noout --add public \
          "-//OASIS//DTD DocBook XML V4.2//EN" \
          http://www.oasis-open.org/docbook/xml/4.2/ \
          /etc/xml/catalog
xmlcatalog --noout --add rewriteSystem \
          http://www.oasis-open.org/docbook/xml/4.2/ \
          /usr/share/xml/docbook/4.2/ \
          /etc/xml/catalog

and running that gives me a corrupted xml catalog with group elements
missing as reported before:

eisenacher@NB-RASTA /etc/xml
$ /etc/postinstall/docbook-xml42.sh.done

eisenacher@NB-RASTA /etc/xml
$ cat catalog
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    <rewriteSystem
systemIdStartString="http://db2latex.sourceforge.net/xsl/"
rewritePrefix="db2latex-xsl-0.8pre1/xsl/"/>
    <rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/"
rewritePrefix="/usr/share/xml/docbook/4.2/"/>
    <rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="docbook-xsl/"/>
    <uri name="html.titlepage.templates.xsl"
uri="Object/html.titlepage.templates.xsl"/>
    <public publicId="-//OASIS//DTD DocBook XML V4.2//EN"
uri="http://www.oasis-open.org/docbook/xml/4.2/"/>
</catalog>

I played around a little bit with the xmlcatalog --shell option. The 
debug command is not really helpful. But as soon as I execute the first 
add command, the group elements get lost.

Is there anything else I can provide to track this down? complete
cygcheck output or such alike? I wonder why we get different results 
while we both have the same version of the libxml2 package installed. 
Marcel, judging from your post, you get the same results as I did?


Cheers,
Patrick



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

