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>
(Continue reading)

Fredrik Unger | 23 Jan 14:45 2015
Picon

docbook -> docx

Hi,

I am looking into generating reports that has to be Word 2010.

Now I am able to get reasonable results with a simple test file using 
python-docx, currently just writing the report in python.

My plan would be :
- Generate/write docbook file
- Create docx file with styles as template in Word 2010
- Translate docbook -> docx using python-docx building a
   small python library

This gives me the freedom to generate the reports in docbook xml using
the tools in python, xml, templates etc.

My current document contains, text, tables, images which all are 
supported in python-docx.

Are there any better alternatives to this approach ?

Thanks,

Fredrik Unger
Dan Shelton | 15 Jan 16:01 2015
Picon

Restrictive Docbook XML editor which enforces Docbook schema?

Is there a Docbook XML editor which enforces the Docbook schema during editing?

I am looking for an editor which loads the Docbook XML schema and then
only allows the creation of tags which are allowed at the current
position in the XML document.

Dan
Fekete, Róbert | 15 Jan 09:58 2015

Stylesheet bug: Assembly stylesheets ignore attributes

Hi, 

I had to localize some of my docbook assembly files, and it seems to me that the stylesheets ignore the xml:lang and other attributes.

I have created a patch (attached) that preserves the "xml:lang" and "condition" attributes of the <structure> tag, though it might not be the best solution (and it still drops other attributes).

Kind Regards,

Robert
Attachment (commit-a1a5433): application/octet-stream, 1338 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
Jirka Kosek | 13 Jan 21:26 2015
Picon

Re: Non translatable content in Docbook 4.x

On 13.1.2015 20:50, Jan Tosovsky wrote:
> I'd like to mark some text as non translatable. I could add a common
> attribute to all elements in original DTDs, but I like the idea of utilizing
> ITS standard for this purpose, which seems to be supported in CAT tools.
> 
> I've found this explanatory article, but I'd like to use it in old 4.x DTD.
> http://xmlguru.cz/2013/05/docbook-and-its2

You should definitively use DocBook 5.x. There are already schemas for
DocBook 5.0+ITS and in DocBook V5.1 schemas will support ITS out-of-the box.

> Is there any way? Some extension like for xi:includes ?

You can customize DTD yourself, but it's painful compared to RELAX NG
based customization of DocBook 5:

http://docbook.org/tdg/en/html/ch05.html

You can crate your own DTD, something like:

<!ENTITY % local.common.attrib "
  its:translate (yes|no) #IMPLIED
  xmlns:its CDATA #FIXED 'http://www.w3.org/2005/11/its'
">
<!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
%DocBookDTD;

> Btw, there is no ROI to switch to Docbook 5.

It's usually pretty straightforward to switch to V5.

				Jirka

--

-- 
------------------------------------------------------------------
  Jirka Kosek     e-mail: jirka <at> kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
  Profesionální školení a poradenství v oblasti technologií XML.
       Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
  http://docbook.cz    Stránky o dokumentačním formátu DocBook
  http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------

Jan Tosovsky | 13 Jan 20:50 2015
Picon

Non translatable content in Docbook 4.x

Dear All,

I'd like to mark some text as non translatable. I could add a common
attribute to all elements in original DTDs, but I like the idea of utilizing
ITS standard for this purpose, which seems to be supported in CAT tools.

I've found this explanatory article, but I'd like to use it in old 4.x DTD.
http://xmlguru.cz/2013/05/docbook-and-its2

Is there any way? Some extension like for xi:includes ?

Btw, there is no ROI to switch to Docbook 5.

Thanks, Jan
davep | 13 Jan 08:48 2015
Picon

Re: .texi files conversion to docbook

On Wed, 07 Jan 2015 16:10:59 -0500
Peter Eisentraut <peter <at> eisentraut.org> wrote:

> On 1/6/15 4:35 AM, davep wrote:
> > Does anyone know if tools to convert from texinfo files to docbook
> > are up to date please? Do they do a good / reasonable job?
> 
> I have been using docbook2x for a while.  It works alright, but there
> are many cases where it cannot map some DocBook content to Texinfo,
> and then it complains or dies.  So it might nor might not work for
> you.

I was interested in the other way round Peter - .texi to docbook.
I'm guessing that too is no well supported.

Thanks. DaveP

> 
> That package is not being updated anymore, but I don't think Texinfo
> is being developed much anymore, so there might not be much need.
> 
> Personally, I would take it if it works, but I wouldn't rely on it.
> 

-- 

regards 

--

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
davep | 6 Jan 10:35 2015
Picon

.texi files conversion to docbook

Does anyone know if tools to convert from texinfo files to docbook are
up to date please? Do they do a good / reasonable job?

TiA Dave P

-- 

regards 

--

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Matteo Regazzo | 19 Dec 15:12 2014
Picon

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.

Thank you in advance,

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
Shikareva, Ekaterina | 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 

www.luxoft.com

www.facebook.com/Luxoft

 



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.

Gmane