OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] html/epub3 stylesheet bug

Hi Tim,
Indeed, this is a bug in the namespaced version of the stylesheets.

When the namespaced version is generated from the non-namespaced version, this line:

  <xsl:when test="$content/*[1][self::html]">

gets converted to this line:

  <xsl:when test="$content/*[1][self::d:html]">

because it thinks html is a DocBook element name. But of course, your html element is not in the DocBook namespace, so this test fails and the element is passed through.

I need to patch the conversion process to fix this. The workaround for you is to copy the template named "pi.dbhtml-include" from xhtml/pi.xsl to your customization layer and remove the "d:" prefix.

Bob Stayton
Sagehill Enterprises

On 7/2/2014 9:08 AM, Tim Arnold wrote:
I'm using this type of processing instruction in my docbook 5 source:
<?dbhtml-include href="output.htm"?>
and the docs say that the <html> wrapper inside the external doc will be
removed, if I understand it correctly:

However, here is a test file that does not remove the 'html' wrapper:

-------- db.xml ---------
<chapter xmlns="http://docbook.org/ns/docbook"; version="5.0" xml:id="new" >
     <figure xml:id="output">
     <?dbhtml-include href="output.htm"?></figure>

------ output.htm -------
   <div class="output">
     <div class="branch">

The <html> tags are present inside the html file resulting from either
of these commands:

xsltproc docbook/xsl-1.78.1/html/chunk.xsl db.xml
xsltproc docbook/xsl-1.78.1/epub3/chunk.xsl db.xml

Maybe I'm missing a parameter or this is a bug?

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]