docbook-apps

  • 1.  DB Publishers to XSLT epub output -- POETRY TAG strangeness

    Posted 09-10-2016 03:28
    I have started to investigate the Docbook for Publishers and using the
    latest Docbook XSLT to render it. I'm primarily interested in producing
    epub output.

    I'm using sample code from the Docbook for Publishers Guide and am using
    the docbook-xsl-ns-1.79.1/epub3/chunk.xsl to transform everything:

    I think this is a bug. Let me know if you want me to file a bug or if this
    is a known issue.
    *******************************************************


    type="xml"?>


    %myents;
    ]>
    <book xmlns="http://docbook.org/ns/docbook" xmlns:xi="
    http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
    xml:id="publisher">
    <info>



    <publisher>
    <publishername>Personville Press </publishername>
    Houston, Texas

    </publisher>
    <edition>1st Edition (Ebook) 1.1.1 October 1, 2016 </edition>

    </info>
    <chapter xml:id="test2">

    <poetry>

    <info>
    <creator xmlns="http://purl.org/dc/terms/">Robert
    Burns</creator>
    </info>
    <linegroup>
    <line>Should auld acquaintance be
    forgot,</line>
    <line>And never brought to mind?</line>
    <line>Should auld acquaintance be forgot,</line>
    <line>And auld lang syne?</line>
    </linegroup>
    <linegroup>
    <line>For auld lang syne, my dear,</line>
    <line>For auld lang syne,</line>
    <line>We'll tak a cup o' kindness yet,</line>
    <line>For auld lang syne.</line>
    </linegroup>
    </poetry>



    </chapter>
    </book>
    *******************************************************
    XSLT:

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml" xmlns:d="
    http://docbook.org/ns/docbook"
    xmlns:date="http://exslt.org/dates-and-times" xmlns:saxon="
    http://icl.com/saxon"
    exclude-result-prefixes="d date saxon" version="1.0">

    <xsl:import
    href="../../../../../1latest/docbook-xsl-ns-1.79.1/epub3/chunk.xsl"/>

    <xsl:param name="html.stylesheet">general-kindle.css </xsl:param>
    <xsl:param name="chapter.autolabel" select="0"/>
    <xsl:param name="use.id.as.filename">1</xsl:param>
    <xsl:param name="toc.section.depth">0</xsl:param>
    </xsl:stylesheet>

    **********************************************


    The output is very strange. (I don't know if the HTML source will appear
    in the email, so I'm putting it at this URL:

    http://imaginaryplanet.net/private/test2.xhtml

    The problem is that the POETRY tag is showing and you have special
    characters to simulate the < and >. (So the output should have been
    <poetry> and </poetry> which won't be rendered in the HTML output?



    --
    Robert Nagle
    22118 FINCASTLE DR KATY TX 77450-1727
    (Cell) 832-251-7522; (Skype) idiotprogrammer; Carbon Neutral Since Jan 2010



  • 2.  Re: [docbook-apps] DB Publishers to XSLT epub output -- POETRY TAG strangeness

    Posted 09-10-2016 15:49
    Definitely a bug. It seems the template that matches on poetry is
    missing from 1.79.1. I'm sure it was there during development because I
    remember testing it. Not sure how it got left out of the distro. It
    looks something like the template for drama in publishers.xsl.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 9/9/2016 8:28 PM, Robert Nagle wrote:
    > <book xmlns="http://docbook.org/ns/docbook"
    > xmlns:xi="http://www.w3.org/2001/XInclude"
    > xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
    > xml:id="publisher">
    > <info>
    >
    >
    >
    > <publisher>
    > <publishername>Personville Press </publishername>
    >
    Houston, Texas

    > </publisher>
    > <edition>1st Edition (Ebook) 1.1.1 October 1, 2016 </edition>
    >
    > </info>
    > <chapter xml:id="test2">
    >
    > <poetry>
    >
    > <info>
    > <creator xmlns="http://purl.org/dc/terms/">Robert
    > Burns</creator>
    > </info>
    > <linegroup>
    > <line>Should auld acquaintance be
    > forgot,</line>
    > <line>And never brought to mind?</line>
    > <line>Should auld acquaintance be forgot,</line>
    > <line>And auld lang syne?</line>
    > </linegroup>
    > <linegroup>
    > <line>For auld lang syne, my dear,</line>
    > <line>For auld lang syne,</line>
    > <line>We'll tak a cup o' kindness yet,</line>
    > <line>For auld lang syne.</line>
    > </linegroup>
    > </poetry>
    >
    >
    >
    > </chapter>
    > </book>