echo"[PASS] XPATH value /xep/header/status/text() ('$HEADER_STATUS') equals a defined status."
;;
*)
echo"[FAIL] XPATH value /xep/header/status/text() ('$HEADER_STATUS') does not equals a defined status (but should)."
VALIDATION_RESULT=1;
;;
esac
# 5. Check that /xep/header/type/text() (XPath) is defined in XEP-0001
# If the XEP number is less than 400, also accept some legacy values. To find which, see which you encounter in the XEP numbers below 400 :-).
echo"[INFO] implementation of validation of XPATH value /xep/header/type/text() ('$HEADER_TYPE') is pending!"
# 6. Check that /xep/header/approver/text() (XPath) is either Board or Council
case$HEADER_APPROVER in
Board | Council )
echo"[PASS] XPATH value /xep/header/approver/text() ('$HEADER_APPROVER') equals either 'Board' or 'Council'."
;;
*)
echo"[FAIL] XPATH value /xep/header/approver/text() ('$HEADER_APPROVER') does not equals 'Board' or 'Council' (but should)."
VALIDATION_RESULT=1;
;;
esac
# 7. Check that the version numbers in the revision blocks are descending (from top to bottom in the document)
echo"[INFO] implementation of validation version numbers in the revision blocks is pending!"
# 8. If the approver (see above) is Board, enforce that /xep/header/type is not Standards Track.
if["$HEADER_APPROVER"="Board"]
then
if["$HEADER_TYPE"="Standards Track"]
then
echo"[FAIL] XPATH value /xep/header/approver/text() ('$HEADER_APPROVER') is 'Board' but XPATH value /xep/header/type/text() is 'Standards Track' (it should not be)."
VALIDATION_RESULT=1;
else
echo"[PASS] XPATH value /xep/header/approver/text() ('$HEADER_APPROVER') is 'Board' and XPATH value /xep/header/type/text() is not 'Standards Track'."
fi
fi
# 9. Check that it uses the xep.xsl XML stylesheet.
echo"[INFO] implementation of xep.xsl XML stylesheet usage is pending!"
# 10. Check that it includes the correct legal notice (either by checking for the entity reference, or by checking the content)
echo"[INFO] implementation of inclusion of correct legal notice is pending!"
echo""
if[$VALIDATION_RESULT=0]
then
echo"No issues found (but not all checks are implemented).";