cv_print.xsl
branchstyles
changeset 23 8445a48b1679
parent 13 a1ec4d6963d7
--- a/cv_print.xsl	Sun Sep 06 22:19:51 2015 -0400
+++ b/cv_print.xsl	Tue Dec 29 21:26:32 2015 -0500
@@ -315,7 +315,12 @@
 <!-- work -->
 <xsl:template match="work">
   <block space-before="12pt" keep-together="always">
-    <xsl:apply-templates/>
+    <xsl:apply-templates select="organism"/>
+    <xsl:apply-templates select="post[not(@role='minor')]"/>
+    <xsl:if test="post[@role='minor']">
+      <xsl:apply-templates select="post[@role='minor']"/>
+    </xsl:if>
+    <xsl:apply-templates select="description"/>
   </block>
 </xsl:template>
 <xsl:template match="work/organism">
@@ -377,9 +382,11 @@
         </table-row>
       </table-body>
     </table>
-    <block margin-left="24pt" space-before="5pt">
-      <xsl:apply-templates/>
-    </block>
+    <xsl:if test="not(@role='minor')">
+      <block margin-left="24pt" space-before="5pt">
+        <xsl:apply-templates/>
+      </block>
+    </xsl:if>
   </block>
 </xsl:template>
 <xsl:template match="post/supervisor|post/duration|post/title"/>