Changeset 28383 for gs2-extensions
- Timestamp:
- 2013-10-10T19:43:27+13:00 (11 years ago)
- Location:
- gs2-extensions/xsd-to-gs-metaset
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/xsd-to-gs-metaset/Readme.txt
r28364 r28383 8 8 3. Then run the script in this extension as follows: 9 9 xsd_to_mds.bat C:\<full-path>\CDWALite-xsd-public-v1-1.xsd cdwalite CDWALite 10 11 On Linux: 12 ./xsd_to_mds.bash /<full-path>/CDWALite-xsd-public-v1-1.xsd cdwalite CDWALite 10 13 11 14 This script uses the GSDLHOME/bin/java/ApplyXSLT to apply the XSLT file gli\classes\xml\xsd-to-mds.xsl to the downloaded input xsd file. It thereby generates an *.mds file (using the name given in the 3rd argument) in gli's metadata folder. … … 23 26 24 27 The above takes the xsLt file xsd-to-mds.xsl and applies it to the input Xml file (CDWALite-xsd-public-v1-1.xsd) to generate the Output file check.mds. 25 Specifying the output type and indentation26 28 27 See more at Writing_XSL#Running_ApplyXSLT_to_apply_an_XSLT_file_from_the_command_line29 See more on the internal wiki page at Writing_XSL#Running_ApplyXSLT_to_apply_an_XSLT_file_from_the_command_line -
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.