19 Dec 15:12 2014

### Multi-footnote reference

Hi everybody,
do you know if is it possible to link a single footnote to more than a line?
To explain better what I mean I've attached an image of a table with the footnote and the related "numbers 1" in each line I need them. All written in red.
The only solution I have so far is to use the <footnote> in the first line and the <superscript> in the others... but if you know that there is a better solution, please teach me.

Matteo R.

---------------------------------------------------------------------
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
17 Dec 06:59 2014

### Image scaling in Eclipse help

Hello everybody,

I’m converting my DocBook XML files to Eclipse help using xsltproc and eclipse3 stylesheet, and I still can’t find the solution to proper image scaling. I want the images that are less than 100% of the page width to stay at their default size, and I want to scale bigger images down to 100% page width.

In the XML code I use the following attributes:

<imagedata contentdepth="100%" fileref="image001.png" format="png" scalefit="1" width="100%"/>

In my adaptation layer I use ignore.image.scaling = 1.

I’ve tried various combinations of stylesheet parameters regarding graphics, as well as applying CSS styles (width and max-width parameters) to img, .mediaobject, .informalfigure, and .figure. Can’t find the correct combination or find the solution online.

If you have solved this problem, please share.

Thank you very much in advance!

--

Kind regards,

Ekaterina Shikareva

Senior Technical Writer

Luxoft Russia

Skype: maymakayu

This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.
16 Dec 22:10 2014

### Strange paragraph justification issue

Hi all,

I have an interesting problem. I've got a couple of para elements, one that contains a long example HTML tag:

<para>&lt;img width="300" height="200" src="http://img.example.com/ggbridge.jpg<emphasis role="bold">?i10c=img.resize(width:300,height:200)</emphasis>"&gt;</para>

and another with a similarly long URL

<para>http://img.example.com/ggbridge.jpg<emphasis role="bold">?i10c=img.crop(width:1000,height:1000);img.resize(width:500,height:500)</emphasis></para>

For some mysterious reason, for the first of these, the first line of the rendered text to look really stupid in the PDF output. It's as if the line breaks at a reasonable place (the question mark that denotes the beginning of the query string), but then the line is justified at the left and the right, with big spaces between each "word" – though the second line is left-aligned as normal. Something like this:

<img      width="300"     height="200"     src="http://img.example.com/ggbridge.jpg   ?
i10c=img.resize(width:300,height:200) " />

However, the second example renders just fine. Breaks at the question mark, both lines are left-aligned.

That suggested to me that perhaps the presence of the entities in the string might be causing this to happen. But if remove them as an experiment, it still breaks badly. If I chop out some text so that it's short enough to fit in one line, it left aligns just fine.

I was able to work around this by adding a linebreak processing instruction as described in the Book, but I was mystified and wondered if anyone else has seen this.

Thanks!

I tried using

--
Regards,
Alan

 Alan C. OehlerSenior Technical Writer Phone: 650-919-8856 | Email: aoehler instartlogic.com Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com

12 Dec 16:44 2014

### fop and embedding fonts

Hi,
I'm attempting font-embedding with Apache FOP 1.1 with difficulties. Is there a tutorial on setting this up?

In my xsl customization layer I set "body.font.family" to 'Droid'.
<xsl:param name="body.font.family">Droid</xsl:param>

In my fo configuration file, I specify the TrueType font:
<font
embed-url="file:///AppDocs/tex/texlive/texmf-dist/fonts/truetype/public/droid/DroidSans.ttf">
<font-triplet name="Droid" style="normal" weight="normal"/>
</font>

specified in the renderer for application/pdf. When I compile the document, I don't see any errors or warnings, but Droid is not listed in the fonts, let alone being embedded.

But the settings have some effect though, since the body text in the pdf has '#' for each character that is supposed to be in the body font.

I am reading the fop fonts doc (with 1.1 the metrics are optional it says).

and the DocBook XSL Guide on fonts:

Anyone see what I'm doing wrong?
thanks,
--Tim

12 Dec 12:23 2014

### Unable to change the output folder of Docbook Webhelp

My default  outputs go into an out folder, I didn't want that so for my
three transformations I Modified as follows:

Duplicate Docbook Pdf
Select Edit
Select Output Tab
Change Save As to $cfd}\..\pdf\${cfn}.pdf

Duplicate Html Duplicate
Select Edit
Select Output Tab
Change Save As to ${cfd}\..\html\${cfn}.html

Duplicate Webhelp Duplicate
Select Edit
Select Output Tab
Change Save As to $cfd}\..\webhelp\index.html The first two work, but the third one has no effect it is still generated in out folder, why is that Paul  11 Dec 16:25 2014 ### Why is italic text not displayed in html files generated from Docbook/Oxygen ? I'm using Oxygen Xml Editor 15 to generate Docbook Html, Docbook Webhelp and Docbook Pdf from a single Xml file in Docbook format. The pdf file is fine but the Html and webhelp files are not outputting the text I made italic as italic, text I made bold is shown as bold. When I look at the html of the outputted data I can see Bold uses <span class="italic"> and Italic uses <span class="italic"> so both are using a similar mechanism, Webhelp references the stylesheet *oxygen-webhelp/resources/css/webhelp_topic.css* but I cant see a bold or an italic class within it. Html doesnt reference any stylesheet. Both files say they used *DocBook XSL Stylesheets V1.78.1* How can I fix this so italics are shown, preferably by modifying a setting in Oxygen so I don't have to do it every time I regenerate the text.  11 Dec 15:48 2014 ### Olinking for PDF generates absolute path Hello, I try to get olinks between PDF manuals. I use XEP as the XSL-FO renderer and DocBook 1.78.1 stylesheets with some customizations. I use the following olink database file: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE targetset [ <!ENTITY importer SYSTEM "importer-developer-en/target.db"> <!ENTITY operations SYSTEM "operation-basics-en/target.db"> ]> <targetset> <document targetdoc="AImporterDeveloperManual_280878" baseuri="importer-developer-en.pdf"> &importer; </document> <document targetdoc="AOperationsBasicKnowledge-285398" baseuri="operation-basics-en.pdf"> &operations; </document> </targetset> (Using baseuri=”file:importer-developer-en.pdf” does not work for me.) In the PDF I get an absolute link as shown in the screenshot with the build directory as the prefix but what I want is a relative path. Is there a setting to get it or do I something wrong? Best regards, Michael Dr. Michael Fritsch Technical Editor tel +49.40.325587.214 fax +49.40.325587.999 CoreMedia AG content | conversation | conversion Ludwig-Erhard-Str. 18 20459 Hamburg, Germany www.coremedia.com Executive Board: Gerrit Kolb (CEO), Dr. Klemens Kleiminger (CFO) Supervisory Board: Prof. Dr. Florian Matthes (Chairman) Trade Register: Amtsgericht Hamburg, HR B 76277  --------------------------------------------------------------------- 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 3 Dec 10:50 2014 ### HTML link to image Hi all! I'd like like to ask for some help from those who really understand the working of XSL. I am using Saxon to transform my DocBook 4.4 XML files to HTML and I'd like to change the way the links to images are generated. Here is the XML code of a figure: <figure id="Bufferfly_abra" xreflabel="Bufferfly ábra"> <title>Bufferfly ábra</title> <mediaobject> <imageobject> <imagedata .../> </imageobject> </mediaobject> </figure> Here is an XML reference to a figure: <xref linkend="Bufferfly_abra"/> After the XML->HTML conversion the code of image looks like this: (I stripped the unnecessary parts) <a name="Bufferfly_abra"></a> ... <img src="..." alt="Bufferfly ábra"> And the link to the image: <a class="xref" href="#Bufferfly_abra" title="6.22. ábra - Bufferfly ábra">Bufferfly ábra</a> The point is that the text in link contains the full title of the image. Sometimes it can be very long. The other thing that the tooltip contains the full title of image plus it has a numbering. I'd like to get this: The text in link should contain only the numbering (eg. Figure 2.3) instead of the image title. Optional: The tooltip should contain only the title of image. (it is not so important ) My question is: Which XSL file (and which rule) should I modify and how? (in order to do this) Any help appreciated. Thanx in advance! Zoltan Janosi 10 Nov 19:16 2014 ### Re: help with a simple customization template Thanks for that push in the right direction Peter. It was indeed the missing fileref--when I populate that in the source xml, my template does get picked up. Probably this is an interesting corner-case (or maybe not that interesting), but thanks for helping me get to back to work! --Tim On Mon, Nov 10, 2014 at 11:48 AM, Peter Desjardins wrote: When I'm not sure whether my customization template is being used, I drop in an <xsl:message />. <xsl:template match="d:inlineequation/d:inlinemediaobject[ <at> remap='math']/d:imageobject/d:imagedata"> <xsl:message>FINDME: ***********************************</xsl:message> <xsl:element name="img"> <xsl:attribute name="class">math</xsl:attribute> </xsl:element> </xsl:template> If you see "FINDME" in your console output, you know the template is being used. Your empty imagedata element seems like it's likely to cause confusion since you're not including any imagedata. But I haven't looked into the default handling of imageobject and imagedata. Peter On Mon, Nov 10, 2014 at 11:25 AM, Tim Arnold <jtim.arnold <at> gmail.com> wrote: > hi, I have looked at this and looked at it and still cannot see what I'm > doing wrong. > I would appreciate another set of eyes to show me the error.Trying to match > on an 'inlineequation' to produce an 'img' element, but getting a 'span' > instead. I've cut it down to this example: > > The XSLT: > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:d="http://docbook.org/ns/docbook" > version="1.0" exclude-result-prefixes="d"> > > <xsl:include href="path/to/docbook/xsl-1.78.1/html/onechunk.xsl" /> > > <xsl:template > match="d:inlineequation/d:inlinemediaobject[ <at> remap='math']/d:imageobject/d:imagedata"> > <xsl:element name="img"> > <xsl:attribute name="class">math</xsl:attribute> > </xsl:element> > </xsl:template> > </xsl:stylesheet> > > This DocBook 5 XML: > <article xmlns="http://docbook.org/ns/docbook" > xmlns:mml="http://www.w3.org/1998/Math/MathML" > xmlns:xl="http://www.w3.org/1999/xlink"> > <section remap="section" xml:id="a0000000002"> > <info><title>Introduction</title></info> > For example, > <inlineequation> > <inlinemediaobject remap="math"> > <imageobject role="math_images"> > <imagedata role="math" /> > </imageobject> > <textobject role="tex"> > <phrase>$\alpha +\beta {}x+\varepsilon $</phrase> > </textobject> > </inlinemediaobject> > </inlineequation>. > </section> > </article> > > And I get this result, which means that my template is not getting used, > right? Can you see what I'm doing wrong? I omit the HTML header and intro > material: > <div class="section"> > <div class="titlepage"> > <div> > <div> > <h2 class="title" style="clear: both"> > <a name="a0000000002"></a> > Introduction > </h2> > </div> > </div> > </div> > For example, > <span class="inlinemediaobject"></span> > . > </div> > > thanks in advance, > --Tim > 10 Nov 17:25 2014 ### help with a simple customization template hi, I have looked at this and looked at it and still cannot see what I'm doing wrong. I would appreciate another set of eyes to show me the error.Trying to match on an 'inlineequation' to produce an 'img' element, but getting a 'span' instead. I've cut it down to this example: The XSLT: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" version="1.0" exclude-result-prefixes="d"> <xsl:include href="path/to/docbook/xsl-1.78.1/html/onechunk.xsl" /> <xsl:template match="d:inlineequation/d:inlinemediaobject[ <at> remap='math']/d:imageobject/d:imagedata"> <xsl:element name="img"> <xsl:attribute name="class">math</xsl:attribute> </xsl:element> </xsl:template> </xsl:stylesheet> This DocBook 5 XML: <article xmlns="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xl="http://www.w3.org/1999/xlink"> <section remap="section" xml:id="a0000000002"> <info><title>Introduction</title></info> For example, <inlineequation> <inlinemediaobject remap="math"> <imageobject role="math_images"> <imagedata role="math" /> </imageobject> <textobject role="tex"> <phrase>$\alpha +\beta {}x+\varepsilon \$</phrase>
</textobject>
</inlinemediaobject>
</inlineequation>.
</section>
</article>

And I get this result, which means that my template is not getting used, right? Can you see what I'm doing wrong? I omit the HTML header and intro material:
<div class="section">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="a0000000002"></a>
Introduction
</h2>
</div>
</div>
</div>
For example,
<span class="inlinemediaobject"></span>
.
</div>

--Tim

7 Nov 10:57 2014

### problem with SVG in Docbook

Hi

I am changing some illustrations from png to svg, and I have encountered
what I think is a bug in some stylesheet.

My input

<imageobject role="html">
<imagedata  format="SVG"
fileref="../code/specgraphics/crashnavi.svg"
scale="75"/>
</imageobject>

generated output html:

<div class="mediaobject">
<object style="width: 405; " type="image/svg+xml"
data="../code/specgraphics/crashnavi.svg"/>
</div>

Problem: the style attribute in the object element is calculated
correctly but CSS requires a unit, eg "px". Resultingly the width is not
interpreted on the html page.

Is there any additional spec I can do to work around the problem?
Has it been reported and is there fix on the way?

I am using docbook-xsl-ns-stylesheets-1.78.0

Cheers
Niels



Gmane