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: title properties for task / procedure ?


Dear list,
for our documentation we use a lot of instructions. So far, we had used ordered lists with titles. But since I have discovered the "task" element, I think, that this suits our requirements much better.
The only problem, I have now, is to adjust the font-size and font-style of the titles of "task", "procedure", "taskprerequisites" and "taskrelated". I want to leave the properties for "figures", "table" and "example" titles as they are (which means I want them to from the "task" etc. titles).

I have added the following lines to my customization:

    <xsl:template match="task/title">
      <fo:block font-size="12pt" font-weight="bold"
                xsl:use-attribute-sets="normal.para.spacing">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
    
    <xsl:template match="taskprerequisites/title">
      <fo:block font-size="12pt" font-weight="bold"
                xsl:use-attribute-sets="normal.para.spacing">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>    
    
    <xsl:template match="procedure/title">
      <fo:block font-size="12pt" font-weight="bold"
                xsl:use-attribute-sets="normal.para.spacing">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template> 
    

    
    <xsl:template match="taskrelated/title">
      <fo:block font-size="12pt" font-weight="bold"
                xsl:use-attribute-sets="normal.para.spacing">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>

The effect was, that the titles of "taskprerequisites", "taskrelated" were output twice, once bold and once small like the "figure" titles. The titles of "task" and "procedure" did not show any effect.

Alternatively, I have had a look at the fo/task.xsl and found these lines:

<xsl:template match="task/title">
  <!-- nop -->
</xsl:template>

<xsl:template match="tasksummary">
  <xsl:call-template name="semiformal.object"/>
</xsl:template>

<xsl:template match="tasksummary/title"/>

<xsl:template match="taskprerequisites">
  <xsl:call-template name="semiformal.object"/>
</xsl:template>

<xsl:template match="taskprerequisites/title"/>

<xsl:template match="taskrelated">
  <xsl:call-template name="semiformal.object"/>
</xsl:template>

<xsl:template match="taskrelated/title"/>


But I did not succeed to find cutomize it, the way I wanted.
Could you give me a hint, please?
We use: DocBook XML V4.5, XSL style sheets 1.74.0, XSTLProc, Antenna House V 4.2

Regards, thanks,
Martin



-------
Harman/Becker Automotive Systems (Becker Division) GmbH
Becker-Göring-Straße 16 D-76307 Karlsbad - Germany

Martin Schramm

Technical Documentation
ES-P Quality & Tools 
 
*******************************************
Harman Becker Automotive Systems GmbH
Geschaeftsfuehrung:  Dr. Wolfgang Ptacek  -  Michael Mauser  -  Regis Baudot
Sitz der Gesellschaft: Karlsbad - Registergericht: Mannheim HRB 361395
 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************


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