Open Mingun opened 4 months ago
Some intermediate results of investigation:
>
even if there is no ?
before it. Actually, we produce an error in that case. We should continue search of ?>
until EOF is reached.?>
which cannot be escaped%name;
) or general entities (&name;
) are not recognized&#...;
) are not recognized'
and "
does nothing and no need to be paired�
(which is just string "�"
), but cannot use character U+0000
The official test suite is located at https://www.w3.org/XML/Test/. The all links from that page or found by references from that page:
There also exist W3C XML Schema 1.1 (XSD 1.1) test suite, maybe would be useful: https://github.com/w3c/xsdtests
The preferred implementation should automatically download test suite if it does not exist locally and run tests. We also could have a copy as a submodule in our repository. I prefer to use default Rust tools, i.e.
cargo test
. Test could be implemented in a separated crate to not slow down everyday workflow.