Build up reading of document, and outrule deprected stylesheet code