File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed
Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 111111 <!-- hierarchy -->
112112 <xsl : template match =" akn:chapter" >
113113 <div class =" chapter" >
114- <h2 id =" {@eId}" ><xsl : value-of select =" akn:num" /><br /><xsl : value-of select =" akn:heading" /></h2 >
114+ <h2 id =" {@eId}" ><xsl : value-of select =" akn:num" /><br /><xsl : value-of select =" akn:heading" />
115+
116+ <xsl : variable name =" ovl"
117+ select =" (akn:heading/@finlex:originalVersionLabel | @finlex:originalVersionLabel)[1]" />
118+ <xsl : if test =" $ovl" >
119+ <xsl : text > (</xsl : text >
120+ <xsl : value-of select =" $ovl" />
121+ <xsl : text >)</xsl : text >
122+ </xsl : if >
123+ </h2 >
115124 <xsl : apply-templates
116125 select =" *[not(self::akn:num or self::akn:heading)]" />
117126 </div >
124133 <xsl : text > </xsl : text >
125134 <xsl : value-of select =" akn:heading" />
126135
127- <!-- Append amending-act label as plain text, if present -->
128136 <xsl : variable name =" ovl"
129137 select =" (akn:heading/@finlex:originalVersionLabel | @finlex:originalVersionLabel)[1]" />
130138 <xsl : if test =" $ovl" >
141149
142150 <xsl : template match =" akn:subsection" >
143151 <div class =" subsection" >
144- <xsl : apply-templates />
152+ <xsl : if test =" akn:heading or akn:num" >
153+ <h4 id =" {@eId}" >
154+ <xsl : value-of select =" akn:num" />
155+ <xsl : text > </xsl : text >
156+ <xsl : value-of select =" akn:heading" />
157+
158+ <xsl : variable name =" ovl"
159+ select =" (akn:heading/@finlex:originalVersionLabel | @finlex:originalVersionLabel)[1]" />
160+ <xsl : if test =" $ovl" >
161+ <xsl : text > (</xsl : text >
162+ <xsl : value-of select =" $ovl" />
163+ <xsl : text >)</xsl : text >
164+ </xsl : if >
165+ </h4 >
166+ </xsl : if >
167+
168+ <xsl : apply-templates
169+ select =" *[not(self::akn:num or self::akn:heading)]" />
145170 </div >
146171 </xsl : template >
147172
You can’t perform that action at this time.
0 commit comments