Skip to content

Commit

Permalink
feat(objectionary#834): simplify vars-float-down
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 11, 2024
1 parent 5be4501 commit 58df68c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/resources/org/eolang/parser/vars-float-down.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ SOFTWARE.
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="o[@ref]">
<xsl:apply-templates select="." mode="non-empty-ref"/>
</xsl:template>
<xsl:template match="o[@ref!='']" mode="non-empty-ref">
<xsl:apply-templates select="." mode="without-top-ref"/>
</xsl:template>
<xsl:template match="o[not(ancestor::o[@ref])]" mode="without-top-ref">
<xsl:template match="o[@ref and @ref!='' and not(ancestor::o[@ref])]">
<xsl:variable name="reference" select="@ref"/>
<xsl:variable name="found" select="key('o-by-line', $reference)"/>
<xsl:element name="o">
Expand Down

0 comments on commit 58df68c

Please sign in to comment.