|
|
@@ -0,0 +1,1178 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
+ xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
|
|
|
+ exclude-result-prefixes="xs"
|
|
|
+ version="2.0">
|
|
|
+
|
|
|
+ <xsl:output indent="yes"/>
|
|
|
+ <xsl:strip-space elements="*"/>
|
|
|
+
|
|
|
+ <!--<xsl:include href="system_cache__appinfo/TargetNamespaceBindings.xsl"/>-->
|
|
|
+ <!--<xsl:include href="system_cache__appinfo/external_schema_targetNamespace.xsl"/>-->
|
|
|
+
|
|
|
+ <xsl:include href="../default_db_xml_cache/build_complexType.xsl"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:param name="NamespaceBinding.xml" required="yes"/> <!-- to set propery install prefix -->
|
|
|
+ <xsl:param name="vrtfNamespaces.xml" required="yes"/>
|
|
|
+ <xsl:param name="external_schema_table.path" required="yes"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="NamespaceBinding" select="doc($NamespaceBinding.xml)"/>
|
|
|
+
|
|
|
+ <xsl:variable name="system_cache__appinfo:vrtfNamespaces" select="doc($vrtfNamespaces.xml)"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:with-param name="system_cache__appinfo:document-uri-orig" select="@system_cache__appinfo:document-uri-orig"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <!-- XXXXXX MAIN XXXX MAIN XXXX -->
|
|
|
+ <xsl:template match="schema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="system_cache__appinfo:document-uri-orig" required="yes"/>
|
|
|
+ <xsl:variable name="targetNamespace" select="@targetNamespace"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:prefix_from_targetNamespace($system_cache__appinfo:vrtfNamespaces,@targetNamespace)"/>
|
|
|
+ <!--<prefix>
|
|
|
+ <xsl:attribute name="look_for" select="@targetNamespace"/>
|
|
|
+ <xsl:attribute name="found" select="$system_cache__appinfo:vrtfNamespaces//node()[local-name()='ns'][@uri=$targetNamespace][1]/@prefix" />
|
|
|
+ <!-\-<xsl:copy-of select="$vrtfNamespaces"/>-\->
|
|
|
+ </prefix>-->
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="@targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="@targetNamespace"/>
|
|
|
+ <xsl:with-param name="system_cache__appinfo:document-uri-orig"></xsl:with-param>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external>
|
|
|
+ <xsl:copy-of select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:copy-of select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>
|
|
|
+ <!--<xsl:for-each select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external//system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables">
|
|
|
+
|
|
|
+ </xsl:for-each>-->
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables" select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external//system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root/*">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.required_by.path_init" select="1"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:copy-of select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:for-each-group select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables/system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables/*" group-by="@targetNamespace">
|
|
|
+ <xsl:variable name="schema.prefix" select="@prefix"/>
|
|
|
+ <xsl:variable name="schema.targetNamespace" select="@targetNamespace"/>
|
|
|
+ <xsl:variable name="schema">
|
|
|
+ <xsl:element name="schema" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <!--<xsl:attribute name="namespace" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,@generate_tables_from_external_root.path.last_token)"/>-->
|
|
|
+ <!--<xsl:attribute name="namespace_val" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace(@system_cache__appinfo:namespace_uri,@generate_tables_from_external_root.path.last_token)"/>-->
|
|
|
+ <!--<xsl:namespace name="{$schema.prefix}" select="$schema.targetNamespace"/>-->
|
|
|
+
|
|
|
+ <!-- namespaces all referenced -->
|
|
|
+ <xsl:for-each-group select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables//generate_tables_from_external_root.required_by.path_init[@prefix]" group-by="@targetNamespace" xpath-default-namespace="">
|
|
|
+ <xsl:namespace name="{@prefix}" select="@targetNamespace"/>
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ <xsl:namespace name="system_cache__appinfo" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd'"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="concat(@system_cache__appinfo:namespace_uri,'/',@generate_tables_from_external_root.path.last_token)"/>
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="system_cache__appinfo:document-uri-orig" select="$system_cache__appinfo:document-uri-orig"/>
|
|
|
+ <xsl:comment>#92 including</xsl:comment>
|
|
|
+ <!--<generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:copy-of select=" current-group()/generate_tables_from_external_root.required_by.path_init/*" xpath-default-namespace=""/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>-->
|
|
|
+ <xsl:for-each-group select="current-group()/generate_tables_from_external_root.required_by.path_init/*[@prefix]" group-by="@targetNamespace" xpath-default-namespace="">
|
|
|
+ <xsl:element name="import" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:attribute name="namespace" select="@targetNamespace"/>
|
|
|
+ <xsl:attribute name="schemaLocation" select="concat(@prefix,'.xsd')"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ <xsl:comment>#81 now groping by type and @lat_token</xsl:comment>
|
|
|
+ <xsl:for-each-group select="current-group()" group-by="concat(@targetNamespace,name())">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema" select=".">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:copy-of select="$schema"/>
|
|
|
+ <xsl:comment>#123 saving to <xsl:value-of select="concat($external_schema_table.path,'/',$system_cache__appinfo:document-uri-orig,'/',$schema.prefix,'.xsd')"/></xsl:comment>
|
|
|
+ <xsl:result-document href="{ concat($external_schema_table.path,'/',$system_cache__appinfo:document-uri-orig,'/',$schema.prefix,'.xsd')}">
|
|
|
+ <xsl:copy-of select="$schema"/>
|
|
|
+ </xsl:result-document>
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <!--<xsl:template match="schema[ not(@targetNamespace = 'external_schema__ksiegi_wieczyste__zsin_1013.xsd')]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:comment>#67 temporary bypased : <xsl:value-of select="@targetNamespace"/> ; to analyze one schema scenario!</xsl:comment>
|
|
|
+ </xsl:template>-->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- EOF XXXXXX MAIN XXXX MAIN XXXX -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- (((( SCHEMA PARSERS PREFIX NAMESPACES ))) -->
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema" select="@*">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path.last_token" select="@generate_tables_from_external_root.path.last_token"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="generate_tables_from_external_root.required_by.path_init" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <xsl:comment>#139 to include <xsl:value-of select=".//@generate_tables_from_external_root.required_by.path"/></xsl:comment>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <!--<xsl:template match="@type|@ref" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <!-\-<xsl:param name="targetNamespace" required="yes"/>-\->
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path.last_token" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="system_cache__appinfo:targetNamespace_from_prefix($system_cache__appinfo:vrtfNamespaces, system_cache__appinfo:get_prefix_from_element(.)) = 'http://www.w3.org/2001/XMLSchema'">
|
|
|
+ <xsl:attribute name="{name()}" select="."/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:attribute name="{name()}" select="concat( system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,$generate_tables_from_external_root.path.last_token),':', current() )"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:template>-->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- (((( EOF SCHEMA PARSERS PREFIX NAMESPACES ))) -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:variable name="element" select="@name"/>
|
|
|
+ <xsl:variable name="element-filename" >
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$prefix">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($prefix,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="$targetNamespace">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($targetNamespace,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string($element)"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="prefixed_object_info">
|
|
|
+ <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
|
|
|
+ <xsl:with-param name="prefixed_object" select="$element-filename"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="prefix_token" select="tokenize(system_cache__appinfo:translate_object_escaped_prefix_from_string($element-filename),':')"/>
|
|
|
+ <xsl:variable name="translate_object_escaped_prefix_from_string" select="system_cache__appinfo:translate_object_escaped_prefix_from_string($element-filename)"/>
|
|
|
+
|
|
|
+ <system_cache__appinfo:build_element>
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="namespace_uri_param" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="element-filename" select="$element-filename"/>
|
|
|
+ <!--<xsl:attribute name="id" select="@id"/>-->
|
|
|
+ <xsl:attribute name="translate_object_escaped_prefix_from_string" select="$translate_object_escaped_prefix_from_string"/>
|
|
|
+ <xsl:if test="$debug_level > 4">
|
|
|
+ <prefix_token>
|
|
|
+ <xsl:copy-of select="$prefix_token"/>
|
|
|
+ </prefix_token>
|
|
|
+ <prefixed_object_info>
|
|
|
+ <xsl:copy-of select="$prefixed_object_info"/>
|
|
|
+ </prefixed_object_info>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:variable name="build_element_cache">
|
|
|
+ <xsl:call-template name="system_cache__appinfo:build_element">
|
|
|
+ <xsl:with-param name="element" select="@name"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="namespace_uri_param" select="$targetNamespace"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <cache>
|
|
|
+ <xsl:copy-of select="$build_element_cache"/>
|
|
|
+ </cache>
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" select="$build_element_cache">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<xsl:if test="$debug_level > 4">-->
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:copy-of select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <!--</xsl:if>-->
|
|
|
+ <!--<system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables" select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root//system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root/*"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>-->
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:build_element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:variable name="element" select="@name"/>
|
|
|
+ <xsl:variable name="element-filename" >
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$prefix">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($prefix,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="$targetNamespace">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($targetNamespace,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string($element)"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="prefixed_object_info">
|
|
|
+ <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
|
|
|
+ <xsl:with-param name="prefixed_object" select="$element-filename"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="prefix_token" select="tokenize(system_cache__appinfo:translate_object_escaped_prefix_from_string($element-filename),':')"/>
|
|
|
+ <xsl:variable name="translate_object_escaped_prefix_from_string" select="system_cache__appinfo:translate_object_escaped_prefix_from_string($element-filename)"/>
|
|
|
+ <xsl:message>#186 parsing CT: <xsl:value-of select="@name"/> ; </xsl:message>
|
|
|
+
|
|
|
+ <system_cache__appinfo:build_complexType>
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="namespace_uri_param" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="element-filename" select="$element-filename"/>
|
|
|
+ <xsl:attribute name="translate_object_escaped_prefix_from_string" select="$translate_object_escaped_prefix_from_string"/>
|
|
|
+ <xsl:if test="$debug_level > 4">
|
|
|
+ <prefix_token>
|
|
|
+ <xsl:copy-of select="$prefix_token"/>
|
|
|
+ </prefix_token>
|
|
|
+ <prefixed_object_info>
|
|
|
+ <xsl:copy-of select="$prefixed_object_info"/>
|
|
|
+ </prefixed_object_info>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:variable name="build_element_cache">
|
|
|
+ <xsl:call-template name="system_cache__appinfo:build_complexType">
|
|
|
+ <xsl:with-param name="complexType" select="@name"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="namespace_uri_param" select="$targetNamespace"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <cache>
|
|
|
+ <xsl:copy-of select="$build_element_cache"/>
|
|
|
+ </cache>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" select="$build_element_cache">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<xsl:if test="$debug_level > -1">-->
|
|
|
+ <xsl:copy-of select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root"/>
|
|
|
+ <!--</xsl:if>-->
|
|
|
+ <!--<system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables" select="$system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root//system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root/*"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables>-->
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:build_complexType>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="simpleType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+
|
|
|
+ <xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace,@name)"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,@name)"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#135 root element without @type - ...force_refered_complexType (add path) </xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates select="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType">
|
|
|
+ <xsl:with-param name="name" select="@name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+
|
|
|
+ <xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace,@name)"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,@name)"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#374 root CT without @type - ? maybe force element? or should be forced from another leafes? </xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"></xsl:copy-of>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <!--<xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace,@name)"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,@name)"/>-->
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="debug_372_root_CT" select="system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name)"/>
|
|
|
+ <xsl:comment>#344A TODO fi create ? root_child element without @type - ...force_refered_complexType (not add path) </xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates select="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/> <!-- system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name)) -->
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:comment> #344A - was but not good - suppresed processing - type should be defined in another leaf</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType_root">
|
|
|
+ <xsl:with-param name="name" select="@name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<xsl:template match="element[complexType]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <!-\-<xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace,@name)"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,@name)"/>-\->
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="debug_372_root_CT" select="system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name)"/>
|
|
|
+ <xsl:comment>#344Z RODZAJ_BUDYNKU/ </xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates select="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type">
|
|
|
+ <xsl:with-param name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:comment> #344Z RODZAJ_BUDYNKU/ </xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType_root">
|
|
|
+ <xsl:with-param name="name" select="@name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>-->
|
|
|
+
|
|
|
+ <xsl:template match="complexType[complexType/@name]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+
|
|
|
+ <xsl:variable name="root_type" select="child::node()"/>
|
|
|
+
|
|
|
+ <xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace, system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name) )"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#259 root complexType with complexContent/extension/@base = complexType/@name - native element - to be detected last derivation</xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:element name="complexContent" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:element name="extension" namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:attribute name="base" select="complexType/@name"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_element" select=".">
|
|
|
+ <xsl:with-param name="name" select="complexType/@name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name,'/',complexType/@name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_ref_to_root">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
+ <xsl:template match="@ref" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_ref_to_root">
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:attribute name="{name()}" select=" concat($prefix,':', system_cache__appinfo:clean_object_prefix(current()))"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
+ <xsl:template match="@type" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="@name" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type">
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <!-- <xsl:attribute name="debug_422_prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="debug_422_current" select=" current()"/>-->
|
|
|
+ <xsl:attribute name="type" select=" concat($prefix,':', current())"/>
|
|
|
+ <xsl:attribute name="name" select="."/>
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="element[@type]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@type"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType[@type]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@type"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@type"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@type"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@type"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:comment>#319 complextype std from child</xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/> <!-- $generate_tables_from_external_root.name -->
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="sequence" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/><xsl:comment>#295 seq in child mode</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="simpleType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element[@ref]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="system_cache__appinfo:object_install_se_ant_object.root_complextype( current(),@ref)"><!-- jest ref do czegos co ma CT -->
|
|
|
+ <xsl:attribute name="debug_587_root_complextype" select="system_cache__appinfo:object_install_se_ant_object.root_complextype( current(),@ref)"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_ref_to_root" select="@*">
|
|
|
+ <xsl:with-param name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root, system_cache__appinfo:object_install_se_ant_object.root_complextype(element,@ref))"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace, system_cache__appinfo:object_install_se_ant_object.root_complextype(element,@ref))"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:attribute name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root, system_cache__appinfo:object_install_se_ant_object.root_complextype(element,@ref))"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace, system_cache__appinfo:object_install_se_ant_object.root_complextype(element,@ref))"/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><!-- jest ref tylko do roota -->
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_ref_to_root" select="@*">
|
|
|
+ <xsl:with-param name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root, system_cache__appinfo:clean_object_prefix(@ref))"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace, system_cache__appinfo:clean_object_prefix(@ref))"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:attribute name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root, system_cache__appinfo:clean_object_prefix(@ref))"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace_root, system_cache__appinfo:clean_object_prefix(@ref))"/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:comment>#191 element[@ref] on child - should not be more transformed</xsl:comment>
|
|
|
+ <!--<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child"/>-->
|
|
|
+
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element[@name and complexType and not(@type)]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:variable name="generate_tables_from_external_root.path_new" select="@name"/>
|
|
|
+
|
|
|
+ <xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_CT_ref" select="@*">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:comment>#320A complexContent in child - try to map to root type schema </xsl:comment>
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="debug_579_root_complextype" select="system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name)"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path_new"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.required_by.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:comment>#320A complexContent in child - force to make Table with name based on current path (copy element with @ref + make CT) </xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_child" select=".">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path_new,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element[@name and complexType and @type]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:variable name="generate_tables_from_external_root.path_new" select="@name"/>
|
|
|
+
|
|
|
+ <xsl:variable name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace_root,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+ <xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root,system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name))"/>
|
|
|
+
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_CT_ref" select="@*">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:comment>#320T complexContent with type in child - try to map to root type schema </xsl:comment>
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="debug_579_root_complextype" select="system_cache__appinfo:object_install_se_ant_object.root_complextype( complexType,@name)"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path_new"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.required_by.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:comment>#320T complexContent in child - force to make Table with name based on current path (copy element with @ref + make CT) </xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_child" select=".">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path_new,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="element" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:variable name="generate_tables_from_external_root.path_new" select="@name"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="system_cache__appinfo:debug">#376 element child - not type - error? to be fixed schema!</xsl:attribute>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="element[@type and not(complexType)]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@type"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@type"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="system_cache__appinfo:targetNamespace_from_prefix($system_cache__appinfo:vrtfNamespaces, system_cache__appinfo:get_prefix_from_element(@type)) = 'http://www.w3.org/2001/XMLSchema'">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:comment>#203a - type typu xs:</xsl:comment>
|
|
|
+ <!--<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_element" select="."/>-->
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type" select="@*">
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:comment>#203b - type innego typu niż xs: - trzeba stworzyc ten typ</xsl:comment>
|
|
|
+ <!--<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child" select="."/>-->
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <!--<xsl:attribute name="debug_679_targNStype" select="system_cache__appinfo:targetNamespace_from_prefix($system_cache__appinfo:vrtfNamespaces, system_cache__appinfo:get_prefix_from_element(@type))"/>-->
|
|
|
+ <xsl:element name="complexType" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xs:complexType name="{@name}">
|
|
|
+ <xs:complexContent>
|
|
|
+ <xs:extension base="{@type}"/>
|
|
|
+ </xs:complexContent>
|
|
|
+ </xs:complexType>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:element name="element">
|
|
|
+ <xsl:attribute name="name" select="@name"/>
|
|
|
+ <xsl:attribute name="type" select="@type"/>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="name" required="yes"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="$name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#359A complexType forced now contintue childs</xsl:comment>
|
|
|
+ <xsl:element name="{name()}" >
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="name" select="$name"/>
|
|
|
+ <!--<xsl:element name="complexContent" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:element name="extension" namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:attribute name="base" select="complexType/@name"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_element" select=".">
|
|
|
+ <xsl:with-param name="name" select="complexType/@name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name,'/',complexType/@name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:element>-->
|
|
|
+ <xsl:comment>#359A - parsing - CT will not be supplied from another leaf</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType[ sequence and not (@type) ]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="name" required="yes"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="$name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#359C complexType forced now contintue childs</xsl:comment>
|
|
|
+ <xsl:element name="{name()}" >
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="name" select="$name"/>
|
|
|
+ <xsl:comment>#359C - parsing - CT is local leaf</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_complexType_root" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="name" required="yes"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="$name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#359B complexType forced now contintue childs</xsl:comment>
|
|
|
+ <xsl:element name="{name()}" >
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="name" select="$name"/>
|
|
|
+ <xsl:element name="complexContent" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:element name="extension" namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:attribute name="base" select="concat(system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root,system_cache__appinfo:object_install_se_ant_object.root_complextype( current(),@name)),':',@name )"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:element>
|
|
|
+ <xsl:comment>#359B - not parsing - CT will be supplied from another leaf</xsl:comment>
|
|
|
+ <!--<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>-->
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_force_refered_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.name" select="@name"/>
|
|
|
+ <xsl:param name="generate_tables_from_external_root.path" select="@name"/>
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:comment>#232 forced from ComplexType (generate_tables_from_external_root.name = <xsl:value-of select="$generate_tables_from_external_root.name"/>) </xsl:comment>
|
|
|
+ <xsl:element name="element" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child">
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.name" select="$generate_tables_from_external_root.name"/>
|
|
|
+ <xsl:with-param name="generate_tables_from_external_root.path" select="$generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
|
|
|
+ <xsl:with-param name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:with-param name="targetNamespace_root" select="$targetNamespace_root"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables">
|
|
|
+ <xsl:comment>#166 ignored child to be set root </xsl:comment>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables">
|
|
|
+ <xsl:param name="generate_tables_from_external_root.required_by.path_init"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:copy-of select="../@*"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="../@generate_tables_from_external_root.path">
|
|
|
+ <xsl:variable name="generate_tables_from_external_root.path.last" select="../@generate_tables_from_external_root.path"/>
|
|
|
+ <xsl:variable name="generate_tables_from_external_root.path.last_token" select="tokenize($generate_tables_from_external_root.path.last,'/')[ count(tokenize($generate_tables_from_external_root.path.last,'/'))]"/>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.path.last_token" select="$generate_tables_from_external_root.path.last_token"/>
|
|
|
+ <!--<xsl:attribute name="generate_tables_from_external_root.path.last" select="tokenize(.././@generate_tables_from_external_root.path,'/')[ count(tokenize(../@generate_tables_from_external_root.path,'/'))]"/>-->
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$generate_tables_from_external_root.required_by.path_init">
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:for-each select=".//*[@prefix]">
|
|
|
+ <generate_tables_from_external_root.required_by.path_init>
|
|
|
+ <xsl:attribute name="generate_tables_from_external_root.required_by.path" select="@generate_tables_from_external_root.required_by.path"/>
|
|
|
+ <xsl:attribute name="prefix" select="@prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="@targetNamespace"/>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ </xsl:for-each>
|
|
|
+ </generate_tables_from_external_root.required_by.path_init>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_CT_ref">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="@type" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_CT_ref"/>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="@name" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_CT_ref">
|
|
|
+ <xsl:param name="targetNamespace" required="yes"/>
|
|
|
+ <xsl:param name="prefix" required="yes"/>
|
|
|
+ <xsl:param name="prefix_root" required="yes"/>
|
|
|
+ <xsl:param name="targetNamespace_root" required="yes"/>
|
|
|
+ <xsl:attribute name="ref" select=" concat($prefix,':',current())"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="@type" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type">
|
|
|
+ <xsl:attribute name="ref" select="."/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="import|group|attributeGroup|include|annotation" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+ <xsl:template match="*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external">
|
|
|
+ <error_unantended><xsl:attribute name="name" select="name()"/></error_unantended>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="comment()|text()" mode="system_cache__appinfo:object_install_se_ant_object.list_external_schemas"/>
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="system_cache__appinfo:object_install_se_ant_object.list_external_schemas">
|
|
|
+ <system_cache__appinfo:object_install_se_ant_object.list_external_schemas>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_schemas"/>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.list_external_schemas>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd_external_schema" mode="system_cache__appinfo:object_install_se_ant_object.list_external_schemas">
|
|
|
+ <xsl:variable name="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace"/>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_objects" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:with-param name="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace" select="$system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.list_external_objects"><!-- root elements without types must be separate object -->
|
|
|
+ <xsl:param name="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace" required="yes"/>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="../@*"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace//@targetNamespace"/> <!-- todo targetnamespace musi byc powiazany z instalowanym API z TargetNamespaceBindings.xml + parametrem konfiguracyjnym - czyli to wstepne targetnamespace -->
|
|
|
+ <xsl:attribute name="targetNamespace_proposal" select="system_cache__appinfo:object_install_se_ant_object.merge_external_targetNamespace($system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace//@targetNamespace,@name)"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_objects">
|
|
|
+ <xsl:with-param name="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace" select="$system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.list_external_objects"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.list_external_objects"><!-- root elements without types must be separate object -->
|
|
|
+ <xsl:param name="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace" required="yes"/>
|
|
|
+ <object>
|
|
|
+ <xsl:attribute name="name" select="@name"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace//@targetNamespace"/> <!-- todo targetnamespace musi byc powiazany z instalowanym API z TargetNamespaceBindings.xml + parametrem konfiguracyjnym - czyli to wstepne targetnamespace -->
|
|
|
+ <xsl:attribute name="targetNamespace_proposal" select="system_cache__appinfo:object_install_se_ant_object.merge_external_targetNamespace($system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace//@targetNamespace,@name)"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables"></xsl:apply-templates>
|
|
|
+ </object>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="sequence" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType_sequence"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="element" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ TODO TODO need to build object natively!!! by buildComplexType!
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:comment>Unantended object <xsl:value-of select="name()"/></xsl:comment>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:comment>Unantended object <xsl:value-of select="name()"/></xsl:comment>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables"/>
|
|
|
+
|
|
|
+ <xsl:template match="text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.list_external_tables_complexType"/>
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="system_cache__appinfo:list_schema_elements">
|
|
|
+ <system_cache__appinfo:list_schema_elements>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:list_schema_elements"/>
|
|
|
+ </system_cache__appinfo:list_schema_elements>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd" mode="system_cache__appinfo:list_schema_elements">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:list_schema_elements"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="xs:schema" mode="system_cache__appinfo:list_schema_elements">
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <system_cache__appinfo:prefix><xsl:value-of select="system_cache__appinfo:prefix_from_targetNamespace($system_cache__appinfo:vrtfNamespaces,@targetNamespace)" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></system_cache__appinfo:prefix>
|
|
|
+ <system_cache__appinfo:prefix_binding><xsl:value-of select="system_cache__appinfo:get_default_db_obj_url_table_name(@targetNamespace)"/></system_cache__appinfo:prefix_binding>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:list_schema_elements"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:list_schema_elements">
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:list_schema_elements"/>
|
|
|
+
|
|
|
+ <xsl:template match="text()|comment()" mode="system_cache__appinfo:list_schema_elements"/>
|
|
|
+
|
|
|
+ <xsl:function name="system_cache__appinfo:object_install_se_ant_object.root_complextype">
|
|
|
+ <xsl:param name="system_cache__appinfo:build_complexType"/>
|
|
|
+ <xsl:param name="force_name"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" select="$system_cache__appinfo:build_complexType">
|
|
|
+ <xsl:with-param name="force_name" select="$force_name"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:function>
|
|
|
+
|
|
|
+ <xsl:template match="complexType" mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:param name="force_name"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.root_complextype"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="@name">
|
|
|
+ <xsl:value-of select="@name"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" select="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="$force_name"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="*|text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</xsl:stylesheet>
|