Schema knf.fi.DniWycenyFIZ.xsd


schema location ..\xsd\knf.fi.DniWycenyFIZ.xsd
attributeFormDefault unqualified
elementFormDefault qualified
 
Elements  Complex types 
Sprawozdanie  DaneTyp 
DniWycenyTyp 
DniWykupuTyp 
NaglowekTyp 
OkresSprawozdawczyTyp 
SprawozdanieTyp 


element Sprawozdanie
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p1.png
type SprawozdanieTyp
properties
content complex
children Naglowek Dane
asserts
Test XPathDefaultNs Annotation
let $xml_file_path := string(base-uri()), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $schema_file_location := @xsi:noNamespaceSchemaLocation, $schema_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()], $schema_name := substring($schema_file_location, $schema_last_slash_pos + 1), $schema_type := substring-before(substring-after(substring-after($schema_name, '.'), '.'), '.'), $schema_type_upper := upper-case($schema_type), $regex_pattern := concat('^', $schema_type_upper, '_.*') return matches($xml_file_name, $regex_pattern) 
documentation
Typ raportu z nazwy pliku nie zgadza się z typem raportu wybranej XML schema. Typ raportu powinien być określony w nazwie pliku XML wielkimi literami.
documentation
SPRAWOZDANIE_00001
if (Naglowek/OkresSprawozdawczy) then let $periods_dict := map { 'Q1': '03', 'Q2': '06', 'Q3': '09', 'Q4': '12', 'H1': '06', 'H2': '12' }, $schema_file_location := @xsi:noNamespaceSchemaLocation, $second_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-2], $third_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-3], $schema_date := concat(substring($schema_file_location, $third_last_slash_pos + 1, 4), substring($schema_file_location, $second_last_slash_pos + 1, 2)), $quarter := string(Naglowek/OkresSprawozdawczy/Kwartal), $half := string(Naglowek/OkresSprawozdawczy/Polrocze), $report_date := if (Naglowek/OkresSprawozdawczy/DataDo) then replace(substring(string(Naglowek/OkresSprawozdawczy/DataDo), 1, 7), '-', '') else if (Naglowek/OkresSprawozdawczy/DataOd) then replace(substring(string(Naglowek/OkresSprawozdawczy/DataOd), 1, 7), '-', '') else concat(Naglowek/OkresSprawozdawczy/Rok, $periods_dict($half), $periods_dict($quarter), Naglowek/OkresSprawozdawczy/Miesiac) return $schema_date = $report_date else true() 
documentation
Należy użyć schemy XML dla odpowiedniego okresu (rok i miesiąc muszą odpowiadać dacie z elementu OkresSprawozdawczy)
documentation
SPRAWOZDANIE_00002
if (Naglowek/DzienZdarzenia) then let $schema_file_location := @xsi:noNamespaceSchemaLocation, $second_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-2], $third_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-3], $schema_date := concat(substring($schema_file_location, $third_last_slash_pos + 1, 4), substring($schema_file_location, $second_last_slash_pos + 1, 2)), $report_date := replace(string(Naglowek/DzienZdarzenia), '-', '') return $schema_date = substring($report_date, 1, 6) else true() 
documentation
Należy użyć schemy XML dla odpowiedniego okresu (rok i miesiąc muszą odpowiadać dacie z elementu DzienZdarzenia)
documentation
SPRAWOZDANIE_00003
starts-with(@xsi:noNamespaceSchemaLocation, 'https://sprawozdawczosc.knf.gov.pl/') 
documentation
Należy odwołać się do schemy XML zamieszczonej na domenie: https://sprawozdawczosc.knf.gov.pl/
documentation
SPRAWOZDANIE_00004
let $report_date := substring(string(Naglowek/OkresSprawozdawczy/Rok), 1, 4) return every $valuation_day in Dane/DniWyceny/DzienWyceny satisfies $report_date = substring(string($valuation_day), 1, 4) 
documentation
Dzień wyceny musi być zgodny z rokiem z elementu OkresSprawozdawczy
documentation
DNIWYCENYFIZ_00001
annotation
documentation
Sprawozdanie roczne funduszu inwestycyjnego zamkniętego (Załącznik nr 11)
documentation
Dni wyceny i dni wykupu, które, mogą mieć miejsce w dniach określonych w statucie lub następujących z częstotliwością określoną w statucie

complexType DaneTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p2.png
children DniWyceny DniWykupu
used by
element SprawozdanieTyp/Dane
asserts
Test XPathDefaultNs Annotation
every $date in DniWykupu/DzienWykupu satisfies $date = DniWyceny/DzienWyceny 
documentation
Dzień wykupu musi przypadać w dzień wyceny
documentation
DNIWYCENYFIZ_00004
annotation
documentation
Dane sprawozdania

element DaneTyp/DniWyceny
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p3.png
type DniWycenyTyp
properties
content complex
children DzienWyceny
identity constraints
  Name  Refer  Selector  Field(s)  Annotation
key  DNIWYCENYFIZ_00002    DzienWyceny  .  
documentation
Wartość elementu DzienWyceny nie może się powtarzać w ramach całego raportu
documentation
Unikalność dnia wyceny w ramach pliku
annotation
documentation
Dni wyceny

element DaneTyp/DniWykupu
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p4.png
type DniWykupuTyp
properties
content complex
children DzienWykupu BrakDniWykupu
identity constraints
  Name  Refer  Selector  Field(s)  Annotation
key  DNIWYCENYFIZ_00003    DzienWykupu  .  
documentation
Wartość elementu DzienWykupu nie może się powtarzać w ramach całego raportu
documentation
Unikalność dnia wykupu w ramach pliku
annotation
documentation
Dni wykupu

complexType DniWycenyTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p5.png
children DzienWyceny
used by
element DaneTyp/DniWyceny
annotation
documentation
Dni wyceny

element DniWycenyTyp/DzienWyceny
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p6.png
type DataPrzedzial1Typ
properties
minOcc 1
maxOcc unbounded
content simple
facets
Kind Value Annotation
minInclusive 2022-01-01
maxInclusive 2099-12-31
annotation
documentation
Dzień wyceny
documentation
Dzień wyceny funduszu inwestycyjnego zamkniętego, ktory może mieć miejsce w dniach z góry określonych w statucie lub  w dniach następujących z określoną w statucie częstotliwością.

complexType DniWykupuTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p7.png
children DzienWykupu BrakDniWykupu
used by
element DaneTyp/DniWykupu
annotation
documentation
Dni wykupu

element DniWykupuTyp/DzienWykupu
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p8.png
type DataPrzedzial1Typ
properties
minOcc 1
maxOcc unbounded
content simple
facets
Kind Value Annotation
minInclusive 2022-01-01
maxInclusive 2099-12-31
annotation
documentation
Dzień wykupu
documentation
Dzień wykupu funduszu inwestycyjnego zamkniętego, ktory może mieć miejsce w dniach z góry określonych w statucie lub  w dniach następujących z określoną w statucie częstotliwością.

element DniWykupuTyp/BrakDniWykupu
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p9.png
type WskaznikLogiczny1albotrueTyp
properties
content simple
facets
Kind Value Annotation
pattern 1|true
annotation
documentation
Oznaczenie braku dni wykupu
documentation
Oznaczenie braku dni wykupu w danym roku. Stała wartość: true

complexType NaglowekTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p10.png
type restriction of NaglowekTypAbs
properties
base NaglowekTypAbs
children IdentyfikatorZarzadzajacego NazwaZarzadzajacego IdentyfikatorFunduszuSubfunduszu NazwaFunduszuSubfunduszu IdentyfikatorDostawcyDanych OkresSprawozdawczy CzyKorekta
used by
element SprawozdanieTyp/Naglowek
attributes
Name  Type  Use  Default  Fixed  Annotation
CzyFunduszWLikwidacji  WskaznikLogiczny0lub1albotruelubfalseTyp  prohibited      
documentation
Flaga wskazująca, czy fundusz lub subfundusz jest w likwidacji
documentation
Flaga wskazująca, czy fundusz lub subfundusz jest w likwidacji.
true - jeśli fundusz/subfundusz jest w likwidacji
false - jeśli fundusz/subfundusz nie jest w likwidacji
asserts
Test XPathDefaultNs Annotation
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $file_name_pattern := upper-case(string('[A-Z]+_[A-Z0-9]{11,11}_[A-Z0-9]{10,20}_[0-9QH]{4,8}_[01].xml')), $xml_file_name := substring($xml_file_path, $last_slash_pos + 1) return matches($xml_file_name, $file_name_pattern)  
documentation
Nazwa pliku niezgodna z maską
documentation
NAGLOWEK_00001
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_entity_id := substring($xml_file_name, $dash_pos[1] + 1, $dash_pos[2] - $dash_pos[1] - 1) return $xml_file_entity_id = IdentyfikatorFunduszuSubfunduszu or (not(IdentyfikatorFunduszuSubfunduszu) and $xml_file_entity_id = IdentyfikatorZarzadzajacego) 
documentation
Identyfikator krajowy (sub)funduszu lub TFI w treści nagłówka niezgodny z identyfikatorem w nazwie pliku
documentation
NAGLOWEK_00002
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_identyfikator_dostawcy := substring($xml_file_name, $dash_pos[2] + 1, $dash_pos[3] - $dash_pos[2] - 1) return $xml_file_identyfikator_dostawcy = IdentyfikatorDostawcyDanych 
documentation
Identyfikator dostawcy danych w treści nagłówka niezgodny z kodem w nazwie pliku
documentation
NAGLOWEK_00003
if (OkresSprawozdawczy) then let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_okres_spr := substring($xml_file_name, $dash_pos[3] + 1, $dash_pos[4] - $dash_pos[3] - 1), $okres_sprawozdawczy := if (OkresSprawozdawczy/Rok) then concat(OkresSprawozdawczy/Rok, OkresSprawozdawczy/Polrocze, OkresSprawozdawczy/Kwartal, OkresSprawozdawczy/Miesiac) else if (OkresSprawozdawczy/DataDo) then replace(string(OkresSprawozdawczy/DataDo), '-', '') else if (OkresSprawozdawczy/DataOd) then replace(string(OkresSprawozdawczy/DataOd), '-', '') else '' return $xml_file_okres_spr = $okres_sprawozdawczy else true() 
documentation
Okres sprawozdawczy w treści nagłówka niezgodny z okresem w nazwie pliku
documentation
NAGLOWEK_00004
if (DzienZdarzenia) then let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_okres_spr := substring($xml_file_name, $dash_pos[3] + 1, $dash_pos[4] - $dash_pos[3] - 1), $dzien_zdarzenia := replace(string(DzienZdarzenia), '-', '') return $xml_file_okres_spr = $dzien_zdarzenia else true() 
documentation
DzienZdarzenia w treści nagłówka niezgodny z dniem zdarzenia w nazwie pliku
documentation
NAGLOWEK_00005
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_czy_korekta := substring($xml_file_name, $dash_pos[4] + 1, 1) return xs:boolean($xml_file_czy_korekta) = CzyKorekta 
documentation
Flaga CzyKorekta w treści nagłówka niezgodna z informacją w nazwie pliku
documentation
NAGLOWEK_00006
annotation
documentation
Nagłówek sprawozdania

attribute NaglowekTyp/@CzyFunduszWLikwidacji
type WskaznikLogiczny0lub1albotruelubfalseTyp
properties
use prohibited
annotation
documentation
Flaga wskazująca, czy fundusz lub subfundusz jest w likwidacji
documentation
Flaga wskazująca, czy fundusz lub subfundusz jest w likwidacji.
true - jeśli fundusz/subfundusz jest w likwidacji
false - jeśli fundusz/subfundusz nie jest w likwidacji

element NaglowekTyp/IdentyfikatorZarzadzajacego
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p11.png
type IdentyfikatorTFITyp
properties
content simple
facets
Kind Value Annotation
pattern PLTFI[0-9]{6,6}
annotation
documentation
Identyfikator krajowy towarzystwa
documentation
Identyfikator krajowy towarzystwa

element NaglowekTyp/NazwaZarzadzajacego
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p12.png
type Opis300ZnakowTyp
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 300
annotation
documentation
Nazwa towarzystwa
documentation
Nazwa towarzystwa

element NaglowekTyp/IdentyfikatorFunduszuSubfunduszu
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p13.png
type IdentyfikatorFIZTyp
properties
content simple
facets
Kind Value Annotation
pattern PLFIZ[0-9]{6,6}
annotation
documentation
Identyfikator krajowy funduszu lub subfunduszu
documentation
Identyfikator krajowy funduszu lub subfunduszu

element NaglowekTyp/NazwaFunduszuSubfunduszu
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p14.png
type Opis300ZnakowTyp
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 300
annotation
documentation
Nazwa funduszu lub subfunduszu
documentation
Nazwa funduszu lub subfunduszu

element NaglowekTyp/IdentyfikatorDostawcyDanych
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p15.png
type tpp:IdentyfikatorDostawcyDanychTyp
properties
content simple
annotation
documentation
Identyfikator dostawcy danych
documentation
Identyfikator podmiotu, który przygotował dane dla podmiotu raportującego

element NaglowekTyp/OkresSprawozdawczy
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p16.png
type OkresSprawozdawczyTyp
properties
content complex
children DataOd Rok
asserts
Test XPathDefaultNs Annotation
if (DataOd and DataDo) then DataDo >= DataOd else true() 
documentation
DataDo musi być większa lub równa od DataOd
documentation
NAGLOWEK_00007
if (DataDo) then let $periods_start_dict := map { 'Q1': 1, 'Q2': 4, 'Q3': 7, 'Q4': 10, 'H1': 1, 'H2': 7 }, $periods_end_dict := map { 'Q1': 3, 'Q2': 6, 'Q3': 9, 'Q4': 12, 'H1': 6, 'H2': 12 }, $year := year-from-date(DataDo), $month := month-from-date(DataDo), $month_validation := if (Miesiac) then $month = number(Miesiac) else if (Kwartal) then $month >= $periods_start_dict(Kwartal) and $periods_end_dict(Kwartal) >= $month else if (Polrocze) then $month >= $periods_start_dict(Polrocze) and $periods_end_dict(Polrocze) >= $month else true() return $year = number(Rok) and $month_validation else true() 
documentation
DataDo musi zawierać się w raportowanym okresie sprawozdawczym (elementy: Rok i Polrocze/Kwartal/Miesiac)
documentation
NAGLOWEK_00008
annotation
documentation
Okres sprawozdawczy raportu

element NaglowekTyp/CzyKorekta
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p17.png
type WskaznikLogiczny0lub1Typ
properties
content simple
facets
Kind Value Annotation
pattern 0|1
annotation
documentation
Oznaczenie czy plik zawiera raport podstawowy czy korektę/akutalizację, 0 - podstawowy, 1 - korekta/aktualizację
documentation
Oznaczenie czy plik zawiera raport podstawowy czy korektę/akutalizację, 0 - podstawowy, 1 - korekta/aktualizację

complexType OkresSprawozdawczyTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p18.png
type restriction of OkresSprawozdawczyTypAbs
properties
base OkresSprawozdawczyTypAbs
children DataOd Rok
used by
element NaglowekTyp/OkresSprawozdawczy
asserts
Test XPathDefaultNs Annotation
if (DataOd and DataDo) then DataDo >= DataOd else true() 
documentation
DataDo musi być większa lub równa od DataOd
documentation
NAGLOWEK_00007
if (DataDo) then let $periods_start_dict := map { 'Q1': 1, 'Q2': 4, 'Q3': 7, 'Q4': 10, 'H1': 1, 'H2': 7 }, $periods_end_dict := map { 'Q1': 3, 'Q2': 6, 'Q3': 9, 'Q4': 12, 'H1': 6, 'H2': 12 }, $year := year-from-date(DataDo), $month := month-from-date(DataDo), $month_validation := if (Miesiac) then $month = number(Miesiac) else if (Kwartal) then $month >= $periods_start_dict(Kwartal) and $periods_end_dict(Kwartal) >= $month else if (Polrocze) then $month >= $periods_start_dict(Polrocze) and $periods_end_dict(Polrocze) >= $month else true() return $year = number(Rok) and $month_validation else true() 
documentation
DataDo musi zawierać się w raportowanym okresie sprawozdawczym (elementy: Rok i Polrocze/Kwartal/Miesiac)
documentation
NAGLOWEK_00008
annotation
documentation
Okres sprawozdawczy

element OkresSprawozdawczyTyp/DataOd
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p19.png
type DataPrzedzial1Typ
properties
content simple
facets
Kind Value Annotation
minInclusive 2022-01-01
maxInclusive 2099-12-31
annotation
documentation
Data sporządzenia raportu
documentation
Data sporządzenia raportu. W przypadku aktualizacji raportu (zmiana statutu) należy ją zaaktualizować. W przypadku korekty raportu (przesłanie błędnych danych) pozostaje bez zmian.
documentation
W przypadku przygotowania aktualizacji pliku DNIWYCENYFIZ (z uwagi na zmianę statutu, która nastąpiła dnia 11 lipca 2024 r.) sporządzonego dnia 17 lipca 2024 r., należy wpisać w pole DataOd: 2023-07-17.

element OkresSprawozdawczyTyp/Rok
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p20.png
type OkresSprawozdawczyRokTyp
properties
content simple
facets
Kind Value Annotation
pattern 202[3-9]|20[3-9][0-9]
annotation
documentation
Rok za który raportowane są dane
documentation
Rok za który raportowane są dane

complexType SprawozdanieTyp
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p21.png
type extension of SprawozdanieTypAbs
properties
base SprawozdanieTypAbs
children Naglowek Dane
used by
element Sprawozdanie
asserts
Test XPathDefaultNs Annotation
let $xml_file_path := string(base-uri()), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $schema_file_location := @xsi:noNamespaceSchemaLocation, $schema_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()], $schema_name := substring($schema_file_location, $schema_last_slash_pos + 1), $schema_type := substring-before(substring-after(substring-after($schema_name, '.'), '.'), '.'), $schema_type_upper := upper-case($schema_type), $regex_pattern := concat('^', $schema_type_upper, '_.*') return matches($xml_file_name, $regex_pattern) 
documentation
Typ raportu z nazwy pliku nie zgadza się z typem raportu wybranej XML schema. Typ raportu powinien być określony w nazwie pliku XML wielkimi literami.
documentation
SPRAWOZDANIE_00001
if (Naglowek/OkresSprawozdawczy) then let $periods_dict := map { 'Q1': '03', 'Q2': '06', 'Q3': '09', 'Q4': '12', 'H1': '06', 'H2': '12' }, $schema_file_location := @xsi:noNamespaceSchemaLocation, $second_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-2], $third_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-3], $schema_date := concat(substring($schema_file_location, $third_last_slash_pos + 1, 4), substring($schema_file_location, $second_last_slash_pos + 1, 2)), $quarter := string(Naglowek/OkresSprawozdawczy/Kwartal), $half := string(Naglowek/OkresSprawozdawczy/Polrocze), $report_date := if (Naglowek/OkresSprawozdawczy/DataDo) then replace(substring(string(Naglowek/OkresSprawozdawczy/DataDo), 1, 7), '-', '') else if (Naglowek/OkresSprawozdawczy/DataOd) then replace(substring(string(Naglowek/OkresSprawozdawczy/DataOd), 1, 7), '-', '') else concat(Naglowek/OkresSprawozdawczy/Rok, $periods_dict($half), $periods_dict($quarter), Naglowek/OkresSprawozdawczy/Miesiac) return $schema_date = $report_date else true() 
documentation
Należy użyć schemy XML dla odpowiedniego okresu (rok i miesiąc muszą odpowiadać dacie z elementu OkresSprawozdawczy)
documentation
SPRAWOZDANIE_00002
if (Naglowek/DzienZdarzenia) then let $schema_file_location := @xsi:noNamespaceSchemaLocation, $second_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-2], $third_last_slash_pos := index-of(string-to-codepoints($schema_file_location), string-to-codepoints('/'))[last()-3], $schema_date := concat(substring($schema_file_location, $third_last_slash_pos + 1, 4), substring($schema_file_location, $second_last_slash_pos + 1, 2)), $report_date := replace(string(Naglowek/DzienZdarzenia), '-', '') return $schema_date = substring($report_date, 1, 6) else true() 
documentation
Należy użyć schemy XML dla odpowiedniego okresu (rok i miesiąc muszą odpowiadać dacie z elementu DzienZdarzenia)
documentation
SPRAWOZDANIE_00003
starts-with(@xsi:noNamespaceSchemaLocation, 'https://sprawozdawczosc.knf.gov.pl/') 
documentation
Należy odwołać się do schemy XML zamieszczonej na domenie: https://sprawozdawczosc.knf.gov.pl/
documentation
SPRAWOZDANIE_00004
let $report_date := substring(string(Naglowek/OkresSprawozdawczy/Rok), 1, 4) return every $valuation_day in Dane/DniWyceny/DzienWyceny satisfies $report_date = substring(string($valuation_day), 1, 4) 
documentation
Dzień wyceny musi być zgodny z rokiem z elementu OkresSprawozdawczy
documentation
DNIWYCENYFIZ_00001
annotation
documentation
Sprawozdanie

element SprawozdanieTyp/Naglowek
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p22.png
type NaglowekTyp
properties
content complex
children IdentyfikatorZarzadzajacego NazwaZarzadzajacego IdentyfikatorFunduszuSubfunduszu NazwaFunduszuSubfunduszu IdentyfikatorDostawcyDanych OkresSprawozdawczy CzyKorekta
asserts
Test XPathDefaultNs Annotation
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $file_name_pattern := upper-case(string('[A-Z]+_[A-Z0-9]{11,11}_[A-Z0-9]{10,20}_[0-9QH]{4,8}_[01].xml')), $xml_file_name := substring($xml_file_path, $last_slash_pos + 1) return matches($xml_file_name, $file_name_pattern)  
documentation
Nazwa pliku niezgodna z maską
documentation
NAGLOWEK_00001
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_entity_id := substring($xml_file_name, $dash_pos[1] + 1, $dash_pos[2] - $dash_pos[1] - 1) return $xml_file_entity_id = IdentyfikatorFunduszuSubfunduszu or (not(IdentyfikatorFunduszuSubfunduszu) and $xml_file_entity_id = IdentyfikatorZarzadzajacego) 
documentation
Identyfikator krajowy (sub)funduszu lub TFI w treści nagłówka niezgodny z identyfikatorem w nazwie pliku
documentation
NAGLOWEK_00002
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_identyfikator_dostawcy := substring($xml_file_name, $dash_pos[2] + 1, $dash_pos[3] - $dash_pos[2] - 1) return $xml_file_identyfikator_dostawcy = IdentyfikatorDostawcyDanych 
documentation
Identyfikator dostawcy danych w treści nagłówka niezgodny z kodem w nazwie pliku
documentation
NAGLOWEK_00003
if (OkresSprawozdawczy) then let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_okres_spr := substring($xml_file_name, $dash_pos[3] + 1, $dash_pos[4] - $dash_pos[3] - 1), $okres_sprawozdawczy := if (OkresSprawozdawczy/Rok) then concat(OkresSprawozdawczy/Rok, OkresSprawozdawczy/Polrocze, OkresSprawozdawczy/Kwartal, OkresSprawozdawczy/Miesiac) else if (OkresSprawozdawczy/DataDo) then replace(string(OkresSprawozdawczy/DataDo), '-', '') else if (OkresSprawozdawczy/DataOd) then replace(string(OkresSprawozdawczy/DataOd), '-', '') else '' return $xml_file_okres_spr = $okres_sprawozdawczy else true() 
documentation
Okres sprawozdawczy w treści nagłówka niezgodny z okresem w nazwie pliku
documentation
NAGLOWEK_00004
if (DzienZdarzenia) then let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_okres_spr := substring($xml_file_name, $dash_pos[3] + 1, $dash_pos[4] - $dash_pos[3] - 1), $dzien_zdarzenia := replace(string(DzienZdarzenia), '-', '') return $xml_file_okres_spr = $dzien_zdarzenia else true() 
documentation
DzienZdarzenia w treści nagłówka niezgodny z dniem zdarzenia w nazwie pliku
documentation
NAGLOWEK_00005
let $xml_file_path := upper-case(string(base-uri())), $last_slash_pos := index-of(string-to-codepoints(upper-case(string(base-uri()))), string-to-codepoints('/'))[last()], $xml_file_name := substring($xml_file_path, $last_slash_pos + 1), $dash_pos := index-of(string-to-codepoints($xml_file_name), string-to-codepoints('_')), $xml_file_czy_korekta := substring($xml_file_name, $dash_pos[4] + 1, 1) return xs:boolean($xml_file_czy_korekta) = CzyKorekta 
documentation
Flaga CzyKorekta w treści nagłówka niezgodna z informacją w nazwie pliku
documentation
NAGLOWEK_00006
annotation
documentation
Nagłówek sprawozdania

element SprawozdanieTyp/Dane
diagram knf.fi.DniWycenyFIZ_diagrams/knf.fi.DniWycenyFIZ_p23.png
type DaneTyp
properties
content complex
children DniWyceny DniWykupu
asserts
Test XPathDefaultNs Annotation
every $date in DniWykupu/DzienWykupu satisfies $date = DniWyceny/DzienWyceny 
documentation
Dzień wykupu musi przypadać w dzień wyceny
documentation
DNIWYCENYFIZ_00004
annotation
documentation
Dane sprawozdania


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy