This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Newbie question cont--transformation chokes on img tag
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 25 May 2002 23:18:42 +0200
- Subject: Re: [xsl] Newbie question cont--transformation chokes on img tag
- References: <113A7A0D1F47D511B92E00D0B7E03DAB0235B53E@pmail02.vikingfreight.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Grant-Kathryn@vikingfreight.com wrote:
> I've come across a new glitch in transforming my xhtml file. It was doing
> fine until I added an img tag (right before </body>)--then the
> transformation resulted in a blank screen. Files appear below. Can anyone
> tell me why this is happening and how to fix it?
...
> <img src="image85.gif" />
The transformation works if the DOCTYPE declaration is deleted
from the XHTML file. This indicates some kind of validation
problem.
Indeed, some Xerces gives:
h.xml:25:22: [Error] Attribute "alt" is required and must be specified for element type "img".
This means you'll have to use
<img src="image85.gif" alt="some descriptive text" />
Though luck that MSXML can't be bothered with proper error
reporting if run from within the browser. The real problem
is that virtually every other XSLT processor runs the parser
with validation turned off, so that the problem is hard to
track down for unsuspecting users.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list