Pc Thoms | 23 May 22:36 2016
Picon

Line Numbering with DocBook Publisher

http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering

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
Picon
Picon

Docbook 5 Samples?

Hi,
 
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.
 
Thanks!
Niels Müller | 8 May 18:20 2016
Picon

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?

Cheers
--

-- 
Niels Muller Larsen, MSc
Programmer, Assoc Professor

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

Fw: new message

Hello!

 

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

 

daniele.barzotti <at> eurocomtel.com

Richard Hamilton | 4 May 21:31 2016
Picon
Gravatar

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.

Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton <at> xmlpress.net
Robert Nagle | 4 May 01:00 2016
Picon
Gravatar

HTML5 HR thematic break for docbook: how?

Hi, there, 

I noticed that in HTML 5 the semantic definition for HR has been changed to mean "thematic break." 

"Some examples of thematic breaks that can be marked up using the hr element include a scene change in a story, or a transition to another topic within a section of a reference book."


 That is probably for the best because in many narratives you have informal breaks between paragraphs (sometimes with separators, sometimes not). 

When producing epub files,  I have just attached a style class to a para and used that to format section breaks. That is not wrong, but it is not ideal. 

For the record, it seems unclear if the current  ebook reading systems support css for HR well enough that would justify using it now. (In fact, I'm going to test that for my next ebook). But it doesn't seem that there is any equivalent element in docbook, and that I have enough instances  where I'm yearning to have one. 

(I suppose I could use a processing instruction to insert an HR though). 

rj 

--
Robert Nagle
3000 Greenridge Dr #2204, Houston TX 77057-6037  
(Cell) 832-251-7522   Carbon Neutral Since Jan 2010

stimits | 2 May 02:43 2016
Picon
Picon

Xsltproc with XInclude (Docbook 5)

Hi,
 
I am trying to find a suitable combination of tools under Linux (currently Fedora 23) for validating and publishing from Docbook 5 to PDF, PostScript, RTF, and some variant of HTML (preferably xhtml strict, but most any variant will work). Some of my testing "almost" works via xsltproc using the sourceforge download for docbook.xsl, but apparently what I need is the "xi" version, docbookxi.xsl, which I have not been able to find. If I give up dividing into multiple files vi XInclude, and instead use a DTD and entities, or else create one large monolithic file, things work...however, this is very difficult to work with...I'd end up going back to less desirable less flexible tools.
 
For use of Docbook 5 under Linux and xsltproc, where would I find a suitable XInclude stylesheet (docbook.xsl)? Or is there some other recommended route for processing Docbook 5 books while splitting into separate files for each chapter?
 
Thanks!
Ron Catterall | 29 Apr 22:54 2016
Picon

jing errore with <entrytbl>

This code to center a table on a page does exactly what I want in PDF 
output using the default scenario Docbook PDF in oXygen 18.0.  (Saxon 
6.5.5 and fop). (xep also gives the output I want.).  But I always get 
error conditions from the presence of a <colspec> after <entrytbl> (see 
error listing after xml code) from jing.  A <spanspec> after <entrytbl> 
is OK.  Docbook 5 says <entrytbl> can contain a <colspec> which can 
adjust the relative widths of the columns, and fop and xep are happy 
with it and report no errors, fop reports validation OK.  The problem 
seems to be in jing.
Has anybody else seen this problem with jing?
(Obviously I can just ignore false errors from jing.)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE chapter>
<chapter xml:id="chap_n" xmlns="http://docbook.org/ns/docbook" 
version="5.0" xml:lang="EN">
         <title>TITLE</title>

<!-- to get title cenered on page we need to adjust the param 
body.start.indent to set indent of body text from start of title in a 
custom layer, and col widths.  For no ident use:
<xsl:param name="body.start.indent" select="'0pt'"> </xsl:param> -->

<table frame="all" xml:id="Tab01">
     <?dbfo table-width="100.0%" ?>
     <?dbfo keep-together="always" ?>
     <info><title></title></info>
     <tgroup align="center" cols="3">
         <colspec colname="c1" colnum="1" colwidth="0.50*" colsep="0" 
rowsep="0"/> <!--- left margin -->
         <colspec colname="c2" colnum="2" colwidth="99.0*" colsep="1" 
rowsep="0"/> <!-- table fits in here -->
         <colspec colname="c3" colnum="3" colwidth="0.50*" colsep="0" 
rowsep="0"/> <!--- rigjt margin -->
         <spanspec align="center" nameend="c3" namest="c1" 
spanname="hspanc"/>
         <tbody valign="middle">
             <row valign="middle">
                 <entry/> <!--- left margin -->

<!-- START OF TABLE TO BE CENTERED -->
                 <entrytbl align="left" cols="2" rowsep="1" colsep="1">
                     <colspec colname="ccl" colwidth="1.0*"  align="left"/>
                     <colspec colname="cc2" colwidth="8.0*"  align="left"/>
                     <spanspec spanname="hspan"  namest="cc1" 
nameend="cc2"/>
                     <spanspec spanname="hspan1" namest="cc1" 
nameend="cc1"/>
                     <spanspec spanname="hspan2" namest="cc2" 
nameend="cc2"/>
                     <tbody>
                         <row>
                             <entry spanname="hspan1" 
colsep="0">ABC:</entry>
                             <entry spanname="hspan2" colsep="0">first 
long entry abc def ghi jkl mno pqr stu vwx yz</entry>
                         </row>
                         <row>
                             <entry spanname="hspan1" 
colsep="0">DEF:</entry>
                             <entry spanname="hspan2" colsep="0">second 
long entry abc def ghi jkl mno pqr stu vwx yz</entry>
                         </row>
                         <row>
                             <entry spanname="hspan1" 
colsep="0">GHI:</entry>
                             <entry spanname="hspan2" colsep="0">third 
long entry abc def ghi jkl mno pqr stu vwx yz</entry>
                         </row>
                     </tbody>
                 </entrytbl>
<!-- END OF TABLE TO BE CENTERED -->

                 <entry/> <!-- right margin -->
             </row>
         </tbody>
     </tgroup>
</table>
</chapter>

System ID: /home/ron/Desktop/center_table.xml
Main validation file: /home/ron/Desktop/center_table.xml
Scenario name: DocBook 5
Document type: DocBook 5
Engine name: oXygen
Severity: error
Description: The number of table columns determined from the table 
structure (5) is different than the value of the "cols" attribute (3).
Type: Table Layout
Start location: 14:5
End location: 14:37

System ID: /home/ron/Desktop/center_table.xml
Main validation file: /home/ron/Desktop/center_table.xml
Scenario name: DocBook 5
Document type: DocBook 5
Engine name: oXygen
Severity: warning
Description: The number of table columns determined from the table 
structure (5) is different than the number of colspecs (3).
Type: Table Layout
Start location: 14:5
End location: 14:37

System ID: /home/ron/Desktop/center_table.xml
Main validation file: /home/ron/Desktop/center_table.xml
Scenario name: DocBook 5
Document type: DocBook 5
Engine name: oXygen
Severity: error
Description: The number of cells in the row (5) is greater than the 
value of the table attribute "cols" (3).
Type: Table Layout
Start location: 20:13
End location: 20:34

System ID: /home/ron/Desktop/center_table.xml
Main validation file: /home/ron/Desktop/center_table.xml
Scenario name: DocBook 5
Document type: DocBook 5
Engine name: oXygen
Severity: error
Description: The column name (ccl) from the "colname" attribute value is 
not found in column specifications.
Type: Table Layout
Start location: 25:21
End location: 25:76

System ID: /home/ron/Desktop/center_table.xml
Main validation file: /home/ron/Desktop/center_table.xml
Scenario name: DocBook 5
Document type: DocBook 5
Engine name: oXygen
Severity: error
Description: The column name (cc2) from the "colname" attribute value is 
not found in column specifications.
Type: Table Layout
Start location: 26:21
End location: 26:76

--

-- 
Ron Catterall Ph.D, DSc
ron <at> catterall.net
Richard Hamilton | 28 Apr 00:53 2016
Picon
Gravatar

Decimal align labels in a print TOC

By default, the chapter number in a TOC line is left aligned, as shown here:

1. Title of chapter 1 ............1
2. Title of chapter 2 ............5
...
100. Title of chapter 100 ....X

I'm trying to figure out the best way to have the chapter numbers right align, so the separator (in this case a
period) aligns vertically. That would look something like this (simulated in a variable width font):

    1.
    2.
100.

I've tried applying various attributes to the fo:inline element in the toc.line template, but to no avail.

Does anyone have any suggestions on the best way to do this?

Thanks,
Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton <at> xmlpress.net
Hussein Shafie | 22 Apr 17:23 2016

[ANN] Release of XMLmind XSL-FO Converter v5.4.1

Release of XMLmind XSL-FO Converter v5.4.1.

Highlights:

- XMLmind XSL Utility and XMLmind XSL Server: updated several software 
components Apache FOP 2.1, DocBook XSL stylesheets 1.79.1, XMLmind DITA 
Converter v2.6, etc.

   Latest version of XMLmind DITA Converter adds partial DITA 1.3 
support to XMLmind XSL Utility and XMLmind XSL Server. Full DITA 1.3 
support is planned for year 2016. More information in "About DITA 
support in XMLmind DITA Converter" 
(http://www.xmlmind.com/ditac/_distrib/doc/manual/dita_support.html).

- XMLmind XSL-FO Converter engine: better support of East Asian (CJK) 
fonts. See "Special support for East Asian fonts" 
(http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#east_asian_fonts).

Download Evaluation Edition: 
http://www.xmlmind.com/foconverter/downloadeval.shtml

---------------------------------
What is XMLmind XSL-FO Converter?
---------------------------------

XMLmind XSL-FO Converter (http://www.xmlmind.com/foconverter/) is an 
XSL-FO processor similar to Apache FOP, RenderX XEP or Antenna House XSL 
Formatter, except that it generates RTF, WML, ODT and DOCX file formats 
rather than PDF.

More importantly, this commercial product comes with a handy desktop 
application called "XMLmind XSL Utility" 
(http://www.xmlmind.com/foconverter/xsl_utility.html) which makes it 
easy converting DocBook documents to RTF, WML, ODT, DOCX (and PDF thanks 
to Apache FOP).

XMLmind XSL Utility also makes it easy customizing the output of the 
DocBook XSL stylesheets and this, without modifying configuration files 
by hand and without prior knowledge of XSLT. See 
http://www.xmlmind.com/foconverter/_distrib/xslutil/doc/help/com.xmlmind.xslutil.ConversionEditor.html#customizing_xslt
Bob Stayton | 17 Apr 04:33 2016
Picon

support for MathML 3?

I've been using Jeuclid for processing MathML, and it mostly works fine. 
  But it has support only up to MathML 2.0 (second edition). Does anyone 
know of a good tool (free or otherwise) that can handle MathML 3? 
Ideally it would work like Jeuclid's foprep app that takes in a .fo file 
containing MathML, passes through everything except the MathML, which it 
converts to SVG.

--

-- 
Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net

Gmane