xsl-list
[Top] [All Lists]

Re: [xsl] UnknownHostException Error

2011-08-02 15:21:21
On 2 August 2011 20:23,  <russurquhart1(_at_)verizon(_dot_)net> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>