Skip to content

Commit 7b54e6f

Browse files
authored
Merge pull request #3963 from Suban05/fix-xcop
fix xcop errors
2 parents 8a85c79 + cba1a04 commit 7b54e6f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

eo-maven-plugin/src/main/resources/org/eolang/maven/shake/set-original-names.xsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
of the object.
1111
-->
1212
<xsl:output encoding="UTF-8" method="xml"/>
13+
<xsl:import href="/org/eolang/parser/_specials.xsl"/>
1314
<xsl:function name="eo:original-name" as="xs:string">
1415
<xsl:param name="program" as="node()"/>
1516
<xsl:param name="o" as="node()"/>
@@ -28,7 +29,7 @@
2829
<xsl:when test="$o/@name">
2930
<xsl:choose>
3031
<xsl:when test="$o/@name = '@'">
31-
<xsl:text>φ</xsl:text>
32+
<xsl:value-of select="$eo:phi"/>
3233
</xsl:when>
3334
<xsl:otherwise>
3435
<xsl:value-of select="$o/@name"/>
@@ -38,10 +39,10 @@
3839
<xsl:otherwise>
3940
<xsl:choose>
4041
<xsl:when test="starts-with($parent/@base, '.') and not($o/preceding-sibling::o)">
41-
<xsl:text>ρ</xsl:text>
42+
<xsl:value-of select="$eo:rho"/>
4243
</xsl:when>
4344
<xsl:otherwise>
44-
<xsl:text>α</xsl:text>
45+
<xsl:value-of select="$eo:alpha"/>
4546
<xsl:value-of select="count($o/preceding-sibling::o) - count($parent[starts-with(@base, '.')])"/>
4647
</xsl:otherwise>
4748
</xsl:choose>

0 commit comments

Comments
 (0)