On 10/03/2017 05:13 PM, Jeff Hooker wrote: > > > > When a DITA author uses XMLmind's automatic sizing tool (i.e. the red > boxes which appear on the corners and sides of the image) to set the > image's size, XMLmind sets just one attribute (width).
The behavior of XMLmind XML Editor is correct. When you specify just the width of an image, the height is supposed to be automatically inferred in order to preserve the aspect ratio of the image. > When producing > output for Javahelp, both size attributes (height and width) must be > set if the image is to be displayed in anything other than its native size. That's right. > How am I expected to use the single attribute defined by the sizing > tool to infer the remaining attribute value? I've been experimenting > but have yet to deduce an pattern. > You should not attempt to do this. Please leave just one dimension attribute set for the image. This problem is really specific to Javahelp. There is no such problem for any other output format (at least when using our in-house ditac, XMLmind DITA Converter, http://www.xmlmind.com/ditac/). Therefore it's the tool you use to convert DITA to Javahelp which should add a workaround for this Javahelp bug. I would recommend that you report this as an issue to the developer of the tool you use to convert DITA to Javahelp (DITA OT?). JRH>>: We've been using XMLmind up until now, and "addressed" the problem by removing *all* sizing information functions from the XSL. I've finally got the OT producing acceptable Javahelp, however, and wanted a better solution now that I can automate the bulk extraction of content and its compilation into Javahelp. Previously I just told the engineers to import the files in the size they wanted them reproduced, but this is a poor system since we publish to multiple targets. What I'm going to end up doing is adding a java class to the OT to extract file dimension information and access it from XSLT, but I'll still need to understand the relevance of the single width value so that I can scale the height and width appropriately. I was expecting the default XMLmind assigned value to be just an arbitrary value like "1000" and then expand or reduce that depending on the user's actions, but that does not appear to be the case. How is the value set when an author first "tweaks" the size of a figure? Thanks, Jeff. -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support