XTM1toXTM2 Converter


By Alexander Mikhailian , Space Applications Services.

XTM1toXTM2 is an XSLT 1.0 stylesheet to convert from XTM 1.0 to XTM 2.0.

Since the automatic conversion is not always possible, the converter may try to coerce the input or bail out.

If running with xsltproc, check the error return value to see if the conversion succeedes, e.g.:

find . -name '*xtm'|while read xtm do xsltproc xtm1toxtm2.xsl "$xtm" > ${xtm%xtm}xtm2 if [ $? -eq 0 ]; then echo "$xtm passed." else echo "$xtm failed." rm ${xtm%xtm}xtm2 fi done See around the lines starting with <xsl:message for possible failure reasons. This stylesheet does no validation of the contents of the href attribute. This stylesheet attempts to preserve the reifiers of topic map constructs that use URI fragments That is, internal to the topic map only.


© Space Applications Services, 2007