mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-02 16:32:07 +00:00
* Introduce SCAP genneration code * Add input creation commands * Initial documentation * Parameterize benchmark @id suffix * Remove OpenSCAP reference * Remove OpenSCAP reference from README.md * Change description to simply be the title * Remove <notice> * Parameterize data stream collection suffix * Make inclusion of SCAP references optional by default. * Pursue elusive document version * Comment out debug message * Correct typo in Makefile * Correct emit-namespaces and emit-schemaLocation Both currently unused at this time Insert xml-model processing instruction for SCAP schema * Provide transform to indent and excise some node types This can be used to render concise SCAP XML documents a bit easier to read. (But at the cost of increased size). XML comment and process0-instruction nodes will be excised. The transform can be used with any XSLT 1.0+ implementation (such as xsltproc). * Add timestamp to report and identify description * Remove superfluous <mark> element * Pursue wandering contributors * Add validation example to Makefile * Add "-g" argument to generate_guidance.py * Remove xsi:schemaLocation removal * Correct xsi:schemaLocation targets * Add validation step * Correct xsi:schemaLocation targets (again) To use absolute locations * Add CPE 2.3 platform designation * Correct intra-document CPE-related constructs * Correct double-reversed id "namespace" and "name" * Correct double-reversed id "namespace" and "name" * Correct Group warning selection * Tidy up document pre-root comments * Remove validation step from default make Add SCAP and NVD references. * SCAP 1.3 Schematron rules Find errors missed by others. Not part of build steps.
18 lines
726 B
XML
18 lines
726 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- identity transform with excision -->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="1.0">
|
|
<!-- indent for those desirous of such -->
|
|
<xsl:output indent="yes"/>
|
|
<!-- death to comments -->
|
|
<xsl:template match="comment()"/>
|
|
<!-- death to processing-instructions -->
|
|
<xsl:template match="processing-instruction()"/>
|
|
<!-- identity transform -->
|
|
<xsl:template match="node()" priority="-1">
|
|
<xsl:copy>
|
|
<xsl:copy-of select="attribute::node()"/>
|
|
<xsl:apply-templates/>
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|