Task #4492
Updated by Junxiao Shi almost 3 years ago
`nfdc status report format xml` command produces an XML document that 1. (1) should conform to `docs/_static/nfd-status.xsd` schema; 2. `docs/_static/nfdxstatus.xsd` schema (2) is translatable with `tools/nfd-status-http-server-files/nfd-status.xsl`. However, neither is tested. This issue is to add a unit test or CI script that 1. (1) invokes `nfdc status report format xml` command or its underlying functions to produce a XML document with various elements, element, covering every choice in schema and XSLT; 2. XSLT (2) validates the XML document against the schema; 3. schema (3) transforms the XML document to HTML with the XSLT; 4. XSLT (4) validates the transformed document against HTML DTD. The test does not cover the CSS stylesheet applied to the HTML document, or how the HTML document is rendered.