attr.addAttribute("", "", "xmlns:xlink", "CDATA", SVGConstants.XLINK_NAMESPACE);
attr.addAttribute(SVGConstants.XMLNS_NAMESPACE, "xlink", "xmlns:xlink", "CDATA", SVGConstants.XLINK_NAMESPACE);
	public void toSAX(ContentHandler handler, Map svgContext) throws SAXException {		// TODO add clipping here with clipPath		AttributesImpl attr = new AttributesImpl();		super.setCommonAttributes(attr);		SVGUtils.addAttribute(attr, "x", "" + insertPoint.getX());		SVGUtils.addAttribute(attr, "y", "" + insertPoint.getY());		SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_WIDTH, ""				+ imageSizeAlongU);		SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_HEIGHT, ""				+ imageSizeAlongV);		// get the image path from the referenced IMAGEDEF object		DXFImageDefObject imageDef = (DXFImageDefObject) doc.getDXFObject(				DXFConstants.OBJECT_TYPE_IMAGEDEF, imageDefID);		// convert the file to uri		attr.addAttribute("", "", "xmlns:xlink", "CDATA",				SVGConstants.XLINK_NAMESPACE);		attr.addAttribute(SVGConstants.XLINK_NAMESPACE, "href", "xlink:href",				"CDATA", SVGUtils.pathToURI(imageDef.getFilename()));		// We have a main transformation on the complete draft.		// So we need here the rotate of image to get the right		// view back.		StringBuffer transform = new StringBuffer();		transform.append("rotate(180 ");		transform.append((insertPoint.getX() + imageSizeAlongU / 2));		transform.append(" ");		transform.append((insertPoint.getY() + imageSizeAlongV / 2));		transform.append(")");		SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_TRANSFORM,				transform.toString());		SVGUtils.emptyElement(handler, SVGConstants.SVG_IMAGE, attr);	}