An example

XML (the source):

<?xml version="1.0" encoding="iso-8859-1"?>
<BOOK>
<CHAPTER>
</CHAPTER>
</BOOK>

XSL (the stylesheet):

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.1" xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">

Result (generated with Apache FOP):

<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">