s1kd-neutralize Description khzae.net khzae.net All Add --xml-catalog parser option. General Generates neutral metadata for the specified CSDB objects. This includes: XLink attributes for references, using the S1000D URN scheme. RDF and Dublin Core metadata. Usage s1kd-neutralize [-o <file>] [-Dflnqvh?] [<object>...] Options -D, --delete Remove neutral metadata from the CSDB object. -f, --overwrite Overwrite specified CSDB object(s) automatically. -h, -?, --help Show usage message. -l, --list Treat input (stdin or arguments) as lists of CSDB objects to neutralize, rather than CSDB objects themselves. -n, --namespace Include the IETP namespaces for data module and publication module elements. -o, --out <file> Output neutralized CSDB object XML to <file> instead of stdout. -q, --quiet Quiet mode. Errors are not printed. -v, --verbose Verbose output. --version Show version information. In addition, the following options allow configuration of the XML parser: --dtdloadLoad the external DTD.--hugeRemove any internal arbitrary parser limits.--netAllow network access to load external DTD and entities.--noentResolve entities.--parser-errorsEmit errors from parser.--parser-warningsEmit warnings from parser.--xincludeDo XInclude processing.--xml-catalog <file>Use an XML catalog when resolving entities. Multiple catalogs may be loaded by specifying this option multiple times. Example $ DMOD=DMC-XLINKTEST-A-00-00-00-00A-040A-D_000-01_EN-CA.XML $ xmllint --xpath "//description/dmRef" $DMOD <dmRef> <dmRefIdent> <dmCode modelIdentCode="XLINKTEST" systemDiffCode="A" systemCode="00" subSystemCode="0" subSubSystemCode="0" assyCode="01" disassyCode="00" disassyCodeVariant="A" infoCode="040" infoCodeVariant="A" itemLocationCode="D"/> </dmRefIdent> <dmRefAddressItems> <dmTitle> <techName>XLink test</techName> <infoName>Referenced data module</infoName> </dmTitle> </dmRefAddressItems> </dmRef> $ s1kd-neutralize $DMOD | xmllint --xpath "//description/dmRef" - <dmRef xlink:type="simple" xlink:href="URN:S1000D:DMC-XLINKTEST-A-00-00-01-00A-040A-D" xlink:title="XLink test - Referenced data module"> [...] </dmRef>