cv_print.xsl
branchstyles
changeset 5 20b41b986ac6
parent 0 08de8d15f932
child 7 c169cc563fe2
equal deleted inserted replaced
4:301b54644bfa 5:20b41b986ac6
    25 <xsl:param name="cv-uri"/>
    25 <xsl:param name="cv-uri"/>
    26 <xsl:param name="date"/>
    26 <xsl:param name="date"/>
    27 <xsl:attribute-set name="section-title-font" xsl:use-attribute-sets="verylarge-title-font">
    27 <xsl:attribute-set name="section-title-font" xsl:use-attribute-sets="verylarge-title-font">
    28   <xsl:attribute name="font-size">12pt</xsl:attribute>
    28   <xsl:attribute name="font-size">12pt</xsl:attribute>
    29   <xsl:attribute name="font-weight">bold</xsl:attribute>
    29   <xsl:attribute name="font-weight">bold</xsl:attribute>
    30   <xsl:attribute name="space-after">4pt</xsl:attribute>
    30   <xsl:attribute name="space-after">8pt</xsl:attribute>
    31   <xsl:attribute name="text-decoration">underline</xsl:attribute>
    31   <xsl:attribute name="text-decoration">underline</xsl:attribute>
    32   <xsl:attribute name="score-spaces">true</xsl:attribute>
    32   <xsl:attribute name="score-spaces">true</xsl:attribute>
    33   <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
    33   <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
    34 </xsl:attribute-set>
    34 </xsl:attribute-set>
    35 <xsl:attribute-set name="knowledge-title-font" xsl:use-attribute-sets="large-title-font">
    35 <xsl:attribute-set name="knowledge-title-font" xsl:use-attribute-sets="large-title-font">
    40   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    40   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    41 </xsl:attribute-set>
    41 </xsl:attribute-set>
    42 <xsl:attribute-set name="work-title-font" xsl:use-attribute-sets="large-title-font">
    42 <xsl:attribute-set name="work-title-font" xsl:use-attribute-sets="large-title-font">
    43   <xsl:attribute name="font-size">14pt</xsl:attribute>
    43   <xsl:attribute name="font-size">14pt</xsl:attribute>
    44   <xsl:attribute name="font-weight">bold</xsl:attribute>
    44   <xsl:attribute name="font-weight">bold</xsl:attribute>
    45   <xsl:attribute name="space-after">8pt</xsl:attribute>
    45   <xsl:attribute name="space-after">4pt</xsl:attribute>
    46   <xsl:attribute name="space-before">12pt</xsl:attribute>
    46   <xsl:attribute name="space-before">4pt</xsl:attribute>
    47   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    47   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    48 </xsl:attribute-set>
    48 </xsl:attribute-set>
    49 <xsl:attribute-set name="work-short-font" xsl:use-attribute-sets="large-title-font">
    49 <xsl:attribute-set name="work-short-font" xsl:use-attribute-sets="large-title-font">
    50   <xsl:attribute name="font-size">12pt</xsl:attribute>
    50   <xsl:attribute name="font-size">12pt</xsl:attribute>
    51   <xsl:attribute name="font-weight">bold</xsl:attribute>
    51   <xsl:attribute name="font-weight">bold</xsl:attribute>
    73   <xsl:attribute name="keep-together.within-page">always</xsl:attribute>
    73   <xsl:attribute name="keep-together.within-page">always</xsl:attribute>
    74   <!-- <xsl:attribute name="break-inside">avoid</xsl:attribute> -->
    74   <!-- <xsl:attribute name="break-inside">avoid</xsl:attribute> -->
    75   <!-- <xsl:attribute name="border-before-style">solid</xsl:attribute> -->
    75   <!-- <xsl:attribute name="border-before-style">solid</xsl:attribute> -->
    76   <!-- <xsl:attribute name="border-after-style">solid</xsl:attribute> -->
    76   <!-- <xsl:attribute name="border-after-style">solid</xsl:attribute> -->
    77   <!-- <xsl:attribute name="padding-before">5mm</xsl:attribute> -->
    77   <!-- <xsl:attribute name="padding-before">5mm</xsl:attribute> -->
    78   <xsl:attribute name="space-before">10mm</xsl:attribute>
    78   <xsl:attribute name="space-before">22pt</xsl:attribute>
    79   <xsl:attribute name="space-before.conditionality">discard</xsl:attribute>
    79   <xsl:attribute name="space-before.conditionality">discard</xsl:attribute>
    80 </xsl:attribute-set>
    80 </xsl:attribute-set>
    81 <!-- cv -->
    81 <!-- cv -->
    82 <xsl:template match="cv">
    82 <xsl:template match="cv">
    83   <xsl:variable name="fullname">
    83   <xsl:variable name="fullname">
   288   </block>
   288   </block>
   289 </xsl:template>
   289 </xsl:template>
   290 
   290 
   291 <!-- work -->
   291 <!-- work -->
   292 <xsl:template match="work">
   292 <xsl:template match="work">
   293   <block keep-together="always">
   293   <block space-before="5pt" keep-together="always">
   294     <xsl:apply-templates/>
   294     <xsl:apply-templates/>
   295   </block>
   295   </block>
   296 </xsl:template>
   296 </xsl:template>
   297 <xsl:template match="work/organism">
   297 <xsl:template match="work/organism">
   298   <block xsl:use-attribute-sets="work-title-font"><xsl:apply-templates select="." mode="short"/></block>
   298   <block xsl:use-attribute-sets="work-title-font"><xsl:apply-templates select="." mode="short"/></block>
   322   </list-item>
   322   </list-item>
   323 </xsl:template>
   323 </xsl:template>
   324 
   324 
   325 <!-- post -->
   325 <!-- post -->
   326 <xsl:template match="post">
   326 <xsl:template match="post">
   327   <block keep-together.within-page="always">
   327   <block keep-together.within-page="always" space-before="6pt">
   328     <table width="100%" table-layout="fixed" space-after="6pt">
   328     <table width="100%" table-layout="fixed">
   329       <table-column column-width="proportional-column-width(1)"/>
   329       <table-column column-width="proportional-column-width(1)"/>
   330       <table-column column-width="proportional-column-width(1)"/>
   330       <table-column column-width="proportional-column-width(1)"/>
   331       <table-body>
   331       <table-body>
   332         <table-row>
   332         <table-row>
   333           <table-cell>
   333           <table-cell>
   337             <xsl:apply-templates select="supervisor|duration" mode="title"/>
   337             <xsl:apply-templates select="supervisor|duration" mode="title"/>
   338           </table-cell>
   338           </table-cell>
   339         </table-row>
   339         </table-row>
   340       </table-body>
   340       </table-body>
   341     </table>
   341     </table>
   342     <block margin-left="24pt">
   342     <block margin-left="24pt" space-before="5pt">
   343       <xsl:apply-templates/>
   343       <xsl:apply-templates/>
   344     </block>
   344     </block>
   345   </block>
   345   </block>
   346 </xsl:template>
   346 </xsl:template>
   347 <xsl:template match="post/supervisor|post/duration|post/title"/>
   347 <xsl:template match="post/supervisor|post/duration|post/title"/>