At this point, all available
content for the define.xml file has been captured in the SAS representation
(39 data sets) of the CDISC Define-XML 2.0 standard. The next step
is to build and validate the define-adam-2.1.xml file.
In the driver program,
the call to the %DEFINE_WRITE macro requests that the default style
sheet provided by SAS (based on the CDISC style sheet) be copied to
the folder location that contains the generated define-adam-2.1.xml
file. The macro is located in the global standards library directory/standards/cdisc-definexml-2.0-1.7/macros directory.
Here is the macro:
%define_write(_cstCreateDisplayStyleSheet=1,
_cstHeaderComment=%str(Produced from SAS data using the SAS
Clinical Standards Toolkit &_cstVersion));
The next task in the
sample create_definexml_from_source_adam.sas driver program is to
call the %CSTUTILXMLVALIDATE macro to perform the schema validation.
This involves verifying that the Define-XML file is valid both structurally
and syntactically, according to the XML schema.
The sample create_definexml_from_source_adam.sas
driver program also contains SAS code to create the HTML rendition
define-adam-2.1.html of the define-adam-2.1.xml using the define2-0-0.xsl
style sheet:
proc xsl
in=extxml
xsl=xslt01
out="&studyOutputPath/sourcexml/%sysfunc(tranwrd(&_cstDefineFile, %str(.xml), %str(.html)))";
parameter 'nCodeListItemDisplay'=5 'displayMethodsTable'=1 'displayCommentsTable'=1;
run;
If the style sheet parameters
displayMethodsTable and displayCommentsTable were set to 0, the resulting
HTML file would not have the separate tables for methods and comments.
Note: The SAS Clinical Standards
Toolkit 1.7
does not contain validation checks to validate the SAS representation
of the Define-XML 2.0 standard. The only methodology included in the
SAS Clinical Standards Toolkit 1.7
to validate a Define-XML 2.0 file is XML schema validation.
The Results data set
provides process information and the location of the generated define-adam-2.1.xml
file. The Results data set confirms that no problems were found with
the file following validation of the file.