else
needsTidy = true;
if (needsTidy)
{
SAXFactoryImpl tagSoupSaxFactory = new SAXFactoryImpl();
tagSoupSaxFactory.setNamespaceAware(true);
SAXParser tagSoupParser = tagSoupSaxFactory.newSAXParser();
TransformerFactory tf = TransformerFactory.newInstance();
if (!(tf instanceof SAXTransformerFactory))
throw new MojoExecutionException("Require a SAX transformer factory for HTML to XHTML conversion but could not get one from " + tf.getClass().getCanonicalName());