MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/rdbms/xml/xsl/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/rdbms/xml/xsl/kutsroleset.xsl

<?xml version="1.0"?>
<!-- 
 Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
NAME
    kutsroleset.xsl
DESCRIPTION
    XSLT stylesheet for XML => DDL conversion of ku$_xsroleset_t ADTs
    process Triton Security role sets
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
    bwright     08/21/13 - Bug 17312600: Remove hard tabs from DP src code
    rapayne     10/03/12 - support mixed case names.
    rapayne     08/31/11 - Triton rename to Real Application Security (RAS).
                           Object names will be changed from TS_* to XS_*.
    rapayne     07/17/10 - Creation 
 -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <!-- Import required scripts -->
 <xsl:import href="kucommon.xsl"/>
 <!-- Top-level parameters -->
 <xsl:param name="PRETTY">1</xsl:param>
 <xsl:param name="SQLTERMINATOR">1</xsl:param>
 <!-- params for parse -->
 <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>
 <xsl:template match="XS_ROLESET_T">
  <xsl:call-template name="DoParse">
   <xsl:with-param name="Verb">CREATE</xsl:with-param>
   <xsl:with-param name="ObjectType">XS_ROLESET</xsl:with-param>
   <xsl:with-param name="NameNode" select="NAME"/>
  </xsl:call-template>
   <!-- hack - somehow there is a space being displayed which 
       screws up the identation. So, realign things with a newline
-->
   <xsl:text>&#xa;</xsl:text>
  <xsl:call-template name="callCreateRoleset">
   <xsl:with-param name="name" select="XS_OBJ/NAME"/>
  </xsl:call-template>
 </xsl:template>
 <xsl:template name="callCreateRoleset">
  <xsl:param name="name" select="''"/>
  <!-- *******************************************************************
Template: callCreateRoleset - create roles and dynamic roles
Parameters:
 name   - name of roleset to create
******************************************************************** -->
  <xsl:text>BEGIN&#xa; </xsl:text>
  <xsl:text>xs_roleset.create_roleset(</xsl:text>
  <xsl:text>&#xa;     </xsl:text>
  <xsl:text>name => </xsl:text>
  <xsl:call-template name="TSQuoteObject">
   <xsl:with-param name="Object" select="$name"/>
  </xsl:call-template>
  <!-- Generate DESCRIPTION  arg if present -->
  <xsl:if test="DESCRIPTION">
   <xsl:text>,&#xa;     description => </xsl:text>
   <xsl:call-template name="SingleQuotedName">
    <xsl:with-param name="NameNode" select="DESCRIPTION"/>
   </xsl:call-template>
  </xsl:if>
  <!-- Generate ROLE_LIST arg if present -->
  <xsl:if test="ROLE_LIST/ROLE_LIST_ITEM">
   <xsl:text>,&#xa;     role_list => </xsl:text>
   <xsl:call-template name="XSNameList">
    <xsl:with-param name="nameList" select="ROLE_LIST/ROLE_LIST_ITEM"/>
   </xsl:call-template>
  </xsl:if>
  <!-- Close arglist for CREATE_ROLE call and process GRANTS-->
  <xsl:text>);</xsl:text>
  <xsl:text>&#xa;</xsl:text>
  <xsl:text>END;</xsl:text>
  <xsl:if test="$SQLTERMINATOR=1">
   <xsl:text>&#xa;</xsl:text>
   <xsl:text>/</xsl:text>
  </xsl:if>
 </xsl:template>
</xsl:stylesheet>

OHA YOOOO