Bug #2181
closedTry/catch within a loop gives wrong output
100%
Description
Gunther Rademacher reports on saxon:help
Additionally, I have observed a strange result from this one:
try {parse-xml("p1")} catch * {$err:code},
try {parse-xml("p2")} catch * {$err:code},
for $p in ("p1", "p2") return
try {parse-xml($p)} catch * {$err:code}
It returns just two error codes
err:FODC0006 err:FODC0006
though the console log indicates four failures:
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Please register to edit this issue