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] Possible formalpara bug



On 2011-07-04 , at 18:15:19, Bob Stayton wrote:

> c.  Since the stylesheet cannot output a run-in heading on a list, you could change your input to put the title on itemizedlist as follows:
> 
>  <?xml version="1.0"?>
>  <!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V5.1b2//EN"
>  "http://www.oasis-open.org/docbook/xml/5.1b2/dtd/docbook.dtd";>
>  <appendix
>     version     = "5.1"
>     xml:lang    = "en"
>     xmlns       = "http://docbook.org/ns/docbook";>
>    <!-- <title role="hide">Hidden Title</title> -->

     <title/>

>        <itemizedlist>
>          <title>This is the title of a formalpara.</title>
>          <listitem><para>List item 1.</para></listitem>
>          <listitem><para>List item 2.</para></listitem>
>        </itemizedlist>
>  </appendix>
> 
> In this case, this markup is a better match to what you are trying to do than formalpara.

Ah, I hadn't thought to check whether itemizedlist could have a title.  With a custom template, it's just what I need.  Thanks, Bob.

  <!-- Overrides template in xhtml_1-1/lists.xsl -->
  <xsl:template match="d:itemizedlist">
    <xsl:variable name="title">
      <xsl:value-of select="d:title"/>
    </xsl:variable>
    <div>
      <p>
        <xsl:value-of select="$title"/>
      </p>
      <ul>
        <xsl:apply-templates/>
      </ul>
    </div>
  </xsl:template>

   -- Bill Greene

smime.p7s



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