mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 08:18:27 +02:00
![]() xmlread.pp: * As a step towards SAX-based validation, element content validator is rewritten from scratch, so it now accepts child elements one by one. This also enables reporting location of validation errors (however, most locations aren't reported correctly yet). * More straightforward handling of comments and PIs in internal subset. * Attribute text is handled separately from element text. * Unified handling of fatal and validation errors. xmlutils.pp: * Removed auto widechar->char conversions. These should have been a part of fix for #9528, but were not noticed at that moment. dom.pp: * Reworked 'ugly workarounds' in node removal code. + Element nodes remove themselves from document list of IDs, so no invalid pointers are left around. xmlts.pp: * Corrected validation diagnostics (display the first message and ingore subsequent ones). * Validation error alone in a not-well-formed case is a test failure. git-svn-id: trunk@8896 - |
||
---|---|---|
.. | ||
README | ||
template.xml | ||
xmlts.pp |
Test runner for w3.org XML compliance suite ------------------------------------------- The xmlts is intended to run the XML compliance suite from W3.org. The suite includes 2500+ tests. It may be downloaded from http://www.w3.org/XML/Test/xmlts20031210.zip (approx. 1.7 mBytes) After compiling xmlts.pp, run it with the following command line: xmlts <path-to-xmlconf.xml> <report-filename> [-t template.xml] [-v] Two required commandline parameters include path to test database file and report filename. Optionally, you may specify validating mode with -v switch and report template filename with -t (by default, 'template.xml' is used). The test suite includes several test databases (all named 'xmlconf.xml'). There is master database located in root dir, and several individual databases in different subdirs. for example, to run all tests included into the suite in non-validating mode, use: xmlts xmlconf/xmlconf.xml myreport.html Report is produced in xhtml format, use your favourite browser to view it. As of 10.03.2007, the xml package does not support namespaces yet, so you might wish to exclude namespace tests. To do this, edit xmlconf/xmlconf.xml file and comment out two lines at the bottom which reference 'eduni-ns10' and 'eduni-ns11' testsuites. (The last lines should look like: &eduni-xml11; <!-- &eduni-ns10; --> <!-- &eduni-ns11; --> </TESTSUITE> )