-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiso2gbl.bat
More file actions
36 lines (30 loc) · 794 Bytes
/
iso2gbl.bat
File metadata and controls
36 lines (30 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
SET XSLT=r:\scripts\xslt\iso2gbl.xsl
IF "%1"=="" goto noinput
IF "%2"=="" goto nooutput
echo.
IF EXIST %1 (
IF EXIST %2 (
rem how the heck to get saxon to output files with .json extension?!
echo Converting all files in %1 to GBL format...
java -cp r:\scripts\saxon9he.jar net.sf.saxon.Transform -quit:on -warnings:fatal -s:%1 -xsl:%XSLT% -o:%2
rem this is my simple hack for now
ren %2\*.xml *.json
echo Process complete.
goto done
) ELSE (
echo ERROR: output folder does not exist
goto done
)
) ELSE (
echo ERROR: input folder does not exist
goto done
)
:noinput
echo ERROR: No input folder specified
goto done
:nooutput
echo ERROR: No output folder specified
goto done
:done
echo.