Skip to content

Commit 91f70f2

Browse files
authored
Sync with changes from master repo
1 parent f392fe1 commit 91f70f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lexis-nexis.xsl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
</xsl:for-each>
2929
</structure>
3030

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

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

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

6364
<!-- Counter -->

0 commit comments

Comments
 (0)