cv_print.xsl
branchstyles
changeset 13 a1ec4d6963d7
parent 12 d0e38c0c45c9
child 23 8445a48b1679
--- a/cv_print.xsl	Sun Jan 08 15:12:51 2012 -0500
+++ b/cv_print.xsl	Sun Sep 06 22:14:16 2015 -0400
@@ -211,7 +211,7 @@
               <xsl:with-param name="string">str-experience</xsl:with-param>
             </xsl:call-template>
           </block>
-          <xsl:apply-templates select="work[not(@role='stage' or @role='minor')]"/>
+          <xsl:apply-templates select="work[not(@role='stage' or @role='minor' or @role='old')]"/>
         </block>
 	<block xsl:use-attribute-sets="section-block">
           <block xsl:use-attribute-sets="section-title-font">
@@ -219,7 +219,14 @@
               <xsl:with-param name="string">str-otherexperience</xsl:with-param>
             </xsl:call-template>
           </block>
-          <xsl:apply-templates select="work[@role='minor']" mode="short"/>
+          <table table-layout="fixed"
+                 border-collapse="separate" border-separation="5pt">
+            <table-column column-width="50%"/>
+            <table-column column-width="50%"/>
+            <table-body>              
+              <xsl:apply-templates select="work[@role='minor' or @role='old']" mode="short"/>
+            </table-body>
+          </table>
         </block>
 	<!--
 	<block xsl:use-attribute-sets="section-block">
@@ -315,25 +322,39 @@
   <block xsl:use-attribute-sets="work-title-font"><xsl:apply-templates select="." mode="short"/></block>
 </xsl:template>
 
-<xsl:template match="work" mode="short">
+<!--xsl:template match="work" mode="short">
   <block space-before="10pt" keep-together.within-page="always">
     <block xsl:use-attribute-sets="work-short-font"><xsl:apply-templates select="organism" mode="short"/></block>
     <list-block>
       <xsl:apply-templates select="post" mode="short"/>
     </list-block>
   </block>
+</xsl:template-->
+<xsl:template match="work" mode="short">
+  <table-row keep-together.within-page="always">
+    <table-cell>      
+      <block xsl:use-attribute-sets="work-short-font"><xsl:apply-templates select="organism" mode="short"/></block>
+    </table-cell>
+    <table-cell keep-together.within-page="always">
+      <list-block>
+        <xsl:apply-templates select="post" mode="short"/>
+      </list-block>
+    </table-cell>
+  </table-row>
 </xsl:template>
 <xsl:template match="post" mode="short">
   <list-item>
     <xsl:call-template name="list-label"/>
     <list-item-body start-indent="body-start()">
-      <block>
       <xsl:if test="title">
+        <block>
         <xsl:apply-templates select="title" mode="short"/>
         <xsl:text>; </xsl:text>
+        </block>
       </xsl:if>
-      <xsl:apply-templates select="duration" mode="short"/>
-      <xsl:text>.</xsl:text>
+      <block>
+        <xsl:apply-templates select="duration" mode="short"/>
+        <xsl:text>.</xsl:text>
       </block>
     </list-item-body>
   </list-item>
@@ -378,6 +399,14 @@
   <block><xsl:apply-templates/></block>
 </xsl:template>
 
+<!-- work/description -->
+<!-- post -->
+<xsl:template match="work/description">
+  <block keep-together.within-page="always" space-before="6pt">
+    <xsl:apply-templates/>
+  </block>
+</xsl:template>
+
 <!-- study -->
 <xsl:template match="study" mode="short">
   <list-item>