title: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
body: <p>In the following code:</p>
  
  <pre><code>private Document transformDoc(Source source) throws TransformerException, IOException {
      TransformerFactory factory = TransformerFactory.newInstance();
  
      Transformer transformer =
              factory.newTransformer(new StreamSource(xsltResource.getInputStream()));
      JDOMResult result = new JDOMResult();
      transformer.transform(source, result);
      return result.getDocument();
  }
  </code></pre>
  
  <p>I get this exception:</p>
  
  <pre><code>java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
  </code></pre>
  
  <p>The XHTML I'm translating over via xsl is:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/&gt;
    &lt;title&gt;Terms and Conditions&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div&gt;Test Content&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How do I stop the xalan transformer from phoning home?</p>