TERYT_SIMC.xsd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  4. xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_person.xsd"
  5. xmlns:ogc="http://www.opengis.net/ogc"
  6. xmlns:fes="http://www.opengis.net/fes/2.0"
  7. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  8. xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  9. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  10. xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  11. xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
  12. xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  13. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  14. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  15. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  16. 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"
  17. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  18. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  19. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  20. xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
  21. xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
  22. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  23. vc:minVersion="1.1">
  24. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG.xsd"
  25. schemaLocation="../../default_db.BI_audit_MSIG/BI_audit_MSIG/BI_audit_MSIG.xsd"/>
  26. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_person.xsd"
  27. schemaLocation="../../default_db.BI_audit_KRS_person/BI_audit_KRS_person/BI_audit_KRS_person.xsd"/>
  28. <xs:import schemaLocation="../../default_db.BI_audit_CEIDG/BI_audit_CEIDG/BI_audit_CEIDG.xsd"
  29. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_CEIDG.xsd"/>
  30. <xs:import schemaLocation="../../default_db.BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.xsd"
  31. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY.xsd"/>
  32. <xs:import schemaLocation="../../default_db.BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"
  33. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"/>
  34. <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
  35. namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"/>
  36. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  37. schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
  38. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  39. schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
  40. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  41. schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
  42. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  43. schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
  44. <xs:complexType name="TERYT_SIMC"
  45. system_cache__appinfo:primaryKey="SYM"
  46. id="_TERYT_SIMC___d18e33442-1_TERYT_SIMC">
  47. <xs:sequence id="_TERYT_SIMC___d18e33443-1">
  48. <xs:element name="WOJ" type="xs:int" id="_TERYT_SIMC___d18e33444-1_WOJ"/>
  49. <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa"
  50. id="_TERYT_SIMC___d18e33445-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  51. <xs:annotation>
  52. <xs:appinfo>
  53. <system_cache__appinfo:flat_relation_cache>
  54. <system_cache__appinfo:source system_cache__appinfo:name="WOJ"
  55. system_cache__appinfo:ref_engine="view"
  56. system_cache__appinfo:xpath="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ"/>
  57. </system_cache__appinfo:flat_relation_cache>
  58. </xs:appinfo>
  59. <xs:documentation>Domyślnie wyszukuje powiązane powiaty do wojewodztwa - pokaze jedno, z ktorego bedziemy mogli wyjsc w glab</xs:documentation>
  60. </xs:annotation>
  61. </xs:element>
  62. <xs:element name="POW" type="xs:int" id="_TERYT_SIMC___d18e33452-1_POW"/>
  63. <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty"
  64. id="_TERYT_SIMC___d18e33453-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  65. <xs:annotation>
  66. <xs:appinfo>
  67. <system_cache__appinfo:flat_relation_cache>
  68. <system_cache__appinfo:source system_cache__appinfo:name="WOJ"
  69. system_cache__appinfo:ref_engine="view"
  70. system_cache__appinfo:xpath="default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ"/>
  71. </system_cache__appinfo:flat_relation_cache>
  72. </xs:appinfo>
  73. <xs:documentation>Domyślnie wyszukuje powiązane powiaty do wojewodztwa</xs:documentation>
  74. </xs:annotation>
  75. </xs:element>
  76. <xs:element name="GMI" type="xs:int" id="_TERYT_SIMC___d18e33460-1_GMI"/>
  77. <xs:element ref="default_db__x3A__TERYT_gminy:TERYT_gminy"
  78. id="_TERYT_SIMC___d18e33461-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  79. <xs:annotation>
  80. <xs:appinfo>
  81. <system_cache__appinfo:flat_relation_cache>
  82. <system_cache__appinfo:source system_cache__appinfo:name="GMI"
  83. system_cache__appinfo:ref_engine="view"
  84. system_cache__appinfo:xpath="default_db__x3A__TERYT_gminy:TERYT_gminy/GMI"/>
  85. </system_cache__appinfo:flat_relation_cache>
  86. </xs:appinfo>
  87. <xs:documentation>Domyślnie wyszukuje powiązane gminy do wybranego search</xs:documentation>
  88. </xs:annotation>
  89. </xs:element>
  90. <xs:element name="NAZWA" type="xs:string" id="_TERYT_SIMC___d18e33468-1_NAZWA"/>
  91. <xs:element name="SYM" type="xs:int" id="_TERYT_SIMC___d18e33469-1_SYM"/>
  92. <xs:element ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC"
  93. id="_TERYT_SIMC___d18e33470-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  94. <xs:annotation>
  95. <xs:appinfo>
  96. <system_cache__appinfo:flat_relation_cache>
  97. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  98. <fes:Filter>
  99. <fes:PropertyIsEqualTo>
  100. <fes:ValueReference>SYM</fes:ValueReference>
  101. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM</fes:ValueReference>
  102. </fes:PropertyIsEqualTo>
  103. </fes:Filter>
  104. </system_cache__appinfo:source>
  105. </system_cache__appinfo:flat_relation_cache>
  106. </xs:appinfo>
  107. <xs:documentation>Z Tego kroku optymalnie było by dodawać adres na podstawie niniejszego rekordu, plus dodać tylko ulicę i nr domu</xs:documentation>
  108. </xs:annotation>
  109. </xs:element>
  110. <xs:element ref="default_db__x3A__TERYT_adresy:TERYT_adresy"
  111. id="_TERYT_SIMC___d18e33483-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  112. <xs:annotation>
  113. <xs:appinfo>
  114. <system_cache__appinfo:flat_relation_cache>
  115. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  116. <fes:Filter>
  117. <fes:PropertyIsEqualTo>
  118. <fes:ValueReference>SYM</fes:ValueReference>
  119. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  120. </fes:PropertyIsEqualTo>
  121. </fes:Filter>
  122. <!--<fes:Filter><!-\- chyba jest to potrzebne, eby wykluczyc niepotrzebne wyniki -\->
  123. <fes:PropertyIsEqualTo>
  124. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  125. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  126. </fes:PropertyIsEqualTo>
  127. </fes:Filter>-->
  128. </system_cache__appinfo:source>
  129. <!--<system_cache__appinfo:TYPESPECIAL>
  130. <system_cache__appinfo:PARAM_OUT>
  131. <system_cache__appinfo:ALIAS_ID>
  132. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL</fes:ValueReference>
  133. </system_cache__appinfo:ALIAS_ID>
  134. <system_cache__appinfo:DESC>
  135. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_1</fes:ValueReference>
  136. </system_cache__appinfo:DESC>
  137. <system_cache__appinfo:DESC>
  138. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_2</fes:ValueReference>
  139. </system_cache__appinfo:DESC>
  140. <!-\- chyba nie ma sensu tutaj klikac -\->
  141. <system_cache__appinfo:PARAM_IN>
  142. <!-\- tutaj nalezy zapisać wyszukaną ulicę -\->
  143. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  144. </system_cache__appinfo:PARAM_IN>
  145. </system_cache__appinfo:PARAM_OUT>
  146. <!-\-<system_cache__appinfo:PARAM_EXPORT>
  147. <system_cache__appinfo:ALIAS_ID>
  148. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  149. </system_cache__appinfo:ALIAS_ID>
  150. <system_cache__appinfo:DESC>
  151. <fes:ValueReference>SYM_UL</fes:ValueReference>
  152. </system_cache__appinfo:DESC>
  153. </system_cache__appinfo:PARAM_EXPORT>-\->
  154. </system_cache__appinfo:TYPESPECIAL>-->
  155. </system_cache__appinfo:flat_relation_cache>
  156. </xs:appinfo>
  157. <xs:documentation>Z Tego kroku optymalnie było by dodawać adres na podstawie niniejszego rekordu, plus dodać tylko ulicę i nr domu</xs:documentation>
  158. </xs:annotation>
  159. </xs:element>
  160. </xs:sequence>
  161. <xs:attribute name="label" type="xs:string" id="_TERYT_SIMC___d18e33498-1_label"/>
  162. <xs:assert test="@miejscowosc = NAZWA" id="_TERYT_SIMC___d18e33499-1"/>
  163. <xs:assert test="@label = concat(NAZWA, ' ', default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/@label, ' ', default_db__x3A__TERYT_powiaty:TERYT_powiaty/@label, ' ', default_db__x3A__TERYT_gminy:TERYT_gminy/@label)"
  164. id="_TERYT_SIMC___d18e33500-1"/>
  165. </xs:complexType>
  166. <xs:element name="TERYT_SIMC"
  167. type="default_db__x3A__TERYT_SIMC:TERYT_SIMC"
  168. id="_TERYT_SIMC___d18e33502-1_TERYT_SIMC"/>
  169. </xs:schema>