- From: George Hester <hesterloli@hotmail.com>
- Date: Sun, 29 Feb 2004 14:52:24 -0500
- To: www-xsl-fo@w3.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"?> <!DOCTYPE EMAILLIST SYSTEM "Lst3_7.dtd"> <EMAILLIST> <SCRIPT language="javascript"><![CDATA[ window.status = 'My XML Picture Show'; ]]></SCRIPT> &emailA; &emailB; </EMAILLIST> 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: jndi:/localhost/jsp_files/yo-yo.gif 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: file:///C:/Inetpub/WebDAV/WROX/ch03/yo-yo.gif or on the web as so: http://localhost/web-dav/wrox/ch03/yo-yo.gif -- George Hester __________________________________
Received on Sunday, 29 February 2004 17:20:34 UTC