# XV-PL-35

Source: https://xmlvalid.com/rules/XV-PL-35

> Line numbers repeat (NrWierszaFa or NrWierszaZam); each line has its own number, a line before a correction (StanPrzed) the number of the line it corrects (FA(3) information sheet, NrWierszaFa).

- Level: error
- Rule sets: KSeF and FA(3) checks KSeF 2.0 invoice verification (9 April 2026), FA(3) information sheet (August 2026)
- Context: `/fa:Faktura/fa:Fa`
- Test: `count(fa:FaWiersz[not(fa:StanPrzed)]) = count(distinct-values(fa:FaWiersz[not(fa:StanPrzed)]/fa:NrWierszaFa)) and count(fa:FaWiersz[fa:StanPrzed]) = count(distinct-values(fa:FaWiersz[fa:StanPrzed]/fa:NrWierszaFa)) and count(fa:Zamowienie/fa:ZamowienieWiersz[not(fa:StanPrzedZ)]) = count(distinct-values(fa:Zamowienie/fa:ZamowienieWiersz[not(fa:StanPrzedZ)]/fa:NrWierszaZam)) and count(fa:Zamowienie/fa:ZamowienieWiersz[fa:StanPrzedZ]) = count(distinct-values(fa:Zamowienie/fa:ZamowienieWiersz[fa:StanPrzedZ]/fa:NrWierszaZam))`

Validate a document against these rules: https://xmlvalid.com/validate
