Re: [docbook-apps] Epub and Saxon

From
Marcel Tromp <>
Date
2013-04-02T20:40:31+00:00
ID
CAGWEdqUJqRudpmHzfCxkdLuk62Vo89sEJC0vtR_tyB5AQ=
Thread
Re: [docbook-apps] Epub and Saxon
It is the author element in info that triggers the problem:

      <author>
        <personname>
          <firstname>Marcel</firstname>

          <surname>Tromp</surname>
        </personname>
      </author>

If I use an empty authorgroup, no errors are generated. The error I showed before is generated twice: once for firstname, once for lastname.

 

MT
--

On Tue, Apr 2, 2013 at 8:56 AM, Bob Stayton <> wrote:

Hi Marcel,

Can you determine exactly which element in info is triggering 
that error?  Perhaps comment out all but one element at a 
time?

 

Bob Stayton
Sagehill Enterprises


From: Marcel Tromp 

Sent: Monday, April 01, 2013 1:11 PM

To: docbook-apps 

Subject: [docbook-apps] Epub and Saxon

Hi,

 

I am setting up flow to generate epub using 1.78.1, but will use Saxon 
instead of xsltproc.

 

With xsltproc, document converts without any warnings/errors, but Saxon 
throws recoverable errors:

 

Recoverable error
at xsl:attribute on 
line 211 of file://work/mtools/docbook-xsl-ns/dev/xhtml-1_1/inline.xsl:
  
Cannot write an attribute node when no element start tag is open
Writing 
OEBPS/content.opf

This seems to be caused by adding the author data to content.opf in line 
260 of epub/docbook.xsl:

 

     
<xsl:apply-templates select="/*/*[contains(name(.), 
'info')]/*"
                                 
mode="opf.metadata"/>

Although the generated file seems ok, the error output will be 
problematic/confusing for users.

 

Is there a way to suppress these errors, or even better, prevent them from 
happing?

 

MT
--