Re: [xsl] Image Tage Bug

Subject: Re: [xsl] Image Tage Bug
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Sat, 5 Nov 2005 13:59:44 +0000
On 11/5/05, G Venkata Phanindra <phani_five@xxxxxxxxxxx> wrote:
> Hi..
> I am a newbie to XSL and i am trying to convert an xml
> file into an HTML ...
> I need to add an Image in the HTML,i am defining HTML
> image tag
>
>      <img src=" " alt=" " />
>
> No problem with HTML output. but when i submit this to
> an XHTML validator its
> giving OMIT TAG error as this is converted as
>
>           <img src= " " alt=" ">
>
>  the / is missing how can i handle this.
>
> Code
>
> <?xml version='1.0' encoding='utf-8' ?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> <xsl:output method="html" version="1.0"


You've specified output method 'html', so you probably want to submit
it to a HTML validator instead of an XHTML validator.

Current Thread