We use Django for writing our new project. Our designer wants to write templates with XSLT. As you know Django has its own template system, and I don\'t have any arguments w
1). Yes, why not.
import libxslt
import libxml2
from django http import HttpResponse
def your_view(request):
xsl = libxslt.parseStyleSheetDoc(libxml2.parseFile('stylesheet.xml'))
data = # your xml here
result = xsl.applyStylesheet(data)
response = HttpResponse()
xsl.saveResultToFile(response, result)
return response
2). This will likely solicit opinion, debate, arguments, polling, or extended discussion. :-)