String pts = elt.getAttributeNS(null, ATTR_POINTS);
if (pts.length() == 0) {
throw new MissingAttributeException(
Messages.formatMessage("polyline.points.required", null));
}
PointsParser p = ctx.getParserFactory().createPointsParser();
AWTPolylineProducer ph = new AWTPolylineProducer();
ph.setWindingRule(wr);
p.setPointsHandler(ph);
try {
p.parse(new StringReader(pts));
} catch (ParseException ex) {
throw new IllegalAttributeValueException(
Messages.formatMessage("polyline.points.invalid",
new Object[] {ex.getMessage()}),
node);