// 'width' attribute - required
s = element.getAttributeNS(null, SVG_WIDTH_ATTRIBUTE);
float w;
if (s.length() == 0) {
throw new BridgeException(ctx, element, ERR_ATTRIBUTE_MISSING,
new Object[] {SVG_WIDTH_ATTRIBUTE});
} else {
w = UnitProcessor.svgHorizontalLengthToUserSpace
(s, SVG_WIDTH_ATTRIBUTE, uctx);
}
// 'height' attribute - required
s = element.getAttributeNS(null, SVG_HEIGHT_ATTRIBUTE);
float h;
if (s.length() == 0) {
throw new BridgeException(ctx, element, ERR_ATTRIBUTE_MISSING,
new Object[] {SVG_HEIGHT_ATTRIBUTE});
} else {
h = UnitProcessor.svgVerticalLengthToUserSpace
(s, SVG_HEIGHT_ATTRIBUTE, uctx);
}