Permalink
Browse files

mark up notes inside a div.note, header to h4 [#553]

  • Loading branch information...
1 parent ba14203 commit 5da752a00d0e5cab70493c6b836b881e2e4a7270 @andrewcarpenter andrewcarpenter committed May 16, 2012
Showing with 13 additions and 1 deletion.
  1. +7 −1 app/views/entries/xslt/headers.html.xslt
  2. +6 −0 app/views/entries/xslt/text.html.xslt
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:template match="HD[@SOURCE='HED' or @SOURCE='HD1' or @SOURCE = 'HD2' or @SOURCE = 'HD3' or @SOURCE = 'HD4']">
+ <xsl:template match="HD[@SOURCE='HED' or @SOURCE='HD1' or @SOURCE = 'HD2' or @SOURCE = 'HD3' or @SOURCE = 'HD4'][not(ancestor::NOTE)]">
<xsl:variable name="level">
<xsl:call-template name="header_level">
<xsl:with-param name="source" select="@SOURCE"/>
@@ -20,6 +20,12 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+
+ <xsl:template match="HD[ancestor::NOTE]">
+ <h4>
+ <xsl:apply-templates />
+ </h4>
+ </xsl:template>
<xsl:template name="header">
<xsl:variable name="level">
@@ -129,6 +129,12 @@
</p>
</xsl:template>
+ <xsl:template match="NOTE">
+ <div class="note">
+ <xsl:apply-templates />
+ </div>
+ </xsl:template>
+
<xsl:template match="EXECORDR">
<h3 class="executive_order_number">
<xsl:apply-templates />

0 comments on commit 5da752a

Please sign in to comment.