#!/bin/sh # Architectural Form: test ArcBridA: # Resolving IDREFs (series: af-12 - af-15) # Now throw away "stanza" part, mapping IDREFs to CDATA, no bridge required # test onsgmls and osgmlnorm LANG=C; export LANG LC_ALL=C; export LC_ALL tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles af-14.sgml af-14.dtd af-meta-14.dtd" cat <af-14.sgml verse 1 verse 2 note on verse 2 EOF cat <af-14.dtd EOF cat <af-meta-14.dtd EOF tmpfiles="$tmpfiles af-14-onsgmls.out" : ${ONSGMLS=onsgmls} ${ONSGMLS} >af-14-onsgmls.out -A open af-14.sgml tmpfiles="$tmpfiles af-14-onsgmls.ok" cat <af-14-onsgmls.ok (OPEN (NOTES AR CDATA N2 (I -note on verse 2 )I )NOTES )OPEN C EOF : ${DIFF=diff} ${DIFF} af-14-onsgmls.ok af-14-onsgmls.out result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles af-14-norm.out" : ${OSGMLNORM=osgmlnorm} ${OSGMLNORM} >af-14-norm.out -A open af-14.sgml tmpfiles="$tmpfiles af-14-norm.ok" cat <af-14-norm.ok note on verse 2 EOF ${DIFF} af-14-norm.ok af-14-norm.out result=$? test $result = 0 || result=$(($result + 1)) rm -fr $tmpfiles exit $result