Re: [xsl] UnknownHostException Error

Subject: Re: [xsl] UnknownHostException Error
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 2 Aug 2011 21:21:08 +0100
On 2 August 2011 20:23,  <russurquhart1@xxxxxxxxxxx> wrote:
>
> Hi,
>
> I am trying to use an .xsl to parse an html file, that was converted to
xhtml via xmltidy. The mark4.xhtml file i have starts like the following:
>
>  <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml1";>

Do you really want that trailing 1?  The xhtml namespace is
"http://www.w3.org/1999/xhtml";


> <head>
> ...
>
>
> The html2docbook.xsl i am trying to use, starts like the following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
>
> <xsl:output method="xml" indent="no"/>
> ...
>
>
> When i try and run this i get the following:
>
> Error
>  java.net.UnknownHostException: www.w3.org
>
>
> I'm sure this has to do with the namespaces i'm using, but i can't seem to
resolve this. If anyone can help or give a pointer, that would be great!

Guessing, but try and hit the url manually, you might have been
banned.  If so, take local copies of the dtd and use a catalog.




--
Andrew Welch
http://andrewjwelch.com

Current Thread