Sascha Manns | 25 Feb 15:47 2015
Picon

glossterm bold

Hello list,

actual i'm trying to make (for fo output) all glossterms in glossary/glossentry/glossterm in bold.

I tried out:

<xsl:template match="glossterm">
        <fo:inline>
            <xsl:call-template name="inline.boldmonoseq"/>
        </fo:inline>
</xsl:template>

and
 
<xsl:template match="glossterm">
        <fo:inline font-weight="bold">
            <xsl:call-template name="inline.charseq"/>
        </fo:inline>
</xsl:template>

But it looks like it doesn't matches while rendering.

Maybe i miss anything?
-- Yours sincerly Sascha Manns --------------------------------- XCOM AG Qualitätsmanagement Banksystem Backend Rechnungswesen, Meldewesen, Steuern Rennweg 60 Haus 2 56626 Andernach Telefon +49 2632 9899-158 Telefax +49 2632 9899-010 Sascha.Manns <at> xcom.de http://www.xcom.de *** XCOM AG Legal Disclaimer *** Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen. This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. Hauptsitz: Allee 8, D-47877 Willich, USt-IdNr.: DE 812 885 664 Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 9209-900, www.xcom.de Handelsregister: Amtsgericht Krefeld, HRB 10340 Vorstand: Dirk Franzmeyer, Marco Marty, Dirk Werner, Sascha Bochartz Vorsitzender des Aufsichtsrates: Stefan H. Tarach
Attachment (smime.p7s): application/pkcs7-signature, 5223 bytes
Thomas Schraitle | 17 Feb 10:27 2015
Picon

Strategies for Migrating DocBook Customization in a Mixed DB4/5 Environment?

Hi DocBook users,

currently, I'm trying to migrate our old DocBook 4 sources to version
5. This is pretty straightforward and can be done with some XSLT magic.
The markup side is also well covered in the "DocBook 5.0 Transition
Guide"[1].

However, during this transition, some documents will be kept in DocBook
4. So we end up with a mixed setup for both versions.

(Of course, I could feed my new DocBook 5 sources into my existing XSL
customizations. This "works", but it takes too much time because of the
internal convertion of DocBook 5 to DocBook 4.)

As such, it would be nice to have a clear separation: use the normal,
non-namespace variant for version 4 and the namespace-aware for
version 5.

However, we have some some hefty DocBook XSL customizations; a
"DocBook XSL Transition Guide" would be helpful. :)

How would you deal with such migration of "old" DocBook 4 XSL
customization layers?

Any thoughts are highly appreciated! Thanks! :-)

[1] http://docbook.org/docs/howto/

--

-- 
Gruß/Regards,
    Thomas Schraitle
Richard Hamilton | 10 Feb 19:36 2015
Picon

Generating a page list for epub

Has anyone on the list tackled the challenge of generating a page list for ePub output?

A page list is a mapping of print page numbers to locations in the ePub.

I don't see any easy way to do it; I suspect it would take some kind of parsing of a PDF version of the book, and
post-processing of the ePub based on that parsing.

But, before I decide whether it's worth even trying, I thought I'd ask the group whether anyone has thought
about approaches to the problem.

Best regards,
Dick Hamilton
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton <at> xmlpress.net
Janice Manwiller | 10 Feb 15:06 2015

WebHelp - consistent topic headings

When generating WebHelp, the headings always reflect the level within the document.

So heading at the top of a topic could be a heading 1, heading 2, heading 3, etc. depending on where it falls in the structure of the document.

What I'd prefer is to have the heading at the top of the topic always be the same, presumably heading 1. If there are subheadings within a topic (from bridgeheads or because of different chunking), then they should start with heading 2.

Is there any way to do this?

Thanks,

Janice
Olivier Ishacian | 31 Jan 16:05 2015

[ANN] Release of XMLmind XML Editor v6.2

XMLmind is happy to announce the version 6.2 of XMLmind XML Editor.
    _____________________________________________

XMLmind XML Editor Evaluation Edition v6.2 can be downloaded from
http://www.xmlmind.com/xmleditor/download.shtml

Professional Edition users, please upgrade using this form:
http://www.xmlmind.com/store/download.php

(The above form is usually accessed through
http://www.xmlmind.com/xmleditor/upgrade.html.)
    _____________________________________________

XMLmind XML Editor v6.2 (January 26, 2015)
------------------------------------------

Highlights:

* Up-to-date XHTML5 support, including ruby and
form controls.

* It's now possible to give a background color to XHTML,
DocBook and DITA table cells.

In the case of an XHTML5 table, it's even possible to
specify the background color, borders, horizontal
and vertical alignments of any table element using
a specialized dialog box.

* By default, rarely used attributes (DITA xtrc, xtrf;
XHTML onclick, ondblclick, etc) are now hidden in
the Attributes tool.

* Several enhancements and bug fixes, most of them
related to CSS support in XXE.
    _____________________________________________

More information:
http://www.xmlmind.com/xmleditor/changes.html
Joydeep Chakrabarty | 30 Jan 16:40 2015
Picon

PDF Index Sidebar

Hello,

I could see TOC in left sidebar in PDF file using --stringparam 
fop1.extensions 1. I was wondering is it possible to see my indexes there 
in the sidebar?
Any suggestions?

Thanks.
Fredrik Unger | 30 Jan 12:28 2015
Picon

Latex2MML translation

Hi,

After a request on the docbook list[1] I created a tool that translates
<mathphrase role='latex'> to <mml:math> using snuggletex.

It is a kind of "preprocessor".

The attached file contains 4 files :

latex2mml/latex2mml.py  - converts latex to mml
latex2mml/prepro.py     - exchanges mathprhase role='latex' to mml:math
latex2mml/test.xml      - example file
latex2mml/Makefile      - make gets tools and builds test.mml.html

just unpack and make

tar xv latex2mml.tar.gz
cd latex2mml
make
firefox test.mml.html

The specific latex was taken randomly from
http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics
and it does not render [0/0]//H correctly due to limitations
in the latex2mml translation.

This error is written to stderr while converting.

If you are aware of a better translating tool let me know.
This was just the first tool I came across that did the job.

Sincerely,

Fredrik Unger

[1] https://lists.oasis-open.org/archives/docbook/201501/msg00041.html
Attachment (latex2mml.tar.gz): application/gzip, 2304 bytes

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org
Joydeep Chakrabarty | 27 Jan 11:19 2015
Picon

HTML HELP INDEX

Hello All,

I have been using htmlhelp xsl to produce my htmlhelp files. Until 
yesterday, the index was there. But from today, I don't see any entry 
there in the index.hhk file. I am using xsltproc to produce my html help 
files. Here is my test xml script.

<?xml version='1.0'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                   "http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd">
<book lang="en">
<bookinfo><title>My first DocBook document</title></bookinfo>

  <chapter>
    <title>TEST DOCBOOK</title>
    <note>
        <title>This is Note<indexterm><primary>Note</primary></
indexterm></title>
        <para>This is test.</para>
      </note>
  </chapter>
  <index/>
</book>

I used 

xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/htmlhelp/
htmlhelp.xsl test.xml

My index.hhk file always looks like this.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties">
</OBJECT>
<UL>
</UL>
</BODY></HTML>

I don't know what's going wrong. Please help.

Thanks.
Peter Fleck | 26 Jan 13:04 2015
Picon

Page Numbers of chapters with parts left indented

Hi all,

I have been using the docbook-xsl-ns-1.78.1 with a few customizations 
with no problems.

However I have made my first PDF with <part>'s rather than just <chapter>'s.

In the outputted TOC the top level page numbers (parts and preface) are 
in line but the chapter page numbers that are under a part are a tiny 
fraction left. Its far enough to notice but not far enough to show a 
distinction in the levels. Is there somewhere that I need to tweak this 
to make sure they are all in a line? I haven't customized the default 
TOC settings that I know of.

Thanks,

Peter
Joydeep Chakrabarty | 25 Jan 16:29 2015
Picon

Note Box

Hello all,

I have been trying to write a docbook file. I am using <note> element.
But I cannot see the note box (or borders) in my output html file. What 
am I missing here? Here
is my code.

<?xml version='1.0'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                   "http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd">
<book lang="en">
<bookinfo><title>My first DocBook document</title></bookinfo>

  <chapter>
    <title>TEST DOCBOOK</title>
    <note>
        <title>This is Note</title>
        <para>This is test.</para>
      </note>
  </chapter>
</book>

Thanks.
Martin Doucha | 24 Jan 20:58 2015
Picon

Epub chunking customization

Hi,
I'm trying to generate Epub file with autogenerated ToC in a separate
chunk at a specific position. I've tried to follow the howto at
http://www.sagehill.net/docbookxsl/ChunkingCustomization.html to the
best of my ability but no matter what I do, xsltproc just prints lots
of I/O errors when I add customized <xsl:template name="chunk"> that
relies on <xsl:apply-imports/>. Here's the whole minimal stylesheet
that doesn't work. I want to add some content customizations as well
(those should replace the first import according to the howto) but
let's keep it simple. The imports and includes are adapted from
epub3/chunk.xsl. Including epub3/chunk.xsl itself instead makes no
difference.

> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/epub3/docbook.xsl"/>
> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk-common.xsl"/>
> <xsl:include href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk-code.xsl"/>
> <xsl:include href="http://docbook.sourceforge.net/release/xsl-ns/current/epub3/epub3-chunk-mods.xsl"/>
> 
> <xsl:param name="generate.toc">
> book      title
> </xsl:param>
> <xsl:param name="process.empty.source.toc" select="1"/>
> <xsl:param name="process.source.toc" select="1"/>
> 
> <xsl:template name="chunk">
>   <xsl:param name="node" select="."/>
>   <xsl:variable name="ret">
>     <xsl:choose>
>       <xsl:when test="local-name($node) = 'toc'">1</xsl:when>
>       <xsl:when test="local-name($node) = 'preface'">0</xsl:when>
>       <xsl:otherwise>
>         <xsl:apply-imports/>
>       </xsl:otherwise>
>     </xsl:choose>
>   </xsl:variable>
>   <xsl:message>
>     <xsl:text>Chunk test: </xsl:text>
>     <xsl:value-of select="local-name($node)"/>
>     <xsl:text> - </xsl:text>
>     <xsl:value-of select="$ret"/>
>   </xsl:message>
>   <xsl:value-of select="$ret"/>
> </xsl:template>
> </xsl:stylesheet>

Notice the <xsl:message> near the end. When I run the above file,
xsltproc prints this:

> xsltproc ../xsl/epub-chunk.xsl ../swarmwise.docbook >/dev/null
> Chunk test: book - 
> Chunk test: bookinfo - 
> Chunk test: title - 
> Chunk test: subtitle - 
> Chunk test: preface - 0
> Chunk test: highlights - 
> Chunk test: para - 
> Chunk test: para - 
> Chunk test: toc - 1
> Chunk test: preface - 0
> Chunk test: epigraph - 
> Chunk test: para - 
> Chunk test: para - 
> Chunk test: part - 
> Chunk test: title - 
> Chunk test: chapter - 
> Chunk test: title - 

And lots more lines like that with no return value. After that, it
starts printing what looks like chunk IDs instead of 0/1 return values:

> Note: namesp. add : added namespace before processing              Swarmwise
> Chunk test:  - 
> Chunk test: preface - 0
> Chunk test: preface - 0
> Chunk test: preface - 0
> Chunk test: book - book-idm139645148695504
> Chunk test: book - 
> Chunk test: book - 
> Chunk test: book - book-idm139645148695504
> Chunk test: preface - 0
> Chunk test: preface - 0
> Chunk test: preface - 0
> Chunk test: book - book-idm139645148695504
> Chunk test: book - 
> Chunk test: book - 
> Chunk test: book - book-idm139645148695504

And after that, the chunk test output includes even pieces of text
from the book itself instead of 0/1 return values - chapter titles,
section titles and even entire paragraphs converted into plain text
with no XML markup.

Here's what xsltproc prints when I comment out the <xsl:message> block:

> xsltproc ../xsl/epub-chunk.xsl ../swarmwise.docbook >/dev/null
> Note: namesp. add : added namespace before processing              Swarmwise
> Error preface is not a chunk!
> Writing OEBPS/ for preface(predmluva)
> I/O error : Is a directory
> I/O error : Is a directory
> runtime error: file file:///usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml/chunker.xsl line
172 element document
> xsltDocumentElem: unable to save to OEBPS/
> Error preface is not a chunk!
> Writing OEBPS/ for preface
> I/O error : Is a directory
> I/O error : Is a directory
> runtime error: file file:///usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml/chunker.xsl line
172 element document
> xsltDocumentElem: unable to save to OEBPS/
> Writing OEBPS/ for section(hejno-je-otevrene)
> I/O error : Is a directory
> I/O error : Is a directory
> runtime error: file file:///usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml/chunker.xsl line
172 element document
> xsltDocumentElem: unable to save to OEBPS/

I'm using DocBook XSL NS Stylesheets 1.78.0 and xsltproc --version
prints this:
> Using libxml 20901, libxslt 10128 and libexslt 817
> xsltproc was compiled against libxml 20901, libxslt 10128 and libexslt 817
> libxslt 10128 was compiled against libxml 20901
> libexslt 817 was compiled against libxml 20901

I've also tried changing the imports according to xhtml/chunk.xsl (to
generate normal chunked XHTML instead of Epub) but that just gave me
slightly different error messages from xsltproc. When I import only
epub3/chunk.xsl and comment out the custom "chunk" template, I get
usable chunked Epub data with no error messages from xsltproc. What am
I missing?

Regards,
Martin Doucha

Gmane