Transition to Docbook5.0 Series (2)-Add links to image

Source: Internet
Author: User

Adding a picture inside the DocBook is simple, using the <mediaobject> element, which also includes objects such as processing video, audio, and so on. Okay, here's a look at the example:

<mediaobject>
        <imageobject>
            <imagedata fileref="images/img1.png"/>
        </imageobject>
    </mediaobject>

But there's nothing you can do to add links <mediaobject> elements to the picture.

Check the docbook5.0 document, find a link to add a replacement element <inlinemediaobject> but one thing to be aware of is that elements must be <link> fit to have a link capability

<para>
        <link xlink:href="http://java.sun.com/docs/books/tutorialJWS/uiswing/learn/ex6/CelsiusConverter.jnlp">
        <inlinemediaobject>
            <imageobject>
                <imagedata fileref="images/jws-launch-button.png"/>
            </imageobject>
            <textobject>
                <phrase>Java™ Web Start</phrase>
            </textobject>
        </inlinemediaobject>
        </link>
    </para>

Ok, so the picture can be connected with it. Let's see a picture.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.