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] cmdsynopsis omits xml:id

Hi Bob,
You are right--I had the attribute set to 1 at some point and turned it off without realizing the consequence.


On Thu, Oct 31, 2013 at 3:18 PM, Bob Stayton <bobs@sagehill.net> wrote:
Hi Tim,
By default, the $generate.id.attributes param in the html stylesheet is set to zero (it generates the old named anchor elements instead).  If you set that to 1, then you should get an id output on cmdsynopsis.
Bob Stayton
Sagehill Enterprises

From: Tim Arnold
Sent: Tuesday, October 29, 2013 10:59 AM
Subject: [docbook-apps] cmdsynopsis omits xml:id

hi, when I convert DocBook 5 using the 1.77 html (chunk) stylesheets, the cmdsynopsis element is rendered as a div, but the xml:id is omitted. Is this a bug or am I misunderstanding? I would have expected the xml:id to come through as an id in the html.

Test document:
         version="5.0" xml:id="abc">
  <info><title>The Chapter</title></info>
  <section xml:id="abd">
    <info><title>The Section</title></info>
      <cmdsynopsis xml:id="abe" sepchar=" ">
        <command>The Command</command>
        <arg choice="plain">variable-list</arg>
        <arg choice="plain">;</arg>

with this command line:
xsltproc /path/to/docbook/xsl-1.77.1/html/chunk.xsl test.xml

the cmdsynopsis element results in this block of html (I expected the id "abe" on the div):
 <div class="cmdsynopsis">
     <code class="command">The Command</code>
     variable-list   ;


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