XSLT (and XPath) are designed to operate on XML documents. XML documents are trees.
A collection of RDF statements is a directed graph, but it is not generally a tree.
Templates designed to transform RDF often stumble over this missmatch at the data model level.
But RDF has an XML serialization, doesn't it?