#!/bin/sh # Architectural Form: test ArcNamrA: # Keep attribute "role" as "role", but rename its value "a" to "yyy" # #MAPTOKEN is supported since 1.5pre4 according to NEWS # 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-8.sgml af-8.dtd af-meta-8.dtd" cat <af-8.sgml verse 1 verse 2 EOF cat <af-8.dtd EOF cat <af-meta-8.dtd EOF tmpfiles="$tmpfiles af-8-onsgmls.out" : ${ONSGMLS=onsgmls} ${ONSGMLS} >af-8-onsgmls.out -A open af-8.sgml tmpfiles="$tmpfiles af-8-onsgmls.ok" cat <af-8-onsgmls.ok (OPEN AROLE TOKEN YYY (STANZA AV CDATA 1 (VERSE -verse 1 )VERSE AV CDATA 2 (VERSE -verse 2 )VERSE )STANZA )OPEN EOF : ${DIFF=diff} ${DIFF} af-8-onsgmls.ok af-8-onsgmls.out result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles af-8-norm.out" : ${OSGMLNORM=osgmlnorm} ${OSGMLNORM} >af-8-norm.out -A open af-8.sgml tmpfiles="$tmpfiles af-8-norm.ok" cat <af-8-norm.ok verse 1 verse 2 EOF ${DIFF} af-8-norm.ok af-8-norm.out result=$? test $result = 0 || result=$(($result + 1)) rm -fr $tmpfiles exit $result