Skip to content

Commit

Permalink
Tentative fix for #213.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelloPerathoner committed Apr 21, 2022
1 parent 17f9b78 commit f83c57a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xslt/common-3.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
<variable name="hr" expand-text="yes">
<for-each select="tokenize ($corresp, '\s+')">
<for-each select="analyze-string (.,
'^(\w+)[._](\d+[ABab]?)(?:_([a-z]))?(?:_(\d+))?(?:_(\w)(\w+))?$')/fn:match">
'^(\w+)[._](\d+[ABab]?)(?:_([a-z]))?(?:_(\d+))?(?:_(\w)(\w+)(?:_(\d+))?)?$')/fn:match">
<value-of select="fn:group[@nr=1]" />
<text> </text>
<value-of select="fn:group[@nr=2]" />
Expand All @@ -223,6 +223,9 @@
<if test="normalize-space (fn:group[@nr=5])">
<text> {upper-case (fn:group[@nr=5])}{fn:group[@nr=6]}</text>
</if>
<if test="normalize-space (fn:group[@nr=7])">
<text> {fn:group[@nr=7]}</text>
</if>
<text> </text>
</for-each>
</for-each>
Expand Down

0 comments on commit f83c57a

Please sign in to comment.