File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 group-starting-with =" tei:*[
3535 @continued eq 'true'
3636 and normalize-space() != ''
37- and (
38- normalize-space(preceding::text()[1]) != ''
39- or preceding::text()[1][not(preceding-sibling::*)]
40- or preceding-sibling::*[1][not(@continued = 'true') and not(self::tei:lb)]
41- or preceding-sibling::*[not(local-name() = ('pb', 'cb', 'lb'))][1]/local-name() != local-name()
42- )
37+ and not(
38+ name() = name(preceding-sibling::tei:*[not(self::tei:lb)][1])
39+ and preceding-sibling::tei:*[not(self::tei:lb)][1][@continued = 'true']
40+ )
4341 ]" >
4442
4543 <xsl : choose >
131129 <xsl : apply-templates select =" @* | node()" mode =" #current" />
132130 </xsl : copy >
133131 </xsl : template >
132+
133+
134134</xsl : stylesheet >
Original file line number Diff line number Diff line change 343343 </xsl : variable >
344344 <xsl : variable name =" combining" >
345345 <xsl : apply-templates select =" $combines" mode =" continued" />
346- </xsl : variable >
346+ </xsl : variable >
347347 <xsl : variable name =" tokenized" >
348348 <xsl : choose >
349349 <xsl : when test =" $tokenize" >
26222622 </xsl : element >
26232623 </xsl : otherwise >
26242624 </xsl : choose >
2625+ </xsl : when >
2626+ <xsl : when test =" @type = 'rdg'" >
2627+ <xsl : variable name =" elName" select =" 'rdg'" />
2628+ <xsl : element name =" {$elName}" >
2629+ <xsl : if test =" map:keys($custom) = 'n'" >
2630+ <xsl : attribute name =" n" ><xsl : value-of select =" map:get($custom, 'n')" /></xsl : attribute >
2631+ </xsl : if >
2632+ <xsl : if test =" map:keys($custom) = 'hand'" >
2633+ <xsl : attribute name =" hand" ><xsl : value-of select =" map:get($custom, 'hand')" /></xsl : attribute >
2634+ </xsl : if >
2635+ <xsl : if test =" map:keys($custom) = 'type'" >
2636+ <xsl : attribute name =" type" ><xsl : value-of select =" map:get($custom, 'type')" /></xsl : attribute >
2637+ </xsl : if >
2638+ <xsl : if test =" map:keys($custom) = 'varSeq'" >
2639+ <xsl : attribute name =" varSeq" ><xsl : value-of select =" map:get($custom, 'varSeq')" /></xsl : attribute >
2640+ </xsl : if >
2641+ <xsl : if test =" $custom?continued" >
2642+ <xsl : attribute name =" continued" select =" true()" />
2643+ </xsl : if >
2644+ <xsl : call-template name =" elem" >
2645+ <xsl : with-param name =" elem" select =" $elem" />
2646+ </xsl : call-template >
2647+ </xsl : element >
26252648 </xsl : when >
26262649 <xsl : when test =" @type = 'sic'" >
26272650 <choice >
You can’t perform that action at this time.
0 commit comments