Explorar o código

do styli do tableta layers.xml in devel...

a.binder %!s(int64=8) %!d(string=hai) anos
pai
achega
8393e0a016

+ 89 - 0
SE/schema/default_db_xml_cache.public/build_qgis_make_user_style.xsl

@@ -0,0 +1,89 @@
+<?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:wfs="http://www.opengis.net/wfs"
+    xmlns:gml="http://www.opengis.net/gml"
+    xmlns:ogc="http://www.opengis.net/ogc"
+    xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    xmlns:sso_procesy5="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+    xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+    xmlns:get_wfs_recurse_xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/get_wfs_recurse_xsl.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
+    xmlns:SystemObjects__x3A__layers="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/layers.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <!--<xsl:param name="detect_objects_parent_relations.xml" required="yes"/>-->
+    
+    <!--<xsl:include href="../../../default_db_xml_cache.public/get_all_xsd.xsl"/>-->
+    <xsl:include href="../../../default_db_xml_cache/system_cache__resources_tree_generate_xsl_required_occurs_raport/detect_objects_parent_relations.xsl"/>
+    
+    <xsl:param name="public_html_xmslchema_procesy5_url"  select="'/dev/null'"/>
+    
+    
+    <xsl:template match="system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_objects_parent_relations"  mode="SystemObjects__x3A__layers:layers">
+        <test/>
+    </xsl:template>
+    <xsl:template match="system_cache__appinfo:detect_element_relations_to_objects_list" mode="sso_procesy5:create_object_navgation_menu">
+        <table border="1" bgcolor="yellow">
+            <tr>
+                <td>
+                    <font size="-2">Typy powiazane</font>
+                </td>
+                <xsl:apply-templates mode="#current"/>
+            </tr>
+        </table>
+    </xsl:template>
+    <xsl:template match="system_cache__appinfo:detect_element_relations_to_objects" mode="sso_procesy5:create_object_navgation_menu">
+        <td><font size="-3"><xsl:value-of select="@system_cache__appinfo:ref"/><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref)}/create_obj_form_html.php">(add)</a><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref)}/list_obj_form_html.php">(lista)</a></font></td>
+    </xsl:template>
+    <xsl:template match="system_cache__resources_tree_generate_xsl_required_occurs_raport:from_parent_relations" mode="sso_procesy5:create_object_navgation_menu">
+        <xsl:choose>
+            <xsl:when test="@local-name='element'">
+                <table border="2" bgcolor="green"><tr><td>
+                    <font size="-3">Obiekty dowiazujace niniejszy obiekt</font>
+                </td>
+                    <td><font size="-3"><xsl:value-of select="@parent_object"/><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@parent_object)}/create_obj_form_html.php">(add)</a><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@parent_object)}/list_obj_form_html.php">(lista)</a></font></td>
+                </tr>
+                </table>
+            </xsl:when>
+            <xsl:otherwise>
+                <table border="2" bgcolor="green"><tr><td>
+                    <font size="-3">Obiekty dowiazujace niniejszy obiekt - bez mozliwej instanacji w schemacie</font>
+                </td>
+                    <td><font size="-3"><xsl:value-of select="@parent_object"/></font></td>
+                </tr>
+                </table>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+    <xsl:template match="system_cache__resources_tree_generate_xsl_required_occurs_raport:parent_complexType_siblings" mode="sso_procesy5:create_object_navgation_menu">
+        <!--<table border="2" bgcolor="green"><tr><td>-->
+        <xsl:apply-templates mode="#current"/>
+        <!--</td>
+        </tr>
+        </table>-->
+    </xsl:template>
+    <xsl:template match="system_cache__appinfo:parent_complexType" mode="sso_procesy5:create_object_navgation_menu">
+        <xsl:if test="substring-before(@p5_tr_map:name_with_pref,':')='prove_portal' or substring-before(@p5_tr_map:name_with_pref,':')='test_objects' or substring-before(@p5_tr_map:name_with_pref,':')='moj_ogrodek' or 1=1"> <!-- TOTO DEBUG OGRANICZENIE-->
+            <table border="1" bgcolor="yellow">
+                <tr>
+                    <td>
+                        <font size="-2">Typy blizniacze <xsl:value-of select="@parent_complexType"/></font>
+                    </td>
+                    <xsl:apply-templates mode="#current"/>
+                </tr>
+            </table>
+        </xsl:if>
+    </xsl:template>
+    <xsl:template match="system_cache__appinfo:parent_complexType_child" mode="sso_procesy5:create_object_navgation_menu">
+        <td><font size="-3"><xsl:value-of select="@p5_tr_map:name_with_pref"/><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@p5_tr_map:name_with_pref)}/create_obj_form_html.php">(add)</a><a href="{$public_html_xmslchema_procesy5_url}/default_db.instance.xml/sso_procesy5/{system_cache__appinfo:escape_object_prefix_to_string(@p5_tr_map:name_with_pref)}/list_obj_form_html.php">(lista)</a></font></td>
+    </xsl:template>
+    <xsl:template match="*|comment()" mode="sso_procesy5:create_object_navgation_menu"/>
+    
+</xsl:stylesheet>