I asked this in two of the Opera newsgroups, but except for one person
who advised me to just use namespaced HTML elements in my XML, there
were no replies. Has anybody here successfully used Opera's CSS
extension "-o-replace" to display images in generic XML? See below:
---------
Opera has some nice (in theory) CSS extension to enable linking and
embedding in XML ...
http://www.opera.com/docs/specs/#xml-css-link
But the image embedding doesn't work. Take this snippet from a test
TEIlite document ...
....
<p>Here's a link to the <xref
url="EPU.http://emblems.let.uu.nl/emblems/html/">EPU</xref>.</p>
<p>Here's a picture: <figure
url="http://emblems.let.uu.nl/emblems/html/navicon/rd-small.gif"/></p>
....
With this CSS applied ...
....
p {
display: block;
}
xref { /* this works! */
-o-link: attr(url);
-o-link-source: current;
color: blue;
text-decoration: underline;
}
figure { /* this fails! */
-o-replace: attr(url);
}
....
The linking element (<xref>) works fine, but the image embedding
(<figure>) doesn't. What's wrong with "-o-replace"? I even tried
"content"[1] instead of "-o-replace", but it didn't work either.
I'm using Opera 7.54. Did -o-replace stop working somewhere along the
line, or am I using it incorrectly? What it does now is display the
actual URL string on the page, instead of the image that URL is
supposed to be pointing to. Does anybody here have images successfully
displaying in generic (non-XHTML) XML documents?
Thanks,
[1]: http://people.opera.com/howcome/2000...ink-nov-6.html
/Jelks