TERYT_SIMC.xsd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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:vc="http://www.w3.org/2007/XMLSchema-versioning"
  6. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  7. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  8. vc:minVersion="1.1" xmlns:ogc="http://www.opengis.net/ogc"
  9. xmlns:fes="http://www.opengis.net/fes/2.0"
  10. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  11. xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  12. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  13. xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  14. xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
  15. xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd">
  16. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG.xsd"
  17. schemaLocation="../../default_db.BI_audit_MSIG/BI_audit_MSIG/BI_audit_MSIG.xsd"/>
  18. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_person.xsd"
  19. schemaLocation="../../default_db.BI_audit_KRS_person/BI_audit_KRS_person/BI_audit_KRS_person.xsd"/>
  20. <xs:import schemaLocation="../../default_db.BI_audit_CEIDG/BI_audit_CEIDG/BI_audit_CEIDG.xsd"
  21. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_CEIDG.xsd"/>
  22. <xs:import
  23. schemaLocation="../../default_db.BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.xsd"
  24. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY.xsd"/>
  25. <xs:import
  26. schemaLocation="../../default_db.BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"
  27. namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"/>
  28. <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
  29. namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"/>
  30. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  31. schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
  32. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  33. schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
  34. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  35. schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
  36. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  37. schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
  38. <xs:complexType name="TERYT_SIMC" system_cache__appinfo:primaryKey="SYM">
  39. <xs:sequence>
  40. <xs:element name="WOJ" type="xs:int"/>
  41. <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa">
  42. <xs:annotation>
  43. <xs:appinfo>
  44. <system_cache__appinfo:flat_relation_cache>
  45. <system_cache__appinfo:source system_cache__appinfo:name="WOJ" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ"/>
  46. </system_cache__appinfo:flat_relation_cache>
  47. </xs:appinfo>
  48. <xs:documentation>Domyślnie wyszukuje powiązane powiaty do wojewodztwa - pokaze jedno, z ktorego bedziemy mogli wyjsc w glab</xs:documentation>
  49. </xs:annotation>
  50. </xs:element>
  51. <xs:element name="POW" type="xs:int"/>
  52. <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty">
  53. <xs:annotation>
  54. <xs:appinfo>
  55. <system_cache__appinfo:flat_relation_cache>
  56. <system_cache__appinfo:source system_cache__appinfo:name="WOJ" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ"/>
  57. </system_cache__appinfo:flat_relation_cache>
  58. </xs:appinfo>
  59. <xs:documentation>Domyślnie wyszukuje powiązane powiaty do wojewodztwa</xs:documentation>
  60. </xs:annotation>
  61. </xs:element>
  62. <xs:element name="GMI" type="xs:int"/>
  63. <xs:element ref="default_db__x3A__TERYT_gminy:TERYT_gminy">
  64. <xs:annotation>
  65. <xs:appinfo>
  66. <system_cache__appinfo:flat_relation_cache>
  67. <system_cache__appinfo:source system_cache__appinfo:name="GMI" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_gminy:TERYT_gminy/GMI"/>
  68. </system_cache__appinfo:flat_relation_cache>
  69. </xs:appinfo>
  70. <xs:documentation>Domyślnie wyszukuje powiązane gminy do wybranego search</xs:documentation>
  71. </xs:annotation>
  72. </xs:element>
  73. <xs:element name="NAZWA" type="xs:string"/>
  74. <xs:element name="SYM" type="xs:int" />
  75. <xs:element ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC">
  76. <xs:annotation>
  77. <xs:appinfo>
  78. <system_cache__appinfo:flat_relation_cache>
  79. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  80. <fes:Filter>
  81. <fes:PropertyIsEqualTo>
  82. <fes:ValueReference>SYM</fes:ValueReference>
  83. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM</fes:ValueReference>
  84. </fes:PropertyIsEqualTo>
  85. </fes:Filter>
  86. </system_cache__appinfo:source>
  87. </system_cache__appinfo:flat_relation_cache>
  88. </xs:appinfo>
  89. <xs:documentation>Z Tego kroku optymalnie było by dodawać adres na podstawie niniejszego rekordu, plus dodać tylko ulicę i nr domu</xs:documentation>
  90. </xs:annotation>
  91. </xs:element>
  92. <xs:element ref="default_db__x3A__TERYT_adresy:TERYT_adresy">
  93. <xs:annotation>
  94. <xs:appinfo>
  95. <system_cache__appinfo:flat_relation_cache>
  96. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  97. <fes:Filter>
  98. <fes:PropertyIsEqualTo>
  99. <fes:ValueReference>SYM</fes:ValueReference>
  100. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  101. </fes:PropertyIsEqualTo>
  102. </fes:Filter>
  103. <!--<fes:Filter><!-\- chyba jest to potrzebne, eby wykluczyc niepotrzebne wyniki -\->
  104. <fes:PropertyIsEqualTo>
  105. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  106. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  107. </fes:PropertyIsEqualTo>
  108. </fes:Filter>-->
  109. </system_cache__appinfo:source>
  110. <!--<system_cache__appinfo:TYPESPECIAL>
  111. <system_cache__appinfo:PARAM_OUT>
  112. <system_cache__appinfo:ALIAS_ID>
  113. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL</fes:ValueReference>
  114. </system_cache__appinfo:ALIAS_ID>
  115. <system_cache__appinfo:DESC>
  116. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_1</fes:ValueReference>
  117. </system_cache__appinfo:DESC>
  118. <system_cache__appinfo:DESC>
  119. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_2</fes:ValueReference>
  120. </system_cache__appinfo:DESC>
  121. <!-\- chyba nie ma sensu tutaj klikac -\->
  122. <system_cache__appinfo:PARAM_IN>
  123. <!-\- tutaj nalezy zapisać wyszukaną ulicę -\->
  124. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  125. </system_cache__appinfo:PARAM_IN>
  126. </system_cache__appinfo:PARAM_OUT>
  127. <!-\-<system_cache__appinfo:PARAM_EXPORT>
  128. <system_cache__appinfo:ALIAS_ID>
  129. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  130. </system_cache__appinfo:ALIAS_ID>
  131. <system_cache__appinfo:DESC>
  132. <fes:ValueReference>SYM_UL</fes:ValueReference>
  133. </system_cache__appinfo:DESC>
  134. </system_cache__appinfo:PARAM_EXPORT>-\->
  135. </system_cache__appinfo:TYPESPECIAL>-->
  136. </system_cache__appinfo:flat_relation_cache>
  137. </xs:appinfo>
  138. <xs:documentation>Z Tego kroku optymalnie było by dodawać adres na podstawie niniejszego rekordu, plus dodać tylko ulicę i nr domu</xs:documentation>
  139. </xs:annotation>
  140. </xs:element>
  141. </xs:sequence>
  142. <xs:attribute name="label" type="xs:string"/>
  143. <xs:assert test="@miejscowosc = NAZWA"/>
  144. <xs:assert
  145. 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)"
  146. />
  147. </xs:complexType>
  148. <xs:element name="TERYT_SIMC" type="default_db__x3A__TERYT_SIMC:TERYT_SIMC"/>
  149. </xs:schema>