Project

Profile

Help

Bug #2181

closed

Try/catch within a loop gives wrong output

Added by Michael Kay over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
Start date:
2014-10-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

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

Also available in: Atom PDF