XSL Transform to .audit Conversion
Several compliance check plugins rely on auditing XML content, such as Palo Alto, VMware, and Unix compliance checks. To take advantage of these capabilities, it is beneficial to become familiar with creating XSL Transforms. In some cases, building an XSL Transform requires a bit of trial-and-error. Once you become familiar with that process, converting into an .audit
is the next step and may not be intuitive. This topic provides proper guidance on how to build and utilize custom XSL Transforms, and convert them into .audit
files.
Several audit checks (for example, AUDIT_XML, AUDIT_VCENTER, AUDIT_ESX) are separate and distinct, but use the same underlying logic. Understanding the fundamentals of working with XML allow you to translate them directly to other platforms that utilize XML.
By using the xsltproc
utility, you can follow these steps to generate custom .audit
files for XML content:
- Install xsltproc
- Identify the XML File to Use
- Become Familiar with XSL Transforms and XPath
- Create the XSLT Transform
- Verify the XSLT Transform Works
- Copy the XSLT to the .audit
- Final Audit