Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vygenerované XML nie je v súlade s XSD #960

Open
celuchmarek opened this issue Jan 17, 2025 · 0 comments
Open

Vygenerované XML nie je v súlade s XSD #960

celuchmarek opened this issue Jan 17, 2025 · 0 comments

Comments

@celuchmarek
Copy link
Member

XSD pre DPFOBv24 formulár: https://ekr.financnasprava.sk/Formulare/XSD/dpfo_b2024.xsd

Pri kontrole cez ľubovoľný tool vygenerovaného XML voči tomuto XSD dostanem tieto chyby:

Cvc-complex-type.2.3: Element 'nerezident' Cannot Have Character [children], Because The Type's Content Type Is Element-only., Line '31', Column '33'.
Cvc-complex-type.2.4.b: The Content Of Element 'nerezident' Is Not Complete. One Of '{nerezident}' Is Expected., Line '31', Column '33'.
Cvc-complex-type.2.4.j: The Content Of Element 'r33' Is Not Complete. 'dieta' Is Expected To Occur A Minimum Of '4' Times. '2' More Instances Are Required To Satisfy This Constraint., Line '101', Column '13'.
Cvc-pattern-valid: Value '' Is Not Facet-valid With Respect To Pattern '[0-1]' For Type 'only_0_1'., Line '102', Column '14'.
Cvc-type.3.1.3: The Value '' Of Element 'r33a' Is Not Valid., Line '102', Column '14'.
Cvc-pattern-valid: Value '' Is Not Facet-valid With Respect To Pattern '[0-1]' For Type 'only_0_1'., Line '103', Column '29'.
Cvc-type.3.1.3: The Value '' Of Element 'uplatnujemPar33Ods8' Is Not Valid., Line '103', Column '29'.
Cvc-pattern-valid: Value '' Is Not Facet-valid With Respect To Pattern '[0-1]' For Type 'only_0_1'., Line '120', Column '34'.
Cvc-type.3.1.3: The Value '' Of Element 'druhaOsobaPodalaDPvSR' Is Not Valid., Line '120', Column '34'.
Cvc-pattern-valid: Value '' Is Not Facet-valid With Respect To Pattern '[0-1]' For Type 'only_0_1'., Line '121', Column '26'.
Cvc-type.3.1.3: The Value '' Of Element 'dokladRocZuct' Is Not Valid., Line '121', Column '26'.
Cvc-pattern-valid: Value '' Is Not Facet-valid With Respect To Pattern '[0-1]' For Type 'only_0_1'., Line '122', Column '28'.
Cvc-type.3.1.3: The Value '' Of Element 'dokladVyskaDane' Is Not Valid., Line '122', Column '28'.
Cvc-complex-type.2.4.i: The Content Of Element 'obchMeno' Is Not Complete. 'riadok' Is Expected To Occur A Minimum Of '2' Times. One More Instance Is Required To Satisfy This Constraint., Line '509', Column '21'.

Zdá sa, že tam sú 3 druhy chýb:

  1. Chýba štruktúra nerezident - namiesto nej je iba hodnota 0
  2. Niektoré 0 alebo 1 fielda nemajú hodnotu, sú prázdne - dajme tam nuly.
  3. Niektoré tagy/štruktúry nedodržiavajú minimálny počet výskytov - napr. dieta (aj prázdne) musí byť aspoň 4-krát a obchMeno chce aspoň 2 riadky.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant