Java XSLT Transformation
Hi,
i'm trying to do a XSLT transformation in Java
i have this code
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
PrintWriter writer = response.getWriter();
transformer.transform(xmlSource, new StreamResult(writer));
If i have the following HTML file:
<html>
<head></head>
<body><p>Something Something</p></body>
</html>
It works fine, i does the transformation i want
but if i change the <html> node to
<html xmlns="http://www.w3.org/1999/xhtml">
It doesn't work, i get a Premature End of File, in an Exception
Thank you
|