openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Prepare structural tabs support presentation of variablelist #606

Closed tomschr closed 7 months ago

tomschr commented 7 months ago

"Tabs" presentation is rendered "inline" and <term>s become tab titles. To enable it, there are two possibilities:

Input

<variablelist role="tabs">
   <varlistentry>
      <term>Geeko</term>
      <listitem>
         <para>The SUSE mascot</para>
      </listitem>
   </varlistentry>
<variablelist>

Output

The following structure is created:

<div class="variablelist">
  <dl class="variablelist tabs">
     <dt id="..."><span class="term">Geeko</span></dt>
     <dd>
        <p>The SUSE mascot</p>
     </dd>
  </dl>
</div>

TODO