Open ppalaga opened 5 months ago
There is a test validating the same scenario on the reader side in wstxtest.msv.TestW3CSchema.testSimpleNonNsUndefinedId():
wstxtest.msv.TestW3CSchema.testSimpleNonNsUndefinedId()
https://github.com/FasterXML/woodstox/blob/b853557398f8242808cd415098360ce602c46042/src/test/java/wstxtest/msv/TestW3CSchema.java#L143-L151
There the validation exception containg Undefined ID 'm3' is thrown properly.
Undefined ID 'm3'
When the same test is adapted for SimpleNsStreamWriter the exception is not thrown.
SimpleNsStreamWriter
A PR with the reproducer follows.
The above is with W3CSchema. The same is reproducible with a RelaxNG schema. A reproducer follows.
There is a test validating the same scenario on the reader side in
wstxtest.msv.TestW3CSchema.testSimpleNonNsUndefinedId()
:https://github.com/FasterXML/woodstox/blob/b853557398f8242808cd415098360ce602c46042/src/test/java/wstxtest/msv/TestW3CSchema.java#L143-L151
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.