Skip to content

Commit

Permalink
Sync with changes from master repo
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj authored Jul 28, 2016
1 parent f392fe1 commit 91f70f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lexis-nexis.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@
</xsl:for-each>
</structure>

<!--Strip out the leading "§ " and the trailing period.-->
<xsl:variable name="section-number" select="translate(legislativeDocBody/statute/level/heading/desig, '§ ', '')"/>
<xsl:variable name="section-number-length" select="string-length($section-number)"/>
<section_number><xsl:value-of select="substring($section-number, 1, ($section-number-length - 1))" /></section_number>
<!--Strip out the leading "_ " and replace any others with a colon.-->
<xsl:variable name="section-number" select="translate(legislativeDocBody/statute/level/anchor/@id, '_', ':')" />
<section_number>
<xsl:value-of select="substring($section-number, 2)"/>
</section_number>

<!--Include the catch line.-->
<catch_line><xsl:value-of select="legislativeDocBody/statute/level/heading/title" /></catch_line>
Expand All @@ -57,7 +58,7 @@
</xsl:attribute>

<xsl:attribute name="identifier">
<xsl:value-of select="replace(replace(normalize-space(heading/desig), '^(TITLE|SUBTITLE|ARTICLE|CHAPTER|PART) ', '' ), '.$', '')"/>
<xsl:value-of select="replace(replace(normalize-space(heading/desig), '^(TITLE|SUBTITLE|ARTICLE|CHAPTER|SUBCHAPTER|PART) ', '' ), '.$', '')"/>
</xsl:attribute>

<!-- Counter -->
Expand Down

0 comments on commit 91f70f2

Please sign in to comment.