renevanh
05-11-2007, 09:27 AM
I got a little problem with the unparsed-entity-uri function.
In my .xml file, I defined an image as an entity:
<!NOTATION jpeg SYSTEM "">
<!ENTITY afbeelding1 SYSTEM "result.jpg" NDATA jpeg>
Somewhere in my xml I call this image, and in my xsl stylesheet, I want to retrieve the uri.
<img scr="{unparsed-entity-uri(efdgnl/recept/afbeelding/extref/@href)}"/>
It returns a value which is the url of the image:
file:/C:/Test/result.jpg
The problem is: neither IE of FF show this picture. Usually, FireFox uses file:///c:/Test/result.jpg to call local files with an absolute path, but it should work with file:/c:/Test/result.jpg
The question is: how do I get my image in shown in my xhtml page?
Is there another way then the unparsed-entity-uri() function, or do I have to add something in the xsl stylesheet?
René
In my .xml file, I defined an image as an entity:
<!NOTATION jpeg SYSTEM "">
<!ENTITY afbeelding1 SYSTEM "result.jpg" NDATA jpeg>
Somewhere in my xml I call this image, and in my xsl stylesheet, I want to retrieve the uri.
<img scr="{unparsed-entity-uri(efdgnl/recept/afbeelding/extref/@href)}"/>
It returns a value which is the url of the image:
file:/C:/Test/result.jpg
The problem is: neither IE of FF show this picture. Usually, FireFox uses file:///c:/Test/result.jpg to call local files with an absolute path, but it should work with file:/c:/Test/result.jpg
The question is: how do I get my image in shown in my xhtml page?
Is there another way then the unparsed-entity-uri() function, or do I have to add something in the xsl stylesheet?
René