Convert HTML processing to XSLT 2.0 #1507