ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vyt <vyt@vzljot.ru>
To: devel@altlinux.ru
Subject: Re: [devel] Re: Update: docbook-dtds...
Date: Wed, 13 Mar 2002 14:55:28 +0300
Message-ID: <20020313145528.16844eaa.vyt@vzljot.ru> (raw)
In-Reply-To: <20020312212252.GD2120@mhz.mikhail.zabaluev.name>

[-- Attachment #1: Type: text/plain, Size: 4433 bytes --]

On Wed, 13 Mar 2002 00:22:52 +0300
Mikhail Zabaluev <mhz@alt-linux.org> wrote:

<skipped>

> Лучше даже (я уже слал по Jabber -- потерялось?) установить пакет с

Не потерялось, я отвечал, но Вы там редко появляетесь.

> --noscripts и руками вызывать команды по очереди с контролем типа
> command ... || echo 'Failed'
> Опция --verbose в xmlcatalog тоже пригодится.

В docbook-dtds.spec есть строки
...
AddCatalogFamily openjade
AddCatalogFamily docbook/dsssl-stylesheets
...

хотя в зависимостях у docbook-dtds нет openjade и docbook-style-dsssl

Может, дело в порядке установки пакетов?

Поставил docbook-dtds с --noscripts и запустил скрипт (по мотивам .spec):

#!/bin/sh

sgmlconfdir=/etc/sgml
sgmlentitiesdir=/usr/share/sgml/sgml-iso-entities-8879.1986
xmlbase=/usr/share/xml

CATALOG=$sgmlconfdir/xml-docbook-4.1.2.cat

xmlcatalog --verbose --sgml --noout --add $CATALOG $sgmlentitiesdir/catalog || echo "Failed"
xmlcatalog --verbose --sgml --noout --add $CATALOG $xmlentitiesdir/catalog || echo "Failed"
xmlcatalog --verbose --sgml --noout --add $CATALOG $xmlbase/docbook/dtd/4.1.2/catalog || echo "Failed"

##
## XML catalog
##
CATALOG=$xmlbase/docbook/catalog
xmlcatalog --verbose --noout --add "public" "-//OASIS//DTD DocBook XML V4.1.2//EN" "dtd/4.1.2/docbookx.dtd" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "dtd/4.1.2/calstblx.dtd" $CATALOG ||echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "dtd/4.1.2/soextblx.dtd" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" "dtd/4.1.2/dbpoolx.mod" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" "dtd/4.1.2/dbhierx.mod" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" "dtd/4.1.2/dbgenent.mod" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "dtd/4.1.2/dbnotnx.mod" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "public" "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" "dtd/4.1.2/dbcentx.mod" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.1.2" "dtd/4.1.2" $CATALOG || echo "Failed"
xmlcatalog --verbose --noout --add "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.1.2" "dtd/4.1.2" $CATALOG || echo "Failed"

Получил:

$ docbook2html postfix.xml
Using catalogs: /etc/sgml/xml-docbook-4.1.2.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#html
Working on: /home/vyt/postfix.xml
jade:/home/vyt/postfix.xml:3:76:E: URL not supported by this version
jade:/home/vyt/postfix.xml:49:15:E: general entity "mdash" not defined and no default entity
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:1:73:W: cannot generate system identifier for public text "-//James Clark//DTD DSSSL Style Sheet//EN"
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:11:0:E: reference to entity "STYLE-SHEET" for which no system identifier could be generated
...
<вывод в plain text>

Содержимое /etc/sgml/catalog:

CATALOG "/etc/sgml/dsssl-1.3.cat"
CATALOG "/etc/sgml/sgml-docbook-3.0.cat"
CATALOG "/etc/sgml/xml-docbook-4.1.2.cat"
CATALOG "/usr/share/sgml/openjade-1.3/catalog"
CATALOG "/etc/sgml/sgml-docbook-3.1.cat"
CATALOG "/etc/sgml/sgml-docbook-4.0.cat"
CATALOG "/etc/sgml/sgml-docbook-4.1.cat"

После добавления строки
CATALOG "/usr/share/sgml/openjade-1.3/catalog"
в /etc/sgml/xml-docbook-4.1.2.cat

Получил:

$ docbook2html postfix.xml
Using catalogs: /etc/sgml/xml-docbook-4.1.2.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#html
Working on: /home/vyt/postfix.xml
jade:/home/vyt/postfix.xml:3:76:E: URL not supported by this version
jade:/home/vyt/postfix.xml:49:15:E: general entity "mdash" not defined and no default entity

postfix.html не создался

<skipped>

> > Буду ковырять скрипты из %post
> 
> Ужо не нужно: возьмите новый openjade из altair:/user/mhz/RPM
> , там это исправлено.

Не могу, не удостоен. Можно личным мылом? Если там до 10M...

<skipped>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-03-13 11:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-11 11:46 [devel] Update: docbook-dtds, docbook-style-dsssl, docbook-style-xsl, openjade Mikhail Zabaluev
2002-03-11 12:02 ` Vyt
2002-03-11 21:18   ` [devel] " Mikhail Zabaluev
2002-03-12 12:33     ` [devel] Re: Update: docbook-dtds Vyt
2002-03-12 21:22       ` Mikhail Zabaluev
2002-03-13 11:55         ` Vyt [this message]
2002-03-13 22:50           ` [devel] Re: Update: docbook-dtds, openjade Mikhail Zabaluev
2002-03-18 13:33             ` Vyt
2002-03-19 11:01               ` Mikhail Zabaluev
2002-03-19 12:12                 ` Vyt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020313145528.16844eaa.vyt@vzljot.ru \
    --to=vyt@vzljot.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git