I am sorry, but I not full understand what happened.
In Book library CSV export work so:
At start we create XML file and after that with help XSL transformation, with help "csv.xsl" (there are we set what fields must exist in CSV file) - we create file with books in CSV format.
You must not remove "csv.xsl".
In attachment csv.xsl - if you remove self