Adding image to excisiting code

Questions about XML that are not covered by the other forums should go here.
Arjan
Posts: 2
Joined: Thu Apr 08, 2010 3:29 am

Adding image to excisiting code

Post by Arjan » Thu Apr 08, 2010 3:31 am

I need to add an image to an excisting code , so is there a complete code to like copy paste?. I really need it badly and can´t seem to work it out.
Any help is welcome , thank you

adrian
Posts: 2659
Joined: Tue May 17, 2005 4:01 pm

Re: Adding image to excisiting code

Post by adrian » Thu Apr 08, 2010 10:56 am

Hi,

What type of document are you using? XHTML, DocBook, something else?

For an image with the name "image.jpg" the code for (X)HTML looks like this:

Code: Select all

<img src="image.jpg"/>
For DocBook it looks like this:

Code: Select all

<mediaobject>
<imageobject>
<imagedata fileref="image.jpg"/>
</imageobject>
</mediaobject>
If it's a common document type(XHTML, DocBook, DITA, TEI) in Oxygen all you would have to do is switch to Author mode and use the Insert image action from the toolbar.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Arjan
Posts: 2
Joined: Thu Apr 08, 2010 3:29 am

Re: Adding image to excisiting code

Post by Arjan » Thu Apr 08, 2010 6:00 pm

This is part of the code

<link linkType="readMoreLink">
<item name="title"><![CDATA[
Read more 3
]]></item>
<item name="linkText"><![CDATA[
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris.
<br><br>
Donec accumsan malesuada orci. Donec sit amet eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<br><br>
Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus.
<br><br>
<font color="#ffffff"><a href="asfunction:link">info@companyname.com</a></font>
]]></item>
</link>

Where do i put a code to see a image in this section and where will it popup? the position? Thank for your help

adrian
Posts: 2659
Joined: Tue May 17, 2005 4:01 pm

Re: Adding image to excisiting code

Post by adrian » Mon Apr 12, 2010 9:05 am

Hi,

This all depends on your document type and I can't recognize anything from your snippet so I'm guessing it's a custom document type. That means I can't possibly know what the image element looks like. This should be in the document's DTD/schema.
Do you have a DTD(<!DOCTYPE ...) associated with this document?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply