Debugging your Style It is not surprising if your first dblatex compilation fails with a fresh LaTeX style. So, how to debug it when used with dblatex? The following steps can help you: Compile your file in the debug mode (option ). When the compilation is done, the temporary working directory will not be removed. Go under the building temporary directory, and set the environment with the file env_tex. Compile the temporary latex file produced by the XSL stylesheets. Its name has the suffix "_tmp.tex". Now latex stops when it encounters an error so that you can debug your stylesheet.