← Prev in month ← Prev in thread

issue with 1.79.1 stylesheets and table id

From
Tim Arnold <>
Date
2016-02-16T15:47:27+00:00
ID
CA+O6OTD1rUatRv02epOuUadj=X2UW8Hbje=
Thread
issue with 1.79.1 stylesheets and table id
I'm using the 1.79.1 html stylesheets with the following example document I get an "xml:id" attribute on the resulting html table. 

That attribute causes some problems for me further down the processing line. This didn't occur with the 1.78.1 stylesheets. I'm guessing that this is a bug?

Here's the example:

<chapter xnlns="http://docbook.org/ns/docbook" version="5.0" xml:id="test">

<info><title>My Chapter</title></info>

  <para>

    <table xml:id="one.two.three">

      <caption>My Table</caption>

      <tr><th>column 1</th><th>column 2</th></tr>

    </table>

  </para>

</chapter>

I get xml:id on the resulting html table, using this command line:

xsltproc/path/to/docbook/xsl-1.79.1/html/docbook.xsl test.xml

<div class="table">

  <a name="one.two.three"></a>

  <p class="title"><b>Table▒1.1.▒My Table</b></p>

  <div class="table-contents">

    <table xml:id="one.two.three">

      <tr><th>column 1</th><th>column 2</th></tr>

    </table>

  </div>

</div>

When I change to the 1.78.1 stylesheets:

xsltproc /path/to/docbook/xsl-1.78.1/html/docbook.xsl test.xml

The output is okay:

<div class="table">

  <a name="one.two.three"></a>

  <p class="title"><b>Table▒1.1.▒My Table</b></p>

  <div class="table-contents">

    <table>

      <tr><th>column 1</th><th>column 2</th></tr>

    </table>

  </div>

</div>

Is there something I can do outside of postprocessing the html to omit that attribute?

thanks,

--Tim
← Prev in month ← Prev in thread