Packaging the XSLT template and a sample XML file in a single Leo file makes distribution of the component much more easy and understandable.
The XSLT and Javascript can be separated simply by putting each in separate nodes.