LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: Images defined as Entities
From: Richard Light <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Wed, 21 Apr 1999 14:42:05 +0100
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (46 lines)


In message <[log in to unmask]>, Brian King <[log in to unmask]>
writes
>Hello,
>
>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:
>(In DTD)
>
>        <!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,
e.g.:

<!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:

<xsl:template match="picture">
  <IMG><xsl:attribute name="src"><xsl:value-of select="@entity"/>.bmp</x
sl:attribute></IMG>
  <xsl:apply-templates/>
</xsl:template>

which works because the 'entity' values are the same as the filenames in
my application.

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy
[log in to unmask]

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager