CybOXProject/Tools — pull request #21 by davidrenne (2013-08-12 19:13:04+00:00)
Title: Added debug conditional, flags for HTML control

When using this XSLT in production, no one will ever use all the inline
HTML drawing capabilities. They would separate these out into separate
external files. But I can definitely see why we need it inlined into 1
HTML output file!

In order to accomodate this pull request, I setup a CONFIG area where
we can expand on in the future for future global controls.

The current features are "include_html_body" (which when not true),
will output a "clean template" with just a div wrapping the Cybox
Object.

Also added control for showing your "Cybox summery version header"
(which is now a separated template), which will most certainly not be
needed in a production environment version of this XSLT.

@todo, we need to when in "clean mode" we need to some how be able to
output the outer div without XMLNS. I am not sure how to clean out the
XML namespaces out of the output when include_html_body is false. Do
you ikiril01 or other maintainers at Mitre know how to remove XMLNS for
my case where I want a "partial Cybox only" output with no injection of
namespaces into my outer DIV?

Please approve and pull into 2013-06_xslt_stylesheet_sandbox for later
merge with master once it is ready to merge.

Oh, and I also added conditional debug flag in the config variables, so when debugging common problems we can turn on and off for production mode or development XSLT debugging.