This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie question cont--transformation chokes on img tag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]