MINI MINI MANI MO
<?xml version="1.0"?>
<!--
NAME
kuradmf.xsl
DESCRIPTION
XSLT stylesheet for XML => DDL
conversion of ku$_radm_fptm_t UDTs
corresponding to 12c project RADM, dictionary table radm_fptm$.
NOTES
Do NOT modify this file under any circumstance. Copy the file
if you wish to use this stylesheet with an external XML/XSL parser
MODIFIED MM/DD/YY
sdavidso 02/27/17 - bug25440009 handle user name with apostrophe
dahlim 06/08/11 - Created
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Import the kucommon.xsl script, otherwise this template will never get invoked. See line 43 in kucommon.xsl, where the comment is "Top level template for all objects", this is the xsl equivalent of 'main'. -->
<xsl:import href="kucommon.xsl"/>
<!-- Top-level parameters -->
<!-- Parameters for DDL generation -->
<xsl:param name="PRETTY">1</xsl:param>
<xsl:param name="SQLTERMINATOR">0</xsl:param>
<!-- Parameters required for DoParse to function correctly. -->
<xsl:param name="PRS_DDL">0</xsl:param>
<xsl:param name="PRS_DELIM">\{]`</xsl:param>
<xsl:param name="PRS_VERB">0</xsl:param>
<xsl:param name="PRS_OBJECT_TYPE">0</xsl:param>
<xsl:param name="PRS_SCHEMA">0</xsl:param>
<xsl:param name="PRS_NAME">0</xsl:param>
<xsl:param name="PRS_GRANTEE">0</xsl:param>
<xsl:param name="PRS_GRANTOR">0</xsl:param>
<xsl:param name="PRS_BASE_OBJECT_SCHEMA">0</xsl:param>
<xsl:param name="PRS_BASE_OBJECT_NAME">0</xsl:param>
<xsl:param name="PRS_BASE_OBJECT_TYPE">0</xsl:param>
<!-- Template to insert values into table radm_fptm$ -->
<xsl:template match="RADM_FPTM_T">
<xsl:call-template name="DoParse">
<xsl:with-param name="Verb">DELETE_INSERT</xsl:with-param>
<xsl:with-param name="ObjectType">RADM_FPTM</xsl:with-param>
</xsl:call-template>
<xsl:text>BEGIN </xsl:text>
<xsl:if test="$PRETTY=1">
<xsl:text>
 </xsl:text>
</xsl:if>
<xsl:text>DELETE FROM "SYS"."RADM_FPTM$" WHERE FPVER=1; </xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>INSERT INTO "SYS"."RADM_FPTM$" (</xsl:text>
<xsl:text>"NUMBERCOL", "BINFLOATCOL", "BINDOUBLECOL", </xsl:text>
<xsl:text>"CHARCOL", "VARCHARCOL", "NCHARCOL", "NVARCHARCOL", </xsl:text>
<xsl:text>"DATECOL", "TS_COL", "TSWTZ_COL", "FPVER") VALUES (</xsl:text>
<xsl:value-of select="NUMBERCOL"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="BINFLOATCOL"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="BINDOUBLECOL"/>
<xsl:text>,'</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="CHARCOL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="VARCHARCOL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="NCHARCOL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="NVARCHARCOL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="DATECOL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="TS_COL"/>
</xsl:call-template>
<xsl:text>','</xsl:text>
<xsl:call-template name="EnQuote">
<xsl:with-param name="String" select="TSWTZ_COL"/>
</xsl:call-template>
<xsl:text>',</xsl:text>
<xsl:value-of select="FPVER"/>
<xsl:text>);</xsl:text>
<xsl:text>END;</xsl:text>
<!-- Terminate inner SQL statement -->
<xsl:call-template name="DoTerminator">
<xsl:with-param name="Text"/>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
OHA YOOOO