#!/bin/sh # Architectural Form: test ArcOptSA (A.3.4.2) # 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-19.sgml af-19.dtd af-meta-19.dtd" cat <af-19.sgml verse 1 verse 2 EOF cat <af-19.dtd EOF cat <af-meta-19.dtd ]]> EOF tmpfiles="$tmpfiles af-19-onsgmls.out" : ${ONSGMLS=onsgmls} ${ONSGMLS} >af-19-onsgmls.out -A open af-19.sgml tmpfiles="$tmpfiles af-19-onsgmls.ok" cat <af-19-onsgmls.ok (OPEN (STANZA AN CDATA 1 (VERSE -verse 1 )VERSE AN CDATA 2 (VERSE -verse 2 )VERSE )STANZA )OPEN C EOF : ${DIFF=diff} ${DIFF} af-19-onsgmls.ok af-19-onsgmls.out result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles af-19-norm.out" : ${OSGMLNORM=osgmlnorm} ${OSGMLNORM} >af-19-norm.out -A open af-19.sgml tmpfiles="$tmpfiles af-19-norm.ok" cat <af-19-norm.ok verse 1 verse 2 EOF ${DIFF} af-19-norm.ok af-19-norm.out result=$? test $result = 0 || result=$(($result + 1)) rm -fr $tmpfiles exit $result