[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Admonitions in .epub documents?
Sure thing. I am using the epub/docbook.xsl from the package docbook-xsl-ns-1.75.2.zip Here is an example of my docbook xml: <?xml version="1.0" encoding="iso-8859-1"?> <book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en"> <info> <title>Book Title</title> <pubdate>2010</pubdate> <copyright> <year>2010</year> <holder>Me</holder> </copyright> </info> <chapter> <title>Title</title> <para>This is a test for Admonitions</para> <note><para>This is a note</para></note> <tip><para>This is a tip</para></tip> <important><para>This is important</para></important> <warning><para>this is a warning</para></warning> </chapter> </book> And here is the output generated for ch01.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Chapter 1. Title</title> <meta name="generator" content="DocBook XSL-NS Stylesheets V1.75.2"/> </head> <body> <div class="chapter" title="Chapter 1. Title"> <div class="titlepage"> <div><div><h1 class="title"><a xmlns:saxon="http://icl.com/saxon" id="d0e12"/>Chapter 1. Title</h1></div></div> </div> <p>This is a test for Admonitions</p> <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This is a note</p></div> <div class="tip" title="Tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>This is a tip</p></div> <div class="important" title="Important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>This is important</p></div> <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>this is a warning</p></div> </div> </body> </html> The OPF manifest does not link to any admonition images: <manifest> <item id="ncxtoc" media-type="application/x-dtbncx+xml" href="toc.ncx"/> <item id="htmltoc" media-type="application/xhtml+xml" href="bk01-toc.html"/> <item id="d0e12" href="ch01.html" media-type="application/xhtml+xml"/> </manifest> On 15/07/2010 1:52 PM, Keith Fahlgren wrote: > On Tue, Jul 13, 2010 at 4:20 PM, Glenn McDonald<gmcdonald@vividas.com> wrote: >> The html files that are generated for .epub have no links to the images >> themselves. > Sorry, would you please clarify what DocBook is producing that HTML > and what version of the DocBook-XSL stylesheets your using? (I'm not > able to duplicate it with the current SVN trunk& a guess at the > markup.) > > > Thanks, > Keith
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]