added XSD function