Page 1 of 1

Unexpected element

Posted: Tue Oct 11, 2022 3:48 pm
by afumo
I get this https://github.com/AFumo/FileUpload/blo ... pected.PNG error when I use Image Map Editor to draw a box around an image. How do I get around it?

Re: Unexpected element

Posted: Wed Oct 12, 2022 7:40 am
by Radu
Hi,

The DITA 1.3 specification allows adding an <image> inside a <cmd> but not an <imagemap>:
https://www.oxygenxml.com/dita/1.3/spec ... cmltc__cmd
So this is why Oxygen's validation reports that problem, you cannot have an imagemap inside cmd.
Maybe you could add the imagemap after the <cmd> in an <info> element?

Code: Select all

<step>
                <cmd></cmd>
                <info>
                    <imagemap id="imagemap_any_tvt_dvb">
                        <image id="image_bny_tvt_dvb"/>
                        <area>
                            <shape/>
                            <coords/>
                            <xref/>
                        </area>
                    </imagemap>
                </info>
            </step>
Regards,
Radu

Re: Unexpected element

Posted: Thu Oct 13, 2022 4:26 pm
by afumo
Thanks for your help.
I moved it from <cmd> and the error message went away.

Re: Unexpected element

Posted: Fri Oct 28, 2022 6:04 pm
by afumo
The error has gone but the boxes are not showing up in the .pdf output
What am I missing?

Re: Unexpected element

Posted: Mon Oct 31, 2022 9:33 am
by julien_lacour
Hello,

If you are using the DITA Map PDF - based on HTML5 & CSS transformation scenario, you need to set the "show.image.map.area.shapes" parameter (in the Parameters tab of the scenario) value to 'yes'.

Regards,
Julien

Re: Unexpected element

Posted: Sun Nov 06, 2022 7:16 pm
by afumo
Hi Julien,
Thanks for your help.
It took me some time to figure out where the parameter tab was