W3C home > Mailing lists > Public > www-validator@w3.org > February 2005

Re: Validator Good, Link Bad

From: David Dorward <david@dorward.me.uk>
Date: Thu, 17 Feb 2005 09:33:26 +0000
To: "Redix - Brandt W. Tierney" <redixbwt@sbcglobal.net>
Cc: www-validator@w3.org
Message-ID: <20050217093326.GA26332@us-lot.org>

On Wed, Feb 16, 2005 at 10:22:57AM -0600, Redix - Brandt W. Tierney wrote:

>    I just completed trying the html validation on Opera for the first time. 
>    I was happy that my XSLT passed the first time.  When done, it asked if I
>    wanted to put a link:

<snip Valid HTML example>

>    The only problem I have is that the link is incorrect, as it the img tag
>    is not closed.  Someone should validate the tag, LOL J :

For some reason the validator thinks that your code is HTML 4.01. As
you haven't provided a URL I'm going to have to make some
assumptions. Are you running the aforementioned XSLT over some XML on
the server in order to generate some HTML? If so, then the validator
is quite correct - you gave it HTML, so it gives its code example in
HTML. It has no way of knowing that the HTML it recieved is the result
of a server side transformation of some other markup language. The XML
style self-closing tag syntax is incorrect in HTML.

-- 
David Dorward                                      http://dorward.me.uk
Received on Thursday, 17 February 2005 09:33:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT