|
|
@@ -15,13 +15,13 @@
|
|
|
|
|
|
|
|
|
<xsl:param name="NamespaceBinding.xml" required="yes"/> <!-- to set propery install prefix -->
|
|
|
- <xsl:param name="vrtfNamespaces.xml" required="yes"/>
|
|
|
+ <!--<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:variable name="system_cache__appinfo:vrtfNamespaces" select="doc($vrtfNamespaces.xml)"/>-->
|
|
|
|
|
|
|
|
|
|
|
|
@@ -55,7 +55,7 @@
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="system_cache__appinfo:get_all_xsd[xs:schema/@targetNamespace='https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd']" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"> <!-- FILTERING [xs:schema/@targetNamespace='https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd'] -->
|
|
|
+ <xsl:template match="system_cache__appinfo:get_all_xsd" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"> <!-- FILTERING [xs:schema/@targetNamespace='https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd'] -->
|
|
|
<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"/>
|
|
|
</xsl:apply-templates>
|
|
|
@@ -435,6 +435,7 @@
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:variable name="build_element_cache">
|
|
|
+ <xsl:message>#458 calling system_cache__appinfo:build_element_cache for $targetNamespace=<xsl:value-of select="$targetNamespace"/>; </xsl:message>
|
|
|
<xsl:call-template name="system_cache__appinfo:build_element_cache">
|
|
|
<xsl:with-param name="element" select="@name"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
@@ -469,12 +470,16 @@
|
|
|
|
|
|
<!--<xsl:template match="complexType[ not(@name='sys_users') and not(@name='crm_families') and not(@name='crm_coordinators') and not(@name='crm_addressesfamilieslinks') and ../.././name()='system_cache__appinfo:get_all_xsd_default_db']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"/>--> <!-- not(@name='sys_users') and not(@name='crm_families') and not(@name='crm_coordinators') and not(@name='crm_addressesfamilieslinks') and -->
|
|
|
|
|
|
+ <xsl:template match="element[ ../.././name()='system_cache__appinfo:get_all_xsd_default_db']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"> <!-- (@name='crm_families' or @name='crm_addressesfamilieslinks' or @name='crm_coordinators' or @name='sys_users') and -->
|
|
|
+ <xsl:message>#474 bypassed ROOT element/@name=<xsl:value-of select="@name"/></xsl:message>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
<xsl:template match="complexType[ ../.././name()='system_cache__appinfo:get_all_xsd_default_db']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external"> <!-- (@name='crm_families' or @name='crm_addressesfamilieslinks' or @name='crm_coordinators' or @name='sys_users') and -->
|
|
|
<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"/>
|
|
|
-
|
|
|
+ <!-- TODO testing @2017-12-13 if has run element -->
|
|
|
<xsl:variable name="element" select="@name"/>
|
|
|
<xsl:variable name="element-filename" >
|
|
|
<xsl:choose>
|
|
|
@@ -512,6 +517,7 @@
|
|
|
<xsl:copy-of select="$prefixed_object_info"/>
|
|
|
</prefixed_object_info>
|
|
|
</xsl:if>
|
|
|
+ <xsl:message>#516 NOT calling system_cache__appinfo:build_element_cache</xsl:message>
|
|
|
<xsl:variable name="build_element_cache">
|
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:variable>
|
|
|
@@ -577,7 +583,9 @@
|
|
|
</generate_tables_from_external_root.required_by.path_init>
|
|
|
</xsl:element>
|
|
|
</system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+ <xsl:message>#586 will element=<xsl:value-of select="$element"/>; (foreach) call system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = <xsl:value-of select="@system_cache__appinfo:xpath"/> in $targetNamespace=<xsl:value-of select="$targetNamespace"/>;</xsl:message>
|
|
|
<xsl:for-each-group select="../xs:complexType//system_cache__appinfo:flat_relation_cache[ system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = current()/@name ]" group-by="@system_cache__appinfo:name" >
|
|
|
+ <xsl:message>#583 will ( IN foreach) call system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = <xsl:value-of select="@system_cache__appinfo:xpath"/></xsl:message>
|
|
|
<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"/>
|
|
|
@@ -591,6 +599,7 @@
|
|
|
<xsl:attribute name="id" select="concat($id,'ct',@system_cache__appinfo:name)"/>
|
|
|
<xs:complexContent>
|
|
|
<xs:extension>
|
|
|
+ <xsl:message>#600 calling concat($prefix,':',system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath)) with @system_cache__appinfo:xpath=(<xsl:value-of select="@system_cache__appinfo:xpath"/>)</xsl:message>
|
|
|
<xsl:attribute name="base" select="concat($prefix,':',system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath))"/>
|
|
|
<generate_tables_from_external_root.required_by.path_init>
|
|
|
<xsl:attribute name="prefix" select="$prefix"/>
|
|
|
@@ -610,6 +619,7 @@
|
|
|
<xsl:element name="xs:element">
|
|
|
<xsl:attribute name="name" select="@system_cache__appinfo:name"/>
|
|
|
<xsl:attribute name="id" select="concat($id,'el',@system_cache__appinfo:name)"/>
|
|
|
+ <xsl:message>#5621 will call system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = <xsl:value-of select="@system_cache__appinfo:xpath"/></xsl:message>
|
|
|
<xsl:attribute name="type" select="concat($prefix,':',system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath))"/>
|
|
|
<generate_tables_from_external_root.required_by.path_init>
|
|
|
<xsl:attribute name="prefix" select="$prefix"/>
|
|
|
@@ -650,7 +660,7 @@
|
|
|
</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>
|
|
|
+ <!--<xsl:message>#186 parsing CT: <xsl:value-of select="@name"/> ; </xsl:message>-->
|
|
|
|
|
|
<system_cache__appinfo:build_complexType>
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
@@ -667,6 +677,7 @@
|
|
|
</prefixed_object_info>
|
|
|
</xsl:if>
|
|
|
<xsl:variable name="build_element_cache">
|
|
|
+ <xsl:message>#671 calling system_cache__appinfo:build_complexType_cache</xsl:message>
|
|
|
<xsl:call-template name="system_cache__appinfo:build_complexType_cache">
|
|
|
<xsl:with-param name="complexType" select="@name"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
@@ -1594,6 +1605,40 @@
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
+ <xsl:template match="simpleType" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child.get_all_xsd_default_db" 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:attribute name="prefix_root" select="$prefix_root"/>
|
|
|
+ <xsl:if test="number($debug_level) > 3"><xsl:attribute name="debug" select="'#1644'"/></xsl:if>
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:copy-of select="*"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@base">
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child.get_all_xsd_default_db" select=" root()//system_cache__appinfo:get_all_xsd_default_db/schema[@targetNamespace=$targetNamespace_root]/simpleType[@name= system_cache__appinfo:clean_object_prefix(current()/@base)]">
|
|
|
+ <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:when>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:element>
|
|
|
+ </system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_root>
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
<xsl:template match="element[@type ]" mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child.get_all_xsd_default_db" 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"/>
|
|
|
@@ -1610,15 +1655,32 @@
|
|
|
<xsl:comment>#203aB - 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:when test=" root()//system_cache__appinfo:get_all_xsd_default_db/schema[@targetNamespace=$targetNamespace_root]/simpleType[@name= system_cache__appinfo:clean_object_prefix(current()/@type)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:if test="number($debug_level) > 3"><xsl:attribute name="debug.203aB">#203aB - type typu xs: v</xsl:attribute></xsl:if>
|
|
|
+
|
|
|
+ <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)"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external_child.get_all_xsd_default_db" select=" root()//system_cache__appinfo:get_all_xsd_default_db/schema[@targetNamespace=$targetNamespace_root]/simpleType[@name= system_cache__appinfo:clean_object_prefix(current()/@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_element" select="."/>-->
|
|
|
+ </xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
+ <xsl:message>#test 1641 child <xsl:value-of select=" root()//system_cache__appinfo:get_all_xsd_default_db/schema[@targetNamespace=$targetNamespace_root]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:message>
|
|
|
<xsl:if test="not(xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath)">
|
|
|
- <xsl:message terminate="yes">#1475 Unset xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath in @id:<xsl:value-of select="@id"/> element.</xsl:message>
|
|
|
+ <xsl:message terminate="yes">FATAL ERROR ? #1475 not set xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath in @id:<xsl:value-of select="@id"/> element name=(<xsl:value-of select="@name"/>) @type=(<xsl:value-of select="@type"/>) generate_tables_from_external_root.path=(<xsl:value-of select="$generate_tables_from_external_root.path"/>) $targetNamespace=(<xsl:value-of select="$targetNamespace"/>)</xsl:message>
|
|
|
</xsl:if>
|
|
|
+ <xsl:message>#1652 will call system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = <xsl:value-of select="xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath"/></xsl:message>
|
|
|
<xsl:variable name="prefix" select="system_cache__appinfo:object_install_se_ant_object.create_prefix($prefix_root,system_cache__appinfo:xpath.to.root_table(xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath))"/>
|
|
|
<xsl:attribute name="ref" select="concat($prefix,':',@name)"/>
|
|
|
<xsl:comment>#203bB - ref wymagac bedzie odtworzenia root/elenent dotyczacy tego refa. na bazie wszystkich uzytych system_cache__appinfo:flat_relation_cache[system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = current()/@name ]</xsl:comment>
|
|
|
<generate_tables_from_external_root.required_by.path_init>
|
|
|
<xsl:attribute name="prefix" select="$prefix"/>
|
|
|
+ <xsl:message>#1658 will call system_cache__appinfo:xpath.to.root_table(@system_cache__appinfo:xpath) = <xsl:value-of select="xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath"/></xsl:message>
|
|
|
<xsl:attribute name="targetNamespace" select="system_cache__appinfo:object_install_se_ant_object.create_targetNamespace($targetNamespace_root,system_cache__appinfo:xpath.to.root_table(xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache/@system_cache__appinfo:xpath))"/>
|
|
|
</generate_tables_from_external_root.required_by.path_init>
|
|
|
</xsl:otherwise>
|