#1304 Bad itemrefs produced when <book><title> has another tag like <emphasis>

output: HTML
closed
nobody
None
5
2015-02-12
2013-06-15
Gérard Vidal
No

Hi,
I have been able to reproduce this every time
If a docbook book has its title declared in this way:

 <book xmlns="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-subset ens-doa-1.0" xml:lang="fr">
 <info>
    <title><emphasis>Formation Rouen 2012-2013 Eau et Sol</emphasis></title>

    <cover>
    .../...

The transformation induces problems in the toc.ncx and package.opf.
In the toc.ncx the title displays this anomaly

 <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
 <head>
    <meta name="cover" content="cover"/>
    <meta name="dtb:uid" content="_idp800"/>
 </head>
 <docTitle>
    <text>Formation Rouen 2012-2013 Eau et Sol???TITLE???</text>
 </docTitle>
 .../...

And in the package.opf there is a wrong itemref, if the <emphasis> tag carries attributes I can get two or more ???TITLE???. The itemref has an id that does not exist anywhere.

in some cases the epub3 works and there is no visible effects in other cases which are more frequent readium gets confused and tries to play the book as a media; nothing appears except the cover page.

The declaration in this way :

   <book xmlns="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Mat /MathML" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-subset ens-doa-1.0" xml:lang="fr">
 <info>
    <title>Formation Rouen 2012-2013 Eau et Sol</title>

    <cover>
    .../...

brings everything to normal.

Thank-you for your work, hope this may help.

Discussion

  • Gérard Vidal
    Gérard Vidal
    2013-06-16

    After various tests its seems that using docbook-xsl-ns solves the problem.

     
  • Gérard Vidal
    Gérard Vidal
    2013-07-04

    The procedure with docbook-xsl-ns has been tested on linux windows and iOs, it works perfectly.
    Please close this ticket and accept my apologizes for writing before thinking.

     
  • Robert Stayton
    Robert Stayton
    2013-08-28

    • status: open --> closed
     
  • Robert Stayton
    Robert Stayton
    2013-08-28

    Closed per instructions from submitter in later comment.