This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] contentwidth attribute not transformed correctly


Hi,

I'm seeing a strange 'feature' of SAXON. When I process a docBook file,
the contentwidth attribute of the imageobject element is altered when I
process the file with the html/docBook.xsl.

My setup:

I tried both SAXON 6.5.2 and 6.5.3, running on a Mac OS X (10.26), and
I get the same results from XMLMind's XXE editor (which also uses SAXON,
IIRC)
docBook 4.2 DTD
docBook XSL ver 1.61.3

The contentwidth="740" is transformed into width="739.9999999999999".
Strangely, the contentdepth="433" transforms correctly to height="433".

I checked the FAQ's, and googled this issue, to no avail. Any ideas?

XML source:

<figure id="hr-rpt-commit-f01">
  <title>Commitment Report</title>

  <mediaobject>
    <imageobject>
      <imagedata contentdepth="433" contentwidth="740"
fileref="../image-files/hr-rpt-commit-f01.gif" format="GIF" />
    </imageobject>
  </mediaobject>
</figure>

HTML from XSL transformation:

<div class="figure">
  <a name="hr-rpt-commit-f01"></a>
  <p class="title"><b>Figure&nbsp;1.1.&nbsp;Commitment Report</b></p>
  <div class="mediaobject">
    <img src="../image-files/hr-rpt-commit-f01.gif"
width="739.9999999999999" height="433" alt="Commitment Report">
  </div>
</div>

Cheers,


Chris Johnson

Web Developer
Capilano College

604.986.1911 ext. 3455
cjohnson@capcollege.bc.ca 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]