[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] About client-side imagemap generation
version 1.69.1 does implement image maps, with limitations. The main limitations are that you must use units="calspair" and you must not scale the image using the scaling attributes. The code that implements it in the stylesheet is in html/graphics.xsl, in the big template named 'process.image', starting with this: <xsl:if test="$tag = 'img' and ../../self::imageobjectco and not($scaled)"> <map name="{generate-id(../..)}"> <xsl:for-each select="../../areaspec//area"> I've not used it myself so I can't speak to how well it works. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Tomas HAJEK" <tomas.hajek@st.com> To: "Costin Stroie" <cstroie@bitdefender.com> Cc: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, April 25, 2006 2:35 AM Subject: Re: [docbook-apps] About client-side imagemap generation > Costin Stroie wrote: > >> First, let me say I've been waiting for long for this feature and I was >> very happy when I found it was implemented. I must thank to all of you >> for it. > > Which set of stylesheets implements this feature? Those standard > docbook-xsl ones? Latest release is 1.69.1 and I cannot find this > functionality there. > > regards, > > Tomas > >> >> But more problems came out. >> >> 1. I have not trully understood why calspair coordinates should express >> percentages. But I am ready to accept it. >> >> 2. When generating htmls, as Bob said, there is no need for the images >> to be present. They must be present when the resulted html is to be >> loaded in some browser. But for creating the imagemap with the current >> xsl stylesheets, the image size must be known in order to compute the >> percentual values of the coordinates. Now we have 2 options: use only >> nominal image sizes or use some processor that supports extensions and >> can get those sizes. Is xsltproc supported? >> >> The question is where is the portability since you are forced to have >> the images present and in the final location and to use the Java based >> xalan or saxon processors. >> >> Why not, at least, let us manually specify the sizes. If you specify >> them, you will get the "Warning: imagemaps not supported on scaled >> images". >> > > -- > _______________________________________________________________________ > Tomas Hajek > /_________/ Design engineer > / ___ __ Integrated Circuits for Car Radio Applications > /\ ( / / / /__) \/ / / / /_/ STMicroelectronics > IBC Building E-mail: tomas.hajek@st.com > Pobrezni 3 Work : +420 222 336 137 > 186 00 Praha 8 Tina : 139 6137 > Czech Republic Fax : +420 222 336 116 > _______________________________________________________________________ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]