print.xsl
branchstyles
changeset 5 20b41b986ac6
parent 4 301b54644bfa
child 13 a1ec4d6963d7
child 15 27a2a404231e
equal deleted inserted replaced
4:301b54644bfa 5:20b41b986ac6
    27 <xsl:attribute-set name="default-font">
    27 <xsl:attribute-set name="default-font">
    28   <xsl:attribute name="font-size">10pt</xsl:attribute>
    28   <xsl:attribute name="font-size">10pt</xsl:attribute>
    29 </xsl:attribute-set>
    29 </xsl:attribute-set>
    30 
    30 
    31 <xsl:template name="list-label">
    31 <xsl:template name="list-label">
    32   <xsl:param name="labeltext"/>
    32   <xsl:param name="labeltext">
       
    33     <xsl:text>-</xsl:text>
       
    34   </xsl:param>
    33   <!-- <xsl:param name="labeltext">
    35   <!-- <xsl:param name="labeltext">
    34     <xsl:text>&#8226;</xsl:text>
    36     <xsl:text>&#8226;</xsl:text>
    35   </xsl:param> -->
    37   </xsl:param> -->
    36   <list-item-label end-indent="label-end()">
    38   <list-item-label end-indent="label-end()">
    37     <block start-indent="5mm"><xsl:value-of select="$labeltext"/></block>
    39     <block><xsl:value-of select="$labeltext"/></block>
    38   </list-item-label>
    40   </list-item-label>
    39 </xsl:template>
    41 </xsl:template>
    40 
    42 
    41 <!-- normal name processing -->
    43 <!-- normal name processing -->
    42 <!-- should be move in common.xsl -->
    44 <!-- should be move in common.xsl -->
    78 </xsl:template>
    80 </xsl:template>
    79 <xsl:template match="formalpara/title">
    81 <xsl:template match="formalpara/title">
    80   <inline font-weight="bold"><xsl:apply-templates/></inline>
    82   <inline font-weight="bold"><xsl:apply-templates/></inline>
    81 </xsl:template>
    83 </xsl:template>
    82 <xsl:template match="formalpara">
    84 <xsl:template match="formalpara">
    83   <block><xsl:apply-templates/></block>
    85   <block space-before="4pt"><xsl:apply-templates/></block>
    84 </xsl:template>
    86 </xsl:template>
    85 
    87 
    86 <!-- list processing -->
    88 <!-- list processing -->
    87 <xsl:template match="list">
    89 <xsl:template match="list">
    88   <list-block space-before="24pt">
    90   <list-block space-before="24pt">
    89     <xsl:apply-templates/>
    91     <xsl:apply-templates/>
    90   </list-block>
    92   </list-block>
    91 </xsl:template>
    93 </xsl:template>
       
    94 <xsl:template match="formalpara/list">
       
    95   <list-block provisional-distance-between-starts="5mm">
       
    96     <xsl:apply-templates/>
       
    97   </list-block>
       
    98 </xsl:template>
    92 <xsl:template match="shortlist">
    99 <xsl:template match="shortlist">
    93   <block margin-left="24pt"><xsl:apply-templates mode="short"/></block>
   100   <block margin-left="24pt"><xsl:apply-templates mode="short"/></block>
       
   101 </xsl:template>
       
   102 <xsl:template match="formalpara/shortlist">
       
   103   <block margin-left="24pt">- <xsl:apply-templates mode="short"/></block>
    94 </xsl:template>
   104 </xsl:template>
    95 
   105 
    96 <xsl:template match="listitem">
   106 <xsl:template match="listitem">
    97   <list-item>
   107   <list-item>
    98     <xsl:call-template name="list-label"/>
   108     <xsl:call-template name="list-label"/>