cv_print.xsl
branchstyles
changeset 20 78ac9176f4ef
parent 13 a1ec4d6963d7
child 23 8445a48b1679
equal deleted inserted replaced
19:42559b9800a7 20:78ac9176f4ef
    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" use-attribute-sets="verylarge-title-font">
    27 <xsl:attribute-set name="section-title-font" 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">6pt</xsl:attribute>
    30   <xsl:attribute name="space-after">4pt</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" use-attribute-sets="large-title-font">
    35 <xsl:attribute-set name="knowledge-title-font" use-attribute-sets="large-title-font">
    41 </xsl:attribute-set>
    41 </xsl:attribute-set>
    42 <xsl:attribute-set name="work-title-font" use-attribute-sets="large-title-font">
    42 <xsl:attribute-set name="work-title-font" use-attribute-sets="large-title-font">
    43   <xsl:attribute name="font-size">16pt</xsl:attribute>
    43   <xsl:attribute name="font-size">16pt</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">4pt</xsl:attribute>
    45   <xsl:attribute name="space-after">4pt</xsl:attribute>
    46   <xsl:attribute name="space-before">4pt</xsl:attribute>
    46   <xsl:attribute name="space-before">2pt</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" use-attribute-sets="large-title-font">
    49 <xsl:attribute-set name="work-short-font" use-attribute-sets="large-title-font">
    50   <xsl:attribute name="font-size">12pt</xsl:attribute>
    50   <xsl:attribute name="font-size">10pt</xsl:attribute>
    51   <xsl:attribute name="font-weight">bold</xsl:attribute>
    51   <xsl:attribute name="font-weight">bold</xsl:attribute>
    52   <xsl:attribute name="space-before">4pt</xsl:attribute>
    52   <xsl:attribute name="space-before">2pt</xsl:attribute>
    53   <xsl:attribute name="space-after">4pt</xsl:attribute>
    53   <xsl:attribute name="space-after">2pt</xsl:attribute>
    54   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    54   <xsl:attribute name="font-variant">small-caps</xsl:attribute>
    55 </xsl:attribute-set>
    55 </xsl:attribute-set>
    56 <xsl:attribute-set name="post-title-font" use-attribute-sets="medium-title-font">
    56 <xsl:attribute-set name="post-title-font" use-attribute-sets="medium-title-font">
    57   <xsl:attribute name="font-size">10pt</xsl:attribute>
    57   <xsl:attribute name="font-size">10pt</xsl:attribute>
    58   <xsl:attribute name="font-weight">bold</xsl:attribute>
    58   <xsl:attribute name="font-weight">bold</xsl:attribute>
   209           <block xsl:use-attribute-sets="section-title-font">
   209           <block xsl:use-attribute-sets="section-title-font">
   210             <xsl:call-template name="gentext">
   210             <xsl:call-template name="gentext">
   211               <xsl:with-param name="string">str-experience</xsl:with-param>
   211               <xsl:with-param name="string">str-experience</xsl:with-param>
   212             </xsl:call-template>
   212             </xsl:call-template>
   213           </block>
   213           </block>
   214           <xsl:apply-templates select="work[not(@role='stage')]"/>
   214           <xsl:apply-templates select="work[not(@role='stage' or @role='minor' or @role='old')]"/>
       
   215         </block>
       
   216 	<block xsl:use-attribute-sets="section-block">
       
   217           <block xsl:use-attribute-sets="section-title-font">
       
   218             <xsl:call-template name="gentext">
       
   219               <xsl:with-param name="string">str-otherexperience</xsl:with-param>
       
   220             </xsl:call-template>
       
   221           </block>
       
   222           <table table-layout="fixed"
       
   223                  border-collapse="separate" border-separation="5pt">
       
   224             <table-column column-width="50%"/>
       
   225             <table-column column-width="50%"/>
       
   226             <table-body>              
       
   227               <xsl:apply-templates select="work[@role='minor' or @role='old']" mode="short"/>
       
   228             </table-body>
       
   229           </table>
   215         </block>
   230         </block>
   216 	<!--
   231 	<!--
   217 	<block xsl:use-attribute-sets="section-block">
   232 	<block xsl:use-attribute-sets="section-block">
   218           <block xsl:use-attribute-sets="section-title-font">
   233           <block xsl:use-attribute-sets="section-title-font">
   219             <xsl:call-template name="gentext">
   234             <xsl:call-template name="gentext">
   305 </xsl:template>
   320 </xsl:template>
   306 <xsl:template match="work/organism">
   321 <xsl:template match="work/organism">
   307   <block xsl:use-attribute-sets="work-title-font"><xsl:apply-templates select="." mode="short"/></block>
   322   <block xsl:use-attribute-sets="work-title-font"><xsl:apply-templates select="." mode="short"/></block>
   308 </xsl:template>
   323 </xsl:template>
   309 
   324 
   310 <xsl:template match="work" mode="short">
   325 <!--xsl:template match="work" mode="short">
   311   <block space-before="10pt" keep-together.within-page="always">
   326   <block space-before="10pt" keep-together.within-page="always">
   312     <block xsl:use-attribute-sets="work-short-font"><xsl:apply-templates select="organism" mode="short"/></block>
   327     <block xsl:use-attribute-sets="work-short-font"><xsl:apply-templates select="organism" mode="short"/></block>
   313     <list-block>
   328     <list-block>
   314       <xsl:apply-templates select="post" mode="short"/>
   329       <xsl:apply-templates select="post" mode="short"/>
   315     </list-block>
   330     </list-block>
   316   </block>
   331   </block>
       
   332 </xsl:template-->
       
   333 <xsl:template match="work" mode="short">
       
   334   <table-row keep-together.within-page="always">
       
   335     <table-cell>      
       
   336       <block xsl:use-attribute-sets="work-short-font"><xsl:apply-templates select="organism" mode="short"/></block>
       
   337     </table-cell>
       
   338     <table-cell keep-together.within-page="always">
       
   339       <list-block>
       
   340         <xsl:apply-templates select="post" mode="short"/>
       
   341       </list-block>
       
   342     </table-cell>
       
   343   </table-row>
   317 </xsl:template>
   344 </xsl:template>
   318 <xsl:template match="post" mode="short">
   345 <xsl:template match="post" mode="short">
   319   <list-item>
   346   <list-item>
   320     <xsl:call-template name="list-label"/>
   347     <xsl:call-template name="list-label"/>
   321     <list-item-body start-indent="body-start()">
   348     <list-item-body start-indent="body-start()">
   322       <block>
       
   323       <xsl:if test="title">
   349       <xsl:if test="title">
       
   350         <block>
   324         <xsl:apply-templates select="title" mode="short"/>
   351         <xsl:apply-templates select="title" mode="short"/>
   325         <xsl:text>; </xsl:text>
   352         <xsl:text>; </xsl:text>
       
   353         </block>
   326       </xsl:if>
   354       </xsl:if>
   327       <xsl:apply-templates select="duration" mode="short"/>
   355       <block>
   328       <xsl:text>.</xsl:text>
   356         <xsl:apply-templates select="duration" mode="short"/>
       
   357         <xsl:text>.</xsl:text>
   329       </block>
   358       </block>
   330     </list-item-body>
   359     </list-item-body>
   331   </list-item>
   360   </list-item>
   332 </xsl:template>
   361 </xsl:template>
   333 
   362 
   368 </xsl:template>
   397 </xsl:template>
   369 <xsl:template match="post/duration" mode="title">
   398 <xsl:template match="post/duration" mode="title">
   370   <block><xsl:apply-templates/></block>
   399   <block><xsl:apply-templates/></block>
   371 </xsl:template>
   400 </xsl:template>
   372 
   401 
       
   402 <!-- work/description -->
       
   403 <!-- post -->
       
   404 <xsl:template match="work/description">
       
   405   <block keep-together.within-page="always" space-before="6pt">
       
   406     <xsl:apply-templates/>
       
   407   </block>
       
   408 </xsl:template>
       
   409 
   373 <!-- study -->
   410 <!-- study -->
   374 <xsl:template match="study" mode="short">
   411 <xsl:template match="study" mode="short">
   375   <list-item>
   412   <list-item>
   376     <xsl:call-template name="list-label"/>
   413     <xsl:call-template name="list-label"/>
   377     <list-item-body start-indent="body-start()">
   414     <list-item-body start-indent="body-start()">