Though I know, that using <br/> tags are not recommended in epubs, and CSS styling is suggested intead of it. The forced line ending (\ *\+$) in asciidoc has the proper result in almost every output format, except epub. Simply just copying this solution form other docbook-xsl file is not enough, since the xslt-processed output will contain an extra empty parameter inside the tag <br xmlns="" />, which invalidates the epub file. That is why a new xmlns parameter must have been added as well in epub.xsl.
-- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
--- epub.xsl.org 2014-07-01 09:23:49.427623615 +0200 +++ epub.xsl 2014-07-01 09:23:58.947670823 +0200 @@ -8,10 +8,16 @@ stylesheets. This means you don't need to edit the <xsl:import> elements on a machine by machine basis. --> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl"/> <xsl:import href="common.xsl"/> +<!-- Line break --> +<xsl:template match="processing-instruction('asciidoc-br')"> + <br /> +</xsl:template> + <!-- DocBook XSL 1.75.2: Nav headers are invalid XHTML (table width element). Suppressed by default in Docbook XSL 1.76.1 epub.xsl.
