← Prev in month ← Prev in thread

DB Publishers to XSLT epub output -- POETRY TAG strangeness

From
Robert Nagle <>
Date
2016-09-10T03:28:24+00:00
ID
Thread
DB Publishers to XSLT epub output -- POETRY TAG strangeness
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. 

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

<?xml version="1.0" encoding="UTF-8"?>

<?oxygen RNGSchema="http://docbook.org/xml/publishers/1.0/rng/publishers.rng" type="xml"?>

<!--<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" type="xml"?>-->

<!DOCTYPE book [

<!ENTITY % myents SYSTEM "isopub.ent" >

%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>

        <title>Publisher Experimental</title>

        

        <publisher>

            <publishername>Personville Press </publishername>

            <address>Houston, Texas </address>

        </publisher>

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

     

    </info>

                <chapter xml:id="test2">

            <title> First Chapter </title>

        <poetry>

            <title>Auld Lang Syne</title>

            <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: 

<?xml version="1.0" encoding="UTF-8"?>

<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="">

   <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
← Prev in month ← Prev in thread