-
Notifications
You must be signed in to change notification settings - Fork 12
Running stix2html in saxon
mattcoarr edited this page Nov 15, 2013
·
1 revision
Here are the steps I followed:
-
Get the current release of stix_to_html
-
make the directory c:\stix (windows) or ~/stix (mac and linux)
-
"cd c:\stix" (windows) or "cd ~/stix" (mac/linux)
-
run "git clone https://github.com/STIXProject/Tools.git"
-
cd Tools
-
run "git checkout stix_to_html-v1.0b2a"
-
If you don't already have a copy of the saxon jar (the open source HE version or the commercial PE and EE versions will work), download it from http://saxon.sourceforge.net/
-
Place the saxon jar file in a directory, I'll refer to that directory as %SAXON_HOME% (windows) or $SAXON_HOME (mac, linux)
-
Open a command prompt (or terminal) window and cd to the directory where you cloned the stix tools repository:
- mac/linux:
cd ~/stix/Tools/stix_to_html
- windows:
cd c:\stix\stix_to_html
- Process a single file or a whole directory of files:
-
single file
- mac/linux:
- java -cp $SAXON_HOME/saxon9he.jar net.sf.saxon.Transform -s:examples/STIX_Phishing_Indicator.xml -xsl:stix_to_html.xsl -o:examples/STIX_Phishing_Indicator.html
- windows:
- java -cp %SAXON_HOME%\saxon9he.jar net.sf.saxon.Transform -s:examples\STIX_Phishing_Indicator.xml -xsl:stix_to_html.xsl -o:examples\STIX_Phishing_Indicator.html
- mac/linux:
-
whole directory of files
- first go into Tools/stix_to_html/examples, "mkdir input output", and copy the two xml files from examples into examples/input.
- mac/linux:
- java -cp $SAXON_HOME/saxon9he.jar net.sf.saxon.Transform -s:examples/input -xsl:stix_to_html.xsl -o:examples/output
- windows:
- java -cp %SAXON_HOME%\saxon9he.jar net.sf.saxon.Transform -s:examples\input -xsl:stix_to_html.xsl -o:examples\output