From: Vitaly Ostanin <vyt@altlinux.org> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] DocBook profiling Date: Fri, 28 Sep 2007 14:31:07 +0400 Message-ID: <46FCD7EB.4040504@altlinux.org> (raw) In-Reply-To: <200709261938.06332.peet@altlinux.ru> [-- 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 --]
prev parent reply other threads:[~2007-09-28 10:31 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-09-26 15:38 Peter V. Saveliev 2007-09-28 10:31 ` Vitaly Ostanin [this message]
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=46FCD7EB.4040504@altlinux.org \ --to=vyt@altlinux.org \ --cc=sisyphus@lists.altlinux.org \ /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 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