#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh20282
# Made on 2011-04-26 03:28 UTC by <toyoda@toyoda-eizi.net>.
# Source directory was `/var/www/html/2011/0425libxmlhack'.
#
# Existing files will *not* be overwritten, unless `-c' is specified.
# This format requires very little intelligence at unshar time.
# "if test", "echo", "mkdir", and "sed" may be needed.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    392 -rw-rw-r-- check.sh
#    204 -rw-rw-r-- chk-flist-badtext.xml
#    185 -rw-rw-r-- chk-flist-empty.xml
#    214 -rw-rw-r-- chk-flist-goodflist.xml
#    201 -rw-rw-r-- chk-flist-goodfloat.xml
#    211 -rw-rw-r-- chk-flist-mixedlist.xml
#    203 -rw-rw-r-- chk-flist-nilreason.xml
#    181 -rw-rw-r-- chk-float-badempty.xml
#    196 -rw-rw-r-- chk-float-badtext.xml
#    193 -rw-rw-r-- chk-float-goodfloat.xml
#    195 -rw-rw-r-- chk-float-nilreason.xml
#    216 -rw-rw-r-- chk-mlist-badtext.xml
#    195 -rw-rw-r-- chk-mlist-baduom.xml
#    195 -rw-rw-r-- chk-mlist-empty.xml
#    226 -rw-rw-r-- chk-mlist-goodflist.xml
#    213 -rw-rw-r-- chk-mlist-goodfloat.xml
#    223 -rw-rw-r-- chk-mlist-mixedlist.xml
#    215 -rw-rw-r-- chk-mlist-nilreason.xml
#    197 -rw-rw-r-- chk-mlist-uom2.xml
#    202 -rw-rw-r-- chk-mlist-uom.xml
#    188 -rw-rw-r-- chk-qext-badempty.xml
#    199 -rw-rw-r-- chk-qext-badlong.xml
#    199 -rw-rw-r-- chk-qext-badshort.xml
#    202 -rw-rw-r-- chk-qext-badtext.xml
#    197 -rw-rw-r-- chk-qext-baduom.xml
#    207 -rw-rw-r-- chk-qext-goodflist.xml
#    209 -rw-rw-r-- chk-qext-mixedlist.xml
#    214 -rw-rw-r-- chk-qext-nilreason.xml
#    199 -rw-rw-r-- chk-qext-uom2.xml
#    204 -rw-rw-r-- chk-qext-uom.xml
#   2935 -rw-rw-r-- simplified.xsd
#
echo=echo
shar_tty= shar_n= shar_c='
'
if test ! -d ${lock_dir}
then : ; else ${echo} 'lock directory '${lock_dir}' exists'
  exit 1
fi
if mkdir ${lock_dir}
then : ; else ${echo} 'failed to create lock directory'
  exit 1
fi
# ============= check.sh ==============
if test -f 'check.sh' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING check.sh (file already exists)'
else
${echo} 'x - extracting check.sh (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'check.sh' &&
X#!/bin/sh
X
Xfor xml in chk-*.xml
Xdo
X  out=`xmllint --noout --schema simplified.xsd $xml 2>&1`
X  rc=$?
X  case "$xml"
X  in
X  chk-*-bad*.xml)
X    if test 0 = "$rc"
X    then
X      echo "NG: unexpected pass $xml"
X    else
X      echo "Ok: $xml found invalid (expected)"
X    fi
X    ;;
X  *)
X    if test 0 = "$rc"
X    then
X      echo "Ok: $out"
X    else
X      echo "NG: $out"
X    fi
X    ;;
X  esac
Xdone
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of check.sh failed'
fi
fi
# ============= chk-flist-badtext.xml ==============
if test -f 'chk-flist-badtext.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-badtext.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-badtext.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-badtext.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList>any text</floatList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-badtext.xml failed'
fi
fi
# ============= chk-flist-empty.xml ==============
if test -f 'chk-flist-empty.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-empty.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-empty.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-empty.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-empty.xml failed'
fi
fi
# ============= chk-flist-goodflist.xml ==============
if test -f 'chk-flist-goodflist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-goodflist.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-goodflist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-goodflist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList>1.0e8 1327 9.80665</floatList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-goodflist.xml failed'
fi
fi
# ============= chk-flist-goodfloat.xml ==============
if test -f 'chk-flist-goodfloat.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-goodfloat.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-goodfloat.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-goodfloat.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList>1.0e8</floatList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-goodfloat.xml failed'
fi
fi
# ============= chk-flist-mixedlist.xml ==============
if test -f 'chk-flist-mixedlist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-mixedlist.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-mixedlist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-mixedlist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList>+13.45  unknown</floatList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-mixedlist.xml failed'
fi
fi
# ============= chk-flist-nilreason.xml ==============
if test -f 'chk-flist-nilreason.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-flist-nilreason.xml (file already exists)'
else
${echo} 'x - extracting chk-flist-nilreason.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-flist-nilreason.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <floatList>unknown</floatList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-flist-nilreason.xml failed'
fi
fi
# ============= chk-float-badempty.xml ==============
if test -f 'chk-float-badempty.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-float-badempty.xml (file already exists)'
else
${echo} 'x - extracting chk-float-badempty.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-float-badempty.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <float/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-float-badempty.xml failed'
fi
fi
# ============= chk-float-badtext.xml ==============
if test -f 'chk-float-badtext.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-float-badtext.xml (file already exists)'
else
${echo} 'x - extracting chk-float-badtext.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-float-badtext.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <float>any text</float>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-float-badtext.xml failed'
fi
fi
# ============= chk-float-goodfloat.xml ==============
if test -f 'chk-float-goodfloat.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-float-goodfloat.xml (file already exists)'
else
${echo} 'x - extracting chk-float-goodfloat.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-float-goodfloat.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <float>1.0e8</float>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-float-goodfloat.xml failed'
fi
fi
# ============= chk-float-nilreason.xml ==============
if test -f 'chk-float-nilreason.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-float-nilreason.xml (file already exists)'
else
${echo} 'x - extracting chk-float-nilreason.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-float-nilreason.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <float>unknown</float>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-float-nilreason.xml failed'
fi
fi
# ============= chk-mlist-badtext.xml ==============
if test -f 'chk-mlist-badtext.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-badtext.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-badtext.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-badtext.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m">any text</measureList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-badtext.xml failed'
fi
fi
# ============= chk-mlist-baduom.xml ==============
if test -f 'chk-mlist-baduom.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-baduom.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-baduom.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-baduom.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom=":"/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-baduom.xml failed'
fi
fi
# ============= chk-mlist-empty.xml ==============
if test -f 'chk-mlist-empty.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-empty.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-empty.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-empty.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m"/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-empty.xml failed'
fi
fi
# ============= chk-mlist-goodflist.xml ==============
if test -f 'chk-mlist-goodflist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-goodflist.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-goodflist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-goodflist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m">1.0e8 1327 9.80665</measureList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-goodflist.xml failed'
fi
fi
# ============= chk-mlist-goodfloat.xml ==============
if test -f 'chk-mlist-goodfloat.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-goodfloat.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-goodfloat.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-goodfloat.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m">1.0e8</measureList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-goodfloat.xml failed'
fi
fi
# ============= chk-mlist-mixedlist.xml ==============
if test -f 'chk-mlist-mixedlist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-mixedlist.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-mixedlist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-mixedlist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m">+13.45  unknown</measureList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-mixedlist.xml failed'
fi
fi
# ============= chk-mlist-nilreason.xml ==============
if test -f 'chk-mlist-nilreason.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-nilreason.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-nilreason.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-nilreason.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m">unknown</measureList>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-nilreason.xml failed'
fi
fi
# ============= chk-mlist-uom2.xml ==============
if test -f 'chk-mlist-uom2.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-uom2.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-uom2.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-uom2.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="m/s"/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-uom2.xml failed'
fi
fi
# ============= chk-mlist-uom.xml ==============
if test -f 'chk-mlist-uom.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-mlist-uom.xml (file already exists)'
else
${echo} 'x - extracting chk-mlist-uom.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-mlist-uom.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <measureList uom="kg.m.s-1"/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-mlist-uom.xml failed'
fi
fi
# ============= chk-qext-badempty.xml ==============
if test -f 'chk-qext-badempty.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-badempty.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-badempty.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-badempty.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m"/>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-badempty.xml failed'
fi
fi
# ============= chk-qext-badlong.xml ==============
if test -f 'chk-qext-badlong.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-badlong.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-badlong.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-badlong.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">1 2 3</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-badlong.xml failed'
fi
fi
# ============= chk-qext-badshort.xml ==============
if test -f 'chk-qext-badshort.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-badshort.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-badshort.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-badshort.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">1.0e8</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-badshort.xml failed'
fi
fi
# ============= chk-qext-badtext.xml ==============
if test -f 'chk-qext-badtext.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-badtext.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-badtext.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-badtext.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">any text</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-badtext.xml failed'
fi
fi
# ============= chk-qext-baduom.xml ==============
if test -f 'chk-qext-baduom.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-baduom.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-baduom.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-baduom.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom=":">1 1</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-baduom.xml failed'
fi
fi
# ============= chk-qext-goodflist.xml ==============
if test -f 'chk-qext-goodflist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-goodflist.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-goodflist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-goodflist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">1.0e8 9.80665</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-goodflist.xml failed'
fi
fi
# ============= chk-qext-mixedlist.xml ==============
if test -f 'chk-qext-mixedlist.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-mixedlist.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-mixedlist.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-mixedlist.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">+13.45  unknown</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-mixedlist.xml failed'
fi
fi
# ============= chk-qext-nilreason.xml ==============
if test -f 'chk-qext-nilreason.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-nilreason.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-nilreason.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-nilreason.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m">unknown inapplicable</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-nilreason.xml failed'
fi
fi
# ============= chk-qext-uom2.xml ==============
if test -f 'chk-qext-uom2.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-uom2.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-uom2.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-uom2.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="m/s">1 1</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-uom2.xml failed'
fi
fi
# ============= chk-qext-uom.xml ==============
if test -f 'chk-qext-uom.xml' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING chk-qext-uom.xml (file already exists)'
else
${echo} 'x - extracting chk-qext-uom.xml (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'chk-qext-uom.xml' &&
X<dummy xmlns="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml/3.2 test.xsd">
X <qext uom="kg.m.s-1">1 1</qext>
X</dummy>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of chk-qext-uom.xml failed'
fi
fi
# ============= simplified.xsd ==============
if test -f 'simplified.xsd' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING simplified.xsd (file already exists)'
else
${echo} 'x - extracting simplified.xsd (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'simplified.xsd' &&
X<?xml version="1.0" encoding="UTF-8"?>
X<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.1 2010-01-28">
X
X	<simpleType name="UomSymbol">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<restriction base="string">
X			<pattern value="[^: \n\r\t]+"/>
X		</restriction>
X	</simpleType>
X
X	<simpleType name="UomURI">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<restriction base="anyURI">
X			<pattern value="([a-zA-Z][a-zA-Z0-9\-\+\.]*:|\.\./|\./|#).*"/>
X		</restriction>
X	</simpleType>
X
X	<simpleType name="UomIdentifier">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<union memberTypes="gml:UomSymbol gml:UomURI"/>
X	</simpleType>
X
X	<simpleType name="NilReasonEnumeration">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<union>
X			<simpleType>
X				<restriction base="string">
X					<enumeration value="inapplicable"/>
X					<enumeration value="missing"/>
X					<enumeration value="template"/>
X					<enumeration value="unknown"/>
X					<enumeration value="withheld"/>
X				</restriction>
X			</simpleType>
X			<simpleType>
X				<restriction base="string">
X					<pattern value="other:\w{2,}"/>
X				</restriction>
X			</simpleType>
X		</union>
X	</simpleType>
X
X	<simpleType name="doubleOrNilReason">
X		<annotation>
X			<documentation>anyURI is ommitted for testing purpose.
X			</documentation>
X		</annotation>
X		<union memberTypes="gml:NilReasonEnumeration double"/>
X	</simpleType>
X	<element name="float" type="gml:doubleOrNilReason"/>
X
X	<simpleType name="doubleOrNilReasonList">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<list itemType="gml:doubleOrNilReason"/>
X	</simpleType>
X	<element name="floatList" type="gml:doubleOrNilReasonList"/>
X
X	<complexType name="MeasureOrNilReasonListType">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<simpleContent>
X			<extension base="gml:doubleOrNilReasonList">
X				<attribute name="uom" type="gml:UomIdentifier" use="required"/>
X			</extension>
X		</simpleContent>
X	</complexType>
X	<element name="measureList" type="gml:MeasureOrNilReasonListType"/>
X
X	<complexType name="QuantityExtentType">
X		<annotation>
X			<documentation>same as GML</documentation>
X		</annotation>
X		<simpleContent>
X			<restriction base="gml:MeasureOrNilReasonListType">
X				<length value="2"/>
X			</restriction>
X		</simpleContent>
X	</complexType>
X	<element name="qext" type="gml:QuantityExtentType"/>
X
X	<element name="dummy">
X	  <complexType>
X	  <choice maxOccurs="unbounded">
X	    <element ref="gml:float"/>
X	    <element ref="gml:floatList"/>
X	    <element ref="gml:measureList"/>
X	    <element ref="gml:qext"/>
X	  </choice>
X	  </complexType>
X	</element>
X
X</schema>
SHAR_EOF
:
if test $? -ne 0
then ${echo} 'restore of simplified.xsd failed'
fi
fi
if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
  exit 1
fi
exit 0
