Hi
Hope you can help me here.
I get the following error....
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXException:
Namespace not supported by SAXParser

Here's the really simple XSL...

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="//MsgData">



</xsl:template>
</xsl:stylesheet>

Here's 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;


  }

the error occurs on
Transformer transformer = factory.newTransformer(stylesheet);

What have i done wrong?

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

Reply via email to