XL1 was limited production as there was only ever going to be 200 offered to the public. VW almost certainly lost money on every single one, and probably not a small amount. XL1 was part of the Ferdinand Piëch era of money-losing halo cars to demonstrate VW group's engineering excellence. Bugatti Veyron and VW Phaeton were other cars to come out of this obsession.
XL1 is an interesting 'what-if' of cars. If VW doesn't get caught cheating on emissions we would likely have gotten some kind of successor to the XL1 that was actually truly a production car. Certainly VW would have at least tried a few production diesel hybrids. Instead they became the first large established automaker to fully commit to a battery-electric future.