In message <[log in to unmask]>, Brian King <[log in to unmask]>
>This query is IE5 specific. Does it support images being defined as
>entities. I am looking for an alternative to the <html:img> tag.
>Here is an example:
> <!ENTITY image1 SYSTEM "01.bmp" NDATA BMP>
>(Then embedding entity in an Element in the XML file)
> <picture entity="image1"> </picture>
>This code brings up the following error:
>"Declaration 'Image1' contains reference to undefined notation 'BMP'"
>Also applies to .JPG and .GIF notation.
To get this to parse you will need a declaration for each notation,
<!NOTATION BMP SYSTEM "">
However, once your XML is valid you still have the challenge of
displaying your images in IE5 (assuming that you want to!).
IE5's XSL requires you to transform to HTML, so you end up with
<html:img> whether you like it or not. I don't think that it provides a
facility for retrieving the SYSTEM identifier from an attribute value -
the closest I got was:
<IMG><xsl:attribute name="src"><xsl:value-of select="@entity"/>.bmp</x
which works because the 'entity' values are the same as the filenames in
SGML/XML and Museum Information Consultancy
[log in to unmask]