ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Ostanin <vyt@vzljot.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: problem using docbook
Date: Mon, 15 Dec 2003 14:10:39 +0300
Message-ID: <20031215141039.11b515d0.vyt@vzljot.ru> (raw)
In-Reply-To: <3FDD9425.40100@epam.com>

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

On Mon, 15 Dec 2003 12:59:49 +0200
Sviataslau Svirydau <Sviataslau_Svirydau@epam.com> wrote:

> Vitaly Ostanin wrote:
> 
> >Самый правильный вариант - перевести сборку на xsltproc.
> >Сборка html из XML с помощью dsssl-процессора вместо
> >xslt-процессора - хуже, чем хуже не придумаешь. В случае pdf
> >ещё может быть смысл.
> >  
> >
> А как это сделать? Это сложно? Самостоятельно на коленке можно?

Да.

Для chunked html (отдельные файлы для разделов)

xsltproc --nonet  \
--stringparam base.dir $(HTML_DIR)/ \
--stringparam chunker.output.encoding $(HTML_OUT_ENCODING) \
http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
document.xml

document.xml не на отдельной строке, это мыльница переносит.

Для одного большого html:

xsltproc --nonet  \
--stringparam base.dir $(HTML_DIR)/ \
--stringparam chunker.output.encoding $(HTML_OUT_ENCODING) \
--param suppress.navigation 1 \
http://docbook.sourceforge.net/release/xsl/current/html/onechunk.xsl
document.xml

Должны стоять пакеты xsltproc и docbook-style-xsl со всеми
зависимостями.

HTML_DIR - каталог для складывания вывода html
HTML_OUT_ENCODING - кодировка html

Вообще в сборке с помощью xsltproc должен быть заинтересован
upstream. Если будут сложности с картинками и т.п., welcome to
http://altlinux.ru/mailman/listinfo/docs

<skipped/>

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

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

  reply	other threads:[~2003-12-15 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-13 23:50 [devel] " Sviataslau Svirydau
2003-12-15 10:24 ` [devel] " Vitaly Ostanin
2003-12-15 10:59   ` Sviataslau Svirydau
2003-12-15 11:10     ` Vitaly Ostanin [this message]
2003-12-16 12:06       ` Sviataslau Svirydau

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=20031215141039.11b515d0.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