-
Notifications
You must be signed in to change notification settings - Fork 12
Running stix2html in xmlspy
Here are the steps I followed:
-
Get the current release of stix_to_html
-
make the directory c:\stix
-
cd c:\stix
-
run "git clone https://github.com/STIXProject/Tools.git"
-
cd Tools
-
run "git checkout stix_to_html-v1.0b2a"
-
Open XML Spy
-
Close the default sample project (Project -> Close)
-
Project -> New Project
-
Project -> Save Project As
-
navigate to c:\stix\Tools\stix_to_html, then choose the name "stix_to_html_xml_spy_project"
-
Right click on the project and choose "Add Files"
-
Navigate to c:\stix\Tools\stix_to_html
-
Select all files and directories, then unselect 1) dev_sandbox, 2) doc, and 3) examples [it probably wouldn't hurt to add them, but I didn't].
-
Make sure you have all the other files including the images directory.
-
Click "open"
-
Right click on the project and choose "Add Files" again
-
Navigate to c:\stix\Tools\stix_to_html\examples (or your own directory of stix xml files)
-
Select the xml files (in the examples directory two of them are xml files, the other two are html output and can be ignored)
-
Click "open".
-
Project -> Save Project
-
Right click on one of the xml files, say "STIX_Phishing_Indicator.xml"
-
Choose "XSL Transform"
-
Click on the "Window" Button (this allows you to easily pick the file from open windows or files in the project)
-
Choose "stix_to_html.xsl" (it'll be listed under "XSL Files")
-
Then say "ok" in the File Transform dialog box and it will run the transformation.
-
Now the html output will pop up in the output pane as a new file "XSL Output.html". This will be in html preview mode (I'm assuming it uses the Internet Explorer rendering engine, but that's just a guess).
-
From what I can see this looks great! The SVG icons show up! All the expandable content works!