Xalan extensions supporting Tables
$Id: Table.java,v 1.4 2005-08-30 08:14:58 draganr Exp $
Copyright (C) 2000 Norman Walsh.
This class provides a
Xalan
implementation of some code to adjust CALS Tables to HTML
Tables.
Column Widths
The adjustColumnWidths method takes a result tree
fragment (assumed to contain the colgroup of an HTML Table)
and returns the result tree fragment with the column widths
adjusted to HTML terms.
Convert Lengths
The convertLength method takes a length specification
of the form 9999.99xx (where "xx" is a unit) and returns that length
as an integral number of pixels. For convenience, percentage lengths
are returned unchanged.
The recognized units are: inches (in), centimeters (cm),
millimeters (mm), picas (pc, 1pc=12pt), points (pt), and pixels (px).
A number with no units is assumed to be pixels.
Change Log:
- 1.0
Initial release.
author: Norman Walsh author: ndw@nwalsh.com version: $Id: Table.java,v 1.4 2005-08-30 08:14:58 draganr Exp $ |