-
-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
There is a test validating the same scenario on the reader side in wstxtest.msv.TestW3CSchema.testSimpleNonNsUndefinedId()
:
woodstox/src/test/java/wstxtest/msv/TestW3CSchema.java
Lines 143 to 151 in b853557
public void testSimpleNonNsUndefinedId() throws XMLStreamException | |
{ | |
XMLValidationSchema schema = parseW3CSchema(SIMPLE_NON_NS_SCHEMA); | |
String XML = "<personnel><person id='a1'>" | |
+ "<name><family>F</family><given>G</given>" | |
+ "</name><link manager='m3' /></person></personnel>"; | |
verifyFailure(XML, schema, "undefined referenced id ('m3')", | |
"Undefined ID 'm3'"); | |
} |
There the validation exception containg Undefined ID 'm3'
is thrown properly.
When the same test is adapted for SimpleNsStreamWriter
the exception is not thrown.
A PR with the reproducer follows.
Metadata
Metadata
Assignees
Labels
No labels