Validating XSLT files
The system supports XSLT validation files for HL7 CDA 2.0 and HITSP_C32 (2.5 version). These files are located in the root level XSLT folder at $HCIROOT/xslt. They can be used by hcixslttest or the engine without any changes. They can also be copied and modified to the site level for special use. This is located at $HCISITEDIR/xslt or $HCIMASTERSITEDIR/xslt.
You should have a document file to be validated according to a particular specification. Generally, this is an XML file, for example, document.xml.
Cloverleaf provides XSLT validation files for standard HL7 CDA R2 and HITSP C3 version 2.5. With these, the engine and GUI can support root level XSLT files. With this, you can directly use these XSLT files under the root level. You can also move them to the site level and modify them for a particular purpose.
hcixslttest [-e encoding[-F format] [-p runtime_parameters]
xslt infile [outfile]]
. For example, hcixslttest -e ASCII
CDA_2.0/ccd_iso_pretty.xsl document.xml
.
The test result shows the validation report, indicating any errors or warnings where the document.xml file violates the standard specifications.
This procedure can also be used from the GUI:
- Launch the testing tool in the GUI.
- Select the XSLT tab.
- Specify the validation files in XSLT File. For example, ccd_iso_pretty.xsl for HL7 CDA R2.
- In the Choose Date File browser, specify the file that needs validation. For example, document.xml.
- Specify other options as required.
- Click . The validation report is returned in the Result pane.