W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2004

xml xsl and JavaServer Pages Oh my!

From: George Hester <hesterloli@hotmail.com>
Date: Sun, 29 Feb 2004 14:52:24 -0500
To: www-xsl-fo@w3.org
Message-ID: <c1tftp$akf$1@sea.gmane.org>

I am using an example in the Standard Tag Library which is available from Jakarta.  It's a pretty simple jsp which requires a xml and an xsl.  I have a xml which uses a dtd, entities, and an xsl.  When I use the styledemo.jsp example hooking up to my xml and xsl everything displays fine as it should.  EXCEPT this in the xsl:

<img><xsl:attribute name="src"><xsl:value-of select="unparsed-entity-uri(MAP/@Place)"/></xsl:attribute></img>

What should happen here is that an image yo-yo.gif which is in the xml like so:

Partial xml (lst3_7.xml):

<?xml:stylesheet type="text/xsl" href="Lst3_7.xsl"?>
 <SCRIPT language="javascript"><![CDATA[
 window.status = 'My XML Picture Show';

Partial dtd (Lst3_7.dtd):

 <!NOTATION gif SYSTEM "<mimetype>Content-Type=image/gif">
 <!ENTITY Image1 SYSTEM "yo-yo.gif" NDATA gif>

Note the image name is actually in the dtd.

Anyway this works fine if the xml is accessed directly of course using Microsoft Internet Explorer 5.5+  But using the tag libriary I mentioned earlier the result for the images is this:


Note there are two issues here:

1) Why the jndi protocol?

2) why only one "/"

Needless to say the image does not show.  If I access the xml directly then the iamge shows:


or on the web as so:


George Hester
Received on Sunday, 29 February 2004 17:20:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:00 UTC