woodstox
woodstox copied to clipboard
'Undefined ID' not thrown when validating with SimpleNsStreamWriter
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.
The above is with W3CSchema. The same is reproducible with a RelaxNG schema. A reproducer follows.