s1kd-syncrefs Description khzae.net khzae.net All Add --xml-catalog parser option. General The s1kd-syncrefs tool copies all external references (dmRef, pmRef, externalPubRef) within the content of a data module and uses them to generate the <refs> element. Each unique reference is copied, sorted, and placed in to the <refs> element. If a <refs> element already exists, it is overwritten. Usage s1kd-syncrefs [-dflqvh?] [-o <out>] [<data module>...] Options -d, --delete Delete the <refs> element. -f, --overwrite Overwrite the data modules automatically. -h, -?, --help Show help/usage message. -l, --list Treat input (stdin or arguments) as lists of data modules to synchronize references in, rather than data modules themselves. -o, --out <out> The resulting XML is written to <out> instead of stdout. -q, --quiet Quiet mode. Errors are not printed. -v, --verbose Verbose output. --version Show version information. <data module>... The data module(s) to synchronize references in. Default is to read from stdin. 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. Exit status 0 No errors. 1 Invalid data module. 2 Number of references in a data module exceeded the available memory. Example $ s1kd-syncrefs -f DMC-EX-A-00-00-00-00A-040A-D_000-01_EN-CA.XML