Hi
I have a problem with the XSL Transformation of a simple XML Doc.
Here's the XSL...
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="//MsgData">
</xsl:template>
</xsl:stylesheet>
right, you can see it does nothing...
heres the Java Code
public Document transform(Document doc)throws Exception{
File file = new File("map.xsl");
StreamSource stylesheet = new StreamSource(file);
// load the transformer using JAXP
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(stylesheet);
// now lets style the given document
DocumentSource source = new DocumentSource( doc );
DocumentResult result = new DocumentResult();
transformer.transform( source, result );
// return the transformed document
Document transformedDoc = result.getDocument();
return transformedDoc;
}
Here's the Error
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Namespace not
supported by SAXParser
What is it that i haven't done?
Hope you can help
thanx
don
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user