Skip to content

Commit dd2134c

Browse files
authored
Merge pull request #35 from lmy668/master
Update migrate.xslt
2 parents 6af6138 + 2e40755 commit dd2134c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

migrate.xslt

+31
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,37 @@
401401
<xsl:copy-of select="."/>
402402
</xsl:template>
403403

404+
<xsl:template match="dynamic">
405+
<xsl:choose>
406+
<xsl:when test="@prepend = 'SET' or @prepend = 'set'">
407+
<xsl:element name="set">
408+
<xsl:apply-templates/>
409+
</xsl:element>
410+
</xsl:when>
411+
<xsl:when test="@prepend = 'where' or @prepend = 'WHERE'">
412+
<xsl:element name="where">
413+
<xsl:apply-templates/>
414+
</xsl:element>
415+
</xsl:when>
416+
<xsl:otherwise>
417+
<xsl:variable name="abcd" select="."/>
418+
<xsl:message>11111<xsl:value-of select="$abcd"/></xsl:message>
419+
<xsl:element name="dynamic">
420+
<xsl:if test="@prepend">
421+
<xsl:attribute name="prepend"><xsl:value-of select="@prepend" /></xsl:attribute>
422+
</xsl:if>
423+
<xsl:if test="@open">
424+
<xsl:attribute name="open"><xsl:value-of select="@open" /></xsl:attribute>
425+
</xsl:if>
426+
<xsl:if test="@close">
427+
<xsl:attribute name="close"><xsl:value-of select="@close" /></xsl:attribute>
428+
</xsl:if>
429+
<xsl:apply-templates/>
430+
</xsl:element>
431+
</xsl:otherwise>
432+
</xsl:choose>
433+
</xsl:template>
434+
404435
<xsl:template match="isNull">
405436
<xsl:element name="if">
406437
<xsl:attribute name="test">

0 commit comments

Comments
 (0)