perceptive document type attribute script