[oXygen-user] areaspec feature in docbook

Achim Oehlenschlaeger
Fri Sep 8 04:06:22 CDT 2006


Hello,
I'm using Oxygen 7.2 and want to use the areaspec feature to define 
linkable
areas in a graphics object.
I tried the example from 
http://www.docbook.org/tdg/en/html/mediaobjectco.html
but don't get the desired result.

I did read and follow the readme file in:
 ...\Oxygen XML Editor 7.2\frameworks\docbook\xsl\extensions

I tried the Docbook transformation scenario as delivered with oxygen 
first,
than I also added the DocBook extension to the scenario, than I switched 
to Xalan
(I also switched the extension) but the result is always the same as shown 
below.
Thanks,
Achim


Input:
------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mediaobjectco PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<mediaobjectco>
    <imageobjectco>
        <areaspec units="calspair">
            <areaset id="oneway" coords="">
                <area id="oneway1" coords="300 400"/>
                <area id="oneway2" coords="325 340"/>
            </areaset>
            <area id="myhouse" coords="425 590"/>
        </areaspec>
        <imageobject>
            <imagedata 
fileref="http://maps.example.com/EARTH?USA?MA?01007"/>
        </imageobject>
    </imageobjectco>
</mediaobjectco>


Output:
-------
<html>
    <head>
        <META http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title></title>
         <meta content="DocBook XSL Stylesheets V1.70.1" name="generator">
    </head><body bgcolor="white" text="black" link="#0000FF" 
vlink="#840084" alink="#0000FF">
        <div class="mediaobjectco">
            <img border="0" usemap="N10003" 
src="http://maps.example.com/EARTH?USA?MA?01007">
                <map name="N10003"><area shape="rect" 
coords="NaN,NaN,NaN,NaN">
                    <area shape="rect" coords="NaN,NaN,NaN,NaN">
                        <area shape="rect" coords="NaN,NaN,NaN,NaN">
                </map>
        </div>
    </body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20060908/41b49dd0/attachment.html 


More information about the oXygen-user mailing list