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