a.binder 9 gadi atpakaļ
vecāks
revīzija
14c93a823e

+ 3 - 1
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/IN7_MK_BAZA_DYSTRYBUCJI.dita

@@ -49,7 +49,9 @@
               xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd" id="untitled8">
               xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd" id="untitled8">
               <title>Sprawa <ph xpath="ID"/> <ph xpath="M_DIST_DESC"/> <ph xpath="M_DISTRIBUTOR"/> <ph/></title>
               <title>Sprawa <ph xpath="ID"/> <ph xpath="M_DIST_DESC"/> <ph xpath="M_DISTRIBUTOR"/> <ph/></title>
               <body>
               <body>
-                <p xpath="L_APPOITMENT_INFO"></p>
+                <p>
+                  <ph>Notatki:</ph> <ph xpath="L_APPOITMENT_INFO"/>
+                </p>
               </body>
               </body>
               <topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               <topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
                 xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">

+ 23 - 38
SE/schema/default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl

@@ -40,7 +40,6 @@
         <xsl:copy-of select="collection($path)"/>
         <xsl:copy-of select="collection($path)"/>
     </xsl:template>-->
     </xsl:template>-->
     
     
-    
     <!--<xsl:template name="RelatedFeatureLoop">
     <!--<xsl:template name="RelatedFeatureLoop">
         <xsl:param name="element-filename"  required="yes"/> <!-\- prezes1.root_x2f_.d1e1.CRM_PROCES_x2f_.d1e46.CRM_WSKAZNIK_x2f_.d1e51.CRM_LISTA_ZASOBOW.1. -\->
         <xsl:param name="element-filename"  required="yes"/> <!-\- prezes1.root_x2f_.d1e1.CRM_PROCES_x2f_.d1e46.CRM_WSKAZNIK_x2f_.d1e51.CRM_LISTA_ZASOBOW.1. -\->
         <xsl:param name="path2collection" select="concat($temp,'/')"/> <!-\- $basedir,'/' -\->
         <xsl:param name="path2collection" select="concat($temp,'/')"/> <!-\- $basedir,'/' -\->
@@ -72,7 +71,6 @@
         <xsl:element name="RelatedFeatureRoot">
         <xsl:element name="RelatedFeatureRoot">
             <xsl:copy-of select="@*"/>
             <xsl:copy-of select="@*"/>
             <xsl:apply-templates select="."/>
             <xsl:apply-templates select="."/>
-            
         </xsl:element>
         </xsl:element>
     </xsl:template>
     </xsl:template>
     
     
@@ -87,7 +85,6 @@
         </xsl:element>
         </xsl:element>
     </xsl:template>
     </xsl:template>
     
     
-    
     <xsl:template match="RelatedFilter">
     <xsl:template match="RelatedFilter">
         <xsl:message>#55 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
         <xsl:message>#55 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
     </xsl:template>
     </xsl:template>
@@ -99,7 +96,6 @@
     </xsl:template>
     </xsl:template>
    
    
    
    
-   
     <xsl:template match="simpleTypeMakeOgcFilter">
     <xsl:template match="simpleTypeMakeOgcFilter">
         <xsl:message>#63 bypasing simpleTypeMakeOgcFilter output <xsl:copy-of select="."/></xsl:message>
         <xsl:message>#63 bypasing simpleTypeMakeOgcFilter output <xsl:copy-of select="."/></xsl:message>
     </xsl:template>
     </xsl:template>
@@ -126,16 +122,12 @@
         <xsl:variable name="xml_id" select="@xml_id"/>
         <xsl:variable name="xml_id" select="@xml_id"/>
         <xsl:variable name="RelatedFeaturePos" select="position()"/>
         <xsl:variable name="RelatedFeaturePos" select="position()"/>
         <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
         <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
-        
-        
         <xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
         <xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
-
         <xsl:message>#26 odpalam $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; loop_xpath=<xsl:value-of select="$loop_xpath"/>.dita.xml.vals.dita;</xsl:message>
         <xsl:message>#26 odpalam $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; loop_xpath=<xsl:value-of select="$loop_xpath"/>.dita.xml.vals.dita;</xsl:message>
         <!--<debug26>
         <!--<debug26>
             Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
             Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
         </debug26>-->
         </debug26>-->
         <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
         <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
-        
         <xsl:variable name="dita_fragment">
         <xsl:variable name="dita_fragment">
             <xsl:choose>
             <xsl:choose>
                 <xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
                 <xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
@@ -154,7 +146,6 @@
                 <xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
                 <xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
             </xsl:call-template>
             </xsl:call-template>
         </xsl:variable>-->
         </xsl:variable>-->
-         
         <!--<debug_RelatedFeature>
         <!--<debug_RelatedFeature>
             <xsl:copy-of select="$dita_fragment"/>
             <xsl:copy-of select="$dita_fragment"/>
         </debug_RelatedFeature>-->
         </debug_RelatedFeature>-->
@@ -167,7 +158,6 @@
                     </xsl:apply-templates>
                     </xsl:apply-templates>
                 </xsl:for-each>
                 </xsl:for-each>
         <!--</RelatedFeatureRoot>-->
         <!--</RelatedFeatureRoot>-->
-
     </xsl:template>
     </xsl:template>
     
     
     
     
@@ -176,7 +166,6 @@
         <xsl:param name="path" select="$temp"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
         <xsl:param name="path" select="$temp"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
         <xsl:param name="feature_pos_child"  select="1"/>
         <xsl:param name="feature_pos_child"  select="1"/>
         <!--<xsl:param name="dita_with_id" required="yes"/>-->
         <!--<xsl:param name="dita_with_id" required="yes"/>-->
-        
         <xsl:if test="$with_RelatedFeatureLoop">
         <xsl:if test="$with_RelatedFeatureLoop">
                     <xsl:variable name="xml_id" select="@xml_id"/>
                     <xsl:variable name="xml_id" select="@xml_id"/>
                     <xsl:variable name="RelatedFeaturePos" select="position()"/>
                     <xsl:variable name="RelatedFeaturePos" select="position()"/>
@@ -186,7 +175,6 @@
                     <xsl:variable name="path">
                     <xsl:variable name="path">
                         <xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/> 
                         <xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/> 
                     </xsl:variable>
                     </xsl:variable>
-                    
                     <xsl:message>#157 RelatedFeatureLoop $path=<xsl:value-of select="$path"/>; $xml_id=<xsl:value-of select="$xml_id"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>;</xsl:message>
                     <xsl:message>#157 RelatedFeatureLoop $path=<xsl:value-of select="$path"/>; $xml_id=<xsl:value-of select="$xml_id"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>;</xsl:message>
                     <!--<debug26>
                     <!--<debug26>
                         Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
                         Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
@@ -227,7 +215,6 @@
                         <xsl:copy-of select="$dita_fragment"/>
                         <xsl:copy-of select="$dita_fragment"/>
                     </Loop_dita_fragment>-->
                     </Loop_dita_fragment>-->
                     <xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $dita_fragment(empty)=<xsl:value-of select="empty($dita_fragment)"/> empty($dita_with_id)=<xsl:value-of select="empty($dita_with_id)"/>; </xsl:comment>
                     <xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $dita_fragment(empty)=<xsl:value-of select="empty($dita_fragment)"/> empty($dita_with_id)=<xsl:value-of select="empty($dita_with_id)"/>; </xsl:comment>
-                    
                     <xsl:for-each select="$dita_fragment">
                     <xsl:for-each select="$dita_fragment">
                         <xsl:for-each select="$dita_fragment">
                         <xsl:for-each select="$dita_fragment">
                             <xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
                             <xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
@@ -244,7 +231,6 @@
                             <xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
                             <xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
                         </xsl:call-template>
                         </xsl:call-template>
                     </xsl:variable>-->
                     </xsl:variable>-->
-                    
                     <!--<debug_RelatedFeature>
                     <!--<debug_RelatedFeature>
                         <xsl:copy-of select="$dita_fragment"/>
                         <xsl:copy-of select="$dita_fragment"/>
                     </debug_RelatedFeature>-->
                     </debug_RelatedFeature>-->
@@ -262,7 +248,6 @@
         <!--<RelatedFeatureLoop>-->
         <!--<RelatedFeatureLoop>-->
             <!--<xsl:comment>#211  $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
             <!--<xsl:comment>#211  $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
             <!--<xsl:copy-of select="."/>-->
             <!--<xsl:copy-of select="."/>-->
-
             <xsl:for-each select="*">
             <xsl:for-each select="*">
                 <xsl:variable name="loop_pos" select="position()"/>
                 <xsl:variable name="loop_pos" select="position()"/>
                 <xsl:variable name="current" select="."/>
                 <xsl:variable name="current" select="."/>
@@ -271,7 +256,6 @@
                         <xsl:apply-templates mode="find_Child_RelatedFeatureLoop" select="$dita_with_id"/>
                         <xsl:apply-templates mode="find_Child_RelatedFeatureLoop" select="$dita_with_id"/>
                     </find_Child_RelatedFeatureLoop>
                     </find_Child_RelatedFeatureLoop>
                 </xsl:variable>
                 </xsl:variable>
-                
                 <!--<find_Child_RelatedFeatureLoop>
                 <!--<find_Child_RelatedFeatureLoop>
                     <xsl:copy-of select="$find_Child_RelatedFeatureLoop"/>
                     <xsl:copy-of select="$find_Child_RelatedFeatureLoop"/>
                 </find_Child_RelatedFeatureLoop>-->
                 </find_Child_RelatedFeatureLoop>-->
@@ -284,10 +268,8 @@
                                 <xsl:otherwise><xsl:copy-of select="." copy-namespaces="no"/></xsl:otherwise>
                                 <xsl:otherwise><xsl:copy-of select="." copy-namespaces="no"/></xsl:otherwise>
                             </xsl:choose>
                             </xsl:choose>
                         </xsl:for-each>
                         </xsl:for-each>
-                            
                         <!--</current>-->
                         <!--</current>-->
                         <xsl:for-each select="$find_Child_RelatedFeatureLoop/find_Child_RelatedFeatureLoop/RelatedFeatureLoop">
                         <xsl:for-each select="$find_Child_RelatedFeatureLoop/find_Child_RelatedFeatureLoop/RelatedFeatureLoop">
-                            
                             <xsl:variable name="path">
                             <xsl:variable name="path">
                                 <xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/> 
                                 <xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/> 
                             </xsl:variable>
                             </xsl:variable>
@@ -304,8 +286,6 @@
                                     </xsl:otherwise>
                                     </xsl:otherwise>
                                 </xsl:choose>
                                 </xsl:choose>
                             </xsl:variable>
                             </xsl:variable>
-                            
-                              
                                 <!--<dita>-->
                                 <!--<dita>-->
                                 <!--<xsl:copy-of select="$dita_fragment/RelatedFeatureRoot/*"/>-->
                                 <!--<xsl:copy-of select="$dita_fragment/RelatedFeatureRoot/*"/>-->
                                 <!--</dita>-->
                                 <!--</dita>-->
@@ -320,8 +300,7 @@
                             <!-- cofniecie sie do wlasciwego dita_with_id -->
                             <!-- cofniecie sie do wlasciwego dita_with_id -->
                         </xsl:for-each>
                         </xsl:for-each>
                     </xsl:element>
                     </xsl:element>
-                <!--</test>-->
-                                   
+                <!--</test>-->         
             </xsl:for-each>
             </xsl:for-each>
         <!--</RelatedFeatureLoop>-->
         <!--</RelatedFeatureLoop>-->
     </xsl:template>
     </xsl:template>
@@ -392,16 +371,28 @@
         <xsl:param name="feature_pos_child" required="yes"/>
         <xsl:param name="feature_pos_child" required="yes"/>
         <xsl:param name="dita.map"/> <!-- if set we will output many files in topics -->
         <xsl:param name="dita.map"/> <!-- if set we will output many files in topics -->
         <!--<xsl:param name="dita_with_id" required="yes"/>-->
         <!--<xsl:param name="dita_with_id" required="yes"/>-->
-        <xsl:element name="{name()}">
-            <!--<xsl:copy-of select="@*"/>-->
-            <xsl:apply-templates select="@*"/>
-            <xsl:apply-templates>
-                <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
-                <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
-                <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
-                <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
-            </xsl:apply-templates>
-        </xsl:element>
+        <xsl:choose>
+            <xsl:when test="$dita.map">
+                <xsl:apply-templates>
+                    <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
+                    <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
+                    <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
+                    <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
+                </xsl:apply-templates>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:element name="{name()}">
+                    <!--<xsl:copy-of select="@*"/>-->
+                    <xsl:apply-templates select="@*"/>
+                    <xsl:apply-templates>
+                        <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
+                        <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
+                        <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
+                        <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
+                    </xsl:apply-templates>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
     </xsl:template>
     
     
     <xsl:template match="map"  mode="RelatedFeatureChild" >
     <xsl:template match="map"  mode="RelatedFeatureChild" >
@@ -457,7 +448,6 @@
                 </xsl:element>
                 </xsl:element>
             </xsl:otherwise>
             </xsl:otherwise>
         </xsl:choose>
         </xsl:choose>
-        
     </xsl:template>
     </xsl:template>
     
     
     <xsl:template match="title" mode="RelatedFeatureChild"><!-- dodaje element parent -->
     <xsl:template match="title" mode="RelatedFeatureChild"><!-- dodaje element parent -->
@@ -536,11 +526,6 @@
         <xsl:copy-of select="."/>
         <xsl:copy-of select="."/>
     </xsl:template>
     </xsl:template>
     
     
-    
-        
-    
     <xsl:template match="@xml_id|@xpath_token_filter|@xpath_token"/>
     <xsl:template match="@xml_id|@xpath_token_filter|@xpath_token"/>
         
         
-    
-    
 </xsl:stylesheet>
 </xsl:stylesheet>

+ 139 - 0
SE/schema/default_db_xml_cache.public/object_modeling_new.xsl

@@ -0,0 +1,139 @@
+<?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:include href="system_cache__appinfo/TargetNamespaceBindings.xsl"/>-->
+    <xsl:include href="object_modeling.xsl"/> <!-- to use one time system_cache__appinfo:new_object_by_prototype_schema_root  -->
+    <!--<xsl:param name="new_object_namespace" required="yes"/>--> <!-- example https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd -->
+    <xsl:param name="TargetNamespaceBindingsApi" required="yes"/> <!-- example https://biuro.biall-net.pl/wfs  -->
+    <xsl:param name="NamespaceDatabaseStorageDefinitionPrefix"  select="'default_db'"/> <!-- example default_db -->
+    <xsl:param name="NamespaceObjectInstanceType"  select="'table'"/> <!-- example table -->
+    <xsl:param name="NamespaceObjectInstanceTable" required="yes"/> <!-- example CRM_PROCES -->
+    <xsl:param name="template_object.xml_location" required="yes"/> <!-- <xsl:variable name="template_object.xml_location" select="concat($object_modeling_new_repository,'/',$NamespaceDatabaseStorageDefinitionPrefix,'/',$NamespaceObjectInstanceType,'/',$NamespaceObjectInstanceTable,'.xml')"/> -->
+    <xsl:param name="object_modeling_new_basedir_repository" required="yes"/> <!-- location where is template modified objects repository for debug only -->
+    
+    <!--<xsl:param name="prototype_object_namespace" select="'https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd'"/>--> <!-- for default prototype object set in child xsl -->
+    
+    <xsl:variable name="TargetNamespace_from_Bindings">
+        <xsl:call-template name="system_cache__appinfo:TargetNamespace_from_Bindings">
+            <xsl:with-param name="NamespaceDatabaseStorageDefinitionPrefix" select="$NamespaceDatabaseStorageDefinitionPrefix"/>
+            <xsl:with-param name="NamespaceObjectInstanceTable" select="$NamespaceObjectInstanceTable"/>
+            <xsl:with-param name="TargetNamespaceBindingsApi" select="$TargetNamespaceBindingsApi"/>
+            <xsl:with-param name="NamespaceObjectInstanceType" select="$NamespaceObjectInstanceType"/>
+        </xsl:call-template>
+    </xsl:variable>
+    
+    <xsl:variable name="prototype_TargetNamespaceBindings_from_Namespace">
+        <xsl:call-template name="system_cache__appinfo:TargetNamespaceBindings_from_Namespace">
+            <xsl:with-param name="TargetNamespace" select="$prototype_object_namespace"/>
+        </xsl:call-template>
+    </xsl:variable>
+    
+    
+    
+    <xsl:variable name="new_TargetNamespaceBindings_from_Namespace">
+        <xsl:call-template name="system_cache__appinfo:TargetNamespaceBindings_from_Namespace">
+            <xsl:with-param name="TargetNamespace" select="$TargetNamespace_from_Bindings//@TargetNamespace"/>
+        </xsl:call-template>
+    </xsl:variable>
+    
+    
+    
+    <xsl:variable name="template_object.xml">
+        <xsl:choose>
+            <xsl:when test=" doc-available( $template_object.xml_location)">
+                <xsl:copy-of select=" doc($template_object.xml_location)"></xsl:copy-of>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:variable>
+    
+    
+    <xsl:template match="system_cache__appinfo:get_all_xsd_list"  mode="system_cache__appinfo:object_modeling_new">
+        <system_cache__appinfo:object_modeling_new>
+            <xsl:attribute name="object_modeling_new_basedir_repository" select="$object_modeling_new_basedir_repository"/>
+            <xsl:copy-of select="$TargetNamespace_from_Bindings"/>
+            <new_TargetNamespaceBindings_from_Namespace>
+                <xsl:copy-of select="$new_TargetNamespaceBindings_from_Namespace"></xsl:copy-of>
+            </new_TargetNamespaceBindings_from_Namespace>
+            <xsl:variable name="system_cache__appinfo:object_modeling_new_test_if_exists">
+                <xsl:apply-templates mode="system_cache__appinfo:object_modeling_new_test_if_exists"/>
+            </xsl:variable>
+            <xsl:choose>
+                <xsl:when test="$system_cache__appinfo:object_modeling_new_test_if_exists/*">
+                    <ERROR>
+                        Object already defined in current schema
+                    </ERROR>
+                </xsl:when>
+                <xsl:otherwise>
+                    <OK>
+                        We try to create new object in <xsl:value-of select="$template_object.xml_location"/>
+                    </OK>
+                    <xsl:variable name="system_cache__appinfo:new_object_by_prototype_test_if_prototype">
+                        <xsl:apply-templates mode="system_cache__appinfo:new_object_by_prototype_test_if_prototype"/>
+                    </xsl:variable>
+                    <xsl:choose>
+                        <xsl:when test="$system_cache__appinfo:new_object_by_prototype_test_if_prototype/*">
+                            <xsl:apply-templates mode="system_cache__appinfo:object_modeling_new_add"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <!--<xsl:message terminate="yes">#84 prototype <xsl:value-of select="$prototype_object_namespace"/> not exists in schema! if it realy exist consider rebuild procesy5_system_schema.xml !</xsl:message>-->
+                            <system_cache__appinfo:new_object_by_prototype_test_if_prototype>
+                                <xsl:copy-of select="$system_cache__appinfo:new_object_by_prototype_test_if_prototype"></xsl:copy-of>
+                            </system_cache__appinfo:new_object_by_prototype_test_if_prototype>
+                            <ERROR>Not exists prototype $prototype_object_namespace=<xsl:value-of select="$prototype_object_namespace"/>;</ERROR>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:otherwise>
+            </xsl:choose>
+        </system_cache__appinfo:object_modeling_new>
+    </xsl:template>
+    
+    
+    <xsl:template mode="system_cache__appinfo:object_modeling_new_add" match="schema[@targetNamespace=$prototype_object_namespace]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:result-document href="{$template_object.xml_location}">
+        <xsl:element name="xs:schema">
+                <xsl:copy-of select="namespace::node()"/>
+            <xsl:namespace name="{$new_TargetNamespaceBindings_from_Namespace//@NamespacePrefix}" select="$TargetNamespace_from_Bindings//@TargetNamespace"/>
+            <xsl:attribute name="targetNamespace" select="$TargetNamespace_from_Bindings//@TargetNamespace"/>
+            <xsl:variable name="prototype_NamespacePrefix">
+                <xsl:for-each select="namespace::node()">
+                    <xsl:if test=".= $prototype_object_namespace">
+                        <xsl:value-of select="name()"/>
+                    </xsl:if>
+                </xsl:for-each>
+            </xsl:variable>
+            <xsl:apply-templates mode="system_cache__appinfo:new_object_by_prototype_schema_root">
+                <xsl:with-param name="prototype_TargetNamespaceBindings_from_Namespace" select="$prototype_TargetNamespaceBindings_from_Namespace"/>
+                <xsl:with-param name="new_TargetNamespaceBindings_from_Namespace" select="$new_TargetNamespaceBindings_from_Namespace"/>
+                <xsl:with-param name="prototype_NamespacePrefix" select="$prototype_NamespacePrefix"/>
+            </xsl:apply-templates>
+        </xsl:element>
+        </xsl:result-document>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__appinfo:object_modeling_new_add" match="schema|text()|comment()"/>
+        
+    
+    
+    <xsl:template match="system_cache__appinfo:get_all_xsd"  mode="system_cache__appinfo:object_modeling_new">
+        <xsl:apply-templates mode="system_cache__appinfo:object_modeling_new_test_if_exists"/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__appinfo:object_modeling_new_test_if_exists" match="schema[@targetNamespace=$TargetNamespace_from_Bindings]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <!-- not good - we have some objects already in this schema -->
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__appinfo:object_modeling_new_test_if_exists" match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        
+    
+        
+    
+    
+    
+    
+</xsl:stylesheet>