472,977 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,977 software developers and data experts.

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 3060


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
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...
24
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...
4
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
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...
8
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...
2
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...
2
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...
2
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...
13
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.