Skip to content

Commit

Permalink
Merge pull request #35 from lmy668/master
Browse files Browse the repository at this point in the history
Update migrate.xslt
  • Loading branch information
hazendaz authored Jun 16, 2024
2 parents 6af6138 + 2e40755 commit dd2134c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions migrate.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,37 @@
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="dynamic">
<xsl:choose>
<xsl:when test="@prepend = 'SET' or @prepend = 'set'">
<xsl:element name="set">
<xsl:apply-templates/>
</xsl:element>
</xsl:when>
<xsl:when test="@prepend = 'where' or @prepend = 'WHERE'">
<xsl:element name="where">
<xsl:apply-templates/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="abcd" select="."/>
<xsl:message>11111<xsl:value-of select="$abcd"/></xsl:message>
<xsl:element name="dynamic">
<xsl:if test="@prepend">
<xsl:attribute name="prepend"><xsl:value-of select="@prepend" /></xsl:attribute>
</xsl:if>
<xsl:if test="@open">
<xsl:attribute name="open"><xsl:value-of select="@open" /></xsl:attribute>
</xsl:if>
<xsl:if test="@close">
<xsl:attribute name="close"><xsl:value-of select="@close" /></xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="isNull">
<xsl:element name="if">
<xsl:attribute name="test">
Expand Down

0 comments on commit dd2134c

Please sign in to comment.