nistmeta.xsl

I've made up a little XSLT transform that creates RDF metadata for
the NIST tests by analyzing the Test Matrix at
http://xw2k.sdct.itl.nist.gov/brady/w3c-dom/test-matrix.html  I first needed
to make that document a legal XML document by adding an /> to <br> and <col>
elements.

Seems to generate garbage for the HTML tests, but does an okay job on the
XML tests.  Basically, it scans the description of the test for any
parameter name, exception code or 'returns' and emits a corresponding
<dc:subject> element for the parameter, exception code or return values with
a resource URI that should be the same as the corresponding entry in
subjects.rdf.  For example:

<rdf:Description
about="level-both/xml/nodeAppendChildNewChildDiffDocument.xml">
<dc:title>nodeAppendChildNewChildDiffDocument</dc:title>
<dc:description>The appendChild method raises a WRONG_DOCUMENT_ERR
DOMexception if newChild was created from a different document than the one
that created this node.</dc:description>
<dc:subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#
ID-184E7107"/>
<dc:subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#
xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[su
bstring-before(.':')='WRONG_DOCUMENT_ERR'])"/>
<dc:subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#
xpointer(id('ID-184E7107')/parameters/param[@name='newChild'])"/>
<dc:creator>NIST</dc:creator>
</rdf:Description>

The nistmeta.xsl is in the xmlconf CVS (viewable at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xmlconf/www-dom-ts/nistmeta.x
sl).  The sample of the generated output is at
http://home.houston.rr.com/curta/domtest/tests.rdf

The metadata processing code could append extracted in-test metadata with an
external metadata source to produce an overall external metadata file that
would be used for the test matrix and other generation.

The values of the about parameters would need to be generated to reflect the
eventual w3.org locator.

What it the significance of level-both?  Wouldn't any test that tests "both"
levels really be a DOM level 1 test?

Received on Friday, 6 July 2001 01:11:00 UTC