[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] epub3 missing Navigation Document?
Ok, I discovered the problem. I was transforming an *article*, not a book. If I use a book everything is OK. I don't really know if transforming an article is a sensible user case for an epub, so I let you decide if this is a bug or a feature! Thanks, __peppo On Wed, Feb 8, 2012 at 7:34 PM, Bob Stayton <bobs@sagehill.net> wrote: > Strange, I just tried the latest -ns- snapshot on a DB5 book and I get: > > > <manifest> > <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> > <item id="htmltoc" properties="nav" media-type="application/xhtml+xml" > href="bk01-toc.xhtml"/> > > You don't have the stylesheet param 'generate.toc' turned off, by any > chance? That seems to be the only condition for not including it. See the > template named 'manifest.toc' in epub3/epub3-element-mods.xsl. > > > Bob Stayton > Sagehill Enterprises > bobs@sagehill.net > > > ----- Original Message ----- From: "Giuseppe Bonelli" > <peppo.bonelli@gmail.com> > To: "Bob Stayton" <bobs@sagehill.net> > Cc: "apps docbook" <docbook-apps@lists.oasis-open.org> > Sent: Wednesday, February 08, 2012 10:18 AM > Subject: Re: [docbook-apps] epub3 missing Navigation Document? > > > > Hi Bob, > I have indeed used a snapshot I got a couple hours ago. > The 9230 is just a reference to the last commit i saw before getting > the snapshot. > > As a test I have simply converted a valid db5.0 file using > docbook-xsl-ns/epub3/chunk.xsl > > Everything works as expected, but in the package.opf I don't see any > properties="nav" attribute on one of the items in the manifest: > <manifest> > <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> > <item media-type="text/css" id="docbook-css" href="docbook-epub.css"/> > <item id="id-idp9296" href="index.xhtml" > media-type="application/xhtml+xml"/> > <item id="id-idp17104" href="ar01s02.xhtml" > media-type="application/xhtml+xml"/> > </manifest> > > and therefore epubchek says: > assertion failed: Exactly one manifest item must declare the 'nav' > property (number of 'nav' items: 0). > > And I don't see any <nav> element in either of the two xhtml files. > > If it helps, I am using xsltproc from Oxygen, I do have set the > base.dir param and my db5.0 is valid. > > Thanks, > > __peppo > > > On Wed, Feb 8, 2012 at 6:36 PM, Bob Stayton <bobs@sagehill.net> wrote: >> >> Before filing a bug, can you clarify where the stylesheet came from? I >> have >> not tried running from the SVN collection of files. >> >> I have been testing with the latest XSL snapshots, which now include >> xhtml5 >> and epub3, and those validate. I would recommend you experiment with the >> snapshot files. In particular, if you are using DB5 documents, use the >> "-ns-" version of the snapshot build. That should have the latest version >> of the files in a usable form suitable for DB5. >> >> Bob Stayton >> Sagehill Enterprises >> bobs@sagehill.net >> >> >> ----- Original Message ----- From: "Giuseppe Bonelli" >> <peppo.bonelli@gmail.com> >> To: "apps docbook" <docbook-apps@lists.oasis-open.org> >> Sent: Wednesday, February 08, 2012 9:13 AM >> Subject: [docbook-apps] epub3 missing Navigation Document? >> >> >>> Hi, >>> I am experimenting with the epub3/html5 latest xsl (build 9230) on >>> DB5.0 files and I get invalid epubs (validated against the latest >>> epubcheck-3.0b3). >>> >>> Apparently the epubs are missing the navigation document along with >>> the relevant reference to it in the opt manifest. >>> >>> Do I have to file a bug or I am missing something? >>> >>> Thanks, >>> >>> __peppo >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >>> >>> >>> >> > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]