You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
762 B
24 lines
762 B
<?xml version="1.0" encoding="UTF-8" ?> |
|
<xsl:stylesheet version="1.0" |
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
<xsl:template name="create_index"> |
|
<xsl:call-template name="log"> |
|
<xsl:with-param name="msg" select="concat('Erzeuge Index ',@name) " /> |
|
</xsl:call-template> |
|
<xsl:text>create </xsl:text> |
|
<xsl:if test="@type='unique'"><xsl:text> unique </xsl:text></xsl:if> |
|
<xsl:text> index </xsl:text> |
|
<xsl:value-of select="@name" /><xsl:text> on </xsl:text><xsl:value-of select="../../@name" /> |
|
<xsl:text> (</xsl:text> |
|
<xsl:for-each select="index-column"> |
|
<xsl:value-of select="@name" /> |
|
<xsl:if test="position() < last()"> |
|
<xsl:text>, |
|
</xsl:text> |
|
</xsl:if> |
|
</xsl:for-each> |
|
<xsl:text> ); |
|
</xsl:text> |
|
|
|
</xsl:template> |
|
</xsl:stylesheet>
|
|
|