Adding image to excisiting code
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Adding image to excisiting code
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:
For DocBook it looks like this:
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
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"/>
Code: Select all
<mediaobject>
<imageobject>
<imagedata fileref="image.jpg"/>
</imageobject>
</mediaobject>
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Thu Apr 08, 2010 3:29 am
Re: Adding image to excisiting code
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
<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
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Adding image to excisiting code
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service