[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Newbie question cont--transformation chokes on img
Subject: Re: Newbie question cont--transformation chokes on img tag
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 25 May 2002 23:18:42 +0200
|
Grant-Kathryn@xxxxxxxxxxxxxxxxx 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|