declare markup inheritance method in document-context class