David Cramer | 22 Jun 22:10 2016

Re: [WebHelp] Language support for search

On 6/22/16 1:31 PM, Jan Tosovsky wrote:
> looking into the language support I can see only en/es/jp stopwords and
> de/en/fr stemmers:
> http://snapshots.docbook.org/xsl/webhelp/template/search/
> Has anybody implemented additional ones?
> In foreseeable future I'd like to cover also pt/it/cs/nl. I have some ideas,
> based on lucene analyzers, but why not use something existing ;-)

Hi Jan,

Your post prompted me to look at the Porter stemmer site to see if other
stemmers had been implemented in JavaScript:

While there, I noticed a link to the Urim project which appears to have
a number of stemmers in JavaScript:


Perhaps those could be adapted to work in webhelp.

Jan Tosovsky | 22 Jun 20:31 2016

[WebHelp] Language support for search

Dear All,

looking into the language support I can see only en/es/jp stopwords and
de/en/fr stemmers:


Has anybody implemented additional ones?

In foreseeable future I'd like to cover also pt/it/cs/nl. I have some ideas,
based on lucene analyzers, but why not use something existing ;-)


Mark Craig | 22 Jun 08:46 2016

Profiling/conditional text based on document context?


We use profiling/conditional text already at build time and it works fine.

What is the right way to set up conditional text to have the condition depend on the document context?

In other words, if the document is included in book 1, exclude this and include that. If the document is included in book 2, include this and exclude that.

Here's a simplified example, a common section XIncluded in two different release notes books:

<?xml version="1.0" encoding="UTF-8"?>
This file is included in both release notes in the same doc set.
Both sets of release notes are built *at the same time*.
That is, profiles depend on the document, not on the build.
<section xml:id="whats-new"
xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en"
<title>What's New</title>

This release includes the following new features:

<listitem><!-- Make this appear only in standard edition release notes. -->
A feature that is only in the standard edition of the product

<listitem><!-- Make this appear only in OEM edition release notes. -->
A feature that is only in the OEM edition of the product

<listitem><!-- Make this appear in both release notes. -->
A feature that is in both standard and OEM editions

The first item should be included in the standard edition release notes and excluded from the OEM edition release notes.

The second item should be excluded from the standard edition release notes and included in the OEM edition release notes.

The third item appears in both.

The whole doc set is built at the same time with the same configuration. In other words, the profiling conditions depend not on the build, but on the document context.

Thanks for your help.

stimits | 22 Jun 00:34 2016

fop/xsltproc, External SVG Issue

I'm struggling to embed SVG into a docbook5 document. I don't know if this is an issue of how I'm coding, or if this is an issue with the tools being used...any advice on solving this is welcomed.
I am using xsltproc with docbook5 docbook.xsl to produce a ".fo" file (Linux o/s), with the original XML validated error free under both xmllint and jing. I am thing using fop to create a number of output formats from the ".fo" file...ps, pdf, rtf. The section of code with the svg being added refers to an external file, and in no case does any error or warning ever show up. Here's the sample code:
<!DOCTYPE book [
<!ENTITY version "0.1 unreleased">
<book xmlns="http://docbook.org/ns/docbook"
      xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
                <imagedata align="left" format="svg" fileref="/somewhere/content/by-sa.svg"/>
                <phrase>CC BY-SA License</phrase>
                <para>This document is licensed under Creative Commons BY-SA License</para>
I have tried the fileref using full path, relative path, so on. There is never a complaint, the svg file itself displays and apparently is valid under a number of svg apps, and everything else shows up as expected. I have even tried intentionally making a very impossible and invalid file path, I cannot get a complaint from any of the tools. Am I using the XML wrong, or are my tools missing something under valid code?
Hussein Shafie | 21 Jun 11:21 2016

[ANN] Attractively priced XMLmind DocBook Editor; free Personal Edition

XMLmind is happy to announce three new products: XMLmind DITA Editor[1],
XMLmind DocBook Editor[2], XMLmind XHTML Editor[3].
These products are attractively priced, “special editions” of
XMLmind XML Editor v7. Because they focus on a single class of
documents, these specialized editors are slightly faster and simpler
to use than XMLmind XML Editor. More information in
"Which editor to choose?"[4].

A Personal License[5] is now available for XMLmind XML Editor,
XMLmind DITA Editor, XMLmind DocBook Editor and XMLmind XHTML Editor.
This makes our four editors free to use by many persons and
organizations. More information in "Which license to choose?"[6].

The Personal Editions of XMLmind XML Editor, XMLmind DITA Editor,
XMLmind DocBook Editor and XMLmind XHTML Editor may be freely
downloaded from this page[7].

New version 7.0 also has substantial enhancements and a number of bug
fixes. All these enhancements aim to make our XML editors simpler and
more straightforward to use.


[1] http://www.xmlmind.com/xmleditor/dita_editor.html
[2] http://www.xmlmind.com/xmleditor/docbook_editor.html
[3] http://www.xmlmind.com/xmleditor/xhtml_editor.html
[4] http://www.xmlmind.com/xmleditor/which_editor.html
[5] http://www.xmlmind.com/xmleditor/license_xxe_perso.html
[6] http://www.xmlmind.com/xmleditor/which_license.html
[7] http://www.xmlmind.com/xmleditor/download.shtml

More information in
Peter Lavin | 18 Jun 19:05 2016

PHP processing instructions


I'm using the 1.79.1 onechunk.xsl transformation style sheets with PHP
processing instructions. If I use the HTML onechunk.xsl file in my
customization level, a "?" is required immediately before the closing
processing instruction tag. For example:

<xsl:processing-instruction name="php">
//PHP code here

This produces the correct opening and closing PHP tags. (<?php ... ?>)

If I use the _XHTML_ onechunk.xsl file and a terminating "?" the
output is as follows:

//PHP code

Note the duplicate "?". Is this expected?




Peter Lavin
Telephone:      1 416 461 4991
Mobile:            1 416 882 9194
Skype:             peter.lavin
(GMT -05:00 Canada/US Eastern)
Pc Thoms | 23 May 22:36 2016

Line Numbering with DocBook Publisher


I came across the above and am wonder if Line Numbering with DocBook Publisher is possible? Possible using the <line/> element, that is.

With thanks Paul
stimits | 9 May 23:02 2016

Docbook 5 Samples?

With previous help I was able to get a Makefile working for complete validation and publishing to xhtml, rtf, pdf, and ps.
Now I'm at a point where I can actually author in docbook 5. I'm hoping someone here can suggest an available docbook 5 example document which contains a large array of commonly used tags...my intent being to first drop it in with my Makefile to test a larger build (there are actually multiple ways to publish some formats), and second to see the appearance and compare appearance between different tool variants for formatting. Because docbook elements are about content instead of appearance, references on various docbook 5 tags do not show example display; I'd like to see practical examples of conversion from tags to appearance.
Niels Müller | 8 May 18:20 2016

javascript to chunked xhtml output from docbook

Hi guys

I am producing course materials for various it courses with docbook 5.
I use chunked output so that I get a series of lessons (chapters) each 
consisting of separate sections. That is a section becomes an xhtml page 
by this procedure. (http://x15.dk/auit/site/)

Now I need to include a bit of javascript into the head element of one 
of these xhtml pages. The javascript should create an svg element with 
content dynamically putting it into an 'id' div in the page.

Everything is tested and works in a separate, custommade html-page.

But not through docbook. I have looked at Bobs material for including 
premade html into a docbook produced page, but I can't get it to work.

Does anyone have an example of something like that, and are you willing 
to share, please?


Niels Muller Larsen, MSc
Programmer, Assoc Professor

Send some filthy mail.
daniele.barzotti | 5 May 05:03 2016

Fw: new message



You have a new message, please read http://ayurvedaresearchusa.org/constitutional.php


daniele.barzotti <at> eurocomtel.com

Richard Hamilton | 4 May 21:31 2016

Interesting anomaly in specialized index handling

I have been using the specialized index facility to create two indexes, one with type="author" and the
other with type="subject".

I have one entry under type="subject" that is a symbol, so there is a "Symbols" entry in that index. Even
though there isn't any entry that would go under Symbol with type="author", I get an empty Symbol heading
in the author index.

If I remove the symbol term with type="subject", the heading disappears from the author index.

I thought this might extend to other headings, but that's not the case. For example, there are indexterms
starting with the letter "i" in the subject index, but none in the author index, and there is no heading for
"i" in the author index. So the problem appears to occur only for symbols.

XML Press
XML for Technical Communicators
hamilton <at> xmlpress.net