XSLT Error Reference

SXXP0003

All versions XML parsing error
Error message
Error reported by XML parser: <underlying message>

A Saxon wrapper code: the source document failed to parse as XML. The real diagnosis is in the underlying parser message that follows the code.

What it means

SXXP0003 is Saxon-specific and simply means: your input XML is not well-formed. The interesting part is the parser message wrapped inside — that tells you what is actually broken and at which line/column.

The usual wrapped messages

Wrapped parser messageMeaning
Content is not allowed in prologJunk (BOM, text, whitespace) before <?xml … ?> or the root element
The entity name must immediately follow the ‘&’A bare & — should be &amp;
Markup following the root element must be well-formedMore than one root element
The element type “X” must be terminated by “”Unclosed or mis-nested tag
Open quote is expected for attributeAttribute value missing quotes

How to fix it

  1. Read the line:column in the message and inspect that exact spot in the input.
  2. Fix the well-formedness issue in the source (it is a data problem, not a stylesheet problem).
  3. Validate quickly by pasting the XML into XSLT Playground with an identity transform — the parser flags the precise position of the first problem.