The D-CIXS Compact X-ray Spectrometer will provide high quality spectroscopic mapping of the Moon, the primary science target of the ESA SMART-1 mission. D-CIXS consists of a high throughput spectrometer, which will perform spatially localised X-ray fluorescence spectroscopy. It will also carry a solar monitor, to provide the direct calibration needed to produce a global map of absolute lunar elemental abundances, the first time this has been done. Thus it will achieve ground breaking science within a resource envelope far smaller than previously thought possible for this type of instrument, by exploiting two new technologies, swept charge devices and micro-structure collimators. The new technology does not require cold running, with its associated overheads to the spacecraft. At the same time it will demonstrate a radically novel approach to building a type of instrument essential for the BepiColombo mission and potential future planetary science targets.