@ECHO off
REM usage: create_viewer.bat source_folder xmldoc.xml

REM example 'create_viewer.bat c:\users\user\desktop\test c:\users\user\desktop\test\test.xml'

REM After running pdf2svg, included with the output (unless you select --noxmldoc)
REM is an xml document. By running the batch file on that xml file
REM a very simple continuous page mode viewer will be created.
REM With this template you can create your own viewer.
@ECHO on
"%~dp0\xsltrun.exe" "%~1\%~2" "%~dp0\mainframe.xsl" "%~1\main.html"
"%~dp0\xsltrun.exe" "%~1\%~2" "%~dp0\bookmarks.xsl" "%~1\sidepanel.html"
"%~dp0\xsltrun.exe" "%~1\%~2" "%~dp0\continuous.xsl" "%~1\viewer.html"