XSLT Error Reference
SXXP0003
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 message | Meaning |
|---|---|
| Content is not allowed in prolog | Junk (BOM, text, whitespace) before <?xml … ?> or the root element |
| The entity name must immediately follow the ‘&’ | A bare & — should be & |
| Markup following the root element must be well-formed | More than one root element |
| The element type “X” must be terminated by “” | Unclosed or mis-nested tag |
| Open quote is expected for attribute | Attribute value missing quotes |
How to fix it
- Read the line:column in the message and inspect that exact spot in the input.
- Fix the well-formedness issue in the source (it is a data problem, not a stylesheet problem).
- Validate quickly by pasting the XML into XSLT Playground with an identity transform — the parser flags the precise position of the first problem.