<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Steve,<br>
<br>
The correct way to edit the image reference is with "&amp;"'s escaped
as "&amp;amp;" or "<font size="+1">%26</font>"'s so that the resulting
XML is well formed.<br>
Oxygen relies very much on the image extension to see if an image is
supported or not.<br>
In your case the image URL is just a PHP or CGI script delivering an
image content so Oxygen cannot use the extension information and
reports the image as unknown content type.<br>
The web browser probably applies an automatic detection process to know
what type the embedded image belongs so that is probably why the DITA
Open Toolkit XHTML transformation works.<br>
On the other hand, the PDF transformation which also seems to rely on
file extensions does not process the image either.<br>
<br>
We'll try in the future to improve the image type detection in the
Oxygen Author page.<br>
In the meantime there is a workaround, in the image URL add an
additional parameter with an image extension based on the returned
image content type.<br>
Example (if the image is JPEG):<br>
<a moz-do-not-send="true"
 href="https://www.mysite.com/image/button?color=orange&amp;OwnerId=JoeSmith&amp;size=large&amp;amp;background=white">https://www.mysite.com/image/button?color=orange&amp;amp;OwnerId=JoeSmith&amp;amp;size=large&amp;amp;background=white</a>&amp;amp;extension=.jpg<br>
<br>
Oxygen will use the last part of the URL to determine the extension and
should display the image in the Author.<br>
At the same type the script which interprets the GET parameters should
not mind an extra parameter.<br>
<br>
Regards,<br>
Radu<br>
<pre class="moz-signature" cols="72">-- 
Radu Coravu
&lt;oXygen/&gt; XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
<br>
<br>
On 1/29/2010 8:59 PM, Steve Matlock wrote:
<blockquote
 cite="mid:486770971001291059q709807cdkeb508e8905bbc9af@mail.gmail.com"
 type="cite">I'm using Oxygen 10.x<br>
  <br>
I have image urls that our users use that look like this:<br>
"<a moz-do-not-send="true"
 href="https://www.mysite.com/image/button?color=orange&amp;OwnerId=JoeSmith&amp;size=large&amp;amp;background=white">https://www.mysite.com/image/button?color=orange&amp;OwnerId=JoeSmith&amp;size=large&amp;amp;background=white</a>"<br>
  <br>
When these URLs are opened, they pull in the right button based upon
the owner, color, size, and background.<br>
  <br>
If I try to use this image URL as-is in the image tag, I get an error
because the "&amp;" means the following word is treated as an HTML
entity name such as &amp;copy or &amp;trade.<br>
  <br>
So I changed the "&amp;" in the URL to "&amp;amp;"<br>
  <br>
Now I don't get an error, but I also don't get an image.<br>
  <br>
Is there a way to modify this URL so it retrieves the right image using
the syntax I'm using? I can't point to an image without using these
parameters.<br clear="all">
  <br>
-- <br>
Steve Matlock<br>
  <a moz-do-not-send="true" href="http://nohomeformyblog.blogspot.com/">http://nohomeformyblog.blogspot.com/</a><br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
  </pre>
</blockquote>
<br>
<br>
</body>
</html>