Re: Validator Good, Link Bad

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 UTC