Number d = args[0].getNumber();
if (d == null) {
throw new PropertyException("Non numeric operand to "
+ "proportional-column-width() function.");
}
PropertyList pList = pInfo.getPropertyList();
if (!"fo:table-column".equals(pList.getFObj().getName())) {
throw new PropertyException("proportional-column-width() function "
+ "may only be used on fo:table-column.");
}
Table t = (Table) pList.getParentFObj();
if (t.isAutoLayout()) {
throw new PropertyException("proportional-column-width() function "
+ "may only be used when fo:table has "
+ "table-layout=\"fixed\".");
}