Xsl's modified to handle changes in the xml structure.
Support for print registration with callback added.
Additional cleanup.