473,698 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opera -- displaying images in XML documents

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
Jul 21 '05 #1
5 3096


Jelks Cabaniss wrote:

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 picture: <figure
url="http://emblems.let.uu. nl/emblems/html/navicon/rd-small.gif"/></p> 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?


I have run some tests with different Opera 7 versions on Windows XP and
7.11 displays the image referenced, later version I have tested (7.20,
7.50, 8.00 Beta) do not display the image but the attribute value instead.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 21 '05 #2
Martin Honnen wrote:
figure { /* this fails! */
-o-replace: attr(url);
} I'm using Opera 7.54. Did -o-replace stop working somewhere along
the line, or am I using it incorrectly?
I have run some tests with different Opera 7 versions on Windows XP
and 7.11 displays the image referenced, later version I have tested
(7.20, 7.50, 8.00 Beta) do not display the image but the attribute
value instead.


Thanks for confirming this, Martin.

Interestingly, nobody in the Opera newsgroups ever replied about this,
nor has their documentation at

http://www.opera.com/docs/specs/#xml-css-link

ever been updated to show this. It would be nice to have had
consistancy in the 7.x series, or at least some post-7.11 documentation
as to why the behavior of -o-replace had been changed.
/Jelks
Jul 21 '05 #3
*Jelks Cabaniss*:

xref { /* this works! */
-o-link: attr(url);
-o-link-source: current;
}

figure { /* this fails! */
-o-replace: attr(url);
}


Have you tried

-o-replace: url(attr("url") );

or

-o-replace: attr("url", url);?

--
"Censorship , like charity, should begin at home;
but, unlike charity, it should end there."

Clare Booth Luce
Jul 21 '05 #4
Christoph Paeper wrote:
Have you tried

-o-replace: url(attr("url") );

or

-o-replace: attr("url", url);?


I hadn't before, but I just tried them. Still no picture. In fact,
nothing. Plain attr(url) shows the attribute value (the string), but
quoting "url" -- and as in your second example -- ends up blank.

Is -o-replace working for use in XML documents? If so, what version of
Opera are you using?

Thanks,

/Jelks

Jul 21 '05 #5
I wrote (too quickly):
Is -o-replace working for use in XML documents?


Make that "for you", not "for use"...
/Jelks
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1787
by: Phong Ho | last post by:
Hi everyone, I am using PHP and MySQL to create a dynamic website. Using MS Internet Explorer to test my website, everything works fine. When I use Netscape and Opera to test my work, I have problems to display images. Anyone has seen this problem before? I use PHP, MySQL and Apache on WinXP. Thanks
24
4675
by: Mark Sargent | last post by:
Hi All, response.write FilePath gives this path, ImageName.jpeg but the image(s) doesn't display in the below code. What am I missing..? Cheers. <%Response.Write FilePath%> Original Image:<BR> <IMG SRC="<%=Server.MapPath("ImageUploads\") & FilePath%>"><P> Thumbnail (50% reduction):<BR>
4
1652
by: alainpoint | last post by:
Hi, I have a simple question. How do you get Opera to work with SVG and Javascript? Can someone point me to a site where the two work together? Many thanks Alain
0
1724
by: Fronky | last post by:
Hope someone can help. I am still learning, so no laughing please. I am displaying records from a database using Response.Write(""); instead of the usual datagrid method. I am doing it this way to achieve the result I require. However. Since I have added a button to the screen, and have had to include the "object sender, System.EventArgs e", the Response.Write code has been appearing within the Documents_Table(null,null); tag on the...
8
3298
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a picture. The ctrl in the form only displays the filename of the picture. The underlying table, when opened in table view, shows the word "package" in the field. When I double-click on either it opens the picture, but I can't get it to display. ...
2
5693
by: André Wagner | last post by:
I'm trying to get all the "divs" that have a given NAME using getElementsByName(). For example, the following code: <html> <head> <script type="text/javascript"> function on_load() { var pages = document.getElementsByName("name");
2
9469
by: sj | last post by:
I am just learning to use Tkinter and am having problems displaying image files. I am able to display an image using tutorials (such as http://www.daniweb.com/code/snippet296.html) But when I try my own code all I get is an empty widget. What is wrong with the following program? from Tkinter import *
2
1381
by: jbweb04 | last post by:
Hello! I've created the following web site (http://www.vanpratthomes.com) and have found that the background in the right hand column and the bottom row with the company address, phone, etc. are not displaying as intended in Netscape 7.2 and Opera 8.51. Everything looks as it should in IE 6. (I realize I'm not using the latest version in all these browsers, but figure many other people aren't either.) This is the code used in the right...
13
7934
by: limelites | last post by:
In IE7, FF, Chrome and Safari, everything looks great but in Opera the display of the additional images in my product page looks awful. This is a site that does attract foreign visitors who do use Opera, so it does matter. Opera Version 9.64 Platform Vista Zen Cart 1.3.8a Site URL is www.limelites.co.uk
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7738
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.