Image rendering in Author mode for XML files
Posted: Wed Sep 28, 2011 5:15 pm
Hi,
I have got an XML file which contains image elements which I dubbed "Bild" (German for "image") with a src-attribute that contains the name of the png file which is located in the same directory as my XML file.
When I switch to Author Mode, only the file name of the PNG file is displayed as text, but it's not loaded and displayed.
My CSS looks like this:
When I try to insert images in HTML files, they are displayed correctly. Is there a method to achieve that for XML files as well?
I have got an XML file which contains image elements which I dubbed "Bild" (German for "image") with a src-attribute that contains the name of the png file which is located in the same directory as my XML file.
Code: Select all
<Bild src="notebook.png"/>
My CSS looks like this:
Code: Select all
Bild {
display:block;
Content:attr(src);
}