ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] DocBook profiling
@ 2007-09-26 15:38 Peter V. Saveliev
  2007-09-28 10:31 ` Vitaly Ostanin
  0 siblings, 1 reply; 2+ messages in thread
From: Peter V. Saveliev @ 2007-09-26 15:38 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

...

А только ли у меня случается такая беда, что не работает профайлинг DocBook?

Пытаюсь без exlt, в два прохода, но не суть: profile.xslt пропускает любые 
узлы вне зависимости от того, указал ли я string.param profile.lang="..." или 
что ещё и вне зависимости от наличия (соотв.) атрибутов lang="..." в коде.

Ну, дело не только в lang, не работает фильтрация по любым атрибутам (проверил 
всё).

$ rpm -qa | grep xslt
libxslt-1.1.20-alt1
xsltproc-1.1.20-alt1

$ rpm -qa | grep "docbook.*xsl"
docbook-style-xsl-1.71.0-alt1

-- 
Peter V. Saveliev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sisyphus] DocBook profiling
  2007-09-26 15:38 [sisyphus] DocBook profiling Peter V. Saveliev
@ 2007-09-28 10:31 ` Vitaly Ostanin
  0 siblings, 0 replies; 2+ messages in thread
From: Vitaly Ostanin @ 2007-09-28 10:31 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

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

Peter V. Saveliev пишет:
> ...
> 
> А только ли у меня случается такая беда, что не работает профайлинг DocBook?
> 
> Пытаюсь без exlt, в два прохода, но не суть: profile.xslt пропускает любые 
> узлы вне зависимости от того, указал ли я string.param profile.lang="..." или 
> что ещё и вне зависимости от наличия (соотв.) атрибутов lang="..." в коде.
> 
> Ну, дело не только в lang, не работает фильтрация по любым атрибутам (проверил 
> всё).

У меня работает:

$ cat orig.xml
<?xml version="1.0" encoding="windows-1251" ?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section lang="ru">
        <title>
            <phrase lang="ru">Название</phrase>
            <phrase lang="en">Title</phrase>
        </title>
        <para>текст</para>
</section>

$ cat start.sh
#!/bin/sh
xsltproc --stringparam profile.lang "ru" \
http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl
\
orig.xml > orig-ru.xml

$ xmllint --encode windows-1251 orig-ru.xml
<?xml version="1.0" encoding="windows-1251"?>
<section lang="ru">
        <title>
            <phrase lang="ru">Название</phrase>

        </title>
        <para>текст</para>
</section>

> $ rpm -qa | grep xslt
> libxslt-1.1.20-alt1
> xsltproc-1.1.20-alt1
> 
> $ rpm -qa | grep "docbook.*xsl"
> docbook-style-xsl-1.71.0-alt1

libxslt-1.1.21-alt1
xsltproc-1.1.21-alt1
docbook-style-xsl-1.71.0-alt1

-- 
Regards, Vyt
mailto:  vyt@altlinux.org
JID:     vitaly.ostanin@gmail.com


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-28 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-26 15:38 [sisyphus] DocBook profiling Peter V. Saveliev
2007-09-28 10:31 ` Vitaly Ostanin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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