Changeset 28383 for gs2-extensions/xsd-to-gs-metaset/xsd_to_mds.bat
- Timestamp:
- 2013-10-10T19:43:27+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/xsd-to-gs-metaset/xsd_to_mds.bat
r28364 r28383 11 11 :: http://www.sourceware.org/ml/xsl-list/2002-03/msg00838.html 12 12 13 :: xsd input file and setName of mds file for output 13 14 set xsd=%1 14 15 set mds=%2 15 16 16 if not exist % 1 echo XSD file %1does not exist.& goto exit17 if not exist %xsd% echo XSD file %xsd% does not exist.& goto exit 17 18 18 19 … … 29 30 set xsl=%outputdir%\gli\classes\xml\xsd-to-mds.xsl 30 31 31 :: See http://internal.greenstone.org/wiki/Writing_XSL#Running_ApplyXSLT_to_apply_an_XSLT_file_from_the_command_line 32 if not exist %xsl% echo XSLT file %xsl% can't be found.& goto exit 33 34 :: See internal wiki page Writing_XSL#Running_ApplyXSLT_to_apply_an_XSLT_file_from_the_command_line 32 35 set xcmd=java -cp "%GSDLHOME%/bin/java/xalan.jar";"%GSDLHOME%/bin/java/ApplyXSLT.jar";"%GSDLHOME%/bin/java/." org.nzdl.gsdl.ApplyXSLT -t "%xsl%" -x "%xsd%" -o "%outputfile%" 33 36 … … 45 48 46 49 :usage 50 echo. 47 51 echo Run as %0 ^<xsd file^> ^<namespace^> ^<setname (mds file name)^> 52 echo. 48 53 :: E.g. xsd_to_mds.bat C:\<full-path>\CDWALite-xsd-public-v1-1.xsd cdwalite CDWALite 49 54
Note:
See TracChangeset
for help on using the changeset viewer.