Skip to content

Running stix2html in xmlspy

mattcoarr edited this page Nov 15, 2013 · 1 revision

Here are the steps I followed:

  1. Get the current release of stix_to_html

  2. make the directory c:\stix

  3. cd c:\stix

  4. run "git clone https://github.com/STIXProject/Tools.git"

  5. cd Tools

  6. run "git checkout stix_to_html-v1.0b2a"

  7. Open XML Spy

  8. Close the default sample project (Project -> Close)

  9. Project -> New Project

  10. Project -> Save Project As

  11. navigate to c:\stix\Tools\stix_to_html, then choose the name "stix_to_html_xml_spy_project"

  12. Right click on the project and choose "Add Files"

  13. Navigate to c:\stix\Tools\stix_to_html

  14. 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].

  15. Make sure you have all the other files including the images directory.

  16. Click "open"

  17. Right click on the project and choose "Add Files" again

  18. Navigate to c:\stix\Tools\stix_to_html\examples (or your own directory of stix xml files)

  19. Select the xml files (in the examples directory two of them are xml files, the other two are html output and can be ignored)

  20. Click "open".

  21. Project -> Save Project

  22. Right click on one of the xml files, say "STIX_Phishing_Indicator.xml"

  23. Choose "XSL Transform"

  24. Click on the "Window" Button (this allows you to easily pick the file from open windows or files in the project)

  25. Choose "stix_to_html.xsl" (it'll be listed under "XSL Files")

  26. Then say "ok" in the File Transform dialog box and it will run the transformation.

  27. 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).

  28. From what I can see this looks great! The SVG icons show up! All the expandable content works!