Open ppalaga opened 5 months ago
RepairingNsStreamWriter
perhaps has a general problem with attribute access, because it does not see a required attribute that is set in the input document.
This can be reproduced by adapting wstxtest.vstream.TestRelaxNG.testPartialValidationOk()
a reproducer PR follows.
The same scenario is passing for
ValidatingStreamReader
in the following test:https://github.com/FasterXML/woodstox/blob/5ba99cd1efde98280700469f6392f7341fce3eb3/src/test/java/wstxtest/vstream/TestInvalidAttributeValue.java#L21-L56
When the test is adapted for
SimpleNsStreamWriter
it still works.But when the test is adapted for
RepairingNsStreamWriter
it does not work anymore.The PR with a reproducer follows.