|
|
@@ -65,14 +65,14 @@
|
|
|
<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:variable name="current.schema" select="."/><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:with-param name="current.schema" select="$current.schema"/></xsl:apply-templates>
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
@@ -113,7 +113,7 @@
|
|
|
<xsl:namespace name="{@prefix}" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace_final(@targetNamespace)"/>
|
|
|
</xsl:for-each-group>
|
|
|
|
|
|
- <xsl:namespace name="{$schema.prefix}" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace_final($schema.targetNamespace)"/>
|
|
|
+ <xsl:namespace name="xs" select="'http://www.w3.org/2001/XMLSchema'"/><xsl:namespace name="{$schema.prefix}" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace_final($schema.targetNamespace)"/>
|
|
|
|
|
|
<xsl:namespace name="system_cache__appinfo" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd'"/>
|
|
|
<xsl:namespace name="p5Type" select="'http://biuro.biall-net.pl/p5/schema/types'"/>
|
|
|
@@ -121,7 +121,7 @@
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates select="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables_schema"/>
|
|
|
<xsl:attribute name="system_cache__appinfo:document-uri-orig" select="$system_cache__appinfo:document-uri-orig"/>
|
|
|
- <xsl:comment>#92 including</xsl:comment>
|
|
|
+ <xsl:attribute name="debig.106.count" select="count(current-group())"/><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>-->
|
|
|
@@ -131,9 +131,9 @@
|
|
|
<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:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.import" select="$current.schema/*"/><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:comment>#136 grouping schema elements count=<xsl:value-of select="count(current-group())"/></xsl:comment><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"/>
|
|
|
@@ -152,7 +152,7 @@
|
|
|
<xsl:message >#138 $ant-obj-save-path element/@name=<xsl:value-of select="@name"/> <xsl:value-of select="$ant-obj-save-path"/></xsl:message>
|
|
|
|
|
|
<xsl:result-document href="{$ant-obj-save-path}">
|
|
|
- <xsl:apply-templates select="../../." mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element">
|
|
|
+ <xsl:apply-templates select="../../." mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.schema">
|
|
|
<xsl:with-param name="name" select="@name"/>
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:result-document>
|
|
|
@@ -166,7 +166,7 @@
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="schema" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:template match="schema" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
<xsl:param name="name" required="yes"/>
|
|
|
<xsl:element name="{name()}" namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<xsl:copy-of select="namespace::node()"/>
|
|
|
@@ -174,21 +174,33 @@
|
|
|
<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element">
|
|
|
<xsl:with-param name="name" select="$name"/>
|
|
|
</xsl:apply-templates>
|
|
|
- </xsl:element>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element" select="*//system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root">
|
|
|
+ <xsl:with-param name="name" select="$name"/>
|
|
|
+ </xsl:apply-templates></xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="element[@name]" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
<xsl:param name="name" required="yes"/>
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="@name=$name">
|
|
|
- <xsl:copy-of select="."/>
|
|
|
- </xsl:when>
|
|
|
- </xsl:choose>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child"/>
|
|
|
+ </xsl:element></xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:comment>#198 uwanted root name <xsl:value-of select="name()"/>;</xsl:comment>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:otherwise></xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="complexType|simpleType|import" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
- <xsl:copy-of select="."/>
|
|
|
- </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.ant-object.unique_element.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" /><xsl:template match="complexType|simpleType|import" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child"/>
|
|
|
+ </xsl:element></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>
|
|
|
@@ -199,7 +211,16 @@
|
|
|
|
|
|
|
|
|
<!-- (((( SCHEMA PARSERS PREFIX NAMESPACES ))) -->
|
|
|
- <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_schema">
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="simpleSchema" mode="system_cache__appinfo:object_install_se_ant_object.ant-object.unique_element.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" >
|
|
|
+ <xsl:message terminate="yes"> #232 unanteded - todo upgrade for element <xsl:value-of select="name()"/> / @name <xsl:value-of select="@name"/> ; @id = <xsl:value-of select="@id"/></xsl:message>
|
|
|
+ </xsl:template><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"/>
|
|
|
@@ -667,7 +688,8 @@
|
|
|
<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:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:attribute name="targetNamespace" select="$targetNamespace"/><xsl:element name="{name()}">
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates select="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root_element_force_type_element">
|
|
|
<xsl:with-param name="generate_tables_from_external_root.path" select="concat($generate_tables_from_external_root.path,'/',$generate_tables_from_external_root.name)"/>
|
|
|
@@ -965,7 +987,7 @@
|
|
|
</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: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"/>
|
|
|
@@ -979,7 +1001,29 @@
|
|
|
<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:when test="simpleType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <!--<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:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType" 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:copy-of select="@*"/>--> <!-- consider @type = default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS -->
|
|
|
+ <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>#203b.1 - type innego typu niż xs: - dla simpleType przypadek ADMIN_USERS/A_STATUS</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType" >
|
|
|
+ <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: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"/>
|
|
|
@@ -1013,7 +1057,122 @@
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="annotation" 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:template match="@*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <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.simpleType" 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:attribute name="type" select="concat($prefix,':',system_cache__appinfo:clean_object_prefix(current()))"/>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="simpleType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType" 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">#1069 from simpleType</xsl:attribute>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child">
|
|
|
+ <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="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.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">#1069 from simpleType</xsl:attribute>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child">
|
|
|
+ <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="restriction" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.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">#1069 from simpleType</xsl:attribute>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child.restriction">
|
|
|
+ <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="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child.restriction" 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">#1069 from simpleType</xsl:attribute>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child.restriction">
|
|
|
+ <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="restriction" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child.restriction" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:message terminate="yes">#1079 To be upgraded - propably multiple simpleType derivation to be root element exponed! @id=<xsl:value-of select="@id"/></xsl:message>
|
|
|
+ </xsl:template>-->
|
|
|
+
|
|
|
+ <xsl:template match="restriction[@base='xs:anyAtomicType']" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child.restriction" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="simpleType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.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:message terminate="yes">#1096 To be upgraded - propably multiple simpleType derivation to be root element exponed!</xsl:message>
|
|
|
+ <!--<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">#1069 from simpleType</xsl:attribute>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child_type.simpleType.child"/>
|
|
|
+ </xsl:element>-->
|
|
|
+ </xsl:template><xsl:template match="annotation" 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:comment>suppressed annotation <xsl:copy-of select=".//text()"/></xsl:comment>
|
|
|
</xsl:template>
|
|
|
|
|
|
@@ -1257,7 +1416,13 @@
|
|
|
</xsl:for-each>
|
|
|
</generate_tables_from_external_root.required_by.path_init>
|
|
|
</xsl:when>
|
|
|
- </xsl:choose>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:comment>
|
|
|
+ #12688 suppressed for <xsl:value-of select="name()"/> /<xsl:value-of select="@name"/>
|
|
|
+ ------
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ </xsl:comment>
|
|
|
+ </xsl:otherwise></xsl:choose>
|
|
|
<xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_mktables"/>
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
@@ -1418,7 +1583,20 @@
|
|
|
</xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="*|text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" />
|
|
|
+ <xsl:template match="*" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.import" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+
|
|
|
+ <xsl:template match="import[ contains(@namespace,$default_db_targetNamespace_detect_string)]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.import" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:attribute name="namespace" select="@namespace"/>
|
|
|
+ <xsl:variable name="schemaLocation" select="system_cache__appinfo:get_default_db_obj_url_table_name(@namespace)"/>
|
|
|
+ <xsl:attribute name="schemaLocation" select="$schemaLocation"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="import[ not(contains(@namespace,$default_db_targetNamespace_detect_string))]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.import" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:message>#1646 ignored <xsl:copy-of select="@namespace"/>; not matched = <xsl:value-of select="$default_db_targetNamespace_detect_string"/></xsl:message>
|
|
|
+ <xsl:comment>#1646 ignored <xsl:copy-of select="@namespace"/>; not matched = <xsl:value-of select="$default_db_targetNamespace_detect_string"/></xsl:comment>
|
|
|
+ </xsl:template><xsl:template match="*|text()|comment()" mode="system_cache__appinfo:object_install_se_ant_object.root_complextype" />
|
|
|
|
|
|
|
|
|
|