Subject: Re: [xsl] Newbie question cont--transformation chokes on img tag From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Sat, 25 May 2002 23:18:42 +0200 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Newbie question cont--transfo, Grant-Kathryn | Thread | [xsl] JAXP Saxon Extensions and Jav, Mark R. Diggory |
[xsl] Re: Re: xsl:call-template nam, Dimitre Novatchev | Date | [xsl] name space troubles, Jakub . Valenta |
Month |